packetcoredataplane

package
v0.20230131.1122358 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2023 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane Documentation

The packetcoredataplane SDK allows for interaction with the Azure Resource Manager Service mobilenetwork (API Version 2022-11-01).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2022-11-01/packetcoredataplane"

Client Initialization

client := packetcoredataplane.NewPacketCoreDataPlaneClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: PacketCoreDataPlaneClient.CreateOrUpdate

ctx := context.TODO()
id := packetcoredataplane.NewPacketCoreDataPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneValue", "packetCoreDataPlaneValue")

payload := packetcoredataplane.PacketCoreDataPlane{
	// ...
}


if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: PacketCoreDataPlaneClient.Delete

ctx := context.TODO()
id := packetcoredataplane.NewPacketCoreDataPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneValue", "packetCoreDataPlaneValue")

if err := client.DeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: PacketCoreDataPlaneClient.Get

ctx := context.TODO()
id := packetcoredataplane.NewPacketCoreDataPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneValue", "packetCoreDataPlaneValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: PacketCoreDataPlaneClient.UpdateTags

ctx := context.TODO()
id := packetcoredataplane.NewPacketCoreDataPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneValue", "packetCoreDataPlaneValue")

payload := packetcoredataplane.TagsObject{
	// ...
}


read, err := client.UpdateTags(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func ValidatePacketCoreDataPlaneID

func ValidatePacketCoreDataPlaneID(input interface{}, key string) (warnings []string, errors []error)

ValidatePacketCoreDataPlaneID checks that 'input' can be parsed as a Packet Core Data Plane ID

Types

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *PacketCoreDataPlane
}

type InterfaceProperties

type InterfaceProperties struct {
	IPv4Address *string `json:"ipv4Address,omitempty"`
	IPv4Gateway *string `json:"ipv4Gateway,omitempty"`
	IPv4Subnet  *string `json:"ipv4Subnet,omitempty"`
	Name        *string `json:"name,omitempty"`
}

type PacketCoreDataPlane

type PacketCoreDataPlane struct {
	Id         *string                             `json:"id,omitempty"`
	Location   string                              `json:"location"`
	Name       *string                             `json:"name,omitempty"`
	Properties PacketCoreDataPlanePropertiesFormat `json:"properties"`
	SystemData *systemdata.SystemData              `json:"systemData,omitempty"`
	Tags       *map[string]string                  `json:"tags,omitempty"`
	Type       *string                             `json:"type,omitempty"`
}

type PacketCoreDataPlaneClient

type PacketCoreDataPlaneClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewPacketCoreDataPlaneClientWithBaseURI

func NewPacketCoreDataPlaneClientWithBaseURI(endpoint string) PacketCoreDataPlaneClient

func (PacketCoreDataPlaneClient) CreateOrUpdate

CreateOrUpdate ...

func (PacketCoreDataPlaneClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (PacketCoreDataPlaneClient) Delete

Delete ...

func (PacketCoreDataPlaneClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (PacketCoreDataPlaneClient) Get

Get ...

func (PacketCoreDataPlaneClient) UpdateTags

UpdateTags ...

type PacketCoreDataPlaneId

type PacketCoreDataPlaneId struct {
	SubscriptionId             string
	ResourceGroupName          string
	PacketCoreControlPlaneName string
	PacketCoreDataPlaneName    string
}

PacketCoreDataPlaneId is a struct representing the Resource ID for a Packet Core Data Plane

func NewPacketCoreDataPlaneID

func NewPacketCoreDataPlaneID(subscriptionId string, resourceGroupName string, packetCoreControlPlaneName string, packetCoreDataPlaneName string) PacketCoreDataPlaneId

NewPacketCoreDataPlaneID returns a new PacketCoreDataPlaneId struct

func ParsePacketCoreDataPlaneID

func ParsePacketCoreDataPlaneID(input string) (*PacketCoreDataPlaneId, error)

ParsePacketCoreDataPlaneID parses 'input' into a PacketCoreDataPlaneId

func ParsePacketCoreDataPlaneIDInsensitively

func ParsePacketCoreDataPlaneIDInsensitively(input string) (*PacketCoreDataPlaneId, error)

ParsePacketCoreDataPlaneIDInsensitively parses 'input' case-insensitively into a PacketCoreDataPlaneId note: this method should only be used for API response data and not user input

func (PacketCoreDataPlaneId) ID

func (id PacketCoreDataPlaneId) ID() string

ID returns the formatted Packet Core Data Plane ID

func (PacketCoreDataPlaneId) Segments

func (id PacketCoreDataPlaneId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Packet Core Data Plane ID

func (PacketCoreDataPlaneId) String

func (id PacketCoreDataPlaneId) String() string

String returns a human-readable description of this Packet Core Data Plane ID

type PacketCoreDataPlanePropertiesFormat

type PacketCoreDataPlanePropertiesFormat struct {
	ProvisioningState        *ProvisioningState  `json:"provisioningState,omitempty"`
	UserPlaneAccessInterface InterfaceProperties `json:"userPlaneAccessInterface"`
}

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateAccepted  ProvisioningState = "Accepted"
	ProvisioningStateCanceled  ProvisioningState = "Canceled"
	ProvisioningStateDeleted   ProvisioningState = "Deleted"
	ProvisioningStateDeleting  ProvisioningState = "Deleting"
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
	ProvisioningStateUnknown   ProvisioningState = "Unknown"
)

type TagsObject

type TagsObject struct {
	Tags *map[string]string `json:"tags,omitempty"`
}

type UpdateTagsOperationResponse

type UpdateTagsOperationResponse struct {
	HttpResponse *http.Response
	Model        *PacketCoreDataPlane
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL