packetcorecontrolplane

package
v0.20241111.1164443 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/mobilenetwork/2024-02-01/packetcorecontrolplane Documentation

The packetcorecontrolplane SDK allows for interaction with Azure Resource Manager mobilenetwork (API Version 2024-02-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/2024-02-01/packetcorecontrolplane"

Client Initialization

client := packetcorecontrolplane.NewPacketCoreControlPlaneClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: PacketCoreControlPlaneClient.CreateOrUpdate

ctx := context.TODO()
id := packetcorecontrolplane.NewPacketCoreControlPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneName")

payload := packetcorecontrolplane.PacketCoreControlPlane{
	// ...
}


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

Example Usage: PacketCoreControlPlaneClient.Delete

ctx := context.TODO()
id := packetcorecontrolplane.NewPacketCoreControlPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneName")

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

Example Usage: PacketCoreControlPlaneClient.Get

ctx := context.TODO()
id := packetcorecontrolplane.NewPacketCoreControlPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneName")

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: PacketCoreControlPlaneClient.UpdateTags

ctx := context.TODO()
id := packetcorecontrolplane.NewPacketCoreControlPlaneID("12345678-1234-9876-4563-123456789012", "example-resource-group", "packetCoreControlPlaneName")

payload := packetcorecontrolplane.IdentityAndTagsObject{
	// ...
}


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 PossibleValuesForAuthenticationType

func PossibleValuesForAuthenticationType() []string

func PossibleValuesForBillingSku

func PossibleValuesForBillingSku() []string

func PossibleValuesForCertificateProvisioningState

func PossibleValuesForCertificateProvisioningState() []string

func PossibleValuesForCoreNetworkType

func PossibleValuesForCoreNetworkType() []string

func PossibleValuesForDesiredInstallationState

func PossibleValuesForDesiredInstallationState() []string

func PossibleValuesForHomeNetworkPrivateKeysProvisioningState

func PossibleValuesForHomeNetworkPrivateKeysProvisioningState() []string

func PossibleValuesForInstallationReason

func PossibleValuesForInstallationReason() []string

func PossibleValuesForInstallationState

func PossibleValuesForInstallationState() []string

func PossibleValuesForPlatformType

func PossibleValuesForPlatformType() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForReinstallRequired

func PossibleValuesForReinstallRequired() []string

func ValidatePacketCoreControlPlaneID

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

ValidatePacketCoreControlPlaneID checks that 'input' can be parsed as a Packet Core Control Plane ID

Types

type AsyncOperationId

type AsyncOperationId struct {
	Id string `json:"id"`
}

type AuthenticationType

type AuthenticationType string
const (
	AuthenticationTypeAAD      AuthenticationType = "AAD"
	AuthenticationTypePassword AuthenticationType = "Password"
)

func (*AuthenticationType) UnmarshalJSON

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

type AzureStackEdgeDeviceResourceId

type AzureStackEdgeDeviceResourceId struct {
	Id string `json:"id"`
}

type AzureStackHCIClusterResourceId

type AzureStackHCIClusterResourceId struct {
	Id string `json:"id"`
}

type BillingSku

type BillingSku string
const (
	BillingSkuGFive    BillingSku = "G5"
	BillingSkuGOne     BillingSku = "G1"
	BillingSkuGOneZero BillingSku = "G10"
	BillingSkuGTwo     BillingSku = "G2"
	BillingSkuGZero    BillingSku = "G0"
)

func (*BillingSku) UnmarshalJSON

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

type CertificateProvisioning

type CertificateProvisioning struct {
	Reason *string                       `json:"reason,omitempty"`
	State  *CertificateProvisioningState `json:"state,omitempty"`
}

type CertificateProvisioningState

type CertificateProvisioningState string
const (
	CertificateProvisioningStateFailed         CertificateProvisioningState = "Failed"
	CertificateProvisioningStateNotProvisioned CertificateProvisioningState = "NotProvisioned"
	CertificateProvisioningStateProvisioned    CertificateProvisioningState = "Provisioned"
)

func (*CertificateProvisioningState) UnmarshalJSON

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

type ConnectedClusterResourceId

type ConnectedClusterResourceId struct {
	Id string `json:"id"`
}

type CoreNetworkType

type CoreNetworkType string
const (
	CoreNetworkTypeEPC               CoreNetworkType = "EPC"
	CoreNetworkTypeEPCPositiveFiveGC CoreNetworkType = "EPC + 5GC"
	CoreNetworkTypeFiveGC            CoreNetworkType = "5GC"
)

func (*CoreNetworkType) UnmarshalJSON

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

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PacketCoreControlPlane
}

type CustomLocationResourceId

