expressrouteproviderports

package
v0.0.0-...-a81a29a Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/network/2022-09-01/expressrouteproviderports Documentation

The expressrouteproviderports SDK allows for interaction with the Azure Resource Manager Service network (API Version 2022-09-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/network/2022-09-01/expressrouteproviderports"

Client Initialization

client := expressrouteproviderports.NewExpressRouteProviderPortsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ExpressRouteProviderPortsClient.ExpressRouteProviderPort

ctx := context.TODO()
id := expressrouteproviderports.NewExpressRouteProviderPortID("12345678-1234-9876-4563-123456789012", "expressRouteProviderPortValue")

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

Example Usage: ExpressRouteProviderPortsClient.LocationList

ctx := context.TODO()
id := expressrouteproviderports.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

read, err := client.LocationList(ctx, id, expressrouteproviderports.DefaultLocationListOperationOptions())
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 ValidateExpressRouteProviderPortID

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

ValidateExpressRouteProviderPortID checks that 'input' can be parsed as a Express Route Provider Port ID

Types

type ExpressRouteProviderPort

type ExpressRouteProviderPort struct {
	Etag       *string                             `json:"etag,omitempty"`
	Id         *string                             `json:"id,omitempty"`
	Location   *string                             `json:"location,omitempty"`
	Name       *string                             `json:"name,omitempty"`
	Properties *ExpressRouteProviderPortProperties `json:"properties,omitempty"`
	Tags       *map[string]string                  `json:"tags,omitempty"`
	Type       *string                             `json:"type,omitempty"`
}

type ExpressRouteProviderPortId

type ExpressRouteProviderPortId struct {
	SubscriptionId               string
	ExpressRouteProviderPortName string
}

ExpressRouteProviderPortId is a struct representing the Resource ID for a Express Route Provider Port

func NewExpressRouteProviderPortID

func NewExpressRouteProviderPortID(subscriptionId string, expressRouteProviderPortName string) ExpressRouteProviderPortId

NewExpressRouteProviderPortID returns a new ExpressRouteProviderPortId struct

func ParseExpressRouteProviderPortID

func ParseExpressRouteProviderPortID(input string) (*ExpressRouteProviderPortId, error)

ParseExpressRouteProviderPortID parses 'input' into a ExpressRouteProviderPortId

func ParseExpressRouteProviderPortIDInsensitively

func ParseExpressRouteProviderPortIDInsensitively(input string) (*ExpressRouteProviderPortId, error)

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

func (ExpressRouteProviderPortId) ID

ID returns the formatted Express Route Provider Port ID

func (ExpressRouteProviderPortId) Segments

Segments returns a slice of Resource ID Segments which comprise this Express Route Provider Port ID

func (ExpressRouteProviderPortId) String

func (id ExpressRouteProviderPortId) String() string

String returns a human-readable description of this Express Route Provider Port ID

type ExpressRouteProviderPortListResult

type ExpressRouteProviderPortListResult struct {
	NextLink *string                     `json:"nextLink,omitempty"`
	Value    *[]ExpressRouteProviderPort `json:"value,omitempty"`
}

type ExpressRouteProviderPortOperationResponse

type ExpressRouteProviderPortOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ExpressRouteProviderPort
}

type ExpressRouteProviderPortProperties

type ExpressRouteProviderPortProperties struct {
	OverprovisionFactor      *int64  `json:"overprovisionFactor,omitempty"`
	PeeringLocation          *string `json:"peeringLocation,omitempty"`
	PortBandwidthInMbps      *int64  `json:"portBandwidthInMbps,omitempty"`
	PortPairDescriptor       *string `json:"portPairDescriptor,omitempty"`
	PrimaryAzurePort         *string `json:"primaryAzurePort,omitempty"`
	RemainingBandwidthInMbps *int64  `json:"remainingBandwidthInMbps,omitempty"`
	SecondaryAzurePort       *string `json:"secondaryAzurePort,omitempty"`
	UsedBandwidthInMbps      *int64  `json:"usedBandwidthInMbps,omitempty"`
}

type ExpressRouteProviderPortsClient

type ExpressRouteProviderPortsClient struct {
	Client *resourcemanager.Client
}

func NewExpressRouteProviderPortsClientWithBaseURI

func NewExpressRouteProviderPortsClientWithBaseURI(api environments.Api) (*ExpressRouteProviderPortsClient, error)

func (ExpressRouteProviderPortsClient) ExpressRouteProviderPort

ExpressRouteProviderPort ...

func (ExpressRouteProviderPortsClient) LocationList

LocationList ...

type LocationListOperationOptions

type LocationListOperationOptions struct {
	Filter *string
}

func DefaultLocationListOperationOptions

func DefaultLocationListOperationOptions() LocationListOperationOptions

func (LocationListOperationOptions) ToHeaders

func (LocationListOperationOptions) ToOData

func (LocationListOperationOptions) ToQuery

type LocationListOperationResponse

type LocationListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ExpressRouteProviderPortListResult
}

Jump to

Keyboard shortcuts

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