Documentation ¶
Index ¶
- func PossibleValuesForPolicyContentFormat() []string
- func PossibleValuesForPolicyExportFormat() []string
- func ValidateOperationID(input interface{}, key string) (warnings []string, errors []error)
- type ApiOperationPolicyClient
- func (c ApiOperationPolicyClient) CreateOrUpdate(ctx context.Context, id OperationId, input PolicyContract, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c ApiOperationPolicyClient) Delete(ctx context.Context, id OperationId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c ApiOperationPolicyClient) Get(ctx context.Context, id OperationId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c ApiOperationPolicyClient) GetEntityTag(ctx context.Context, id OperationId) (result GetEntityTagOperationResponse, err error)
- func (c ApiOperationPolicyClient) ListByOperation(ctx context.Context, id OperationId) (result ListByOperationOperationResponse, err error)
- func (c ApiOperationPolicyClient) ListByOperationComplete(ctx context.Context, id OperationId) (ListByOperationCompleteResult, error)
- func (c ApiOperationPolicyClient) ListByOperationCompleteMatchingPredicate(ctx context.Context, id OperationId, ...) (result ListByOperationCompleteResult, err error)
- type CreateOrUpdateOperationOptions
- type CreateOrUpdateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type GetEntityTagOperationResponse
- type GetOperationOptions
- type GetOperationResponse
- type ListByOperationCompleteResult
- type ListByOperationCustomPager
- type ListByOperationOperationResponse
- type OperationId
- type PolicyContentFormat
- type PolicyContract
- type PolicyContractOperationPredicate
- type PolicyContractProperties
- type PolicyExportFormat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForPolicyContentFormat ¶
func PossibleValuesForPolicyContentFormat() []string
func PossibleValuesForPolicyExportFormat ¶
func PossibleValuesForPolicyExportFormat() []string
func ValidateOperationID ¶
ValidateOperationID checks that 'input' can be parsed as a Operation ID
Types ¶
type ApiOperationPolicyClient ¶
type ApiOperationPolicyClient struct {
Client *resourcemanager.Client
}
func NewApiOperationPolicyClientWithBaseURI ¶
func NewApiOperationPolicyClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiOperationPolicyClient, error)
func (ApiOperationPolicyClient) CreateOrUpdate ¶
func (c ApiOperationPolicyClient) CreateOrUpdate(ctx context.Context, id OperationId, input PolicyContract, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ApiOperationPolicyClient) Delete ¶
func (c ApiOperationPolicyClient) Delete(ctx context.Context, id OperationId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (ApiOperationPolicyClient) Get ¶
func (c ApiOperationPolicyClient) Get(ctx context.Context, id OperationId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (ApiOperationPolicyClient) GetEntityTag ¶
func (c ApiOperationPolicyClient) GetEntityTag(ctx context.Context, id OperationId) (result GetEntityTagOperationResponse, err error)
GetEntityTag ...
func (ApiOperationPolicyClient) ListByOperation ¶
func (c ApiOperationPolicyClient) ListByOperation(ctx context.Context, id OperationId) (result ListByOperationOperationResponse, err error)
ListByOperation ...
func (ApiOperationPolicyClient) ListByOperationComplete ¶ added in v0.20240226.1173038
func (c ApiOperationPolicyClient) ListByOperationComplete(ctx context.Context, id OperationId) (ListByOperationCompleteResult, error)
ListByOperationComplete retrieves all the results into a single object
func (ApiOperationPolicyClient) ListByOperationCompleteMatchingPredicate ¶ added in v0.20240226.1173038
func (c ApiOperationPolicyClient) ListByOperationCompleteMatchingPredicate(ctx context.Context, id OperationId, predicate PolicyContractOperationPredicate) (result ListByOperationCompleteResult, err error)
ListByOperationCompleteMatchingPredicate retrieves all the results and then applies the predicate
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 *PolicyContract }
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 GetOperationOptions ¶
type GetOperationOptions struct {
Format *PolicyExportFormat
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PolicyContract }
type ListByOperationCompleteResult ¶ added in v0.20240226.1173038
type ListByOperationCompleteResult struct { LatestHttpResponse *http.Response Items []PolicyContract }
type ListByOperationCustomPager ¶ added in v0.20240628.1153531
func (*ListByOperationCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByOperationCustomPager) NextPageLink() *odata.Link
type ListByOperationOperationResponse ¶
type ListByOperationOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]PolicyContract }
type OperationId ¶
type OperationId struct { SubscriptionId string ResourceGroupName string ServiceName string ApiId string OperationId string }
OperationId is a struct representing the Resource ID for a Operation
func NewOperationID ¶
func NewOperationID(subscriptionId string, resourceGroupName string, serviceName string, apiId string, operationId string) OperationId
NewOperationID returns a new OperationId struct
func ParseOperationID ¶
func ParseOperationID(input string) (*OperationId, error)
ParseOperationID parses 'input' into a OperationId
func ParseOperationIDInsensitively ¶
func ParseOperationIDInsensitively(input string) (*OperationId, error)
ParseOperationIDInsensitively parses 'input' case-insensitively into a OperationId note: this method should only be used for API response data and not user input
func (*OperationId) FromParseResult ¶
func (id *OperationId) FromParseResult(input resourceids.ParseResult) error
func (OperationId) Segments ¶
func (id OperationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Operation ID
func (OperationId) String ¶
func (id OperationId) String() string
String returns a human-readable description of this Operation ID
type PolicyContentFormat ¶
type PolicyContentFormat string
const ( PolicyContentFormatRawxml PolicyContentFormat = "rawxml" PolicyContentFormatRawxmlNegativelink PolicyContentFormat = "rawxml-link" PolicyContentFormatXml PolicyContentFormat = "xml" PolicyContentFormatXmlNegativelink PolicyContentFormat = "xml-link" )
func (*PolicyContentFormat) UnmarshalJSON ¶
func (s *PolicyContentFormat) UnmarshalJSON(bytes []byte) error
type PolicyContract ¶
type PolicyContract struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *PolicyContractProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type PolicyContractOperationPredicate ¶ added in v0.20240226.1173038
func (PolicyContractOperationPredicate) Matches ¶ added in v0.20240226.1173038
func (p PolicyContractOperationPredicate) Matches(input PolicyContract) bool
type PolicyContractProperties ¶
type PolicyContractProperties struct { Format *PolicyContentFormat `json:"format,omitempty"` Value string `json:"value"` }
type PolicyExportFormat ¶
type PolicyExportFormat string
const ( PolicyExportFormatRawxml PolicyExportFormat = "rawxml" PolicyExportFormatXml PolicyExportFormat = "xml" )
func (*PolicyExportFormat) UnmarshalJSON ¶
func (s *PolicyExportFormat) UnmarshalJSON(bytes []byte) error