peering

package
v60.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package peering implements the Azure ARM Peering service API version 2019-08-01-preview.

Peering Client

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Peering
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type BandwidthOffer

type BandwidthOffer struct {
	// OfferName - The name of the bandwidth offer.
	OfferName *string `json:"offerName,omitempty"`
	// ValueInMbps - The value of the bandwidth offer in Mbps.
	ValueInMbps *int32 `json:"valueInMbps,omitempty"`
}

BandwidthOffer the properties that define a peering bandwidth offer.

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Peering.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (BaseClient) CheckServiceProviderAvailability

func (client BaseClient) CheckServiceProviderAvailability(ctx context.Context, checkServiceProviderAvailabilityInput CheckServiceProviderAvailabilityInput) (result String, err error)

CheckServiceProviderAvailability checks if the peering service provider is present within 1000 miles of customer's location Parameters: checkServiceProviderAvailabilityInput - the CheckServiceProviderAvailabilityInput indicating customer location and service provider.

func (BaseClient) CheckServiceProviderAvailabilityPreparer

func (client BaseClient) CheckServiceProviderAvailabilityPreparer(ctx context.Context, checkServiceProviderAvailabilityInput CheckServiceProviderAvailabilityInput) (*http.Request, error)

CheckServiceProviderAvailabilityPreparer prepares the CheckServiceProviderAvailability request.

func (BaseClient) CheckServiceProviderAvailabilityResponder

func (client BaseClient) CheckServiceProviderAvailabilityResponder(resp *http.Response) (result String, err error)

CheckServiceProviderAvailabilityResponder handles the response to the CheckServiceProviderAvailability request. The method always closes the http.Response Body.

func (BaseClient) CheckServiceProviderAvailabilitySender

func (client BaseClient) CheckServiceProviderAvailabilitySender(req *http.Request) (*http.Response, error)

CheckServiceProviderAvailabilitySender sends the CheckServiceProviderAvailability request. The method will close the http.Response Body if it receives an error.

type BgpSession

type BgpSession struct {
	// SessionPrefixV4 - The IPv4 prefix that contains both ends' IPv4 addresses.
	SessionPrefixV4 *string `json:"sessionPrefixV4,omitempty"`
	// SessionPrefixV6 - The IPv6 prefix that contains both ends' IPv6 addresses.
	SessionPrefixV6 *string `json:"sessionPrefixV6,omitempty"`
	// MicrosoftSessionIPv4Address - READ-ONLY; The IPv4 session address on Microsoft's end.
	MicrosoftSessionIPv4Address *string `json:"microsoftSessionIPv4Address,omitempty"`
	// MicrosoftSessionIPv6Address - READ-ONLY; The IPv6 session address on Microsoft's end.
	MicrosoftSessionIPv6Address *string `json:"microsoftSessionIPv6Address,omitempty"`
	// PeerSessionIPv4Address - The IPv4 session address on peer's end.
	PeerSessionIPv4Address *string `json:"peerSessionIPv4Address,omitempty"`
	// PeerSessionIPv6Address - The IPv6 session address on peer's end.
	PeerSessionIPv6Address *string `json:"peerSessionIPv6Address,omitempty"`
	// SessionStateV4 - READ-ONLY; The state of the IPv4 session. Possible values include: 'SessionStateV4None', 'SessionStateV4Idle', 'SessionStateV4Connect', 'SessionStateV4Active', 'SessionStateV4OpenSent', 'SessionStateV4OpenConfirm', 'SessionStateV4OpenReceived', 'SessionStateV4Established', 'SessionStateV4PendingAdd', 'SessionStateV4PendingUpdate', 'SessionStateV4PendingRemove'
	SessionStateV4 SessionStateV4 `json:"sessionStateV4,omitempty"`
	// SessionStateV6 - READ-ONLY; The state of the IPv6 session. Possible values include: 'SessionStateV6None', 'SessionStateV6Idle', 'SessionStateV6Connect', 'SessionStateV6Active', 'SessionStateV6OpenSent', 'SessionStateV6OpenConfirm', 'SessionStateV6OpenReceived', 'SessionStateV6Established', 'SessionStateV6PendingAdd', 'SessionStateV6PendingUpdate', 'SessionStateV6PendingRemove'
	SessionStateV6 SessionStateV6 `json:"sessionStateV6,omitempty"`
	// MaxPrefixesAdvertisedV4 - The maximum number of prefixes advertised over the IPv4 session.
	MaxPrefixesAdvertisedV4 *int32 `json:"maxPrefixesAdvertisedV4,omitempty"`
	// MaxPrefixesAdvertisedV6 - The maximum number of prefixes advertised over the IPv6 session.
	MaxPrefixesAdvertisedV6 *int32 `json:"maxPrefixesAdvertisedV6,omitempty"`
	// Md5AuthenticationKey - The MD5 authentication key of the session.
	Md5AuthenticationKey *string `json:"md5AuthenticationKey,omitempty"`
}

BgpSession the properties that define a BGP session.

func (BgpSession) MarshalJSON

func (bs BgpSession) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for BgpSession.

type CheckServiceProviderAvailabilityInput

type CheckServiceProviderAvailabilityInput struct {
	// PeeringServiceLocation - Gets or sets the PeeringServiceLocation
	PeeringServiceLocation *string `json:"peeringServiceLocation,omitempty"`
	// PeeringServiceProvider - Gets or sets the PeeringServiceProvider
	PeeringServiceProvider *string `json:"peeringServiceProvider,omitempty"`
}

CheckServiceProviderAvailabilityInput class for CheckServiceProviderAvailabilityInput

type ConnectionState

type ConnectionState string

ConnectionState enumerates the values for connection state.

const (
	// Active ...
	Active ConnectionState = "Active"
	// Approved ...
	Approved ConnectionState = "Approved"
	// None ...
	None ConnectionState = "None"
	// PendingApproval ...
	PendingApproval ConnectionState = "PendingApproval"
	// ProvisioningCompleted ...
	ProvisioningCompleted ConnectionState = "ProvisioningCompleted"
	// ProvisioningFailed ...
	ProvisioningFailed ConnectionState = "ProvisioningFailed"
	// ProvisioningStarted ...
	ProvisioningStarted ConnectionState = "ProvisioningStarted"
	// Validating ...
	Validating ConnectionState = "Validating"
)

func PossibleConnectionStateValues

func PossibleConnectionStateValues() []ConnectionState

PossibleConnectionStateValues returns an array of possible values for the ConnectionState const type.

type ContactInfo

type ContactInfo struct {
	// Emails - The list of email addresses.
	Emails *[]string `json:"emails,omitempty"`
	// Phone - The list of contact numbers.
	Phone *[]string `json:"phone,omitempty"`
}

ContactInfo the contact information of the peer.

type DirectConnection

type DirectConnection struct {
	// BandwidthInMbps - The bandwidth of the connection.
	BandwidthInMbps *int32 `json:"bandwidthInMbps,omitempty"`
	// ProvisionedBandwidthInMbps - The bandwidth that is actually provisioned.
	ProvisionedBandwidthInMbps *int32 `json:"provisionedBandwidthInMbps,omitempty"`
	// SessionAddressProvider - The field indicating if Microsoft provides session ip addresses. Possible values include: 'Microsoft', 'Peer'
	SessionAddressProvider SessionAddressProvider `json:"sessionAddressProvider,omitempty"`
	// UseForPeeringService - The flag that indicates whether or not the connection is used for peering service.
	UseForPeeringService *bool `json:"useForPeeringService,omitempty"`
	// PeeringDBFacilityID - The PeeringDB.com ID of the facility at which the connection has to be set up.
	PeeringDBFacilityID *int32 `json:"peeringDBFacilityId,omitempty"`
	// ConnectionState - READ-ONLY; The state of the connection. Possible values include: 'None', 'PendingApproval', 'Approved', 'ProvisioningStarted', 'ProvisioningFailed', 'ProvisioningCompleted', 'Validating', 'Active'
	ConnectionState ConnectionState `json:"connectionState,omitempty"`
	// BgpSession - The BGP session associated with the connection.
	BgpSession *BgpSession `json:"bgpSession,omitempty"`
	// ConnectionIdentifier - The unique identifier (GUID) for the connection.
	ConnectionIdentifier *string `json:"connectionIdentifier,omitempty"`
}

DirectConnection the properties that define a direct connection.

func (DirectConnection) MarshalJSON

func (dc DirectConnection) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DirectConnection.

type DirectPeeringFacility

