Documentation ¶
Index ¶
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForRoutingRuleDestinationType() []string
- func PossibleValuesForRoutingRuleNextHopType() []string
- func ValidateRuleCollectionID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateRuleID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationResponse
- type ProvisioningState
- type RoutingRule
- type RoutingRuleDestinationType
- type RoutingRuleNextHop
- type RoutingRuleNextHopType
- type RoutingRuleOperationPredicate
- type RoutingRulePropertiesFormat
- type RoutingRuleRouteDestination
- type RoutingRulesClient
- func (c RoutingRulesClient) CreateOrUpdate(ctx context.Context, id RuleId, input RoutingRule) (result CreateOrUpdateOperationResponse, err error)
- func (c RoutingRulesClient) Delete(ctx context.Context, id RuleId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c RoutingRulesClient) DeleteThenPoll(ctx context.Context, id RuleId, options DeleteOperationOptions) error
- func (c RoutingRulesClient) Get(ctx context.Context, id RuleId) (result GetOperationResponse, err error)
- func (c RoutingRulesClient) List(ctx context.Context, id RuleCollectionId) (result ListOperationResponse, err error)
- func (c RoutingRulesClient) ListComplete(ctx context.Context, id RuleCollectionId) (ListCompleteResult, error)
- func (c RoutingRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id RuleCollectionId, ...) (result ListCompleteResult, err error)
- type RuleCollectionId
- type RuleId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForRoutingRuleDestinationType ¶
func PossibleValuesForRoutingRuleDestinationType() []string
func PossibleValuesForRoutingRuleNextHopType ¶
func PossibleValuesForRoutingRuleNextHopType() []string
func ValidateRuleCollectionID ¶
ValidateRuleCollectionID checks that 'input' can be parsed as a Rule Collection ID
func ValidateRuleID ¶
ValidateRuleID checks that 'input' can be parsed as a Rule ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RoutingRule }
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
Force *bool
}
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
func (DeleteOperationOptions) ToHeaders ¶
func (o DeleteOperationOptions) ToHeaders() *client.Headers
func (DeleteOperationOptions) ToOData ¶
func (o DeleteOperationOptions) ToOData() *odata.Query
func (DeleteOperationOptions) ToQuery ¶
func (o DeleteOperationOptions) ToQuery() *client.QueryParams
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RoutingRule }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []RoutingRule }
type ListCustomPager ¶
func (*ListCustomPager) NextPageLink ¶
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]RoutingRule }
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 RoutingRule ¶
type RoutingRule struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *RoutingRulePropertiesFormat `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type RoutingRuleDestinationType ¶
type RoutingRuleDestinationType string
const ( RoutingRuleDestinationTypeAddressPrefix RoutingRuleDestinationType = "AddressPrefix" RoutingRuleDestinationTypeServiceTag RoutingRuleDestinationType = "ServiceTag" )
func (*RoutingRuleDestinationType) UnmarshalJSON ¶
func (s *RoutingRuleDestinationType) UnmarshalJSON(bytes []byte) error
type RoutingRuleNextHop ¶
type RoutingRuleNextHop struct { NextHopAddress *string `json:"nextHopAddress,omitempty"` NextHopType RoutingRuleNextHopType `json:"nextHopType"` }
type RoutingRuleNextHopType ¶
type RoutingRuleNextHopType string
const ( RoutingRuleNextHopTypeInternet RoutingRuleNextHopType = "Internet" RoutingRuleNextHopTypeNoNextHop RoutingRuleNextHopType = "NoNextHop" RoutingRuleNextHopTypeVirtualAppliance RoutingRuleNextHopType = "VirtualAppliance" RoutingRuleNextHopTypeVirtualNetworkGateway RoutingRuleNextHopType = "VirtualNetworkGateway" RoutingRuleNextHopTypeVnetLocal RoutingRuleNextHopType = "VnetLocal" )
func (*RoutingRuleNextHopType) UnmarshalJSON ¶
func (s *RoutingRuleNextHopType) UnmarshalJSON(bytes []byte) error
type RoutingRuleOperationPredicate ¶
func (RoutingRuleOperationPredicate) Matches ¶
func (p RoutingRuleOperationPredicate) Matches(input RoutingRule) bool
type RoutingRulePropertiesFormat ¶
type RoutingRulePropertiesFormat struct { Description *string `json:"description,omitempty"` Destination RoutingRuleRouteDestination `json:"destination"` NextHop RoutingRuleNextHop `json:"nextHop"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` ResourceGuid *string `json:"resourceGuid,omitempty"` }
type RoutingRuleRouteDestination ¶
type RoutingRuleRouteDestination struct { DestinationAddress string `json:"destinationAddress"` Type RoutingRuleDestinationType `json:"type"` }
type RoutingRulesClient ¶
type RoutingRulesClient struct {
Client *resourcemanager.Client
}
func NewRoutingRulesClientWithBaseURI ¶
func NewRoutingRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*RoutingRulesClient, error)
func (RoutingRulesClient) CreateOrUpdate ¶
func (c RoutingRulesClient) CreateOrUpdate(ctx context.Context, id RuleId, input RoutingRule) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (RoutingRulesClient) Delete ¶
func (c RoutingRulesClient) Delete(ctx context.Context, id RuleId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (RoutingRulesClient) DeleteThenPoll ¶
func (c RoutingRulesClient) DeleteThenPoll(ctx context.Context, id RuleId, options DeleteOperationOptions) error
DeleteThenPoll performs Delete then polls until it's completed
func (RoutingRulesClient) Get ¶
func (c RoutingRulesClient) Get(ctx context.Context, id RuleId) (result GetOperationResponse, err error)
Get ...
func (RoutingRulesClient) List ¶
func (c RoutingRulesClient) List(ctx context.Context, id RuleCollectionId) (result ListOperationResponse, err error)
List ...
func (RoutingRulesClient) ListComplete ¶
func (c RoutingRulesClient) ListComplete(ctx context.Context, id RuleCollectionId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (RoutingRulesClient) ListCompleteMatchingPredicate ¶
func (c RoutingRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id RuleCollectionId, predicate RoutingRuleOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type RuleCollectionId ¶
type RuleCollectionId struct { SubscriptionId string ResourceGroupName string NetworkManagerName string RoutingConfigurationName string RuleCollectionName string }
RuleCollectionId is a struct representing the Resource ID for a Rule Collection
func NewRuleCollectionID ¶
func NewRuleCollectionID(subscriptionId string, resourceGroupName string, networkManagerName string, routingConfigurationName string, ruleCollectionName string) RuleCollectionId
NewRuleCollectionID returns a new RuleCollectionId struct
func ParseRuleCollectionID ¶
func ParseRuleCollectionID(input string) (*RuleCollectionId, error)
ParseRuleCollectionID parses 'input' into a RuleCollectionId
func ParseRuleCollectionIDInsensitively ¶
func ParseRuleCollectionIDInsensitively(input string) (*RuleCollectionId, error)
ParseRuleCollectionIDInsensitively parses 'input' case-insensitively into a RuleCollectionId note: this method should only be used for API response data and not user input
func (*RuleCollectionId) FromParseResult ¶
func (id *RuleCollectionId) FromParseResult(input resourceids.ParseResult) error
func (RuleCollectionId) ID ¶
func (id RuleCollectionId) ID() string
ID returns the formatted Rule Collection ID
func (RuleCollectionId) Segments ¶
func (id RuleCollectionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Rule Collection ID
func (RuleCollectionId) String ¶
func (id RuleCollectionId) String() string
String returns a human-readable description of this Rule Collection ID
type RuleId ¶
type RuleId struct { SubscriptionId string ResourceGroupName string NetworkManagerName string RoutingConfigurationName string RuleCollectionName string RuleName string }
RuleId is a struct representing the Resource ID for a Rule
func NewRuleID ¶
func NewRuleID(subscriptionId string, resourceGroupName string, networkManagerName string, routingConfigurationName string, ruleCollectionName string, ruleName string) RuleId
NewRuleID returns a new RuleId struct
func ParseRuleID ¶
ParseRuleID parses 'input' into a RuleId
func ParseRuleIDInsensitively ¶
ParseRuleIDInsensitively parses 'input' case-insensitively into a RuleId note: this method should only be used for API response data and not user input
func (*RuleId) FromParseResult ¶
func (id *RuleId) FromParseResult(input resourceids.ParseResult) error
func (RuleId) Segments ¶
func (id RuleId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Rule ID