azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/peering/mgmt/2019-08-01-preview/peering Index | Files | Directories

package peering

import "github.com/Azure/azure-sdk-for-go/services/preview/peering/mgmt/2019-08-01-preview/peering"

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

Peering Client

Index

Package Files

client.go legacypeerings.go locations.go models.go operations.go peerasns.go peerings.go prefixes.go servicelocations.go serviceprefixes.go serviceproviders.go services.go version.go

Constants

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

func UserAgent Uses

func UserAgent() string

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

func Version Uses

func Version() string

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

type BandwidthOffer Uses

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 Uses

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

BaseClient is the base client for Peering.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

func (BaseClient) CheckServiceProviderAvailability Uses

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 Uses

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

CheckServiceProviderAvailabilityPreparer prepares the CheckServiceProviderAvailability request.

func (BaseClient) CheckServiceProviderAvailabilityResponder Uses

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 Uses

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 Uses

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.

type CheckServiceProviderAvailabilityInput Uses

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 Uses

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 Uses

func PossibleConnectionStateValues() []ConnectionState

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

type ContactInfo Uses

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 Uses

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.

type DirectPeeringFacility Uses

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 Uses

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 Uses

func PossibleDirectPeeringTypeValues() []DirectPeeringType

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

type ErrorResponse Uses

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.

type ExchangeConnection Uses

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.

type ExchangePeeringFacility Uses

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 Uses

type Family string

Family enumerates the values for family.

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

func PossibleFamilyValues Uses

func PossibleFamilyValues() []Family

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

type Kind Uses

type Kind string

Kind enumerates the values for kind.

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

func PossibleKindValues Uses

func PossibleKindValues() []Kind

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

type LearnedType Uses

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 Uses

func PossibleLearnedTypeValues() []LearnedType

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

type LegacyPeeringsClient Uses

type LegacyPeeringsClient struct {
    BaseClient
}

LegacyPeeringsClient is the peering Client

func NewLegacyPeeringsClient Uses

func NewLegacyPeeringsClient(subscriptionID string) LegacyPeeringsClient

NewLegacyPeeringsClient creates an instance of the LegacyPeeringsClient client.

func NewLegacyPeeringsClientWithBaseURI Uses

func NewLegacyPeeringsClientWithBaseURI(baseURI string, subscriptionID string) LegacyPeeringsClient

NewLegacyPeeringsClientWithBaseURI creates an instance of the LegacyPeeringsClient client.

