Documentation ¶
Index ¶
- func PossibleValuesForAfdProvisioningState() []string
- func PossibleValuesForDeploymentStatus() []string
- func PossibleValuesForSecurityPolicyType() []string
- func ValidateProfileID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateSecurityPolicyID(input interface{}, key string) (warnings []string, errors []error)
- type ActivatedResourceReference
- type AfdProvisioningState
- type BaseSecurityPolicyPropertiesParametersImpl
- type CreateOperationResponse
- type DeleteOperationResponse
- type DeploymentStatus
- type GetOperationResponse
- type ListByProfileCompleteResult
- type ListByProfileCustomPager
- type ListByProfileOperationResponse
- type PatchOperationResponse
- type ProfileId
- type RawSecurityPolicyPropertiesParametersImpl
- type ResourceReference
- type SecurityPoliciesClient
- func (c SecurityPoliciesClient) Create(ctx context.Context, id SecurityPolicyId, input SecurityPolicy) (result CreateOperationResponse, err error)
- func (c SecurityPoliciesClient) CreateThenPoll(ctx context.Context, id SecurityPolicyId, input SecurityPolicy) error
- func (c SecurityPoliciesClient) Delete(ctx context.Context, id SecurityPolicyId) (result DeleteOperationResponse, err error)
- func (c SecurityPoliciesClient) DeleteThenPoll(ctx context.Context, id SecurityPolicyId) error
- func (c SecurityPoliciesClient) Get(ctx context.Context, id SecurityPolicyId) (result GetOperationResponse, err error)
- func (c SecurityPoliciesClient) ListByProfile(ctx context.Context, id ProfileId) (result ListByProfileOperationResponse, err error)
- func (c SecurityPoliciesClient) ListByProfileComplete(ctx context.Context, id ProfileId) (ListByProfileCompleteResult, error)
- func (c SecurityPoliciesClient) ListByProfileCompleteMatchingPredicate(ctx context.Context, id ProfileId, predicate SecurityPolicyOperationPredicate) (result ListByProfileCompleteResult, err error)
- func (c SecurityPoliciesClient) Patch(ctx context.Context, id SecurityPolicyId, input SecurityPolicyUpdateParameters) (result PatchOperationResponse, err error)
- func (c SecurityPoliciesClient) PatchThenPoll(ctx context.Context, id SecurityPolicyId, input SecurityPolicyUpdateParameters) error
- type SecurityPolicy
- type SecurityPolicyId
- type SecurityPolicyOperationPredicate
- type SecurityPolicyProperties
- type SecurityPolicyPropertiesParameters
- type SecurityPolicyType
- type SecurityPolicyUpdateParameters
- type SecurityPolicyUpdateProperties
- type SecurityPolicyWebApplicationFirewallAssociation
- type SecurityPolicyWebApplicationFirewallParameters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAfdProvisioningState ¶
func PossibleValuesForAfdProvisioningState() []string
func PossibleValuesForDeploymentStatus ¶
func PossibleValuesForDeploymentStatus() []string
func PossibleValuesForSecurityPolicyType ¶
func PossibleValuesForSecurityPolicyType() []string
func ValidateProfileID ¶
ValidateProfileID checks that 'input' can be parsed as a Profile ID
func ValidateSecurityPolicyID ¶
ValidateSecurityPolicyID checks that 'input' can be parsed as a Security Policy ID
Types ¶
type AfdProvisioningState ¶
type AfdProvisioningState string
const ( AfdProvisioningStateCreating AfdProvisioningState = "Creating" AfdProvisioningStateDeleting AfdProvisioningState = "Deleting" AfdProvisioningStateFailed AfdProvisioningState = "Failed" AfdProvisioningStateSucceeded AfdProvisioningState = "Succeeded" AfdProvisioningStateUpdating AfdProvisioningState = "Updating" )
func (*AfdProvisioningState) UnmarshalJSON ¶
func (s *AfdProvisioningState) UnmarshalJSON(bytes []byte) error
type BaseSecurityPolicyPropertiesParametersImpl ¶
type BaseSecurityPolicyPropertiesParametersImpl struct {
Type SecurityPolicyType `json:"type"`
}
func (BaseSecurityPolicyPropertiesParametersImpl) SecurityPolicyPropertiesParameters ¶
func (s BaseSecurityPolicyPropertiesParametersImpl) SecurityPolicyPropertiesParameters() BaseSecurityPolicyPropertiesParametersImpl
type CreateOperationResponse ¶
type DeleteOperationResponse ¶
type DeploymentStatus ¶
type DeploymentStatus string
const ( DeploymentStatusFailed DeploymentStatus = "Failed" DeploymentStatusInProgress DeploymentStatus = "InProgress" DeploymentStatusNotStarted DeploymentStatus = "NotStarted" DeploymentStatusSucceeded DeploymentStatus = "Succeeded" )
func (*DeploymentStatus) UnmarshalJSON ¶
func (s *DeploymentStatus) UnmarshalJSON(bytes []byte) error
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SecurityPolicy }
type ListByProfileCompleteResult ¶
type ListByProfileCompleteResult struct { LatestHttpResponse *http.Response Items []SecurityPolicy }
type ListByProfileCustomPager ¶
func (*ListByProfileCustomPager) NextPageLink ¶
func (p *ListByProfileCustomPager) NextPageLink() *odata.Link
type ListByProfileOperationResponse ¶
type ListByProfileOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]SecurityPolicy }
type PatchOperationResponse ¶
type ProfileId ¶
ProfileId is a struct representing the Resource ID for a Profile
func NewProfileID ¶
NewProfileID returns a new ProfileId struct
func ParseProfileID ¶
ParseProfileID parses 'input' into a ProfileId
func ParseProfileIDInsensitively ¶
ParseProfileIDInsensitively parses 'input' case-insensitively into a ProfileId note: this method should only be used for API response data and not user input
func (*ProfileId) FromParseResult ¶
func (id *ProfileId) FromParseResult(input resourceids.ParseResult) error
func (ProfileId) Segments ¶
func (id ProfileId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Profile ID
type RawSecurityPolicyPropertiesParametersImpl ¶
type RawSecurityPolicyPropertiesParametersImpl struct { Type string Values map[string]interface{} // contains filtered or unexported fields }
RawSecurityPolicyPropertiesParametersImpl 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).
func (RawSecurityPolicyPropertiesParametersImpl) SecurityPolicyPropertiesParameters ¶
func (s RawSecurityPolicyPropertiesParametersImpl) SecurityPolicyPropertiesParameters() BaseSecurityPolicyPropertiesParametersImpl
type ResourceReference ¶
type ResourceReference struct {
Id *string `json:"id,omitempty"`
}
type SecurityPoliciesClient ¶
type SecurityPoliciesClient struct {
Client *resourcemanager.Client
}
func NewSecurityPoliciesClientWithBaseURI ¶
func NewSecurityPoliciesClientWithBaseURI(sdkApi sdkEnv.Api) (*SecurityPoliciesClient, error)
func (SecurityPoliciesClient) Create ¶
func (c SecurityPoliciesClient) Create(ctx context.Context, id SecurityPolicyId, input SecurityPolicy) (result CreateOperationResponse, err error)
Create ...
func (SecurityPoliciesClient) CreateThenPoll ¶
func (c SecurityPoliciesClient) CreateThenPoll(ctx context.Context, id SecurityPolicyId, input SecurityPolicy) error
CreateThenPoll performs Create then polls until it's completed
func (SecurityPoliciesClient) Delete ¶
func (c SecurityPoliciesClient) Delete(ctx context.Context, id SecurityPolicyId) (result DeleteOperationResponse, err error)
Delete ...
func (SecurityPoliciesClient) DeleteThenPoll ¶
func (c SecurityPoliciesClient) DeleteThenPoll(ctx context.Context, id SecurityPolicyId) error
DeleteThenPoll performs Delete then polls until it's completed
func (SecurityPoliciesClient) Get ¶
func (c SecurityPoliciesClient) Get(ctx context.Context, id SecurityPolicyId) (result GetOperationResponse, err error)
Get ...
func (SecurityPoliciesClient) ListByProfile ¶
func (c SecurityPoliciesClient) ListByProfile(ctx context.Context, id ProfileId) (result ListByProfileOperationResponse, err error)
ListByProfile ...
func (SecurityPoliciesClient) ListByProfileComplete ¶
func (c SecurityPoliciesClient) ListByProfileComplete(ctx context.Context, id ProfileId) (ListByProfileCompleteResult, error)
ListByProfileComplete retrieves all the results into a single object
func (SecurityPoliciesClient) ListByProfileCompleteMatchingPredicate ¶
func (c SecurityPoliciesClient) ListByProfileCompleteMatchingPredicate(ctx context.Context, id ProfileId, predicate SecurityPolicyOperationPredicate) (result ListByProfileCompleteResult, err error)
ListByProfileCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (SecurityPoliciesClient) Patch ¶
func (c SecurityPoliciesClient) Patch(ctx context.Context, id SecurityPolicyId, input SecurityPolicyUpdateParameters) (result PatchOperationResponse, err error)
Patch ...
func (SecurityPoliciesClient) PatchThenPoll ¶
func (c SecurityPoliciesClient) PatchThenPoll(ctx context.Context, id SecurityPolicyId, input SecurityPolicyUpdateParameters) error
PatchThenPoll performs Patch then polls until it's completed
type SecurityPolicy ¶
type SecurityPolicy struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SecurityPolicyProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type SecurityPolicyId ¶
type SecurityPolicyId struct { SubscriptionId string ResourceGroupName string ProfileName string SecurityPolicyName string }
SecurityPolicyId is a struct representing the Resource ID for a Security Policy
func NewSecurityPolicyID ¶
func NewSecurityPolicyID(subscriptionId string, resourceGroupName string, profileName string, securityPolicyName string) SecurityPolicyId
NewSecurityPolicyID returns a new SecurityPolicyId struct
func ParseSecurityPolicyID ¶
func ParseSecurityPolicyID(input string) (*SecurityPolicyId, error)
ParseSecurityPolicyID parses 'input' into a SecurityPolicyId
func ParseSecurityPolicyIDInsensitively ¶
func ParseSecurityPolicyIDInsensitively(input string) (*SecurityPolicyId, error)
ParseSecurityPolicyIDInsensitively parses 'input' case-insensitively into a SecurityPolicyId note: this method should only be used for API response data and not user input
func (*SecurityPolicyId) FromParseResult ¶
func (id *SecurityPolicyId) FromParseResult(input resourceids.ParseResult) error
func (SecurityPolicyId) ID ¶
func (id SecurityPolicyId) ID() string
ID returns the formatted Security Policy ID
func (SecurityPolicyId) Segments ¶
func (id SecurityPolicyId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Security Policy ID
func (SecurityPolicyId) String ¶
func (id SecurityPolicyId) String() string
String returns a human-readable description of this Security Policy ID
type SecurityPolicyOperationPredicate ¶
func (SecurityPolicyOperationPredicate) Matches ¶
func (p SecurityPolicyOperationPredicate) Matches(input SecurityPolicy) bool
type SecurityPolicyProperties ¶
type SecurityPolicyProperties struct { DeploymentStatus *DeploymentStatus `json:"deploymentStatus,omitempty"` Parameters SecurityPolicyPropertiesParameters `json:"parameters"` ProfileName *string `json:"profileName,omitempty"` ProvisioningState *AfdProvisioningState `json:"provisioningState,omitempty"` }
func (*SecurityPolicyProperties) UnmarshalJSON ¶
func (s *SecurityPolicyProperties) UnmarshalJSON(bytes []byte) error
type SecurityPolicyPropertiesParameters ¶
type SecurityPolicyPropertiesParameters interface {
SecurityPolicyPropertiesParameters() BaseSecurityPolicyPropertiesParametersImpl
}
func UnmarshalSecurityPolicyPropertiesParametersImplementation ¶
func UnmarshalSecurityPolicyPropertiesParametersImplementation(input []byte) (SecurityPolicyPropertiesParameters, error)
type SecurityPolicyType ¶
type SecurityPolicyType string
const (
SecurityPolicyTypeWebApplicationFirewall SecurityPolicyType = "WebApplicationFirewall"
)
func (*SecurityPolicyType) UnmarshalJSON ¶
func (s *SecurityPolicyType) UnmarshalJSON(bytes []byte) error
type SecurityPolicyUpdateParameters ¶
type SecurityPolicyUpdateParameters struct {
Properties *SecurityPolicyUpdateProperties `json:"properties,omitempty"`
}
type SecurityPolicyUpdateProperties ¶
type SecurityPolicyUpdateProperties struct {
Parameters SecurityPolicyPropertiesParameters `json:"parameters"`
}
func (*SecurityPolicyUpdateProperties) UnmarshalJSON ¶
func (s *SecurityPolicyUpdateProperties) UnmarshalJSON(bytes []byte) error
type SecurityPolicyWebApplicationFirewallAssociation ¶
type SecurityPolicyWebApplicationFirewallAssociation struct { Domains *[]ActivatedResourceReference `json:"domains,omitempty"` PatternsToMatch *[]string `json:"patternsToMatch,omitempty"` }
type SecurityPolicyWebApplicationFirewallParameters ¶
type SecurityPolicyWebApplicationFirewallParameters struct { Associations *[]SecurityPolicyWebApplicationFirewallAssociation `json:"associations,omitempty"` WafPolicy *ResourceReference `json:"wafPolicy,omitempty"` Type SecurityPolicyType `json:"type"` }
func (SecurityPolicyWebApplicationFirewallParameters) MarshalJSON ¶
func (s SecurityPolicyWebApplicationFirewallParameters) MarshalJSON() ([]byte, error)
func (SecurityPolicyWebApplicationFirewallParameters) SecurityPolicyPropertiesParameters ¶
func (s SecurityPolicyWebApplicationFirewallParameters) SecurityPolicyPropertiesParameters() BaseSecurityPolicyPropertiesParametersImpl
Source Files ¶
- client.go
- constants.go
- id_profile.go
- id_securitypolicy.go
- method_create.go
- method_delete.go
- method_get.go
- method_listbyprofile.go
- method_patch.go
- model_activatedresourcereference.go
- model_resourcereference.go
- model_securitypolicy.go
- model_securitypolicyproperties.go
- model_securitypolicypropertiesparameters.go
- model_securitypolicyupdateparameters.go
- model_securitypolicyupdateproperties.go
- model_securitypolicywebapplicationfirewallassociation.go
- model_securitypolicywebapplicationfirewallparameters.go
- predicates.go
- version.go