Documentation ¶
Index ¶
- func PossibleValuesForPolicyRestrictionRequireBase() []string
- func ValidatePolicyRestrictionID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationOptions
- type CreateOrUpdateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type GetEntityTagOperationResponse
- type GetOperationResponse
- type PolicyRestrictionClient
- func (c PolicyRestrictionClient) CreateOrUpdate(ctx context.Context, id PolicyRestrictionId, input PolicyRestrictionContract, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c PolicyRestrictionClient) Delete(ctx context.Context, id PolicyRestrictionId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c PolicyRestrictionClient) Get(ctx context.Context, id PolicyRestrictionId) (result GetOperationResponse, err error)
- func (c PolicyRestrictionClient) GetEntityTag(ctx context.Context, id PolicyRestrictionId) (result GetEntityTagOperationResponse, err error)
- func (c PolicyRestrictionClient) Update(ctx context.Context, id PolicyRestrictionId, ...) (result UpdateOperationResponse, err error)
- type PolicyRestrictionContract
- type PolicyRestrictionContractProperties
- type PolicyRestrictionId
- type PolicyRestrictionRequireBase
- type PolicyRestrictionUpdateContract
- type UpdateOperationOptions
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForPolicyRestrictionRequireBase ¶
func PossibleValuesForPolicyRestrictionRequireBase() []string
func ValidatePolicyRestrictionID ¶
ValidatePolicyRestrictionID checks that 'input' can be parsed as a Policy Restriction ID
Types ¶
type CreateOrUpdateOperationOptions ¶
type CreateOrUpdateOperationOptions struct {
IfMatch *string
}
func DefaultCreateOrUpdateOperationOptions ¶
func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions
func (CreateOrUpdateOperationOptions) ToHeaders ¶
func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers
func (CreateOrUpdateOperationOptions) ToOData ¶
func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query
func (CreateOrUpdateOperationOptions) ToQuery ¶
func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PolicyRestrictionContract }
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
IfMatch *string
}
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 *PolicyRestrictionContract }
type PolicyRestrictionClient ¶
type PolicyRestrictionClient struct {
Client *resourcemanager.Client
}
func NewPolicyRestrictionClientWithBaseURI ¶
func NewPolicyRestrictionClientWithBaseURI(sdkApi sdkEnv.Api) (*PolicyRestrictionClient, error)
func (PolicyRestrictionClient) CreateOrUpdate ¶
func (c PolicyRestrictionClient) CreateOrUpdate(ctx context.Context, id PolicyRestrictionId, input PolicyRestrictionContract, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (PolicyRestrictionClient) Delete ¶
func (c PolicyRestrictionClient) Delete(ctx context.Context, id PolicyRestrictionId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (PolicyRestrictionClient) Get ¶
func (c PolicyRestrictionClient) Get(ctx context.Context, id PolicyRestrictionId) (result GetOperationResponse, err error)
Get ...
func (PolicyRestrictionClient) GetEntityTag ¶
func (c PolicyRestrictionClient) GetEntityTag(ctx context.Context, id PolicyRestrictionId) (result GetEntityTagOperationResponse, err error)
GetEntityTag ...
func (PolicyRestrictionClient) Update ¶
func (c PolicyRestrictionClient) Update(ctx context.Context, id PolicyRestrictionId, input PolicyRestrictionUpdateContract, options UpdateOperationOptions) (result UpdateOperationResponse, err error)
Update ...
type PolicyRestrictionContract ¶
type PolicyRestrictionContract struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *PolicyRestrictionContractProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type PolicyRestrictionContractProperties ¶
type PolicyRestrictionContractProperties struct { RequireBase *PolicyRestrictionRequireBase `json:"requireBase,omitempty"` Scope *string `json:"scope,omitempty"` }
type PolicyRestrictionId ¶
type PolicyRestrictionId struct { SubscriptionId string ResourceGroupName string ServiceName string PolicyRestrictionId string }
PolicyRestrictionId is a struct representing the Resource ID for a Policy Restriction
func NewPolicyRestrictionID ¶
func NewPolicyRestrictionID(subscriptionId string, resourceGroupName string, serviceName string, policyRestrictionId string) PolicyRestrictionId
NewPolicyRestrictionID returns a new PolicyRestrictionId struct
func ParsePolicyRestrictionID ¶
func ParsePolicyRestrictionID(input string) (*PolicyRestrictionId, error)
ParsePolicyRestrictionID parses 'input' into a PolicyRestrictionId
func ParsePolicyRestrictionIDInsensitively ¶
func ParsePolicyRestrictionIDInsensitively(input string) (*PolicyRestrictionId, error)
ParsePolicyRestrictionIDInsensitively parses 'input' case-insensitively into a PolicyRestrictionId note: this method should only be used for API response data and not user input
func (*PolicyRestrictionId) FromParseResult ¶
func (id *PolicyRestrictionId) FromParseResult(input resourceids.ParseResult) error
func (PolicyRestrictionId) ID ¶
func (id PolicyRestrictionId) ID() string
ID returns the formatted Policy Restriction ID
func (PolicyRestrictionId) Segments ¶
func (id PolicyRestrictionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Policy Restriction ID
func (PolicyRestrictionId) String ¶
func (id PolicyRestrictionId) String() string
String returns a human-readable description of this Policy Restriction ID
type PolicyRestrictionRequireBase ¶
type PolicyRestrictionRequireBase string
const ( PolicyRestrictionRequireBaseFalse PolicyRestrictionRequireBase = "false" PolicyRestrictionRequireBaseTrue PolicyRestrictionRequireBase = "true" )
func (*PolicyRestrictionRequireBase) UnmarshalJSON ¶
func (s *PolicyRestrictionRequireBase) UnmarshalJSON(bytes []byte) error
type PolicyRestrictionUpdateContract ¶
type PolicyRestrictionUpdateContract struct {
Properties *PolicyRestrictionContractProperties `json:"properties,omitempty"`
}
type UpdateOperationOptions ¶
type UpdateOperationOptions struct {
IfMatch *string
}
func DefaultUpdateOperationOptions ¶
func DefaultUpdateOperationOptions() UpdateOperationOptions
func (UpdateOperationOptions) ToHeaders ¶
func (o UpdateOperationOptions) ToHeaders() *client.Headers
func (UpdateOperationOptions) ToOData ¶
func (o UpdateOperationOptions) ToOData() *odata.Query
func (UpdateOperationOptions) ToQuery ¶
func (o UpdateOperationOptions) ToQuery() *client.QueryParams
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PolicyRestrictionContract }