type DirectPeeringFacility struct {
	// Address - The address of the direct peering facility.
	Address *string `json:"address,omitempty"`
	// DirectPeeringType - The type of the direct peering. Possible values include: 'Edge', 'Transit', 'Cdn', 'Internal'
	DirectPeeringType DirectPeeringType `json:"directPeeringType,omitempty"`
	// PeeringDBFacilityID - The PeeringDB.com ID of the facility.
	PeeringDBFacilityID *int32 `json:"peeringDBFacilityId,omitempty"`
	// PeeringDBFacilityLink - The PeeringDB.com URL of the facility.
	PeeringDBFacilityLink *string `json:"peeringDBFacilityLink,omitempty"`
}

DirectPeeringFacility the properties that define a direct peering facility.

type DirectPeeringType

type DirectPeeringType string

DirectPeeringType enumerates the values for direct peering type.

const (
	// Cdn ...
	Cdn DirectPeeringType = "Cdn"
	// Edge ...
	Edge DirectPeeringType = "Edge"
	// Internal ...
	Internal DirectPeeringType = "Internal"
	// Transit ...
	Transit DirectPeeringType = "Transit"
)

func PossibleDirectPeeringTypeValues

func PossibleDirectPeeringTypeValues() []DirectPeeringType

PossibleDirectPeeringTypeValues returns an array of possible values for the DirectPeeringType const type.

type ErrorResponse

type ErrorResponse struct {
	// Code - READ-ONLY; The error code.
	Code *string `json:"code,omitempty"`
	// Message - READ-ONLY; The error message.
	Message *string `json:"message,omitempty"`
}

ErrorResponse the error response that indicates why an operation has failed.

func (ErrorResponse) MarshalJSON

