attacheddatanetworks

package
v0.20240123.1170558 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2023-06-01/attacheddatanetworks Documentation

The attacheddatanetworks SDK allows for interaction with the Azure Resource Manager Service mobilenetwork (API Version 2023-06-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/2023-06-01/attacheddatanetworks"

Client Initialization

client := attacheddatanetworks.NewAttachedDataNetworksClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AttachedDataNetworksClient.ListByPacketCoreDataPlane

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

// alternatively `client.ListByPacketCoreDataPlane(ctx, id)` can be used to do batched pagination
items, err := client.ListByPacketCoreDataPlaneComplete(ctx, id)
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForNaptEnabled

func PossibleValuesForNaptEnabled() []string

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 AttachedDataNetwork

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

type AttachedDataNetworkOperationPredicate

type AttachedDataNetworkOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

func (AttachedDataNetworkOperationPredicate) Matches

type AttachedDataNetworkPropertiesFormat

type AttachedDataNetworkPropertiesFormat struct {
	DnsAddresses                         []string            `json:"dnsAddresses"`
	NaptConfiguration                    *NaptConfiguration  `json:"naptConfiguration,omitempty"`
	ProvisioningState                    *ProvisioningState  `json:"provisioningState,omitempty"`
	UserEquipmentAddressPoolPrefix       *[]string           `json:"userEquipmentAddressPoolPrefix,omitempty"`
	UserEquipmentStaticAddressPoolPrefix *[]string           `json:"userEquipmentStaticAddressPoolPrefix,omitempty"`
	UserPlaneDataInterface               InterfaceProperties `json:"userPlaneDataInterface"`
}

type AttachedDataNetworksClient

type AttachedDataNetworksClient struct {
	Client *resourcemanager.Client
}

func NewAttachedDataNetworksClientWithBaseURI

func NewAttachedDataNetworksClientWithBaseURI(sdkApi sdkEnv.Api) (*AttachedDataNetworksClient, error)

func (AttachedDataNetworksClient) ListByPacketCoreDataPlane

ListByPacketCoreDataPlane ...

func (AttachedDataNetworksClient) ListByPacketCoreDataPlaneComplete

ListByPacketCoreDataPlaneComplete retrieves all the results into a single object

func (AttachedDataNetworksClient) ListByPacketCoreDataPlaneCompleteMatchingPredicate

func (c AttachedDataNetworksClient) ListByPacketCoreDataPlaneCompleteMatchingPredicate(ctx context.Context, id PacketCoreDataPlaneId, predicate AttachedDataNetworkOperationPredicate) (result ListByPacketCoreDataPlaneCompleteResult, err error)

ListByPacketCoreDataPlaneCompleteMatchingPredicate retrieves all the results and then applies the predicate

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 ListByPacketCoreDataPlaneCompleteResult

type ListByPacketCoreDataPlaneCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []AttachedDataNetwork
}

type ListByPacketCoreDataPlaneOperationResponse

type ListByPacketCoreDataPlaneOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]AttachedDataNetwork
}

type NaptConfiguration

type NaptConfiguration struct {
	Enabled           *NaptEnabled        `json:"enabled,omitempty"`
	PinholeLimits     *int64              `json:"pinholeLimits,omitempty"`
	PinholeTimeouts   *PinholeTimeouts    `json:"pinholeTimeouts,omitempty"`
	PortRange         *PortRange          `json:"portRange,omitempty"`
	PortReuseHoldTime *PortReuseHoldTimes `json:"portReuseHoldTime,omitempty"`
}

type NaptEnabled

type NaptEnabled string
const (
	NaptEnabledDisabled NaptEnabled = "Disabled"
	NaptEnabledEnabled  NaptEnabled = "Enabled"
)

func (*NaptEnabled) UnmarshalJSON added in v0.20230713.1092427

func (s *NaptEnabled) UnmarshalJSON(bytes []byte) error

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) FromParseResult added in v0.20231127.1171502

func (id *PacketCoreDataPlaneId) FromParseResult(input resourceids.ParseResult) error

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 PinholeTimeouts

type PinholeTimeouts struct {
	Icmp *int64 `json:"icmp,omitempty"`
	Tcp  *int64 `json:"tcp,omitempty"`
	Udp  *int64 `json:"udp,omitempty"`
}

type PortRange

type PortRange struct {
	MaxPort *int64 `json:"maxPort,omitempty"`
	MinPort *int64 `json:"minPort,omitempty"`
}

type PortReuseHoldTimes

type PortReuseHoldTimes struct {
	Tcp *int64 `json:"tcp,omitempty"`
	Udp *int64 `json:"udp,omitempty"`
}

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"
)

func (*ProvisioningState) UnmarshalJSON added in v0.20230713.1092427

func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error

Jump to

Keyboard shortcuts

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