func (LegacyPeeringsClient) List Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (LegacyPeeringsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

func (lr ListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ListResultIterator Uses

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

ListResultIterator provides access to a complete listing of Model values.

func NewListResultIterator Uses

func NewListResultIterator(page ListResultPage) ListResultIterator

Creates a new instance of the ListResultIterator type.

func (*ListResultIterator) Next Uses

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 Uses

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 Uses

func (iter ListResultIterator) NotDone() bool

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

func (ListResultIterator) Response Uses

func (iter ListResultIterator) Response() ListResult

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

func (ListResultIterator) Value Uses

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 Uses

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

ListResultPage contains a page of Model values.

func NewListResultPage Uses

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

Creates a new instance of the ListResultPage type.

func (*ListResultPage) Next Uses

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 Uses

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 Uses

func (page ListResultPage) NotDone() bool

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

func (ListResultPage) Response Uses

func (page ListResultPage) Response() ListResult

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

func (ListResultPage) Values Uses

func (page ListResultPage) Values() []Model

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

type Location Uses

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 Uses

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

MarshalJSON is the custom marshaler for Location.

func (*Location) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Location struct.

type LocationListResult Uses

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 Uses

func (llr LocationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type LocationListResultIterator Uses

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

LocationListResultIterator provides access to a complete listing of Location values.

func NewLocationListResultIterator Uses

func NewLocationListResultIterator(page LocationListResultPage) LocationListResultIterator

Creates a new instance of the LocationListResultIterator type.

func (*LocationListResultIterator) Next Uses

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 Uses

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 Uses

func (iter LocationListResultIterator) NotDone() bool

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

func (LocationListResultIterator) Response Uses

func (iter LocationListResultIterator) Response() LocationListResult

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

func (LocationListResultIterator) Value Uses

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 Uses

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

LocationListResultPage contains a page of Location values.

func NewLocationListResultPage Uses

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

Creates a new instance of the LocationListResultPage type.

func (*LocationListResultPage) Next Uses

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 Uses

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 Uses

func (page LocationListResultPage) NotDone() bool

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

func (LocationListResultPage) Response Uses

func (page LocationListResultPage) Response() LocationListResult

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

func (LocationListResultPage) Values Uses

func (page LocationListResultPage) Values() []Location

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

type LocationProperties Uses

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 Uses

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 Uses

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 Uses

type LocationsClient struct {
    BaseClient
}

LocationsClient is the peering Client

func NewLocationsClient Uses

func NewLocationsClient(subscriptionID string) LocationsClient

NewLocationsClient creates an instance of the LocationsClient client.

func NewLocationsClientWithBaseURI Uses

func NewLocationsClientWithBaseURI(baseURI string, subscriptionID string) LocationsClient

NewLocationsClientWithBaseURI creates an instance of the LocationsClient client.

func (LocationsClient) List Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (LocationsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for Model.

func (*Model) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Model struct.

type Name Uses

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 Uses

func PossibleNameValues() []Name

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

type Operation Uses

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.

type OperationDisplayInfo Uses

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.

type OperationListResult Uses

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 Uses

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator Uses

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

OperationListResultIterator provides access to a complete listing of Operation values.

func NewOperationListResultIterator Uses

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next Uses

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 Uses

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 Uses

func (iter OperationListResultIterator) NotDone() bool

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

func (OperationListResultIterator) Response Uses

func (iter OperationListResultIterator) Response() OperationListResult

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

func (OperationListResultIterator) Value Uses

func (iter OperationListResultIterator) Value() Operation

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

type OperationListResultPage Uses

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

OperationListResultPage contains a page of Operation values.

func NewOperationListResultPage Uses

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

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next Uses

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 Uses

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 Uses

func (page OperationListResultPage) NotDone() bool

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

func (OperationListResultPage) Response Uses

func (page OperationListResultPage) Response() OperationListResult

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

func (OperationListResultPage) Values Uses

func (page OperationListResultPage) Values() []Operation

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

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the peering Client

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

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 Uses

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

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

func (OperationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for PeerAsn.

func (*PeerAsn) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for PeerAsn struct.

type PeerAsnListResult Uses

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 Uses

func (palr PeerAsnListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PeerAsnListResultIterator Uses

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

PeerAsnListResultIterator provides access to a complete listing of PeerAsn values.

func NewPeerAsnListResultIterator Uses

func NewPeerAsnListResultIterator(page PeerAsnListResultPage) PeerAsnListResultIterator

Creates a new instance of the PeerAsnListResultIterator type.

func (*PeerAsnListResultIterator) Next Uses

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 Uses

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 Uses

func (iter PeerAsnListResultIterator) NotDone() bool

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

func (PeerAsnListResultIterator) Response Uses

func (iter PeerAsnListResultIterator) Response() PeerAsnListResult

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

func (PeerAsnListResultIterator) Value Uses

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 Uses

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

PeerAsnListResultPage contains a page of PeerAsn values.

func NewPeerAsnListResultPage Uses

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

Creates a new instance of the PeerAsnListResultPage type.

func (*PeerAsnListResultPage) Next Uses

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 Uses

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 Uses

func (page PeerAsnListResultPage) NotDone() bool

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

func (PeerAsnListResultPage) Response Uses

func (page PeerAsnListResultPage) Response() PeerAsnListResult

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

func (PeerAsnListResultPage) Values Uses

func (page PeerAsnListResultPage) Values() []PeerAsn

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

type PeerAsnProperties Uses

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 Uses

type PeerAsnsClient struct {
    BaseClient
}

PeerAsnsClient is the peering Client

func NewPeerAsnsClient Uses

func NewPeerAsnsClient(subscriptionID string) PeerAsnsClient

NewPeerAsnsClient creates an instance of the PeerAsnsClient client.

func NewPeerAsnsClientWithBaseURI Uses

func NewPeerAsnsClientWithBaseURI(baseURI string, subscriptionID string) PeerAsnsClient

NewPeerAsnsClientWithBaseURI creates an instance of the PeerAsnsClient client.

func (PeerAsnsClient) CreateOrUpdate Uses

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 Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (PeerAsnsClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (PeerAsnsClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (PeerAsnsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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

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

func (PeerAsnsClient) ListBySubscriptionPreparer Uses

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

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (PeerAsnsClient) ListBySubscriptionResponder Uses

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 Uses

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 Uses

type PeeringsClient struct {
    BaseClient
}

PeeringsClient is the peering Client

func NewPeeringsClient Uses

func NewPeeringsClient(subscriptionID string) PeeringsClient

NewPeeringsClient creates an instance of the PeeringsClient client.

func NewPeeringsClientWithBaseURI Uses

func NewPeeringsClientWithBaseURI(baseURI string, subscriptionID string) PeeringsClient

NewPeeringsClientWithBaseURI creates an instance of the PeeringsClient client.

func (PeeringsClient) CreateOrUpdate Uses

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 Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (PeeringsClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (PeeringsClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (PeeringsClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (PeeringsClient) ListByResourceGroupResponder Uses

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 Uses

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 Uses

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

ListBySubscription lists all of the peerings under the given subscription.

func (PeeringsClient) ListBySubscriptionComplete Uses

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

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

func (PeeringsClient) ListBySubscriptionPreparer Uses

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

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (PeeringsClient) ListBySubscriptionResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdatePreparer prepares the Update request.

func (PeeringsClient) UpdateResponder Uses

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 Uses

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 Uses

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 Uses

func PossiblePrefixValidationStateValues() []PrefixValidationState

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

type PrefixesClient Uses

type PrefixesClient struct {
    BaseClient
}

PrefixesClient is the peering Client

func NewPrefixesClient Uses

func NewPrefixesClient(subscriptionID string) PrefixesClient

NewPrefixesClient creates an instance of the PrefixesClient client.

func NewPrefixesClientWithBaseURI Uses

func NewPrefixesClientWithBaseURI(baseURI string, subscriptionID string) PrefixesClient

NewPrefixesClientWithBaseURI creates an instance of the PrefixesClient client.

func (PrefixesClient) ListByPeeringService Uses

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 Uses

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 Uses

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

ListByPeeringServicePreparer prepares the ListByPeeringService request.

func (PrefixesClient) ListByPeeringServiceResponder Uses

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 Uses

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 Uses

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.

type PropertiesDirect Uses

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 Uses

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 Uses

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 Uses

func PossibleProvisioningStateValues() []ProvisioningState

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

type Resource Uses

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.

type ResourceTags Uses

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 Uses

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

MarshalJSON is the custom marshaler for ResourceTags.

type Service Uses

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 Uses

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

MarshalJSON is the custom marshaler for Service.

func (*Service) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Service struct.

type ServiceListResult Uses

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 Uses

func (slr ServiceListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ServiceListResultIterator Uses

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

ServiceListResultIterator provides access to a complete listing of Service values.

func NewServiceListResultIterator Uses

func NewServiceListResultIterator(page ServiceListResultPage) ServiceListResultIterator

Creates a new instance of the ServiceListResultIterator type.

func (*ServiceListResultIterator) Next Uses

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 Uses

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 Uses

func (iter ServiceListResultIterator) NotDone() bool

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

func (ServiceListResultIterator) Response Uses

func (iter ServiceListResultIterator) Response() ServiceListResult

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

func (ServiceListResultIterator) Value Uses

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 Uses

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

ServiceListResultPage contains a page of Service values.

func NewServiceListResultPage Uses

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

Creates a new instance of the ServiceListResultPage type.

func (*ServiceListResultPage) Next Uses

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 Uses

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 Uses

func (page ServiceListResultPage) NotDone() bool

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

func (ServiceListResultPage) Response Uses

func (page ServiceListResultPage) Response() ServiceListResult

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

func (ServiceListResultPage) Values Uses

func (page ServiceListResultPage) Values() []Service

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

type ServiceLocation Uses

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 Uses

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

MarshalJSON is the custom marshaler for ServiceLocation.

func (*ServiceLocation) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ServiceLocation struct.

type ServiceLocationListResult Uses

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 Uses

func (sllr ServiceLocationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ServiceLocationListResultIterator Uses

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

ServiceLocationListResultIterator provides access to a complete listing of ServiceLocation values.

func NewServiceLocationListResultIterator Uses

func NewServiceLocationListResultIterator(page ServiceLocationListResultPage) ServiceLocationListResultIterator

Creates a new instance of the ServiceLocationListResultIterator type.

func (*ServiceLocationListResultIterator) Next Uses

func (iter *ServiceLocationListResultIterator) 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 (*ServiceLocationListResultIterator) NextWithContext Uses

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 Uses

func (iter ServiceLocationListResultIterator) NotDone() bool

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

func (ServiceLocationListResultIterator) Response Uses

func (iter ServiceLocationListResultIterator) Response() ServiceLocationListResult

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

func (ServiceLocationListResultIterator) Value Uses

func (iter ServiceLocationListResultIterator) Value() ServiceLocation

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

type ServiceLocationListResultPage Uses

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

ServiceLocationListResultPage contains a page of ServiceLocation values.

func NewServiceLocationListResultPage Uses

func NewServiceLocationListResultPage(getNextPage func(context.Context, ServiceLocationListResult) (ServiceLocationListResult, error)) ServiceLocationListResultPage

Creates a new instance of the ServiceLocationListResultPage type.

func (*ServiceLocationListResultPage) Next Uses

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 Uses

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 Uses

func (page ServiceLocationListResultPage) NotDone() bool

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

func (ServiceLocationListResultPage) Response Uses

func (page ServiceLocationListResultPage) Response() ServiceLocationListResult

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

func (ServiceLocationListResultPage) Values Uses

func (page ServiceLocationListResultPage) Values() []ServiceLocation

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

type ServiceLocationProperties Uses

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 Uses

type ServiceLocationsClient struct {
    BaseClient
}

ServiceLocationsClient is the peering Client

func NewServiceLocationsClient Uses

func NewServiceLocationsClient(subscriptionID string) ServiceLocationsClient

NewServiceLocationsClient creates an instance of the ServiceLocationsClient client.

func NewServiceLocationsClientWithBaseURI Uses

func NewServiceLocationsClientWithBaseURI(baseURI string, subscriptionID string) ServiceLocationsClient

NewServiceLocationsClientWithBaseURI creates an instance of the ServiceLocationsClient client.

func (ServiceLocationsClient) List Uses

func (client ServiceLocationsClient) List(ctx context.Context) (result ServiceLocationListResultPage, err error)

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

func (ServiceLocationsClient) ListComplete Uses

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

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

func (ServiceLocationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (ServiceLocationsClient) ListResponder Uses

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 Uses

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 Uses

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 Uses

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

MarshalJSON is the custom marshaler for ServicePrefix.

func (*ServicePrefix) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ServicePrefix struct.

type ServicePrefixListResult Uses

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 Uses

func (splr ServicePrefixListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ServicePrefixListResultIterator Uses

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

ServicePrefixListResultIterator provides access to a complete listing of ServicePrefix values.

func NewServicePrefixListResultIterator Uses

func NewServicePrefixListResultIterator(page ServicePrefixListResultPage) ServicePrefixListResultIterator

Creates a new instance of the ServicePrefixListResultIterator type.

func (*ServicePrefixListResultIterator) Next Uses

func (iter *ServicePrefixListResultIterator) 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 (*ServicePrefixListResultIterator) NextWithContext Uses

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 Uses

func (iter ServicePrefixListResultIterator) NotDone() bool

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

func (ServicePrefixListResultIterator) Response Uses

func (iter ServicePrefixListResultIterator) Response() ServicePrefixListResult

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

func (ServicePrefixListResultIterator) Value Uses

func (iter ServicePrefixListResultIterator) Value() ServicePrefix

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

type ServicePrefixListResultPage Uses

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

ServicePrefixListResultPage contains a page of ServicePrefix values.

func NewServicePrefixListResultPage Uses

func NewServicePrefixListResultPage(getNextPage func(context.Context, ServicePrefixListResult) (ServicePrefixListResult, error)) ServicePrefixListResultPage

Creates a new instance of the ServicePrefixListResultPage type.

func (*ServicePrefixListResultPage) Next Uses

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 Uses

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 Uses

func (page ServicePrefixListResultPage) NotDone() bool

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

func (ServicePrefixListResultPage) Response Uses

func (page ServicePrefixListResultPage) Response() ServicePrefixListResult

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

func (ServicePrefixListResultPage) Values Uses

func (page ServicePrefixListResultPage) Values() []ServicePrefix

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

type ServicePrefixProperties Uses

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.

type ServicePrefixesClient Uses

type ServicePrefixesClient struct {
    BaseClient
}

ServicePrefixesClient is the peering Client

func NewServicePrefixesClient Uses

func NewServicePrefixesClient(subscriptionID string) ServicePrefixesClient

NewServicePrefixesClient creates an instance of the ServicePrefixesClient client.

func NewServicePrefixesClientWithBaseURI Uses

func NewServicePrefixesClientWithBaseURI(baseURI string, subscriptionID string) ServicePrefixesClient

NewServicePrefixesClientWithBaseURI creates an instance of the ServicePrefixesClient client.

func (ServicePrefixesClient) CreateOrUpdate Uses

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 Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (ServicePrefixesClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ServicePrefixesClient) GetResponder Uses

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 Uses

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 Uses

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.

type ServiceProvider Uses

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 Uses

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

MarshalJSON is the custom marshaler for ServiceProvider.

func (*ServiceProvider) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ServiceProvider struct.

type ServiceProviderListResult Uses

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 Uses

func (splr ServiceProviderListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ServiceProviderListResultIterator Uses

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

ServiceProviderListResultIterator provides access to a complete listing of ServiceProvider values.

func NewServiceProviderListResultIterator Uses

func NewServiceProviderListResultIterator(page ServiceProviderListResultPage) ServiceProviderListResultIterator

Creates a new instance of the ServiceProviderListResultIterator type.

func (*ServiceProviderListResultIterator) Next Uses

func (iter *ServiceProviderListResultIterator) 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 (*ServiceProviderListResultIterator) NextWithContext Uses

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 Uses

func (iter ServiceProviderListResultIterator) NotDone() bool

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

func (ServiceProviderListResultIterator) Response Uses

func (iter ServiceProviderListResultIterator) Response() ServiceProviderListResult

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

func (ServiceProviderListResultIterator) Value Uses

func (iter ServiceProviderListResultIterator) Value() ServiceProvider

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

type ServiceProviderListResultPage Uses

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

ServiceProviderListResultPage contains a page of ServiceProvider values.

func NewServiceProviderListResultPage Uses

func NewServiceProviderListResultPage(getNextPage func(context.Context, ServiceProviderListResult) (ServiceProviderListResult, error)) ServiceProviderListResultPage

Creates a new instance of the ServiceProviderListResultPage type.

func (*ServiceProviderListResultPage) Next Uses

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 Uses

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 Uses

func (page ServiceProviderListResultPage) NotDone() bool

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

func (ServiceProviderListResultPage) Response Uses

func (page ServiceProviderListResultPage) Response() ServiceProviderListResult

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

func (ServiceProviderListResultPage) Values Uses

func (page ServiceProviderListResultPage) Values() []ServiceProvider

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

type ServiceProviderProperties Uses

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 Uses

type ServiceProvidersClient struct {
    BaseClient
}

ServiceProvidersClient is the peering Client

func NewServiceProvidersClient Uses

func NewServiceProvidersClient(subscriptionID string) ServiceProvidersClient

NewServiceProvidersClient creates an instance of the ServiceProvidersClient client.

func NewServiceProvidersClientWithBaseURI Uses

func NewServiceProvidersClientWithBaseURI(baseURI string, subscriptionID string) ServiceProvidersClient

NewServiceProvidersClientWithBaseURI creates an instance of the ServiceProvidersClient client.

func (ServiceProvidersClient) List Uses

func (client ServiceProvidersClient) List(ctx context.Context) (result ServiceProviderListResultPage, err error)

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

func (ServiceProvidersClient) ListComplete Uses

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

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

func (ServiceProvidersClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (ServiceProvidersClient) ListResponder Uses

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 Uses

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 Uses

type ServicesClient struct {
    BaseClient
}

ServicesClient is the peering Client

func NewServicesClient Uses

func NewServicesClient(subscriptionID string) ServicesClient

NewServicesClient creates an instance of the ServicesClient client.

func NewServicesClientWithBaseURI Uses

func NewServicesClientWithBaseURI(baseURI string, subscriptionID string) ServicesClient

NewServicesClientWithBaseURI creates an instance of the ServicesClient client.

func (ServicesClient) CreateOrUpdate Uses

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 Uses

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ServicesClient) CreateOrUpdateResponder Uses

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 Uses

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 Uses

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 Uses

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

DeletePreparer prepares the Delete request.

func (ServicesClient) DeleteResponder Uses

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 Uses

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 Uses

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 Uses

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

GetPreparer prepares the Get request.

func (ServicesClient) GetResponder Uses

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 Uses

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 Uses

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 Uses

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 Uses

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ServicesClient) ListByResourceGroupResponder Uses

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 Uses

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 Uses

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

ListBySubscription lists all of the peerings under the given subscription.

func (ServicesClient) ListBySubscriptionComplete Uses

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

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

func (ServicesClient) ListBySubscriptionPreparer Uses

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

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (ServicesClient) ListBySubscriptionResponder Uses

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 Uses

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 Uses

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 Uses

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

UpdatePreparer prepares the Update request.

func (ServicesClient) UpdateResponder Uses

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 Uses

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 Uses

type SessionAddressProvider string

SessionAddressProvider enumerates the values for session address provider.

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

func PossibleSessionAddressProviderValues Uses

func PossibleSessionAddressProviderValues() []SessionAddressProvider

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

type SessionStateV4 Uses

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 Uses

func PossibleSessionStateV4Values() []SessionStateV4

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

type SessionStateV6 Uses

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 Uses

func PossibleSessionStateV6Values() []SessionStateV6

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

type Size Uses

type Size string

Size enumerates the values for size.

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

func PossibleSizeValues Uses

func PossibleSizeValues() []Size

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

type Sku Uses

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 Uses

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

String ...

type SubResource Uses

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

SubResource the sub resource.

type Tier Uses

type Tier string

Tier enumerates the values for tier.

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

func PossibleTierValues Uses

func PossibleTierValues() []Tier

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

type ValidationState Uses

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 Uses

func PossibleValidationStateValues() []ValidationState

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

Directories

PathSynopsis
peeringapi

Package peering imports 9 packages (graph) and is imported by 3 packages. Updated 2019-11-01. Refresh now. Tools for package owners.