func (er ErrorResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ErrorResponse.

type ExchangeConnection

type ExchangeConnection struct {
	// PeeringDBFacilityID - The PeeringDB.com ID of the facility at which the connection has to be set up.
	PeeringDBFacilityID *int32 `json:"peeringDBFacilityId,omitempty"`
	// ConnectionState - READ-ONLY; The state of the connection. Possible values include: 'None', 'PendingApproval', 'Approved', 'ProvisioningStarted', 'ProvisioningFailed', 'ProvisioningCompleted', 'Validating', 'Active'
	ConnectionState ConnectionState `json:"connectionState,omitempty"`
	// BgpSession - The BGP session associated with the connection.
	BgpSession *BgpSession `json:"bgpSession,omitempty"`
	// ConnectionIdentifier - The unique identifier (GUID) for the connection.
	ConnectionIdentifier *string `json:"connectionIdentifier,omitempty"`
}

ExchangeConnection the properties that define an exchange connection.

func (ExchangeConnection) MarshalJSON

func (ec ExchangeConnection) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ExchangeConnection.

type ExchangePeeringFacility

type ExchangePeeringFacility struct {
	// ExchangeName - The name of the exchange peering facility.
	ExchangeName *string `json:"exchangeName,omitempty"`
	// BandwidthInMbps - The bandwidth of the connection between Microsoft and the exchange peering facility.
	BandwidthInMbps *int32 `json:"bandwidthInMbps,omitempty"`
	// MicrosoftIPv4Address - The IPv4 address of Microsoft at the exchange peering facility.
	MicrosoftIPv4Address *string `json:"microsoftIPv4Address,omitempty"`
	// MicrosoftIPv6Address - The IPv6 address of Microsoft at the exchange peering facility.
	MicrosoftIPv6Address *string `json:"microsoftIPv6Address,omitempty"`
	// FacilityIPv4Prefix - The IPv4 prefixes associated with the exchange peering facility.
	FacilityIPv4Prefix *string `json:"facilityIPv4Prefix,omitempty"`
	// FacilityIPv6Prefix - The IPv6 prefixes associated with the exchange peering facility.
	FacilityIPv6Prefix *string `json:"facilityIPv6Prefix,omitempty"`
	// PeeringDBFacilityID - The PeeringDB.com ID of the facility.
	PeeringDBFacilityID *int32 `json:"peeringDBFacilityId,omitempty"`
	// PeeringDBFacilityLink - The PeeringDB.com URL of the facility.
	PeeringDBFacilityLink *string `json:"peeringDBFacilityLink,omitempty"`
}

ExchangePeeringFacility the properties that define an exchange peering facility.

type Family

type Family string

Family enumerates the values for family.

const (
	// Direct ...
	Direct Family = "Direct"
	// Exchange ...
	Exchange Family = "Exchange"
)

func PossibleFamilyValues

func PossibleFamilyValues() []Family

PossibleFamilyValues returns an array of possible values for the Family const type.

type Kind

type Kind string

Kind enumerates the values for kind.

const (
	// KindDirect ...
	KindDirect Kind = "Direct"
	// KindExchange ...
	KindExchange Kind = "Exchange"
)

func PossibleKindValues

func PossibleKindValues() []Kind

PossibleKindValues returns an array of possible values for the Kind const type.

type LearnedType

type LearnedType string

LearnedType enumerates the values for learned type.

const (
	// LearnedTypeNone ...
	LearnedTypeNone LearnedType = "None"
	// LearnedTypeViaPartner ...
	LearnedTypeViaPartner LearnedType = "ViaPartner"
	// LearnedTypeViaSession ...
	LearnedTypeViaSession LearnedType = "ViaSession"
)

func PossibleLearnedTypeValues

func PossibleLearnedTypeValues() []LearnedType

PossibleLearnedTypeValues returns an array of possible values for the LearnedType const type.

type LegacyPeeringsClient

type LegacyPeeringsClient struct {
	BaseClient
}

LegacyPeeringsClient is the peering Client

func NewLegacyPeeringsClient

func NewLegacyPeeringsClient(subscriptionID string) LegacyPeeringsClient

NewLegacyPeeringsClient creates an instance of the LegacyPeeringsClient client.

func NewLegacyPeeringsClientWithBaseURI

func NewLegacyPeeringsClientWithBaseURI(baseURI string, subscriptionID string) LegacyPeeringsClient

NewLegacyPeeringsClientWithBaseURI creates an instance of the LegacyPeeringsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (LegacyPeeringsClient) List

func (client LegacyPeeringsClient) List(ctx context.Context, peeringLocation string, kind string) (result ListResultPage, err error)

List lists all of the legacy peerings under the given subscription matching the specified kind and location. Parameters: peeringLocation - the location of the peering. kind - the kind of the peering.

func (LegacyPeeringsClient) ListComplete

func (client LegacyPeeringsClient) ListComplete(ctx context.Context, peeringLocation string, kind string) (result ListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (LegacyPeeringsClient) ListPreparer

func (client LegacyPeeringsClient) ListPreparer(ctx context.Context, peeringLocation string, kind string) (*http.Request, error)

ListPreparer prepares the List request.

func (LegacyPeeringsClient) ListResponder

func (client LegacyPeeringsClient) ListResponder(resp *http.Response) (result ListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (LegacyPeeringsClient) ListSender

func (client LegacyPeeringsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ListResult

type ListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of peerings.
	Value *[]Model `json:"value,omitempty"`
	// NextLink - The link to fetch the next page of peerings.
	NextLink *string `json:"nextLink,omitempty"`
}

ListResult the paginated list of peerings.

func (ListResult) IsEmpty

func (lr ListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ListResultIterator

type ListResultIterator struct {
	// contains filtered or unexported fields
}

ListResultIterator provides access to a complete listing of Model values.

func NewListResultIterator

func NewListResultIterator(page ListResultPage) ListResultIterator

Creates a new instance of the ListResultIterator type.

func (*ListResultIterator) Next

func (iter *ListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ListResultIterator) NextWithContext

func (iter *ListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ListResultIterator) NotDone

func (iter ListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ListResultIterator) Response

func (iter ListResultIterator) Response() ListResult

Response returns the raw server response from the last page request.

func (ListResultIterator) Value

func (iter ListResultIterator) Value() Model

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ListResultPage

type ListResultPage struct {
	// contains filtered or unexported fields
}

ListResultPage contains a page of Model values.

func NewListResultPage

func NewListResultPage(cur ListResult, getNextPage func(context.Context, ListResult) (ListResult, error)) ListResultPage

Creates a new instance of the ListResultPage type.

func (*ListResultPage) Next

func (page *ListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ListResultPage) NextWithContext

func (page *ListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ListResultPage) NotDone

func (page ListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ListResultPage) Response

func (page ListResultPage) Response() ListResult

Response returns the raw server response from the last page request.

func (ListResultPage) Values

func (page ListResultPage) Values() []Model

Values returns the slice of values for the current page or nil if there are no values.

type Location

type Location struct {
	// Kind - The kind of peering that the peering location supports. Possible values include: 'KindDirect', 'KindExchange'
	Kind Kind `json:"kind,omitempty"`
	// LocationProperties - The properties that define a peering location.
	*LocationProperties `json:"properties,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// ID - READ-ONLY; The ID of the resource.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

Location peering location is where connectivity could be established to the Microsoft Cloud Edge.

func (Location) MarshalJSON

func (l Location) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Location.

func (*Location) UnmarshalJSON

func (l *Location) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Location struct.

type LocationListResult

type LocationListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of peering locations.
	Value *[]Location `json:"value,omitempty"`
	// NextLink - The link to fetch the next page of peering locations.
	NextLink *string `json:"nextLink,omitempty"`
}

LocationListResult the paginated list of peering locations.

func (LocationListResult) IsEmpty

func (llr LocationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type LocationListResultIterator

type LocationListResultIterator struct {
	// contains filtered or unexported fields
}

LocationListResultIterator provides access to a complete listing of Location values.

func NewLocationListResultIterator

func NewLocationListResultIterator(page LocationListResultPage) LocationListResultIterator

Creates a new instance of the LocationListResultIterator type.

func (*LocationListResultIterator) Next

func (iter *LocationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*LocationListResultIterator) NextWithContext

func (iter *LocationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (LocationListResultIterator) NotDone

func (iter LocationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (LocationListResultIterator) Response

Response returns the raw server response from the last page request.

func (LocationListResultIterator) Value

func (iter LocationListResultIterator) Value() Location

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type LocationListResultPage

type LocationListResultPage struct {
	// contains filtered or unexported fields
}

LocationListResultPage contains a page of Location values.

func NewLocationListResultPage

func NewLocationListResultPage(cur LocationListResult, getNextPage func(context.Context, LocationListResult) (LocationListResult, error)) LocationListResultPage

Creates a new instance of the LocationListResultPage type.

func (*LocationListResultPage) Next

func (page *LocationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*LocationListResultPage) NextWithContext

func (page *LocationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (LocationListResultPage) NotDone

func (page LocationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (LocationListResultPage) Response

Response returns the raw server response from the last page request.

func (LocationListResultPage) Values

func (page LocationListResultPage) Values() []Location

Values returns the slice of values for the current page or nil if there are no values.

type LocationProperties

type LocationProperties struct {
	// Direct - The properties that define a direct peering location.
	Direct *LocationPropertiesDirect `json:"direct,omitempty"`
	// Exchange - The properties that define an exchange peering location.
	Exchange *LocationPropertiesExchange `json:"exchange,omitempty"`
	// PeeringLocation - The name of the peering location.
	PeeringLocation *string `json:"peeringLocation,omitempty"`
	// Country - The country in which the peering location exists.
	Country *string `json:"country,omitempty"`
	// AzureRegion - The Azure region associated with the peering location.
	AzureRegion *string `json:"azureRegion,omitempty"`
}

LocationProperties the properties that define a peering location.

type LocationPropertiesDirect

type LocationPropertiesDirect struct {
	// PeeringFacilities - The list of direct peering facilities at the peering location.
	PeeringFacilities *[]DirectPeeringFacility `json:"peeringFacilities,omitempty"`
	// BandwidthOffers - The list of bandwidth offers available at the peering location.
	BandwidthOffers *[]BandwidthOffer `json:"bandwidthOffers,omitempty"`
}

LocationPropertiesDirect the properties that define a direct peering location.

type LocationPropertiesExchange

type LocationPropertiesExchange struct {
	// PeeringFacilities - The list of exchange peering facilities at the peering location.
	PeeringFacilities *[]ExchangePeeringFacility `json:"peeringFacilities,omitempty"`
}

LocationPropertiesExchange the properties that define an exchange peering location.

type LocationsClient

type LocationsClient struct {
	BaseClient
}

LocationsClient is the peering Client

func NewLocationsClient

func NewLocationsClient(subscriptionID string) LocationsClient

NewLocationsClient creates an instance of the LocationsClient client.

func NewLocationsClientWithBaseURI

func NewLocationsClientWithBaseURI(baseURI string, subscriptionID string) LocationsClient

NewLocationsClientWithBaseURI creates an instance of the LocationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (LocationsClient) List

func (client LocationsClient) List(ctx context.Context, kind string, directPeeringType string) (result LocationListResultPage, err error)

List lists all of the available peering locations for the specified kind of peering. Parameters: kind - the kind of the peering. directPeeringType - the type of direct peering.

func (LocationsClient) ListComplete

func (client LocationsClient) ListComplete(ctx context.Context, kind string, directPeeringType string) (result LocationListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (LocationsClient) ListPreparer

func (client LocationsClient) ListPreparer(ctx context.Context, kind string, directPeeringType string) (*http.Request, error)

ListPreparer prepares the List request.

func (LocationsClient) ListResponder

func (client LocationsClient) ListResponder(resp *http.Response) (result LocationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (LocationsClient) ListSender

func (client LocationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Model

type Model struct {
	autorest.Response `json:"-"`
	// Sku - The SKU that defines the tier and kind of the peering.
	Sku *Sku `json:"sku,omitempty"`
	// Kind - The kind of the peering. Possible values include: 'KindDirect', 'KindExchange'
	Kind Kind `json:"kind,omitempty"`
	// Properties - The properties that define a peering.
	*Properties `json:"properties,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - The resource tags.
	Tags map[string]*string `json:"tags"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// ID - READ-ONLY; The ID of the resource.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

Model peering is a logical representation of a set of connections to the Microsoft Cloud Edge at a location.

func (Model) MarshalJSON

func (mVar Model) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Model.

func (*Model) UnmarshalJSON

func (mVar *Model) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Model struct.

type Name

type Name string

Name enumerates the values for name.

const (
	// BasicDirectFree ...
	BasicDirectFree Name = "Basic_Direct_Free"
	// BasicExchangeFree ...
	BasicExchangeFree Name = "Basic_Exchange_Free"
	// PremiumDirectFree ...
	PremiumDirectFree Name = "Premium_Direct_Free"
	// PremiumDirectMetered ...
	PremiumDirectMetered Name = "Premium_Direct_Metered"
	// PremiumDirectUnlimited ...
	PremiumDirectUnlimited Name = "Premium_Direct_Unlimited"
	// PremiumExchangeMetered ...
	PremiumExchangeMetered Name = "Premium_Exchange_Metered"
)

func PossibleNameValues

func PossibleNameValues() []Name

PossibleNameValues returns an array of possible values for the Name const type.

type Operation

type Operation struct {
	// Name - READ-ONLY; The name of the operation.
	Name *string `json:"name,omitempty"`
	// Display - READ-ONLY; The information related to the operation.
	Display *OperationDisplayInfo `json:"display,omitempty"`
	// IsDataAction - READ-ONLY; The flag that indicates whether the operation applies to data plane.
	IsDataAction *bool `json:"isDataAction,omitempty"`
}

Operation the peering API operation.

func (Operation) MarshalJSON

func (o Operation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Operation.

type OperationDisplayInfo

type OperationDisplayInfo struct {
	// Provider - READ-ONLY; The name of the resource provider.
	Provider *string `json:"provider,omitempty"`
	// Resource - READ-ONLY; The type of the resource.
	Resource *string `json:"resource,omitempty"`
	// Operation - READ-ONLY; The name of the operation.
	Operation *string `json:"operation,omitempty"`
	// Description - READ-ONLY; The description of the operation.
	Description *string `json:"description,omitempty"`
}

OperationDisplayInfo the information related to the operation.

func (OperationDisplayInfo) MarshalJSON

func (odi OperationDisplayInfo) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationDisplayInfo.

type OperationListResult

type OperationListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of peering API operations.
	Value *[]Operation `json:"value,omitempty"`
	// NextLink - The link to fetch the next page of peering API operations.
	NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult the paginated list of peering API operations.

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator

type OperationListResultIterator struct {
	// contains filtered or unexported fields
}

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next

func (iter *OperationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultIterator) NextWithContext

func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationListResultIterator) NotDone

func (iter OperationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListResultIterator) Response

Response returns the raw server response from the last page request.

func (OperationListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListResultPage

type OperationListResultPage struct {
	// contains filtered or unexported fields
}

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage

func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next

func (page *OperationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultPage) NextWithContext

func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationListResultPage) NotDone

func (page OperationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListResultPage) Response

Response returns the raw server response from the last page request.

func (OperationListResultPage) Values

func (page OperationListResultPage) Values() []Operation

Values returns the slice of values for the current page or nil if there are no values.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the peering Client

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)

List lists all of the available API operations for peering resources.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type PeerAsn

type PeerAsn struct {
	autorest.Response `json:"-"`
	// PeerAsnProperties - The properties that define a peer's ASN.
	*PeerAsnProperties `json:"properties,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// ID - READ-ONLY; The ID of the resource.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

PeerAsn the essential information related to the peer's ASN.

func (PeerAsn) MarshalJSON

func (pa PeerAsn) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PeerAsn.

func (*PeerAsn) UnmarshalJSON

func (pa *PeerAsn) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PeerAsn struct.

type PeerAsnListResult

type PeerAsnListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of peer ASNs.
	Value *[]PeerAsn `json:"value,omitempty"`
	// NextLink - The link to fetch the next page of peer ASNs.
	NextLink *string `json:"nextLink,omitempty"`
}

PeerAsnListResult the paginated list of peer ASNs.

func (PeerAsnListResult) IsEmpty

func (palr PeerAsnListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PeerAsnListResultIterator

type PeerAsnListResultIterator struct {
	// contains filtered or unexported fields
}

PeerAsnListResultIterator provides access to a complete listing of PeerAsn values.

func NewPeerAsnListResultIterator

func NewPeerAsnListResultIterator(page PeerAsnListResultPage) PeerAsnListResultIterator

Creates a new instance of the PeerAsnListResultIterator type.

func (*PeerAsnListResultIterator) Next

func (iter *PeerAsnListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*PeerAsnListResultIterator) NextWithContext

func (iter *PeerAsnListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (PeerAsnListResultIterator) NotDone

func (iter PeerAsnListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (PeerAsnListResultIterator) Response

Response returns the raw server response from the last page request.

func (PeerAsnListResultIterator) Value

func (iter PeerAsnListResultIterator) Value() PeerAsn

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type PeerAsnListResultPage

type PeerAsnListResultPage struct {
	// contains filtered or unexported fields
}

PeerAsnListResultPage contains a page of PeerAsn values.

func NewPeerAsnListResultPage

func NewPeerAsnListResultPage(cur PeerAsnListResult, getNextPage func(context.Context, PeerAsnListResult) (PeerAsnListResult, error)) PeerAsnListResultPage

Creates a new instance of the PeerAsnListResultPage type.

func (*PeerAsnListResultPage) Next

func (page *PeerAsnListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*PeerAsnListResultPage) NextWithContext

func (page *PeerAsnListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (PeerAsnListResultPage) NotDone

func (page PeerAsnListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (PeerAsnListResultPage) Response

func (page PeerAsnListResultPage) Response() PeerAsnListResult

Response returns the raw server response from the last page request.

func (PeerAsnListResultPage) Values

func (page PeerAsnListResultPage) Values() []PeerAsn

Values returns the slice of values for the current page or nil if there are no values.

type PeerAsnProperties

type PeerAsnProperties struct {
	// PeerAsn - The Autonomous System Number (ASN) of the peer.
	PeerAsn *int32 `json:"peerAsn,omitempty"`
	// PeerContactInfo - The contact information of the peer.
	PeerContactInfo *ContactInfo `json:"peerContactInfo,omitempty"`
	// PeerName - The name of the peer.
	PeerName *string `json:"peerName,omitempty"`
	// ValidationState - The validation state of the ASN associated with the peer. Possible values include: 'ValidationStateNone', 'ValidationStatePending', 'ValidationStateApproved', 'ValidationStateFailed'
	ValidationState ValidationState `json:"validationState,omitempty"`
}

PeerAsnProperties the properties that define a peer's ASN.

type PeerAsnsClient

type PeerAsnsClient struct {
	BaseClient
}

PeerAsnsClient is the peering Client

func NewPeerAsnsClient

func NewPeerAsnsClient(subscriptionID string) PeerAsnsClient

NewPeerAsnsClient creates an instance of the PeerAsnsClient client.

func NewPeerAsnsClientWithBaseURI

func NewPeerAsnsClientWithBaseURI(baseURI string, subscriptionID string) PeerAsnsClient

NewPeerAsnsClientWithBaseURI creates an instance of the PeerAsnsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PeerAsnsClient) CreateOrUpdate

func (client PeerAsnsClient) CreateOrUpdate(ctx context.Context, peerAsnName string, peerAsn PeerAsn) (result PeerAsn, err error)

CreateOrUpdate creates a new peer ASN or updates an existing peer ASN with the specified name under the given subscription. Parameters: peerAsnName - the peer ASN name. peerAsn - the peer ASN.

func (PeerAsnsClient) CreateOrUpdatePreparer

func (client PeerAsnsClient) CreateOrUpdatePreparer(ctx context.Context, peerAsnName string, peerAsn PeerAsn) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (PeerAsnsClient) CreateOrUpdateResponder

func (client PeerAsnsClient) CreateOrUpdateResponder(resp *http.Response) (result PeerAsn, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (PeerAsnsClient) CreateOrUpdateSender

func (client PeerAsnsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (PeerAsnsClient) Delete

func (client PeerAsnsClient) Delete(ctx context.Context, peerAsnName string) (result autorest.Response, err error)

Delete deletes an existing peer ASN with the specified name under the given subscription. Parameters: peerAsnName - the peer ASN name.

func (PeerAsnsClient) DeletePreparer

func (client PeerAsnsClient) DeletePreparer(ctx context.Context, peerAsnName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (PeerAsnsClient) DeleteResponder

func (client PeerAsnsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (PeerAsnsClient) DeleteSender

func (client PeerAsnsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (PeerAsnsClient) Get

func (client PeerAsnsClient) Get(ctx context.Context, peerAsnName string) (result PeerAsn, err error)

Get gets the peer ASN with the specified name under the given subscription. Parameters: peerAsnName - the peer ASN name.

func (PeerAsnsClient) GetPreparer

func (client PeerAsnsClient) GetPreparer(ctx context.Context, peerAsnName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (PeerAsnsClient) GetResponder

func (client PeerAsnsClient) GetResponder(resp *http.Response) (result PeerAsn, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (PeerAsnsClient) GetSender

func (client PeerAsnsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (PeerAsnsClient) ListBySubscription

func (client PeerAsnsClient) ListBySubscription(ctx context.Context) (result PeerAsnListResultPage, err error)

ListBySubscription lists all of the peer ASNs under the given subscription.

func (PeerAsnsClient) ListBySubscriptionComplete

func (client PeerAsnsClient) ListBySubscriptionComplete(ctx context.Context) (result PeerAsnListResultIterator, err error)

ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (PeerAsnsClient) ListBySubscriptionPreparer

func (client PeerAsnsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (PeerAsnsClient) ListBySubscriptionResponder

func (client PeerAsnsClient) ListBySubscriptionResponder(resp *http.Response) (result PeerAsnListResult, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (PeerAsnsClient) ListBySubscriptionSender

func (client PeerAsnsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.

type PeeringsClient

type PeeringsClient struct {
	BaseClient
}

PeeringsClient is the peering Client

func NewPeeringsClient

func NewPeeringsClient(subscriptionID string) PeeringsClient

NewPeeringsClient creates an instance of the PeeringsClient client.

func NewPeeringsClientWithBaseURI

func NewPeeringsClientWithBaseURI(baseURI string, subscriptionID string) PeeringsClient

NewPeeringsClientWithBaseURI creates an instance of the PeeringsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PeeringsClient) CreateOrUpdate

func (client PeeringsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, peeringName string, peering Model) (result Model, err error)

CreateOrUpdate creates a new peering or updates an existing peering with the specified name under the given subscription and resource group. Parameters: resourceGroupName - the name of the resource group. peeringName - the name of the peering. peering - the properties needed to create or update a peering.

func (PeeringsClient) CreateOrUpdatePreparer

func (client PeeringsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, peeringName string, peering Model) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (PeeringsClient) CreateOrUpdateResponder

func (client PeeringsClient) CreateOrUpdateResponder(resp *http.Response) (result Model, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (PeeringsClient) CreateOrUpdateSender

func (client PeeringsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (PeeringsClient) Delete

func (client PeeringsClient) Delete(ctx context.Context, resourceGroupName string, peeringName string) (result autorest.Response, err error)

Delete deletes an existing peering with the specified name under the given subscription and resource group. Parameters: resourceGroupName - the name of the resource group. peeringName - the name of the peering.

func (PeeringsClient) DeletePreparer

func (client PeeringsClient) DeletePreparer(ctx context.Context, resourceGroupName string, peeringName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (PeeringsClient) DeleteResponder

func (client PeeringsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (PeeringsClient) DeleteSender

func (client PeeringsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (PeeringsClient) Get

func (client PeeringsClient) Get(ctx context.Context, resourceGroupName string, peeringName string) (result Model, err error)

Get gets an existing peering with the specified name under the given subscription and resource group. Parameters: resourceGroupName - the name of the resource group. peeringName - the name of the peering.

func (PeeringsClient) GetPreparer

func (client PeeringsClient) GetPreparer(ctx context.Context, resourceGroupName string, peeringName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (PeeringsClient) GetResponder

func (client PeeringsClient) GetResponder(resp *http.Response) (result Model, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (PeeringsClient) GetSender

func (client PeeringsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (PeeringsClient) ListByResourceGroup

func (client PeeringsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ListResultPage, err error)

ListByResourceGroup lists all of the peerings under the given subscription and resource group. Parameters: resourceGroupName - the name of the resource group.

func (PeeringsClient) ListByResourceGroupComplete

func (client PeeringsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ListResultIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (PeeringsClient) ListByResourceGroupPreparer

func (client PeeringsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (PeeringsClient) ListByResourceGroupResponder

func (client PeeringsClient) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (PeeringsClient) ListByResourceGroupSender

func (client PeeringsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (PeeringsClient) ListBySubscription

func (client PeeringsClient) ListBySubscription(ctx context.Context) (result ListResultPage, err error)

ListBySubscription lists all of the peerings under the given subscription.

func (PeeringsClient) ListBySubscriptionComplete

func (client PeeringsClient) ListBySubscriptionComplete(ctx context.Context) (result ListResultIterator, err error)

ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (PeeringsClient) ListBySubscriptionPreparer

func (client PeeringsClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (PeeringsClient) ListBySubscriptionResponder

func (client PeeringsClient) ListBySubscriptionResponder(resp *http.Response) (result ListResult, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (PeeringsClient) ListBySubscriptionSender

func (client PeeringsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.

func (PeeringsClient) Update

func (client PeeringsClient) Update(ctx context.Context, resourceGroupName string, peeringName string, tags ResourceTags) (result Model, err error)

Update updates tags for a peering with the specified name under the given subscription and resource group. Parameters: resourceGroupName - the name of the resource group. peeringName - the name of the peering. tags - the resource tags.

func (PeeringsClient) UpdatePreparer

func (client PeeringsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, peeringName string, tags ResourceTags) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (PeeringsClient) UpdateResponder

func (client PeeringsClient) UpdateResponder(resp *http.Response) (result Model, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (PeeringsClient) UpdateSender

func (client PeeringsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type PrefixValidationState

type PrefixValidationState string

PrefixValidationState enumerates the values for prefix validation state.

const (
	// PrefixValidationStateFailed ...
	PrefixValidationStateFailed PrefixValidationState = "Failed"
	// PrefixValidationStateInvalid ...
	PrefixValidationStateInvalid PrefixValidationState = "Invalid"
	// PrefixValidationStateNone ...
	PrefixValidationStateNone PrefixValidationState = "None"
	// PrefixValidationStatePending ...
	PrefixValidationStatePending PrefixValidationState = "Pending"
	// PrefixValidationStateUnknown ...
	PrefixValidationStateUnknown PrefixValidationState = "Unknown"
	// PrefixValidationStateVerified ...
	PrefixValidationStateVerified PrefixValidationState = "Verified"
)

func PossiblePrefixValidationStateValues

func PossiblePrefixValidationStateValues() []PrefixValidationState

PossiblePrefixValidationStateValues returns an array of possible values for the PrefixValidationState const type.

type PrefixesClient

type PrefixesClient struct {
	BaseClient
}

PrefixesClient is the peering Client

func NewPrefixesClient

func NewPrefixesClient(subscriptionID string) PrefixesClient

NewPrefixesClient creates an instance of the PrefixesClient client.

func NewPrefixesClientWithBaseURI

func NewPrefixesClientWithBaseURI(baseURI string, subscriptionID string) PrefixesClient

NewPrefixesClientWithBaseURI creates an instance of the PrefixesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PrefixesClient) ListByPeeringService

func (client PrefixesClient) ListByPeeringService(ctx context.Context, resourceGroupName string, peeringServiceName string) (result ServicePrefixListResultPage, err error)

ListByPeeringService lists the peerings prefix in the resource group. Parameters: resourceGroupName - the resource group name. peeringServiceName - the peering service name.

func (PrefixesClient) ListByPeeringServiceComplete

func (client PrefixesClient) ListByPeeringServiceComplete(ctx context.Context, resourceGroupName string, peeringServiceName string) (result ServicePrefixListResultIterator, err error)

ListByPeeringServiceComplete enumerates all values, automatically crossing page boundaries as required.

func (PrefixesClient) ListByPeeringServicePreparer

func (client PrefixesClient) ListByPeeringServicePreparer(ctx context.Context, resourceGroupName string, peeringServiceName string) (*http.Request, error)

ListByPeeringServicePreparer prepares the ListByPeeringService request.

func (PrefixesClient) ListByPeeringServiceResponder

func (client PrefixesClient) ListByPeeringServiceResponder(resp *http.Response) (result ServicePrefixListResult, err error)

ListByPeeringServiceResponder handles the response to the ListByPeeringService request. The method always closes the http.Response Body.

func (PrefixesClient) ListByPeeringServiceSender

func (client PrefixesClient) ListByPeeringServiceSender(req *http.Request) (*http.Response, error)

ListByPeeringServiceSender sends the ListByPeeringService request. The method will close the http.Response Body if it receives an error.

type Properties

type Properties struct {
	// Direct - The properties that define a direct peering.
	Direct *PropertiesDirect `json:"direct,omitempty"`
	// Exchange - The properties that define an exchange peering.
	Exchange *PropertiesExchange `json:"exchange,omitempty"`
	// PeeringLocation - The location of the peering.
	PeeringLocation *string `json:"peeringLocation,omitempty"`
	// ProvisioningState - READ-ONLY; The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
}

Properties the properties that define connectivity to the Microsoft Cloud Edge.

func (Properties) MarshalJSON

func (p Properties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Properties.

type PropertiesDirect

type PropertiesDirect struct {
	// Connections - The set of connections that constitute a direct peering.
	Connections *[]DirectConnection `json:"connections,omitempty"`
	// UseForPeeringService - The flag that indicates whether or not the peering is used for peering service.
	UseForPeeringService *bool `json:"useForPeeringService,omitempty"`
	// PeerAsn - The reference of the peer ASN.
	PeerAsn *SubResource `json:"peerAsn,omitempty"`
	// DirectPeeringType - The type of direct peering. Possible values include: 'Edge', 'Transit', 'Cdn', 'Internal'
	DirectPeeringType DirectPeeringType `json:"directPeeringType,omitempty"`
}

PropertiesDirect the properties that define a direct peering.

type PropertiesExchange

type PropertiesExchange struct {
	// Connections - The set of connections that constitute an exchange peering.
	Connections *[]ExchangeConnection `json:"connections,omitempty"`
	// PeerAsn - The reference of the peer ASN.
	PeerAsn *SubResource `json:"peerAsn,omitempty"`
}

PropertiesExchange the properties that define an exchange peering.

type ProvisioningState

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
	// Deleting ...
	Deleting ProvisioningState = "Deleting"
	// Failed ...
	Failed ProvisioningState = "Failed"
	// Succeeded ...
	Succeeded ProvisioningState = "Succeeded"
	// Updating ...
	Updating ProvisioningState = "Updating"
)

func PossibleProvisioningStateValues

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.

type Resource

type Resource struct {
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// ID - READ-ONLY; The ID of the resource.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

Resource the ARM resource class.

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type ResourceTags

type ResourceTags struct {
	// Tags - Gets or sets the tags, a dictionary of descriptors arm object
	Tags map[string]*string `json:"tags"`
}

ResourceTags the resource tags.

func (ResourceTags) MarshalJSON

func (rt ResourceTags) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourceTags.

type Service

type Service struct {
	autorest.Response `json:"-"`
	// ServiceProperties - The properties that define a peering service.
	*ServiceProperties `json:"properties,omitempty"`
	// Location - The location of the resource.
	Location *string `json:"location,omitempty"`
	// Tags - The resource tags.
	Tags map[string]*string `json:"tags"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// ID - READ-ONLY; The ID of the resource.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

Service peering Service

func (Service) MarshalJSON

func (s Service) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Service.

func (*Service) UnmarshalJSON

func (s *Service) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Service struct.

type ServiceListResult

type ServiceListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of peering services.
	Value *[]Service `json:"value,omitempty"`
	// NextLink - The link to fetch the next page of peering services.
	NextLink *string `json:"nextLink,omitempty"`
}

ServiceListResult the paginated list of peering services.

func (ServiceListResult) IsEmpty

func (slr ServiceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ServiceListResultIterator

type ServiceListResultIterator struct {
	// contains filtered or unexported fields
}

ServiceListResultIterator provides access to a complete listing of Service values.

func NewServiceListResultIterator

func NewServiceListResultIterator(page ServiceListResultPage) ServiceListResultIterator

Creates a new instance of the ServiceListResultIterator type.

func (*ServiceListResultIterator) Next

func (iter *ServiceListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ServiceListResultIterator) NextWithContext

func (iter *ServiceListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ServiceListResultIterator) NotDone

func (iter ServiceListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ServiceListResultIterator) Response

Response returns the raw server response from the last page request.

func (ServiceListResultIterator) Value

func (iter ServiceListResultIterator) Value() Service

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ServiceListResultPage

type ServiceListResultPage struct {
	// contains filtered or unexported fields
}

ServiceListResultPage contains a page of Service values.

func NewServiceListResultPage

func NewServiceListResultPage(cur ServiceListResult, getNextPage func(context.Context, ServiceListResult) (ServiceListResult, error)) ServiceListResultPage

Creates a new instance of the ServiceListResultPage type.

func (*ServiceListResultPage) Next

func (page *ServiceListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ServiceListResultPage) NextWithContext

func (page *ServiceListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ServiceListResultPage) NotDone

func (page ServiceListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ServiceListResultPage) Response

func (page ServiceListResultPage) Response() ServiceListResult

Response returns the raw server response from the last page request.

func (ServiceListResultPage) Values

func (page ServiceListResultPage) Values() []Service

Values returns the slice of values for the current page or nil if there are no values.

type ServiceLocation

type ServiceLocation struct {
	// ServiceLocationProperties - The properties that define a peering service location.
	*ServiceLocationProperties `json:"properties,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// ID - READ-ONLY; The ID of the resource.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

ServiceLocation peeringService location

func (ServiceLocation) MarshalJSON

func (sl ServiceLocation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceLocation.

func (*ServiceLocation) UnmarshalJSON

func (sl *ServiceLocation) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServiceLocation struct.

type ServiceLocationListResult

type ServiceLocationListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of peering service locations.
	Value *[]ServiceLocation `json:"value,omitempty"`
	// NextLink - The link to fetch the next page of peering service locations.
	NextLink *string `json:"nextLink,omitempty"`
}

ServiceLocationListResult the paginated list of peering service locations.

func (ServiceLocationListResult) IsEmpty

func (sllr ServiceLocationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ServiceLocationListResultIterator

type ServiceLocationListResultIterator struct {
	// contains filtered or unexported fields
}

ServiceLocationListResultIterator provides access to a complete listing of ServiceLocation values.

func NewServiceLocationListResultIterator

func NewServiceLocationListResultIterator(page ServiceLocationListResultPage) ServiceLocationListResultIterator

Creates a new instance of the ServiceLocationListResultIterator type.

func (*ServiceLocationListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ServiceLocationListResultIterator) NextWithContext

func (iter *ServiceLocationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ServiceLocationListResultIterator) NotDone

func (iter ServiceLocationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ServiceLocationListResultIterator) Response

Response returns the raw server response from the last page request.

func (ServiceLocationListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ServiceLocationListResultPage

type ServiceLocationListResultPage struct {
	// contains filtered or unexported fields
}

ServiceLocationListResultPage contains a page of ServiceLocation values.

func NewServiceLocationListResultPage

Creates a new instance of the ServiceLocationListResultPage type.

func (*ServiceLocationListResultPage) Next

func (page *ServiceLocationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ServiceLocationListResultPage) NextWithContext

func (page *ServiceLocationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ServiceLocationListResultPage) NotDone

func (page ServiceLocationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ServiceLocationListResultPage) Response

Response returns the raw server response from the last page request.

func (ServiceLocationListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ServiceLocationProperties

type ServiceLocationProperties struct {
	// Country - Country of the customer
	Country *string `json:"country,omitempty"`
	// State - State of the customer
	State *string `json:"state,omitempty"`
	// AzureRegion - Azure region for the location
	AzureRegion *string `json:"azureRegion,omitempty"`
}

ServiceLocationProperties the properties that define connectivity to the Peering Service Location.

type ServiceLocationsClient

type ServiceLocationsClient struct {
	BaseClient
}

ServiceLocationsClient is the peering Client

func NewServiceLocationsClient

func NewServiceLocationsClient(subscriptionID string) ServiceLocationsClient

NewServiceLocationsClient creates an instance of the ServiceLocationsClient client.

func NewServiceLocationsClientWithBaseURI

func NewServiceLocationsClientWithBaseURI(baseURI string, subscriptionID string) ServiceLocationsClient

NewServiceLocationsClientWithBaseURI creates an instance of the ServiceLocationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ServiceLocationsClient) List

List lists all of the available peering service locations for the specified kind of peering.

func (ServiceLocationsClient) ListComplete

func (client ServiceLocationsClient) ListComplete(ctx context.Context) (result ServiceLocationListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ServiceLocationsClient) ListPreparer

func (client ServiceLocationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (ServiceLocationsClient) ListResponder

func (client ServiceLocationsClient) ListResponder(resp *http.Response) (result ServiceLocationListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ServiceLocationsClient) ListSender

func (client ServiceLocationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ServicePrefix

type ServicePrefix struct {
	autorest.Response `json:"-"`
	// ServicePrefixProperties - Gets or sets the peering prefix properties.
	*ServicePrefixProperties `json:"properties,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// ID - READ-ONLY; The ID of the resource.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

ServicePrefix the peering service prefix class.

func (ServicePrefix) MarshalJSON

func (sp ServicePrefix) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServicePrefix.

func (*ServicePrefix) UnmarshalJSON

func (sp *ServicePrefix) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServicePrefix struct.

type ServicePrefixListResult

type ServicePrefixListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of [T].
	Value *[]ServicePrefix `json:"value,omitempty"`
	// NextLink - The link to fetch the next page of [T].
	NextLink *string `json:"nextLink,omitempty"`
}

ServicePrefixListResult the paginated list of [T].

func (ServicePrefixListResult) IsEmpty

func (splr ServicePrefixListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ServicePrefixListResultIterator

type ServicePrefixListResultIterator struct {
	// contains filtered or unexported fields
}

ServicePrefixListResultIterator provides access to a complete listing of ServicePrefix values.

func NewServicePrefixListResultIterator

func NewServicePrefixListResultIterator(page ServicePrefixListResultPage) ServicePrefixListResultIterator

Creates a new instance of the ServicePrefixListResultIterator type.

func (*ServicePrefixListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ServicePrefixListResultIterator) NextWithContext

func (iter *ServicePrefixListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ServicePrefixListResultIterator) NotDone

func (iter ServicePrefixListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ServicePrefixListResultIterator) Response

Response returns the raw server response from the last page request.

func (ServicePrefixListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ServicePrefixListResultPage

type ServicePrefixListResultPage struct {
	// contains filtered or unexported fields
}

ServicePrefixListResultPage contains a page of ServicePrefix values.

func NewServicePrefixListResultPage

Creates a new instance of the ServicePrefixListResultPage type.

func (*ServicePrefixListResultPage) Next

func (page *ServicePrefixListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ServicePrefixListResultPage) NextWithContext

func (page *ServicePrefixListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ServicePrefixListResultPage) NotDone

func (page ServicePrefixListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ServicePrefixListResultPage) Response

Response returns the raw server response from the last page request.

func (ServicePrefixListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ServicePrefixProperties

type ServicePrefixProperties struct {
	// Prefix - Valid route prefix
	Prefix *string `json:"prefix,omitempty"`
	// PrefixValidationState - The prefix validation state. Possible values include: 'PrefixValidationStateNone', 'PrefixValidationStateInvalid', 'PrefixValidationStateVerified', 'PrefixValidationStateFailed', 'PrefixValidationStatePending', 'PrefixValidationStateUnknown'
	PrefixValidationState PrefixValidationState `json:"prefixValidationState,omitempty"`
	// LearnedType - The prefix learned type. Possible values include: 'LearnedTypeNone', 'LearnedTypeViaPartner', 'LearnedTypeViaSession'
	LearnedType LearnedType `json:"learnedType,omitempty"`
	// ProvisioningState - READ-ONLY; The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
}

ServicePrefixProperties the peering service prefix properties class.

func (ServicePrefixProperties) MarshalJSON

func (spp ServicePrefixProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServicePrefixProperties.

type ServicePrefixesClient

type ServicePrefixesClient struct {
	BaseClient
}

ServicePrefixesClient is the peering Client

func NewServicePrefixesClient

func NewServicePrefixesClient(subscriptionID string) ServicePrefixesClient

NewServicePrefixesClient creates an instance of the ServicePrefixesClient client.

func NewServicePrefixesClientWithBaseURI

func NewServicePrefixesClientWithBaseURI(baseURI string, subscriptionID string) ServicePrefixesClient

NewServicePrefixesClientWithBaseURI creates an instance of the ServicePrefixesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ServicePrefixesClient) CreateOrUpdate

func (client ServicePrefixesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, peeringServiceName string, prefixName string, peeringServicePrefix ServicePrefix) (result ServicePrefix, err error)

CreateOrUpdate creates or updates the peering prefix. Parameters: resourceGroupName - the resource group name. peeringServiceName - the peering service name. prefixName - the prefix name peeringServicePrefix - the IP prefix for an peering

func (ServicePrefixesClient) CreateOrUpdatePreparer

func (client ServicePrefixesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, peeringServiceName string, prefixName string, peeringServicePrefix ServicePrefix) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServicePrefixesClient) CreateOrUpdateResponder

func (client ServicePrefixesClient) CreateOrUpdateResponder(resp *http.Response) (result ServicePrefix, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ServicePrefixesClient) CreateOrUpdateSender

func (client ServicePrefixesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ServicePrefixesClient) Delete

func (client ServicePrefixesClient) Delete(ctx context.Context, resourceGroupName string, peeringServiceName string, prefixName string) (result autorest.Response, err error)

Delete removes the peering prefix. Parameters: resourceGroupName - the resource group name. peeringServiceName - the peering service name. prefixName - the prefix name

func (ServicePrefixesClient) DeletePreparer

func (client ServicePrefixesClient) DeletePreparer(ctx context.Context, resourceGroupName string, peeringServiceName string, prefixName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServicePrefixesClient) DeleteResponder

func (client ServicePrefixesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ServicePrefixesClient) DeleteSender

func (client ServicePrefixesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ServicePrefixesClient) Get

func (client ServicePrefixesClient) Get(ctx context.Context, resourceGroupName string, peeringServiceName string, prefixName string) (result ServicePrefix, err error)

Get gets the peering service prefix. Parameters: resourceGroupName - the resource group name. peeringServiceName - the peering service name. prefixName - the prefix name.

func (ServicePrefixesClient) GetPreparer

func (client ServicePrefixesClient) GetPreparer(ctx context.Context, resourceGroupName string, peeringServiceName string, prefixName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServicePrefixesClient) GetResponder

func (client ServicePrefixesClient) GetResponder(resp *http.Response) (result ServicePrefix, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServicePrefixesClient) GetSender

func (client ServicePrefixesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

type ServiceProperties

type ServiceProperties struct {
	// PeeringServiceLocation - The PeeringServiceLocation of the Customer.
	PeeringServiceLocation *string `json:"peeringServiceLocation,omitempty"`
	// PeeringServiceProvider - The MAPS Provider Name.
	PeeringServiceProvider *string `json:"peeringServiceProvider,omitempty"`
	// ProvisioningState - READ-ONLY; The provisioning state of the resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'
	ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
}

ServiceProperties the properties that define connectivity to the Peering Service.

func (ServiceProperties) MarshalJSON

func (sp ServiceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceProperties.

type ServiceProvider

type ServiceProvider struct {
	// ServiceProviderProperties - The properties that define a peering service provider.
	*ServiceProviderProperties `json:"properties,omitempty"`
	// Name - READ-ONLY; The name of the resource.
	Name *string `json:"name,omitempty"`
	// ID - READ-ONLY; The ID of the resource.
	ID *string `json:"id,omitempty"`
	// Type - READ-ONLY; The type of the resource.
	Type *string `json:"type,omitempty"`
}

ServiceProvider peeringService provider

func (ServiceProvider) MarshalJSON

func (sp ServiceProvider) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceProvider.

func (*ServiceProvider) UnmarshalJSON

func (sp *ServiceProvider) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServiceProvider struct.

type ServiceProviderListResult

type ServiceProviderListResult struct {
	autorest.Response `json:"-"`
	// Value - The list of peering service providers.
	Value *[]ServiceProvider `json:"value,omitempty"`
	// NextLink - The link to fetch the next page of peering service providers.
	NextLink *string `json:"nextLink,omitempty"`
}

ServiceProviderListResult the paginated list of peering service providers.

func (ServiceProviderListResult) IsEmpty

func (splr ServiceProviderListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ServiceProviderListResultIterator

type ServiceProviderListResultIterator struct {
	// contains filtered or unexported fields
}

ServiceProviderListResultIterator provides access to a complete listing of ServiceProvider values.

func NewServiceProviderListResultIterator

func NewServiceProviderListResultIterator(page ServiceProviderListResultPage) ServiceProviderListResultIterator

Creates a new instance of the ServiceProviderListResultIterator type.

func (*ServiceProviderListResultIterator) Next

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ServiceProviderListResultIterator) NextWithContext

func (iter *ServiceProviderListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ServiceProviderListResultIterator) NotDone

func (iter ServiceProviderListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ServiceProviderListResultIterator) Response

Response returns the raw server response from the last page request.

func (ServiceProviderListResultIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ServiceProviderListResultPage

type ServiceProviderListResultPage struct {
	// contains filtered or unexported fields
}

ServiceProviderListResultPage contains a page of ServiceProvider values.

func NewServiceProviderListResultPage

Creates a new instance of the ServiceProviderListResultPage type.

func (*ServiceProviderListResultPage) Next

func (page *ServiceProviderListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ServiceProviderListResultPage) NextWithContext

func (page *ServiceProviderListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ServiceProviderListResultPage) NotDone

func (page ServiceProviderListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ServiceProviderListResultPage) Response

Response returns the raw server response from the last page request.

func (ServiceProviderListResultPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ServiceProviderProperties

type ServiceProviderProperties struct {
	// ServiceProviderName - The name of the service provider.
	ServiceProviderName *string `json:"serviceProviderName,omitempty"`
}

ServiceProviderProperties the properties that define connectivity to the Peering Service Provider.

type ServiceProvidersClient

type ServiceProvidersClient struct {
	BaseClient
}

ServiceProvidersClient is the peering Client

func NewServiceProvidersClient

func NewServiceProvidersClient(subscriptionID string) ServiceProvidersClient

NewServiceProvidersClient creates an instance of the ServiceProvidersClient client.

func NewServiceProvidersClientWithBaseURI

func NewServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ServiceProvidersClient

NewServiceProvidersClientWithBaseURI creates an instance of the ServiceProvidersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ServiceProvidersClient) List

List lists all of the available peering service locations for the specified kind of peering.

func (ServiceProvidersClient) ListComplete

func (client ServiceProvidersClient) ListComplete(ctx context.Context) (result ServiceProviderListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ServiceProvidersClient) ListPreparer

func (client ServiceProvidersClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (ServiceProvidersClient) ListResponder

func (client ServiceProvidersClient) ListResponder(resp *http.Response) (result ServiceProviderListResult, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ServiceProvidersClient) ListSender

func (client ServiceProvidersClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ServicesClient

type ServicesClient struct {
	BaseClient
}

ServicesClient is the peering Client

func NewServicesClient

func NewServicesClient(subscriptionID string) ServicesClient

NewServicesClient creates an instance of the ServicesClient client.

func NewServicesClientWithBaseURI

func NewServicesClientWithBaseURI(baseURI string, subscriptionID string) ServicesClient

NewServicesClientWithBaseURI creates an instance of the ServicesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ServicesClient) CreateOrUpdate

func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, peeringServiceName string, peeringService Service) (result Service, err error)

CreateOrUpdate creates a new peering service or updates an existing peering with the specified name under the given subscription and resource group. Parameters: resourceGroupName - the name of the resource group. peeringServiceName - the name of the peering service. peeringService - the properties needed to create or update a peering service.

func (ServicesClient) CreateOrUpdatePreparer

func (client ServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, peeringServiceName string, peeringService Service) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServicesClient) CreateOrUpdateResponder

func (client ServicesClient) CreateOrUpdateResponder(resp *http.Response) (result Service, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ServicesClient) CreateOrUpdateSender

func (client ServicesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ServicesClient) Delete

func (client ServicesClient) Delete(ctx context.Context, resourceGroupName string, peeringServiceName string) (result autorest.Response, err error)

Delete deletes an existing peering service with the specified name under the given subscription and resource group. Parameters: resourceGroupName - the name of the resource group. peeringServiceName - the name of the peering service.

func (ServicesClient) DeletePreparer

func (client ServicesClient) DeletePreparer(ctx context.Context, resourceGroupName string, peeringServiceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServicesClient) DeleteResponder

func (client ServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ServicesClient) DeleteSender

func (client ServicesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ServicesClient) Get

func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, peeringServiceName string) (result Service, err error)

Get gets an existing peering service with the specified name under the given subscription and resource group. Parameters: resourceGroupName - the name of the resource group. peeringServiceName - the name of the peering.

func (ServicesClient) GetPreparer

func (client ServicesClient) GetPreparer(ctx context.Context, resourceGroupName string, peeringServiceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServicesClient) GetResponder

func (client ServicesClient) GetResponder(resp *http.Response) (result Service, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ServicesClient) GetSender

func (client ServicesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ServicesClient) ListByResourceGroup

func (client ServicesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ServiceListResultPage, err error)

ListByResourceGroup lists all of the peering services under the given subscription and resource group. Parameters: resourceGroupName - the name of the resource group.

func (ServicesClient) ListByResourceGroupComplete

func (client ServicesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result ServiceListResultIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (ServicesClient) ListByResourceGroupPreparer

func (client ServicesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ServicesClient) ListByResourceGroupResponder

func (client ServicesClient) ListByResourceGroupResponder(resp *http.Response) (result ServiceListResult, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ServicesClient) ListByResourceGroupSender

func (client ServicesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (ServicesClient) ListBySubscription

func (client ServicesClient) ListBySubscription(ctx context.Context) (result ServiceListResultPage, err error)

ListBySubscription lists all of the peerings under the given subscription.

func (ServicesClient) ListBySubscriptionComplete

func (client ServicesClient) ListBySubscriptionComplete(ctx context.Context) (result ServiceListResultIterator, err error)

ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (ServicesClient) ListBySubscriptionPreparer

func (client ServicesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (ServicesClient) ListBySubscriptionResponder

func (client ServicesClient) ListBySubscriptionResponder(resp *http.Response) (result ServiceListResult, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (ServicesClient) ListBySubscriptionSender

func (client ServicesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.

func (ServicesClient) Update

func (client ServicesClient) Update(ctx context.Context, resourceGroupName string, peeringServiceName string, tags ResourceTags) (result Service, err error)

Update updates tags for a peering service with the specified name under the given subscription and resource group. Parameters: resourceGroupName - the name of the resource group. peeringServiceName - the name of the peering service. tags - the resource tags.

func (ServicesClient) UpdatePreparer

func (client ServicesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, peeringServiceName string, tags ResourceTags) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ServicesClient) UpdateResponder

func (client ServicesClient) UpdateResponder(resp *http.Response) (result Service, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ServicesClient) UpdateSender

func (client ServicesClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type SessionAddressProvider

type SessionAddressProvider string

SessionAddressProvider enumerates the values for session address provider.

const (
	// Microsoft ...
	Microsoft SessionAddressProvider = "Microsoft"
	// Peer ...
	Peer SessionAddressProvider = "Peer"
)

func PossibleSessionAddressProviderValues

func PossibleSessionAddressProviderValues() []SessionAddressProvider

PossibleSessionAddressProviderValues returns an array of possible values for the SessionAddressProvider const type.

type SessionStateV4

type SessionStateV4 string

SessionStateV4 enumerates the values for session state v4.

const (
	// SessionStateV4Active ...
	SessionStateV4Active SessionStateV4 = "Active"
	// SessionStateV4Connect ...
	SessionStateV4Connect SessionStateV4 = "Connect"
	// SessionStateV4Established ...
	SessionStateV4Established SessionStateV4 = "Established"
	// SessionStateV4Idle ...
	SessionStateV4Idle SessionStateV4 = "Idle"
	// SessionStateV4None ...
	SessionStateV4None SessionStateV4 = "None"
	// SessionStateV4OpenConfirm ...
	SessionStateV4OpenConfirm SessionStateV4 = "OpenConfirm"
	// SessionStateV4OpenReceived ...
	SessionStateV4OpenReceived SessionStateV4 = "OpenReceived"
	// SessionStateV4OpenSent ...
	SessionStateV4OpenSent SessionStateV4 = "OpenSent"
	// SessionStateV4PendingAdd ...
	SessionStateV4PendingAdd SessionStateV4 = "PendingAdd"
	// SessionStateV4PendingRemove ...
	SessionStateV4PendingRemove SessionStateV4 = "PendingRemove"
	// SessionStateV4PendingUpdate ...
	SessionStateV4PendingUpdate SessionStateV4 = "PendingUpdate"
)

func PossibleSessionStateV4Values

func PossibleSessionStateV4Values() []SessionStateV4

PossibleSessionStateV4Values returns an array of possible values for the SessionStateV4 const type.

type SessionStateV6

type SessionStateV6 string

SessionStateV6 enumerates the values for session state v6.

const (
	// SessionStateV6Active ...
	SessionStateV6Active SessionStateV6 = "Active"
	// SessionStateV6Connect ...
	SessionStateV6Connect SessionStateV6 = "Connect"
	// SessionStateV6Established ...
	SessionStateV6Established SessionStateV6 = "Established"
	// SessionStateV6Idle ...
	SessionStateV6Idle SessionStateV6 = "Idle"
	// SessionStateV6None ...
	SessionStateV6None SessionStateV6 = "None"
	// SessionStateV6OpenConfirm ...
	SessionStateV6OpenConfirm SessionStateV6 = "OpenConfirm"
	// SessionStateV6OpenReceived ...
	SessionStateV6OpenReceived SessionStateV6 = "OpenReceived"
	// SessionStateV6OpenSent ...
	SessionStateV6OpenSent SessionStateV6 = "OpenSent"
	// SessionStateV6PendingAdd ...
	SessionStateV6PendingAdd SessionStateV6 = "PendingAdd"
	// SessionStateV6PendingRemove ...
	SessionStateV6PendingRemove SessionStateV6 = "PendingRemove"
	// SessionStateV6PendingUpdate ...
	SessionStateV6PendingUpdate SessionStateV6 = "PendingUpdate"
)

func PossibleSessionStateV6Values

func PossibleSessionStateV6Values() []SessionStateV6

PossibleSessionStateV6Values returns an array of possible values for the SessionStateV6 const type.

type Size

type Size string

Size enumerates the values for size.

const (
	// Free ...
	Free Size = "Free"
	// Metered ...
	Metered Size = "Metered"
	// Unlimited ...
	Unlimited Size = "Unlimited"
)

func PossibleSizeValues

func PossibleSizeValues() []Size

PossibleSizeValues returns an array of possible values for the Size const type.

type Sku

type Sku struct {
	// Name - The name of the peering SKU. Possible values include: 'BasicExchangeFree', 'BasicDirectFree', 'PremiumDirectFree', 'PremiumExchangeMetered', 'PremiumDirectMetered', 'PremiumDirectUnlimited'
	Name Name `json:"name,omitempty"`
	// Tier - The tier of the peering SKU. Possible values include: 'Basic', 'Premium'
	Tier Tier `json:"tier,omitempty"`
	// Family - The family of the peering SKU. Possible values include: 'Direct', 'Exchange'
	Family Family `json:"family,omitempty"`
	// Size - The size of the peering SKU. Possible values include: 'Free', 'Metered', 'Unlimited'
	Size Size `json:"size,omitempty"`
}

Sku the SKU that defines the tier and kind of the peering.

type String

type String struct {
	autorest.Response `json:"-"`
	// Value - Possible values include: 'Available', 'UnAvailable'
	Value *string `json:"value,omitempty"`
}

String ...

type SubResource

type SubResource struct {
	// ID - The identifier of the referenced resource.
	ID *string `json:"id,omitempty"`
}

SubResource the sub resource.

type Tier

type Tier string

Tier enumerates the values for tier.

const (
	// Basic ...
	Basic Tier = "Basic"
	// Premium ...
	Premium Tier = "Premium"
)

func PossibleTierValues

func PossibleTierValues() []Tier

PossibleTierValues returns an array of possible values for the Tier const type.

type ValidationState

type ValidationState string

ValidationState enumerates the values for validation state.

const (
	// ValidationStateApproved ...
	ValidationStateApproved ValidationState = "Approved"
	// ValidationStateFailed ...
	ValidationStateFailed ValidationState = "Failed"
	// ValidationStateNone ...
	ValidationStateNone ValidationState = "None"
	// ValidationStatePending ...
	ValidationStatePending ValidationState = "Pending"
)

func PossibleValidationStateValues

func PossibleValidationStateValues() []ValidationState

PossibleValidationStateValues returns an array of possible values for the ValidationState const type.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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