Documentation ¶
Index ¶
- func PossibleValuesForParameterType() []string
- func PossibleValuesForPolicyType() []string
- func ValidatePolicyDefinitionID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateProviderPolicyDefinitionID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateProviders2PolicyDefinitionID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateAtManagementGroupOperationResponse
- type CreateOrUpdateOperationResponse
- type DeleteAtManagementGroupOperationResponse
- type DeleteOperationResponse
- type GetAtManagementGroupOperationResponse
- type GetBuiltInOperationResponse
- type GetOperationResponse
- type ListBuiltInCompleteResult
- type ListBuiltInOperationOptions
- type ListBuiltInOperationResponse
- type ListByManagementGroupCompleteResult
- type ListByManagementGroupOperationOptions
- type ListByManagementGroupOperationResponse
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type ParameterDefinitionsValue
- type ParameterDefinitionsValueMetadata
- type ParameterType
- type PolicyDefinition
- type PolicyDefinitionId
- type PolicyDefinitionOperationPredicate
- type PolicyDefinitionProperties
- type PolicyDefinitionsClient
- func (c PolicyDefinitionsClient) CreateOrUpdate(ctx context.Context, id ProviderPolicyDefinitionId, input PolicyDefinition) (result CreateOrUpdateOperationResponse, err error)
- func (c PolicyDefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.Context, id Providers2PolicyDefinitionId, input PolicyDefinition) (result CreateOrUpdateAtManagementGroupOperationResponse, err error)
- func (c PolicyDefinitionsClient) Delete(ctx context.Context, id ProviderPolicyDefinitionId) (result DeleteOperationResponse, err error)
- func (c PolicyDefinitionsClient) DeleteAtManagementGroup(ctx context.Context, id Providers2PolicyDefinitionId) (result DeleteAtManagementGroupOperationResponse, err error)
- func (c PolicyDefinitionsClient) Get(ctx context.Context, id ProviderPolicyDefinitionId) (result GetOperationResponse, err error)
- func (c PolicyDefinitionsClient) GetAtManagementGroup(ctx context.Context, id Providers2PolicyDefinitionId) (result GetAtManagementGroupOperationResponse, err error)
- func (c PolicyDefinitionsClient) GetBuiltIn(ctx context.Context, id PolicyDefinitionId) (result GetBuiltInOperationResponse, err error)
- func (c PolicyDefinitionsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c PolicyDefinitionsClient) ListBuiltIn(ctx context.Context, options ListBuiltInOperationOptions) (result ListBuiltInOperationResponse, err error)
- func (c PolicyDefinitionsClient) ListBuiltInComplete(ctx context.Context, options ListBuiltInOperationOptions) (ListBuiltInCompleteResult, error)
- func (c PolicyDefinitionsClient) ListBuiltInCompleteMatchingPredicate(ctx context.Context, options ListBuiltInOperationOptions, ...) (result ListBuiltInCompleteResult, err error)
- func (c PolicyDefinitionsClient) ListByManagementGroup(ctx context.Context, id commonids.ManagementGroupId, ...) (result ListByManagementGroupOperationResponse, err error)
- func (c PolicyDefinitionsClient) ListByManagementGroupComplete(ctx context.Context, id commonids.ManagementGroupId, ...) (ListByManagementGroupCompleteResult, error)
- func (c PolicyDefinitionsClient) ListByManagementGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ManagementGroupId, ...) (result ListByManagementGroupCompleteResult, err error)
- func (c PolicyDefinitionsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error)
- func (c PolicyDefinitionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- type PolicyType
- type ProviderPolicyDefinitionId
- func NewProviderPolicyDefinitionID(subscriptionId string, policyDefinitionName string) ProviderPolicyDefinitionId
- func ParseProviderPolicyDefinitionID(input string) (*ProviderPolicyDefinitionId, error)
- func ParseProviderPolicyDefinitionIDInsensitively(input string) (*ProviderPolicyDefinitionId, error)
- type Providers2PolicyDefinitionId
- func NewProviders2PolicyDefinitionID(managementGroupName string, policyDefinitionName string) Providers2PolicyDefinitionId
- func ParseProviders2PolicyDefinitionID(input string) (*Providers2PolicyDefinitionId, error)
- func ParseProviders2PolicyDefinitionIDInsensitively(input string) (*Providers2PolicyDefinitionId, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForParameterType ¶
func PossibleValuesForParameterType() []string
func PossibleValuesForPolicyType ¶
func PossibleValuesForPolicyType() []string
func ValidatePolicyDefinitionID ¶
ValidatePolicyDefinitionID checks that 'input' can be parsed as a Policy Definition ID
func ValidateProviderPolicyDefinitionID ¶
func ValidateProviderPolicyDefinitionID(input interface{}, key string) (warnings []string, errors []error)
ValidateProviderPolicyDefinitionID checks that 'input' can be parsed as a Provider Policy Definition ID
func ValidateProviders2PolicyDefinitionID ¶
func ValidateProviders2PolicyDefinitionID(input interface{}, key string) (warnings []string, errors []error)
ValidateProviders2PolicyDefinitionID checks that 'input' can be parsed as a Providers 2 Policy Definition ID
Types ¶
type CreateOrUpdateAtManagementGroupOperationResponse ¶
type CreateOrUpdateAtManagementGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PolicyDefinition }
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PolicyDefinition }
type DeleteOperationResponse ¶
type GetAtManagementGroupOperationResponse ¶
type GetAtManagementGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PolicyDefinition }
type GetBuiltInOperationResponse ¶
type GetBuiltInOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PolicyDefinition }
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PolicyDefinition }
type ListBuiltInCompleteResult ¶
type ListBuiltInCompleteResult struct {
Items []PolicyDefinition
}
type ListBuiltInOperationOptions ¶
func DefaultListBuiltInOperationOptions ¶
func DefaultListBuiltInOperationOptions() ListBuiltInOperationOptions
func (ListBuiltInOperationOptions) ToHeaders ¶
func (o ListBuiltInOperationOptions) ToHeaders() *client.Headers
func (ListBuiltInOperationOptions) ToOData ¶
func (o ListBuiltInOperationOptions) ToOData() *odata.Query
func (ListBuiltInOperationOptions) ToQuery ¶
func (o ListBuiltInOperationOptions) ToQuery() *client.QueryParams
type ListBuiltInOperationResponse ¶
type ListBuiltInOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]PolicyDefinition }
type ListByManagementGroupCompleteResult ¶
type ListByManagementGroupCompleteResult struct {
Items []PolicyDefinition
}
type ListByManagementGroupOperationOptions ¶
func DefaultListByManagementGroupOperationOptions ¶
func DefaultListByManagementGroupOperationOptions() ListByManagementGroupOperationOptions
func (ListByManagementGroupOperationOptions) ToHeaders ¶
func (o ListByManagementGroupOperationOptions) ToHeaders() *client.Headers
func (ListByManagementGroupOperationOptions) ToOData ¶
func (o ListByManagementGroupOperationOptions) ToOData() *odata.Query
func (ListByManagementGroupOperationOptions) ToQuery ¶
func (o ListByManagementGroupOperationOptions) ToQuery() *client.QueryParams
type ListByManagementGroupOperationResponse ¶
type ListByManagementGroupOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]PolicyDefinition }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []PolicyDefinition
}
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]PolicyDefinition }
type ParameterDefinitionsValue ¶
type ParameterDefinitionsValue struct { AllowedValues *[]interface{} `json:"allowedValues,omitempty"` DefaultValue *interface{} `json:"defaultValue,omitempty"` Metadata *ParameterDefinitionsValueMetadata `json:"metadata,omitempty"` Schema *interface{} `json:"schema,omitempty"` Type *ParameterType `json:"type,omitempty"` }
type ParameterType ¶
type ParameterType string
const ( ParameterTypeArray ParameterType = "Array" ParameterTypeBoolean ParameterType = "Boolean" ParameterTypeDateTime ParameterType = "DateTime" ParameterTypeFloat ParameterType = "Float" ParameterTypeInteger ParameterType = "Integer" ParameterTypeObject ParameterType = "Object" ParameterTypeString ParameterType = "String" )
func (*ParameterType) UnmarshalJSON ¶
func (s *ParameterType) UnmarshalJSON(bytes []byte) error
type PolicyDefinition ¶
type PolicyDefinition struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *PolicyDefinitionProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type PolicyDefinitionId ¶
type PolicyDefinitionId struct {
PolicyDefinitionName string
}
PolicyDefinitionId is a struct representing the Resource ID for a Policy Definition
func NewPolicyDefinitionID ¶
func NewPolicyDefinitionID(policyDefinitionName string) PolicyDefinitionId
NewPolicyDefinitionID returns a new PolicyDefinitionId struct
func ParsePolicyDefinitionID ¶
func ParsePolicyDefinitionID(input string) (*PolicyDefinitionId, error)
ParsePolicyDefinitionID parses 'input' into a PolicyDefinitionId
func ParsePolicyDefinitionIDInsensitively ¶
func ParsePolicyDefinitionIDInsensitively(input string) (*PolicyDefinitionId, error)
ParsePolicyDefinitionIDInsensitively parses 'input' case-insensitively into a PolicyDefinitionId note: this method should only be used for API response data and not user input
func (PolicyDefinitionId) ID ¶
func (id PolicyDefinitionId) ID() string
ID returns the formatted Policy Definition ID
func (PolicyDefinitionId) Segments ¶
func (id PolicyDefinitionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Policy Definition ID
func (PolicyDefinitionId) String ¶
func (id PolicyDefinitionId) String() string
String returns a human-readable description of this Policy Definition ID
type PolicyDefinitionOperationPredicate ¶
func (PolicyDefinitionOperationPredicate) Matches ¶
func (p PolicyDefinitionOperationPredicate) Matches(input PolicyDefinition) bool
type PolicyDefinitionProperties ¶
type PolicyDefinitionProperties struct { Description *string `json:"description,omitempty"` DisplayName *string `json:"displayName,omitempty"` Metadata *interface{} `json:"metadata,omitempty"` Mode *string `json:"mode,omitempty"` Parameters *map[string]ParameterDefinitionsValue `json:"parameters,omitempty"` PolicyRule *interface{} `json:"policyRule,omitempty"` PolicyType *PolicyType `json:"policyType,omitempty"` Version *string `json:"version,omitempty"` Versions *[]string `json:"versions,omitempty"` }
type PolicyDefinitionsClient ¶
type PolicyDefinitionsClient struct {
Client *resourcemanager.Client
}
func NewPolicyDefinitionsClientWithBaseURI ¶
func NewPolicyDefinitionsClientWithBaseURI(sdkApi sdkEnv.Api) (*PolicyDefinitionsClient, error)
func (PolicyDefinitionsClient) CreateOrUpdate ¶
func (c PolicyDefinitionsClient) CreateOrUpdate(ctx context.Context, id ProviderPolicyDefinitionId, input PolicyDefinition) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (PolicyDefinitionsClient) CreateOrUpdateAtManagementGroup ¶
func (c PolicyDefinitionsClient) CreateOrUpdateAtManagementGroup(ctx context.Context, id Providers2PolicyDefinitionId, input PolicyDefinition) (result CreateOrUpdateAtManagementGroupOperationResponse, err error)
CreateOrUpdateAtManagementGroup ...
func (PolicyDefinitionsClient) Delete ¶
func (c PolicyDefinitionsClient) Delete(ctx context.Context, id ProviderPolicyDefinitionId) (result DeleteOperationResponse, err error)
Delete ...
func (PolicyDefinitionsClient) DeleteAtManagementGroup ¶
func (c PolicyDefinitionsClient) DeleteAtManagementGroup(ctx context.Context, id Providers2PolicyDefinitionId) (result DeleteAtManagementGroupOperationResponse, err error)
DeleteAtManagementGroup ...
func (PolicyDefinitionsClient) Get ¶
func (c PolicyDefinitionsClient) Get(ctx context.Context, id ProviderPolicyDefinitionId) (result GetOperationResponse, err error)
Get ...
func (PolicyDefinitionsClient) GetAtManagementGroup ¶
func (c PolicyDefinitionsClient) GetAtManagementGroup(ctx context.Context, id Providers2PolicyDefinitionId) (result GetAtManagementGroupOperationResponse, err error)
GetAtManagementGroup ...
func (PolicyDefinitionsClient) GetBuiltIn ¶
func (c PolicyDefinitionsClient) GetBuiltIn(ctx context.Context, id PolicyDefinitionId) (result GetBuiltInOperationResponse, err error)
GetBuiltIn ...
func (PolicyDefinitionsClient) List ¶
func (c PolicyDefinitionsClient) List(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (PolicyDefinitionsClient) ListBuiltIn ¶
func (c PolicyDefinitionsClient) ListBuiltIn(ctx context.Context, options ListBuiltInOperationOptions) (result ListBuiltInOperationResponse, err error)
ListBuiltIn ...
func (PolicyDefinitionsClient) ListBuiltInComplete ¶
func (c PolicyDefinitionsClient) ListBuiltInComplete(ctx context.Context, options ListBuiltInOperationOptions) (ListBuiltInCompleteResult, error)
ListBuiltInComplete retrieves all the results into a single object
func (PolicyDefinitionsClient) ListBuiltInCompleteMatchingPredicate ¶
func (c PolicyDefinitionsClient) ListBuiltInCompleteMatchingPredicate(ctx context.Context, options ListBuiltInOperationOptions, predicate PolicyDefinitionOperationPredicate) (result ListBuiltInCompleteResult, err error)
ListBuiltInCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (PolicyDefinitionsClient) ListByManagementGroup ¶
func (c PolicyDefinitionsClient) ListByManagementGroup(ctx context.Context, id commonids.ManagementGroupId, options ListByManagementGroupOperationOptions) (result ListByManagementGroupOperationResponse, err error)
ListByManagementGroup ...
func (PolicyDefinitionsClient) ListByManagementGroupComplete ¶
func (c PolicyDefinitionsClient) ListByManagementGroupComplete(ctx context.Context, id commonids.ManagementGroupId, options ListByManagementGroupOperationOptions) (ListByManagementGroupCompleteResult, error)
ListByManagementGroupComplete retrieves all the results into a single object
func (PolicyDefinitionsClient) ListByManagementGroupCompleteMatchingPredicate ¶
func (c PolicyDefinitionsClient) ListByManagementGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ManagementGroupId, options ListByManagementGroupOperationOptions, predicate PolicyDefinitionOperationPredicate) (result ListByManagementGroupCompleteResult, err error)
ListByManagementGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (PolicyDefinitionsClient) ListComplete ¶
func (c PolicyDefinitionsClient) ListComplete(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (PolicyDefinitionsClient) ListCompleteMatchingPredicate ¶
func (c PolicyDefinitionsClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, options ListOperationOptions, predicate PolicyDefinitionOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type PolicyType ¶
type PolicyType string
const ( PolicyTypeBuiltIn PolicyType = "BuiltIn" PolicyTypeCustom PolicyType = "Custom" PolicyTypeNotSpecified PolicyType = "NotSpecified" PolicyTypeStatic PolicyType = "Static" )
func (*PolicyType) UnmarshalJSON ¶
func (s *PolicyType) UnmarshalJSON(bytes []byte) error
type ProviderPolicyDefinitionId ¶
ProviderPolicyDefinitionId is a struct representing the Resource ID for a Provider Policy Definition
func NewProviderPolicyDefinitionID ¶
func NewProviderPolicyDefinitionID(subscriptionId string, policyDefinitionName string) ProviderPolicyDefinitionId
NewProviderPolicyDefinitionID returns a new ProviderPolicyDefinitionId struct
func ParseProviderPolicyDefinitionID ¶
func ParseProviderPolicyDefinitionID(input string) (*ProviderPolicyDefinitionId, error)
ParseProviderPolicyDefinitionID parses 'input' into a ProviderPolicyDefinitionId
func ParseProviderPolicyDefinitionIDInsensitively ¶
func ParseProviderPolicyDefinitionIDInsensitively(input string) (*ProviderPolicyDefinitionId, error)
ParseProviderPolicyDefinitionIDInsensitively parses 'input' case-insensitively into a ProviderPolicyDefinitionId note: this method should only be used for API response data and not user input
func (ProviderPolicyDefinitionId) ID ¶
func (id ProviderPolicyDefinitionId) ID() string
ID returns the formatted Provider Policy Definition ID
func (ProviderPolicyDefinitionId) Segments ¶
func (id ProviderPolicyDefinitionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Provider Policy Definition ID
func (ProviderPolicyDefinitionId) String ¶
func (id ProviderPolicyDefinitionId) String() string
String returns a human-readable description of this Provider Policy Definition ID
type Providers2PolicyDefinitionId ¶
Providers2PolicyDefinitionId is a struct representing the Resource ID for a Providers 2 Policy Definition
func NewProviders2PolicyDefinitionID ¶
func NewProviders2PolicyDefinitionID(managementGroupName string, policyDefinitionName string) Providers2PolicyDefinitionId
NewProviders2PolicyDefinitionID returns a new Providers2PolicyDefinitionId struct
func ParseProviders2PolicyDefinitionID ¶
func ParseProviders2PolicyDefinitionID(input string) (*Providers2PolicyDefinitionId, error)
ParseProviders2PolicyDefinitionID parses 'input' into a Providers2PolicyDefinitionId
func ParseProviders2PolicyDefinitionIDInsensitively ¶
func ParseProviders2PolicyDefinitionIDInsensitively(input string) (*Providers2PolicyDefinitionId, error)
ParseProviders2PolicyDefinitionIDInsensitively parses 'input' case-insensitively into a Providers2PolicyDefinitionId note: this method should only be used for API response data and not user input
func (Providers2PolicyDefinitionId) ID ¶
func (id Providers2PolicyDefinitionId) ID() string
ID returns the formatted Providers 2 Policy Definition ID
func (Providers2PolicyDefinitionId) Segments ¶
func (id Providers2PolicyDefinitionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Providers 2 Policy Definition ID
func (Providers2PolicyDefinitionId) String ¶
func (id Providers2PolicyDefinitionId) String() string
String returns a human-readable description of this Providers 2 Policy Definition ID
Source Files ¶
- client.go
- constants.go
- id_policydefinition.go
- id_providerpolicydefinition.go
- id_providers2policydefinition.go
- method_createorupdate.go
- method_createorupdateatmanagementgroup.go
- method_delete.go
- method_deleteatmanagementgroup.go
- method_get.go
- method_getatmanagementgroup.go
- method_getbuiltin.go
- method_list.go
- method_listbuiltin.go
- method_listbymanagementgroup.go
- model_parameterdefinitionsvalue.go
- model_parameterdefinitionsvaluemetadata.go
- model_policydefinition.go
- model_policydefinitionproperties.go
- predicates.go
- version.go