type CustomLocationResourceId struct {
	Id string `json:"id"`
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type DesiredInstallationState

type DesiredInstallationState string
const (
	DesiredInstallationStateInstalled   DesiredInstallationState = "Installed"
	DesiredInstallationStateUninstalled DesiredInstallationState = "Uninstalled"
)

func (*DesiredInstallationState) UnmarshalJSON

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

type DiagnosticsUploadConfiguration

type DiagnosticsUploadConfiguration struct {
	StorageAccountContainerURL string `json:"storageAccountContainerUrl"`
}

type EventHubConfiguration

type EventHubConfiguration struct {
	Id                string `json:"id"`
	ReportingInterval *int64 `json:"reportingInterval,omitempty"`
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PacketCoreControlPlane
}

type HTTPSServerCertificate

type HTTPSServerCertificate struct {
	CertificateURL string                   `json:"certificateUrl"`
	Provisioning   *CertificateProvisioning `json:"provisioning,omitempty"`
}

type HomeNetworkPrivateKeysProvisioning

type HomeNetworkPrivateKeysProvisioning struct {
	State HomeNetworkPrivateKeysProvisioningState `json:"state"`
}

type HomeNetworkPrivateKeysProvisioningState

type HomeNetworkPrivateKeysProvisioningState string
const (
	HomeNetworkPrivateKeysProvisioningStateFailed         HomeNetworkPrivateKeysProvisioningState = "Failed"
	HomeNetworkPrivateKeysProvisioningStateNotProvisioned HomeNetworkPrivateKeysProvisioningState = "NotProvisioned"
	HomeNetworkPrivateKeysProvisioningStateProvisioned    HomeNetworkPrivateKeysProvisioningState = "Provisioned"
)

func (*HomeNetworkPrivateKeysProvisioningState) UnmarshalJSON

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

type IdentityAndTagsObject

type IdentityAndTagsObject struct {
	Identity *identity.UserAssignedMap `json:"identity,omitempty"`
	Tags     *map[string]string        `json:"tags,omitempty"`
}

type Installation

type Installation struct {
	DesiredState      *DesiredInstallationState `json:"desiredState,omitempty"`
	Operation         *AsyncOperationId         `json:"operation,omitempty"`
	Reasons           *[]InstallationReason     `json:"reasons,omitempty"`
	ReinstallRequired *ReinstallRequired        `json:"reinstallRequired,omitempty"`
	State             *InstallationState        `json:"state,omitempty"`
}

type InstallationReason

type InstallationReason string
const (
	InstallationReasonControlPlaneAccessInterfaceHasChanged               InstallationReason = "ControlPlaneAccessInterfaceHasChanged"
	InstallationReasonControlPlaneAccessVirtualIPvFourAddressesHasChanged InstallationReason = "ControlPlaneAccessVirtualIpv4AddressesHasChanged"
	InstallationReasonNoAttachedDataNetworks                              InstallationReason = "NoAttachedDataNetworks"
	InstallationReasonNoPacketCoreDataPlane                               InstallationReason = "NoPacketCoreDataPlane"
	InstallationReasonNoSlices                                            InstallationReason = "NoSlices"
	InstallationReasonPublicLandMobileNetworkIdentifierHasChanged         InstallationReason = "PublicLandMobileNetworkIdentifierHasChanged"
	InstallationReasonUserPlaneAccessInterfaceHasChanged                  InstallationReason = "UserPlaneAccessInterfaceHasChanged"
	InstallationReasonUserPlaneAccessVirtualIPvFourAddressesHasChanged    InstallationReason = "UserPlaneAccessVirtualIpv4AddressesHasChanged"
	InstallationReasonUserPlaneDataInterfaceHasChanged                    InstallationReason = "UserPlaneDataInterfaceHasChanged"
)

func (*InstallationReason) UnmarshalJSON

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

type InstallationState

type InstallationState string
const (
	InstallationStateFailed       InstallationState = "Failed"
	InstallationStateInstalled    InstallationState = "Installed"
	InstallationStateInstalling   InstallationState = "Installing"
	InstallationStateReinstalling InstallationState = "Reinstalling"
	InstallationStateRollingBack  InstallationState = "RollingBack"
	InstallationStateUninstalled  InstallationState = "Uninstalled"
	InstallationStateUninstalling InstallationState = "Uninstalling"
	InstallationStateUpdating     InstallationState = "Updating"
	InstallationStateUpgrading    InstallationState = "Upgrading"
)

func (*InstallationState) UnmarshalJSON

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

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 LocalDiagnosticsAccessConfiguration

type LocalDiagnosticsAccessConfiguration struct {
	AuthenticationType     AuthenticationType      `json:"authenticationType"`
	HTTPSServerCertificate *HTTPSServerCertificate `json:"httpsServerCertificate,omitempty"`
}

type NASRerouteConfiguration

type NASRerouteConfiguration struct {
	MacroMmeGroupId int64 `json:"macroMmeGroupId"`
}

type PacketCoreControlPlane

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

type PacketCoreControlPlaneClient

type PacketCoreControlPlaneClient struct {
	Client *resourcemanager.Client
}

func NewPacketCoreControlPlaneClientWithBaseURI

func NewPacketCoreControlPlaneClientWithBaseURI(sdkApi sdkEnv.Api) (*PacketCoreControlPlaneClient, error)

func (PacketCoreControlPlaneClient) CreateOrUpdate

CreateOrUpdate ...

func (PacketCoreControlPlaneClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (PacketCoreControlPlaneClient) Delete

Delete ...

func (PacketCoreControlPlaneClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (PacketCoreControlPlaneClient) Get

Get ...

func (PacketCoreControlPlaneClient) UpdateTags

UpdateTags ...

type PacketCoreControlPlaneId

type PacketCoreControlPlaneId struct {
	SubscriptionId             string
	ResourceGroupName          string
	PacketCoreControlPlaneName string
}

PacketCoreControlPlaneId is a struct representing the Resource ID for a Packet Core Control Plane

func NewPacketCoreControlPlaneID

func NewPacketCoreControlPlaneID(subscriptionId string, resourceGroupName string, packetCoreControlPlaneName string) PacketCoreControlPlaneId

NewPacketCoreControlPlaneID returns a new PacketCoreControlPlaneId struct

func ParsePacketCoreControlPlaneID

func ParsePacketCoreControlPlaneID(input string) (*PacketCoreControlPlaneId, error)

ParsePacketCoreControlPlaneID parses 'input' into a PacketCoreControlPlaneId

func ParsePacketCoreControlPlaneIDInsensitively

func ParsePacketCoreControlPlaneIDInsensitively(input string) (*PacketCoreControlPlaneId, error)

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

func (*PacketCoreControlPlaneId) FromParseResult

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

func (PacketCoreControlPlaneId) ID

ID returns the formatted Packet Core Control Plane ID

func (PacketCoreControlPlaneId) Segments

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

func (PacketCoreControlPlaneId) String

func (id PacketCoreControlPlaneId) String() string

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

type PacketCoreControlPlanePropertiesFormat

type PacketCoreControlPlanePropertiesFormat struct {
	ControlPlaneAccessInterface            InterfaceProperties                 `json:"controlPlaneAccessInterface"`
	ControlPlaneAccessVirtualIPv4Addresses *[]string                           `json:"controlPlaneAccessVirtualIpv4Addresses,omitempty"`
	CoreNetworkTechnology                  *CoreNetworkType                    `json:"coreNetworkTechnology,omitempty"`
	DiagnosticsUpload                      *DiagnosticsUploadConfiguration     `json:"diagnosticsUpload,omitempty"`
	EventHub                               *EventHubConfiguration              `json:"eventHub,omitempty"`
	HomeNetworkPrivateKeysProvisioning     *HomeNetworkPrivateKeysProvisioning `json:"homeNetworkPrivateKeysProvisioning,omitempty"`
	Installation                           *Installation                       `json:"installation,omitempty"`
	InstalledVersion                       *string                             `json:"installedVersion,omitempty"`
	InteropSettings                        *interface{}                        `json:"interopSettings,omitempty"`
	LocalDiagnosticsAccess                 LocalDiagnosticsAccessConfiguration `json:"localDiagnosticsAccess"`
	Platform                               PlatformConfiguration               `json:"platform"`
	ProvisioningState                      *ProvisioningState                  `json:"provisioningState,omitempty"`
	RollbackVersion                        *string                             `json:"rollbackVersion,omitempty"`
	Signaling                              *SignalingConfiguration             `json:"signaling,omitempty"`
	Sites                                  []SiteResourceId                    `json:"sites"`
	Sku                                    BillingSku                          `json:"sku"`
	UeMtu                                  *int64                              `json:"ueMtu,omitempty"`
	Version                                *string                             `json:"version,omitempty"`
}

type PlatformConfiguration

type PlatformConfiguration struct {
	AzureStackEdgeDevice  *AzureStackEdgeDeviceResourceId   `json:"azureStackEdgeDevice,omitempty"`
	AzureStackEdgeDevices *[]AzureStackEdgeDeviceResourceId `json:"azureStackEdgeDevices,omitempty"`
	AzureStackHciCluster  *AzureStackHCIClusterResourceId   `json:"azureStackHciCluster,omitempty"`
	ConnectedCluster      *ConnectedClusterResourceId       `json:"connectedCluster,omitempty"`
	CustomLocation        *CustomLocationResourceId         `json:"customLocation,omitempty"`
	Type                  PlatformType                      `json:"type"`
}

type PlatformType

type PlatformType string
const (
	PlatformTypeAKSNegativeHCI                              PlatformType = "AKS-HCI"
	PlatformTypeThreePNegativeAZURENegativeSTACKNegativeHCI PlatformType = "3P-AZURE-STACK-HCI"
)

func (*PlatformType) UnmarshalJSON

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

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

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

type ReinstallRequired

type ReinstallRequired string
const (
	ReinstallRequiredNotRequired ReinstallRequired = "NotRequired"
	ReinstallRequiredRequired    ReinstallRequired = "Required"
)

func (*ReinstallRequired) UnmarshalJSON

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

type SignalingConfiguration

type SignalingConfiguration struct {
	NasReroute *NASRerouteConfiguration `json:"nasReroute,omitempty"`
}

type SiteResourceId

type SiteResourceId struct {
	Id string `json:"id"`
}

type UpdateTagsOperationResponse

type UpdateTagsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PacketCoreControlPlane
}

Jump to

Keyboard shortcuts

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