Documentation ¶
Index ¶
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForSecurityRuleAccess() []string
- func PossibleValuesForSecurityRuleDirection() []string
- func PossibleValuesForSecurityRuleProtocol() []string
- func ValidateDefaultSecurityRuleID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateNetworkSecurityGroupID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateSecurityRuleID(input interface{}, key string) (warnings []string, errors []error)
- type ApplicationSecurityGroup
- type ApplicationSecurityGroupPropertiesFormat
- type CreateOrUpdateOperationResponse
- type DefaultSecurityRuleId
- type DefaultSecurityRulesGetOperationResponse
- type DefaultSecurityRulesListCompleteResult
- type DefaultSecurityRulesListOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type NetworkSecurityGroupId
- type ProvisioningState
- type SecurityRule
- type SecurityRuleAccess
- type SecurityRuleDirection
- type SecurityRuleId
- type SecurityRuleOperationPredicate
- type SecurityRulePropertiesFormat
- type SecurityRuleProtocol
- type SecurityRulesClient
- func (c SecurityRulesClient) CreateOrUpdate(ctx context.Context, id SecurityRuleId, input SecurityRule) (result CreateOrUpdateOperationResponse, err error)
- func (c SecurityRulesClient) CreateOrUpdateThenPoll(ctx context.Context, id SecurityRuleId, input SecurityRule) error
- func (c SecurityRulesClient) DefaultSecurityRulesGet(ctx context.Context, id DefaultSecurityRuleId) (result DefaultSecurityRulesGetOperationResponse, err error)
- func (c SecurityRulesClient) DefaultSecurityRulesList(ctx context.Context, id NetworkSecurityGroupId) (result DefaultSecurityRulesListOperationResponse, err error)
- func (c SecurityRulesClient) DefaultSecurityRulesListComplete(ctx context.Context, id NetworkSecurityGroupId) (DefaultSecurityRulesListCompleteResult, error)
- func (c SecurityRulesClient) DefaultSecurityRulesListCompleteMatchingPredicate(ctx context.Context, id NetworkSecurityGroupId, ...) (result DefaultSecurityRulesListCompleteResult, err error)
- func (c SecurityRulesClient) Delete(ctx context.Context, id SecurityRuleId) (result DeleteOperationResponse, err error)
- func (c SecurityRulesClient) DeleteThenPoll(ctx context.Context, id SecurityRuleId) error
- func (c SecurityRulesClient) Get(ctx context.Context, id SecurityRuleId) (result GetOperationResponse, err error)
- func (c SecurityRulesClient) List(ctx context.Context, id NetworkSecurityGroupId) (result ListOperationResponse, err error)
- func (c SecurityRulesClient) ListComplete(ctx context.Context, id NetworkSecurityGroupId) (ListCompleteResult, error)
- func (c SecurityRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkSecurityGroupId, ...) (result ListCompleteResult, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForSecurityRuleAccess ¶
func PossibleValuesForSecurityRuleAccess() []string
func PossibleValuesForSecurityRuleDirection ¶
func PossibleValuesForSecurityRuleDirection() []string
func PossibleValuesForSecurityRuleProtocol ¶
func PossibleValuesForSecurityRuleProtocol() []string
func ValidateDefaultSecurityRuleID ¶
func ValidateDefaultSecurityRuleID(input interface{}, key string) (warnings []string, errors []error)
ValidateDefaultSecurityRuleID checks that 'input' can be parsed as a Default Security Rule ID
func ValidateNetworkSecurityGroupID ¶
func ValidateNetworkSecurityGroupID(input interface{}, key string) (warnings []string, errors []error)
ValidateNetworkSecurityGroupID checks that 'input' can be parsed as a Network Security Group ID
func ValidateSecurityRuleID ¶
ValidateSecurityRuleID checks that 'input' can be parsed as a Security Rule ID
Types ¶
type ApplicationSecurityGroup ¶
type ApplicationSecurityGroup struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *ApplicationSecurityGroupPropertiesFormat `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ApplicationSecurityGroupPropertiesFormat ¶
type ApplicationSecurityGroupPropertiesFormat struct { ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` ResourceGuid *string `json:"resourceGuid,omitempty"` }
type DefaultSecurityRuleId ¶
type DefaultSecurityRuleId struct { SubscriptionId string ResourceGroupName string NetworkSecurityGroupName string DefaultSecurityRuleName string }
DefaultSecurityRuleId is a struct representing the Resource ID for a Default Security Rule
func NewDefaultSecurityRuleID ¶
func NewDefaultSecurityRuleID(subscriptionId string, resourceGroupName string, networkSecurityGroupName string, defaultSecurityRuleName string) DefaultSecurityRuleId
NewDefaultSecurityRuleID returns a new DefaultSecurityRuleId struct
func ParseDefaultSecurityRuleID ¶
func ParseDefaultSecurityRuleID(input string) (*DefaultSecurityRuleId, error)
ParseDefaultSecurityRuleID parses 'input' into a DefaultSecurityRuleId
func ParseDefaultSecurityRuleIDInsensitively ¶
func ParseDefaultSecurityRuleIDInsensitively(input string) (*DefaultSecurityRuleId, error)
ParseDefaultSecurityRuleIDInsensitively parses 'input' case-insensitively into a DefaultSecurityRuleId note: this method should only be used for API response data and not user input
func (DefaultSecurityRuleId) ID ¶
func (id DefaultSecurityRuleId) ID() string
ID returns the formatted Default Security Rule ID
func (DefaultSecurityRuleId) Segments ¶
func (id DefaultSecurityRuleId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Default Security Rule ID
func (DefaultSecurityRuleId) String ¶
func (id DefaultSecurityRuleId) String() string
String returns a human-readable description of this Default Security Rule ID
type DefaultSecurityRulesGetOperationResponse ¶
type DefaultSecurityRulesGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SecurityRule }
type DefaultSecurityRulesListCompleteResult ¶
type DefaultSecurityRulesListCompleteResult struct {
Items []SecurityRule
}
type DefaultSecurityRulesListOperationResponse ¶
type DefaultSecurityRulesListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]SecurityRule }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SecurityRule }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []SecurityRule
}
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]SecurityRule }
type NetworkSecurityGroupId ¶
type NetworkSecurityGroupId struct { SubscriptionId string ResourceGroupName string NetworkSecurityGroupName string }
NetworkSecurityGroupId is a struct representing the Resource ID for a Network Security Group
func NewNetworkSecurityGroupID ¶
func NewNetworkSecurityGroupID(subscriptionId string, resourceGroupName string, networkSecurityGroupName string) NetworkSecurityGroupId
NewNetworkSecurityGroupID returns a new NetworkSecurityGroupId struct
func ParseNetworkSecurityGroupID ¶
func ParseNetworkSecurityGroupID(input string) (*NetworkSecurityGroupId, error)
ParseNetworkSecurityGroupID parses 'input' into a NetworkSecurityGroupId
func ParseNetworkSecurityGroupIDInsensitively ¶
func ParseNetworkSecurityGroupIDInsensitively(input string) (*NetworkSecurityGroupId, error)
ParseNetworkSecurityGroupIDInsensitively parses 'input' case-insensitively into a NetworkSecurityGroupId note: this method should only be used for API response data and not user input
func (NetworkSecurityGroupId) ID ¶
func (id NetworkSecurityGroupId) ID() string
ID returns the formatted Network Security Group ID
func (NetworkSecurityGroupId) Segments ¶
func (id NetworkSecurityGroupId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Network Security Group ID
func (NetworkSecurityGroupId) String ¶
func (id NetworkSecurityGroupId) String() string
String returns a human-readable description of this Network Security Group ID
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 SecurityRule ¶
type SecurityRule struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SecurityRulePropertiesFormat `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type SecurityRuleAccess ¶
type SecurityRuleAccess string
const ( SecurityRuleAccessAllow SecurityRuleAccess = "Allow" SecurityRuleAccessDeny SecurityRuleAccess = "Deny" )
func (*SecurityRuleAccess) UnmarshalJSON ¶
func (s *SecurityRuleAccess) UnmarshalJSON(bytes []byte) error
type SecurityRuleDirection ¶
type SecurityRuleDirection string
const ( SecurityRuleDirectionInbound SecurityRuleDirection = "Inbound" SecurityRuleDirectionOutbound SecurityRuleDirection = "Outbound" )
func (*SecurityRuleDirection) UnmarshalJSON ¶
func (s *SecurityRuleDirection) UnmarshalJSON(bytes []byte) error
type SecurityRuleId ¶
type SecurityRuleId struct { SubscriptionId string ResourceGroupName string NetworkSecurityGroupName string SecurityRuleName string }
SecurityRuleId is a struct representing the Resource ID for a Security Rule
func NewSecurityRuleID ¶
func NewSecurityRuleID(subscriptionId string, resourceGroupName string, networkSecurityGroupName string, securityRuleName string) SecurityRuleId
NewSecurityRuleID returns a new SecurityRuleId struct
func ParseSecurityRuleID ¶
func ParseSecurityRuleID(input string) (*SecurityRuleId, error)
ParseSecurityRuleID parses 'input' into a SecurityRuleId
func ParseSecurityRuleIDInsensitively ¶
func ParseSecurityRuleIDInsensitively(input string) (*SecurityRuleId, error)
ParseSecurityRuleIDInsensitively parses 'input' case-insensitively into a SecurityRuleId note: this method should only be used for API response data and not user input
func (SecurityRuleId) ID ¶
func (id SecurityRuleId) ID() string
ID returns the formatted Security Rule ID
func (SecurityRuleId) Segments ¶
func (id SecurityRuleId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Security Rule ID
func (SecurityRuleId) String ¶
func (id SecurityRuleId) String() string
String returns a human-readable description of this Security Rule ID
type SecurityRuleOperationPredicate ¶
func (SecurityRuleOperationPredicate) Matches ¶
func (p SecurityRuleOperationPredicate) Matches(input SecurityRule) bool
type SecurityRulePropertiesFormat ¶
type SecurityRulePropertiesFormat struct { Access SecurityRuleAccess `json:"access"` Description *string `json:"description,omitempty"` DestinationAddressPrefix *string `json:"destinationAddressPrefix,omitempty"` DestinationAddressPrefixes *[]string `json:"destinationAddressPrefixes,omitempty"` DestinationApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"destinationApplicationSecurityGroups,omitempty"` DestinationPortRange *string `json:"destinationPortRange,omitempty"` DestinationPortRanges *[]string `json:"destinationPortRanges,omitempty"` Direction SecurityRuleDirection `json:"direction"` Priority int64 `json:"priority"` Protocol SecurityRuleProtocol `json:"protocol"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` SourceAddressPrefix *string `json:"sourceAddressPrefix,omitempty"` SourceAddressPrefixes *[]string `json:"sourceAddressPrefixes,omitempty"` SourceApplicationSecurityGroups *[]ApplicationSecurityGroup `json:"sourceApplicationSecurityGroups,omitempty"` SourcePortRange *string `json:"sourcePortRange,omitempty"` SourcePortRanges *[]string `json:"sourcePortRanges,omitempty"` }
type SecurityRuleProtocol ¶
type SecurityRuleProtocol string
const ( SecurityRuleProtocolAh SecurityRuleProtocol = "Ah" SecurityRuleProtocolAny SecurityRuleProtocol = "*" SecurityRuleProtocolEsp SecurityRuleProtocol = "Esp" SecurityRuleProtocolIcmp SecurityRuleProtocol = "Icmp" SecurityRuleProtocolTcp SecurityRuleProtocol = "Tcp" SecurityRuleProtocolUdp SecurityRuleProtocol = "Udp" )
func (*SecurityRuleProtocol) UnmarshalJSON ¶
func (s *SecurityRuleProtocol) UnmarshalJSON(bytes []byte) error
type SecurityRulesClient ¶
type SecurityRulesClient struct {
Client *resourcemanager.Client
}
func NewSecurityRulesClientWithBaseURI ¶
func NewSecurityRulesClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityRulesClient, error)
func (SecurityRulesClient) CreateOrUpdate ¶
func (c SecurityRulesClient) CreateOrUpdate(ctx context.Context, id SecurityRuleId, input SecurityRule) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (SecurityRulesClient) CreateOrUpdateThenPoll ¶
func (c SecurityRulesClient) CreateOrUpdateThenPoll(ctx context.Context, id SecurityRuleId, input SecurityRule) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (SecurityRulesClient) DefaultSecurityRulesGet ¶
func (c SecurityRulesClient) DefaultSecurityRulesGet(ctx context.Context, id DefaultSecurityRuleId) (result DefaultSecurityRulesGetOperationResponse, err error)
DefaultSecurityRulesGet ...
func (SecurityRulesClient) DefaultSecurityRulesList ¶
func (c SecurityRulesClient) DefaultSecurityRulesList(ctx context.Context, id NetworkSecurityGroupId) (result DefaultSecurityRulesListOperationResponse, err error)
DefaultSecurityRulesList ...
func (SecurityRulesClient) DefaultSecurityRulesListComplete ¶
func (c SecurityRulesClient) DefaultSecurityRulesListComplete(ctx context.Context, id NetworkSecurityGroupId) (DefaultSecurityRulesListCompleteResult, error)
DefaultSecurityRulesListComplete retrieves all the results into a single object
func (SecurityRulesClient) DefaultSecurityRulesListCompleteMatchingPredicate ¶
func (c SecurityRulesClient) DefaultSecurityRulesListCompleteMatchingPredicate(ctx context.Context, id NetworkSecurityGroupId, predicate SecurityRuleOperationPredicate) (result DefaultSecurityRulesListCompleteResult, err error)
DefaultSecurityRulesListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (SecurityRulesClient) Delete ¶
func (c SecurityRulesClient) Delete(ctx context.Context, id SecurityRuleId) (result DeleteOperationResponse, err error)
Delete ...
func (SecurityRulesClient) DeleteThenPoll ¶
func (c SecurityRulesClient) DeleteThenPoll(ctx context.Context, id SecurityRuleId) error
DeleteThenPoll performs Delete then polls until it's completed
func (SecurityRulesClient) Get ¶
func (c SecurityRulesClient) Get(ctx context.Context, id SecurityRuleId) (result GetOperationResponse, err error)
Get ...
func (SecurityRulesClient) List ¶
func (c SecurityRulesClient) List(ctx context.Context, id NetworkSecurityGroupId) (result ListOperationResponse, err error)
List ...
func (SecurityRulesClient) ListComplete ¶
func (c SecurityRulesClient) ListComplete(ctx context.Context, id NetworkSecurityGroupId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (SecurityRulesClient) ListCompleteMatchingPredicate ¶
func (c SecurityRulesClient) ListCompleteMatchingPredicate(ctx context.Context, id NetworkSecurityGroupId, predicate SecurityRuleOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
Source Files ¶
- client.go
- constants.go
- id_defaultsecurityrule.go
- id_networksecuritygroup.go
- id_securityrule.go
- method_createorupdate.go
- method_defaultsecurityrulesget.go
- method_defaultsecurityruleslist.go
- method_delete.go
- method_get.go
- method_list.go
- model_applicationsecuritygroup.go
- model_applicationsecuritygrouppropertiesformat.go
- model_securityrule.go
- model_securityrulepropertiesformat.go
- predicates.go
- version.go