Documentation ¶
Index ¶
- func PossibleValuesForProvisioningState() []string
- func ValidateVirtualRouterID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationOptions
- type GetOperationResponse
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type ProvisioningState
- type SubResource
- type VirtualRouter
- type VirtualRouterId
- type VirtualRouterOperationPredicate
- type VirtualRouterPropertiesFormat
- type VirtualRoutersClient
- func (c VirtualRoutersClient) CreateOrUpdate(ctx context.Context, id VirtualRouterId, input VirtualRouter) (result CreateOrUpdateOperationResponse, err error)
- func (c VirtualRoutersClient) CreateOrUpdateThenPoll(ctx context.Context, id VirtualRouterId, input VirtualRouter) error
- func (c VirtualRoutersClient) Delete(ctx context.Context, id VirtualRouterId) (result DeleteOperationResponse, err error)
- func (c VirtualRoutersClient) DeleteThenPoll(ctx context.Context, id VirtualRouterId) error
- func (c VirtualRoutersClient) Get(ctx context.Context, id VirtualRouterId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c VirtualRoutersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
- func (c VirtualRoutersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c VirtualRoutersClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c VirtualRoutersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c VirtualRoutersClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
- func (c VirtualRoutersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListCompleteResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func ValidateVirtualRouterID ¶
ValidateVirtualRouterID checks that 'input' can be parsed as a Virtual Router ID
Types ¶
type DeleteOperationResponse ¶
type GetOperationOptions ¶
type GetOperationOptions struct {
Expand *string
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *VirtualRouter }
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct { LatestHttpResponse *http.Response Items []VirtualRouter }
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]VirtualRouter }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []VirtualRouter }
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]VirtualRouter }
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type SubResource ¶
type SubResource struct {
Id *string `json:"id,omitempty"`
}
type VirtualRouter ¶
type VirtualRouter struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *VirtualRouterPropertiesFormat `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type VirtualRouterId ¶
type VirtualRouterId struct { SubscriptionId string ResourceGroupName string VirtualRouterName string }
VirtualRouterId is a struct representing the Resource ID for a Virtual Router
func NewVirtualRouterID ¶
func NewVirtualRouterID(subscriptionId string, resourceGroupName string, virtualRouterName string) VirtualRouterId
NewVirtualRouterID returns a new VirtualRouterId struct
func ParseVirtualRouterID ¶
func ParseVirtualRouterID(input string) (*VirtualRouterId, error)
ParseVirtualRouterID parses 'input' into a VirtualRouterId
func ParseVirtualRouterIDInsensitively ¶
func ParseVirtualRouterIDInsensitively(input string) (*VirtualRouterId, error)
ParseVirtualRouterIDInsensitively parses 'input' case-insensitively into a VirtualRouterId note: this method should only be used for API response data and not user input
func (*VirtualRouterId) FromParseResult ¶
func (id *VirtualRouterId) FromParseResult(input resourceids.ParseResult) error
func (VirtualRouterId) ID ¶
func (id VirtualRouterId) ID() string
ID returns the formatted Virtual Router ID
func (VirtualRouterId) Segments ¶
func (id VirtualRouterId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Virtual Router ID
func (VirtualRouterId) String ¶
func (id VirtualRouterId) String() string
String returns a human-readable description of this Virtual Router ID
type VirtualRouterOperationPredicate ¶
type VirtualRouterOperationPredicate struct { Etag *string Id *string Location *string Name *string Type *string }
func (VirtualRouterOperationPredicate) Matches ¶
func (p VirtualRouterOperationPredicate) Matches(input VirtualRouter) bool
type VirtualRouterPropertiesFormat ¶
type VirtualRouterPropertiesFormat struct { HostedGateway *SubResource `json:"hostedGateway,omitempty"` HostedSubnet *SubResource `json:"hostedSubnet,omitempty"` Peerings *[]SubResource `json:"peerings,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` VirtualRouterAsn *int64 `json:"virtualRouterAsn,omitempty"` VirtualRouterIPs *[]string `json:"virtualRouterIps,omitempty"` }
type VirtualRoutersClient ¶
type VirtualRoutersClient struct {
Client *resourcemanager.Client
}
func NewVirtualRoutersClientWithBaseURI ¶
func NewVirtualRoutersClientWithBaseURI(sdkApi sdkEnv.Api) (*VirtualRoutersClient, error)
func (VirtualRoutersClient) CreateOrUpdate ¶
func (c VirtualRoutersClient) CreateOrUpdate(ctx context.Context, id VirtualRouterId, input VirtualRouter) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (VirtualRoutersClient) CreateOrUpdateThenPoll ¶
func (c VirtualRoutersClient) CreateOrUpdateThenPoll(ctx context.Context, id VirtualRouterId, input VirtualRouter) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (VirtualRoutersClient) Delete ¶
func (c VirtualRoutersClient) Delete(ctx context.Context, id VirtualRouterId) (result DeleteOperationResponse, err error)
Delete ...
func (VirtualRoutersClient) DeleteThenPoll ¶
func (c VirtualRoutersClient) DeleteThenPoll(ctx context.Context, id VirtualRouterId) error
DeleteThenPoll performs Delete then polls until it's completed
func (VirtualRoutersClient) Get ¶
func (c VirtualRoutersClient) Get(ctx context.Context, id VirtualRouterId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (VirtualRoutersClient) List ¶
func (c VirtualRoutersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
func (VirtualRoutersClient) ListByResourceGroup ¶
func (c VirtualRoutersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (VirtualRoutersClient) ListByResourceGroupComplete ¶
func (c VirtualRoutersClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (VirtualRoutersClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c VirtualRoutersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate VirtualRouterOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (VirtualRoutersClient) ListComplete ¶
func (c VirtualRoutersClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (VirtualRoutersClient) ListCompleteMatchingPredicate ¶
func (c VirtualRoutersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate VirtualRouterOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate