Documentation ¶
Index ¶
- func PossibleValuesForAddressPrefixType() []string
- func PossibleValuesForAdminRuleKind() []string
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForSecurityConfigurationRuleAccess() []string
- func PossibleValuesForSecurityConfigurationRuleDirection() []string
- func PossibleValuesForSecurityConfigurationRuleProtocol() []string
- func ValidateRuleCollectionID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateRuleID(input interface{}, key string) (warnings []string, errors []error)
- type AddressPrefixItem
- type AddressPrefixType
- type AdminPropertiesFormat
- type AdminRule
- type AdminRuleKind
- type AdminRulesClient
- func (c AdminRulesClient) CreateOrUpdate(ctx context.Context, id RuleId, input BaseAdminRule) (result CreateOrUpdateOperationResponse, err error)
- func (c AdminRulesClient) Delete(ctx context.Context, id RuleId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c AdminRulesClient) DeleteThenPoll(ctx context.Context, id RuleId, options DeleteOperationOptions) error
- func (c AdminRulesClient) Get(ctx context.Context, id RuleId) (result GetOperationResponse, err error)
- func (c AdminRulesClient) List(ctx context.Context, id RuleCollectionId) (result ListOperationResponse, err error)
- func (c AdminRulesClient) ListComplete(ctx context.Context, id RuleCollectionId) (ListCompleteResult, error)
- func (c AdminRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id RuleCollectionId, ...) (result ListCompleteResult, err error)
- type BaseAdminRule
- type BaseAdminRuleOperationPredicate
- type CreateOrUpdateOperationResponse
- type DefaultAdminPropertiesFormat
- type DefaultAdminRule
- type DeleteOperationOptions
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type ProvisioningState
- type RawBaseAdminRuleImpl
- type RuleCollectionId
- type RuleId
- type SecurityConfigurationRuleAccess
- type SecurityConfigurationRuleDirection
- type SecurityConfigurationRuleProtocol
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAddressPrefixType ¶
func PossibleValuesForAddressPrefixType() []string
func PossibleValuesForAdminRuleKind ¶
func PossibleValuesForAdminRuleKind() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForSecurityConfigurationRuleAccess ¶
func PossibleValuesForSecurityConfigurationRuleAccess() []string
func PossibleValuesForSecurityConfigurationRuleDirection ¶
func PossibleValuesForSecurityConfigurationRuleDirection() []string
func PossibleValuesForSecurityConfigurationRuleProtocol ¶
func PossibleValuesForSecurityConfigurationRuleProtocol() []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 AddressPrefixItem ¶
type AddressPrefixItem struct { AddressPrefix *string `json:"addressPrefix,omitempty"` AddressPrefixType *AddressPrefixType `json:"addressPrefixType,omitempty"` }
type AddressPrefixType ¶
type AddressPrefixType string
const ( AddressPrefixTypeIPPrefix AddressPrefixType = "IPPrefix" AddressPrefixTypeServiceTag AddressPrefixType = "ServiceTag" )
func (*AddressPrefixType) UnmarshalJSON ¶
func (s *AddressPrefixType) UnmarshalJSON(bytes []byte) error
type AdminPropertiesFormat ¶
type AdminPropertiesFormat struct { Access SecurityConfigurationRuleAccess `json:"access"` Description *string `json:"description,omitempty"` DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` Destinations *[]AddressPrefixItem `json:"destinations,omitempty"` Direction SecurityConfigurationRuleDirection `json:"direction"` Priority int64 `json:"priority"` Protocol SecurityConfigurationRuleProtocol `json:"protocol"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` ResourceGuid *string `json:"resourceGuid,omitempty"` SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` Sources *[]AddressPrefixItem `json:"sources,omitempty"` }
type AdminRule ¶
type AdminRule struct { Properties *AdminPropertiesFormat `json:"properties,omitempty"` // Fields inherited from BaseAdminRule Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
func (AdminRule) MarshalJSON ¶
type AdminRuleKind ¶
type AdminRuleKind string
const ( AdminRuleKindCustom AdminRuleKind = "Custom" AdminRuleKindDefault AdminRuleKind = "Default" )
func (*AdminRuleKind) UnmarshalJSON ¶
func (s *AdminRuleKind) UnmarshalJSON(bytes []byte) error
type AdminRulesClient ¶
type AdminRulesClient struct {
Client *resourcemanager.Client
}
func NewAdminRulesClientWithBaseURI ¶
func NewAdminRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*AdminRulesClient, error)
func (AdminRulesClient) CreateOrUpdate ¶
func (c AdminRulesClient) CreateOrUpdate(ctx context.Context, id RuleId, input BaseAdminRule) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (AdminRulesClient) Delete ¶
func (c AdminRulesClient) Delete(ctx context.Context, id RuleId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (AdminRulesClient) DeleteThenPoll ¶
func (c AdminRulesClient) DeleteThenPoll(ctx context.Context, id RuleId, options DeleteOperationOptions) error
DeleteThenPoll performs Delete then polls until it's completed
func (AdminRulesClient) Get ¶
func (c AdminRulesClient) Get(ctx context.Context, id RuleId) (result GetOperationResponse, err error)
Get ...
func (AdminRulesClient) List ¶
func (c AdminRulesClient) List(ctx context.Context, id RuleCollectionId) (result ListOperationResponse, err error)
List ...
func (AdminRulesClient) ListComplete ¶
func (c AdminRulesClient) ListComplete(ctx context.Context, id RuleCollectionId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (AdminRulesClient) ListCompleteMatchingPredicate ¶
func (c AdminRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id RuleCollectionId, predicate BaseAdminRuleOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type BaseAdminRule ¶
type BaseAdminRule interface { }
type BaseAdminRuleOperationPredicate ¶
type BaseAdminRuleOperationPredicate struct { }
func (BaseAdminRuleOperationPredicate) Matches ¶
func (p BaseAdminRuleOperationPredicate) Matches(input BaseAdminRule) bool
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *BaseAdminRule }
type DefaultAdminPropertiesFormat ¶
type DefaultAdminPropertiesFormat struct { Access *SecurityConfigurationRuleAccess `json:"access,omitempty"` Description *string `json:"description,omitempty"` DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` Destinations *[]AddressPrefixItem `json:"destinations,omitempty"` Direction *SecurityConfigurationRuleDirection `json:"direction,omitempty"` Flag *string `json:"flag,omitempty"` Priority *int64 `json:"priority,omitempty"` Protocol *SecurityConfigurationRuleProtocol `json:"protocol,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` ResourceGuid *string `json:"resourceGuid,omitempty"` SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` Sources *[]AddressPrefixItem `json:"sources,omitempty"` }
type DefaultAdminRule ¶
type DefaultAdminRule struct { Properties *DefaultAdminPropertiesFormat `json:"properties,omitempty"` // Fields inherited from BaseAdminRule Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
func (DefaultAdminRule) MarshalJSON ¶
func (s DefaultAdminRule) MarshalJSON() ([]byte, error)
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 *BaseAdminRule }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []BaseAdminRule
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]BaseAdminRule }
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 RawBaseAdminRuleImpl ¶
RawBaseAdminRuleImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).
type RuleCollectionId ¶
type RuleCollectionId struct { SubscriptionId string ResourceGroupName string NetworkManagerName string SecurityAdminConfigurationName 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, securityAdminConfigurationName 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) 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 SecurityAdminConfigurationName 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, securityAdminConfigurationName 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) Segments ¶
func (id RuleId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Rule ID
type SecurityConfigurationRuleAccess ¶
type SecurityConfigurationRuleAccess string
const ( SecurityConfigurationRuleAccessAllow SecurityConfigurationRuleAccess = "Allow" SecurityConfigurationRuleAccessAlwaysAllow SecurityConfigurationRuleAccess = "AlwaysAllow" SecurityConfigurationRuleAccessDeny SecurityConfigurationRuleAccess = "Deny" )
func (*SecurityConfigurationRuleAccess) UnmarshalJSON ¶
func (s *SecurityConfigurationRuleAccess) UnmarshalJSON(bytes []byte) error
type SecurityConfigurationRuleDirection ¶
type SecurityConfigurationRuleDirection string
const ( SecurityConfigurationRuleDirectionInbound SecurityConfigurationRuleDirection = "Inbound" SecurityConfigurationRuleDirectionOutbound SecurityConfigurationRuleDirection = "Outbound" )
func (*SecurityConfigurationRuleDirection) UnmarshalJSON ¶
func (s *SecurityConfigurationRuleDirection) UnmarshalJSON(bytes []byte) error
type SecurityConfigurationRuleProtocol ¶
type SecurityConfigurationRuleProtocol string
const ( SecurityConfigurationRuleProtocolAh SecurityConfigurationRuleProtocol = "Ah" SecurityConfigurationRuleProtocolAny SecurityConfigurationRuleProtocol = "Any" SecurityConfigurationRuleProtocolEsp SecurityConfigurationRuleProtocol = "Esp" SecurityConfigurationRuleProtocolIcmp SecurityConfigurationRuleProtocol = "Icmp" SecurityConfigurationRuleProtocolTcp SecurityConfigurationRuleProtocol = "Tcp" SecurityConfigurationRuleProtocolUdp SecurityConfigurationRuleProtocol = "Udp" )
func (*SecurityConfigurationRuleProtocol) UnmarshalJSON ¶
func (s *SecurityConfigurationRuleProtocol) UnmarshalJSON(bytes []byte) error
Source Files ¶
- client.go
- constants.go
- id_rule.go
- id_rulecollection.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- model_addressprefixitem.go
- model_adminpropertiesformat.go
- model_adminrule.go
- model_baseadminrule.go
- model_defaultadminpropertiesformat.go
- model_defaultadminrule.go
- predicates.go
- version.go