Documentation ¶
Index ¶
- func PossibleValuesForPolicyFragmentContentFormat() []string
- func ValidatePolicyFragmentID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateServiceID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationOptions
- type CreateOrUpdateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type GetEntityTagOperationResponse
- type GetOperationOptions
- type GetOperationResponse
- type ListByServiceCompleteResult
- type ListByServiceCustomPager
- type ListByServiceOperationOptions
- type ListByServiceOperationResponse
- type ListReferencesCompleteResult
- type ListReferencesCustomPager
- type ListReferencesOperationOptions
- type ListReferencesOperationResponse
- type PolicyFragmentClient
- func (c PolicyFragmentClient) CreateOrUpdate(ctx context.Context, id PolicyFragmentId, input PolicyFragmentContract, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c PolicyFragmentClient) CreateOrUpdateThenPoll(ctx context.Context, id PolicyFragmentId, input PolicyFragmentContract, ...) error
- func (c PolicyFragmentClient) Delete(ctx context.Context, id PolicyFragmentId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c PolicyFragmentClient) Get(ctx context.Context, id PolicyFragmentId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c PolicyFragmentClient) GetEntityTag(ctx context.Context, id PolicyFragmentId) (result GetEntityTagOperationResponse, err error)
- func (c PolicyFragmentClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error)
- func (c PolicyFragmentClient) ListByServiceComplete(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (ListByServiceCompleteResult, error)
- func (c PolicyFragmentClient) ListByServiceCompleteMatchingPredicate(ctx context.Context, id ServiceId, options ListByServiceOperationOptions, ...) (result ListByServiceCompleteResult, err error)
- func (c PolicyFragmentClient) ListReferences(ctx context.Context, id PolicyFragmentId, ...) (result ListReferencesOperationResponse, err error)
- func (c PolicyFragmentClient) ListReferencesComplete(ctx context.Context, id PolicyFragmentId, ...) (ListReferencesCompleteResult, error)
- func (c PolicyFragmentClient) ListReferencesCompleteMatchingPredicate(ctx context.Context, id PolicyFragmentId, ...) (result ListReferencesCompleteResult, err error)
- type PolicyFragmentContentFormat
- type PolicyFragmentContract
- type PolicyFragmentContractOperationPredicate
- type PolicyFragmentContractProperties
- type PolicyFragmentId
- type Resource
- type ResourceOperationPredicate
- type ServiceId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForPolicyFragmentContentFormat ¶
func PossibleValuesForPolicyFragmentContentFormat() []string
func ValidatePolicyFragmentID ¶
ValidatePolicyFragmentID checks that 'input' can be parsed as a Policy Fragment ID
func ValidateServiceID ¶
ValidateServiceID checks that 'input' can be parsed as a Service 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 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 *PolicyFragmentContentFormat
}
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 *PolicyFragmentContract }
type ListByServiceCompleteResult ¶
type ListByServiceCompleteResult struct { LatestHttpResponse *http.Response Items []PolicyFragmentContract }
type ListByServiceCustomPager ¶
func (*ListByServiceCustomPager) NextPageLink ¶
func (p *ListByServiceCustomPager) NextPageLink() *odata.Link
type ListByServiceOperationOptions ¶
func DefaultListByServiceOperationOptions ¶
func DefaultListByServiceOperationOptions() ListByServiceOperationOptions
func (ListByServiceOperationOptions) ToHeaders ¶
func (o ListByServiceOperationOptions) ToHeaders() *client.Headers
func (ListByServiceOperationOptions) ToOData ¶
func (o ListByServiceOperationOptions) ToOData() *odata.Query
func (ListByServiceOperationOptions) ToQuery ¶
func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams
type ListByServiceOperationResponse ¶
type ListByServiceOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]PolicyFragmentContract }
type ListReferencesCustomPager ¶
func (*ListReferencesCustomPager) NextPageLink ¶
func (p *ListReferencesCustomPager) NextPageLink() *odata.Link
type ListReferencesOperationOptions ¶
func DefaultListReferencesOperationOptions ¶
func DefaultListReferencesOperationOptions() ListReferencesOperationOptions
func (ListReferencesOperationOptions) ToHeaders ¶
func (o ListReferencesOperationOptions) ToHeaders() *client.Headers
func (ListReferencesOperationOptions) ToOData ¶
func (o ListReferencesOperationOptions) ToOData() *odata.Query
func (ListReferencesOperationOptions) ToQuery ¶
func (o ListReferencesOperationOptions) ToQuery() *client.QueryParams
type PolicyFragmentClient ¶
type PolicyFragmentClient struct {
Client *resourcemanager.Client
}
func NewPolicyFragmentClientWithBaseURI ¶
func NewPolicyFragmentClientWithBaseURI(sdkApi sdkEnv.Api) (*PolicyFragmentClient, error)
func (PolicyFragmentClient) CreateOrUpdate ¶
func (c PolicyFragmentClient) CreateOrUpdate(ctx context.Context, id PolicyFragmentId, input PolicyFragmentContract, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (PolicyFragmentClient) CreateOrUpdateThenPoll ¶
func (c PolicyFragmentClient) CreateOrUpdateThenPoll(ctx context.Context, id PolicyFragmentId, input PolicyFragmentContract, options CreateOrUpdateOperationOptions) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (PolicyFragmentClient) Delete ¶
func (c PolicyFragmentClient) Delete(ctx context.Context, id PolicyFragmentId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (PolicyFragmentClient) Get ¶
func (c PolicyFragmentClient) Get(ctx context.Context, id PolicyFragmentId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (PolicyFragmentClient) GetEntityTag ¶
func (c PolicyFragmentClient) GetEntityTag(ctx context.Context, id PolicyFragmentId) (result GetEntityTagOperationResponse, err error)
GetEntityTag ...
func (PolicyFragmentClient) ListByService ¶
func (c PolicyFragmentClient) ListByService(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (result ListByServiceOperationResponse, err error)
ListByService ...
func (PolicyFragmentClient) ListByServiceComplete ¶
func (c PolicyFragmentClient) ListByServiceComplete(ctx context.Context, id ServiceId, options ListByServiceOperationOptions) (ListByServiceCompleteResult, error)
ListByServiceComplete retrieves all the results into a single object
func (PolicyFragmentClient) ListByServiceCompleteMatchingPredicate ¶
func (c PolicyFragmentClient) ListByServiceCompleteMatchingPredicate(ctx context.Context, id ServiceId, options ListByServiceOperationOptions, predicate PolicyFragmentContractOperationPredicate) (result ListByServiceCompleteResult, err error)
ListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (PolicyFragmentClient) ListReferences ¶
func (c PolicyFragmentClient) ListReferences(ctx context.Context, id PolicyFragmentId, options ListReferencesOperationOptions) (result ListReferencesOperationResponse, err error)
ListReferences ...
func (PolicyFragmentClient) ListReferencesComplete ¶
func (c PolicyFragmentClient) ListReferencesComplete(ctx context.Context, id PolicyFragmentId, options ListReferencesOperationOptions) (ListReferencesCompleteResult, error)
ListReferencesComplete retrieves all the results into a single object
func (PolicyFragmentClient) ListReferencesCompleteMatchingPredicate ¶
func (c PolicyFragmentClient) ListReferencesCompleteMatchingPredicate(ctx context.Context, id PolicyFragmentId, options ListReferencesOperationOptions, predicate ResourceOperationPredicate) (result ListReferencesCompleteResult, err error)
ListReferencesCompleteMatchingPredicate retrieves all the results and then applies the predicate
type PolicyFragmentContentFormat ¶
type PolicyFragmentContentFormat string
const ( PolicyFragmentContentFormatRawxml PolicyFragmentContentFormat = "rawxml" PolicyFragmentContentFormatXml PolicyFragmentContentFormat = "xml" )
func (*PolicyFragmentContentFormat) UnmarshalJSON ¶
func (s *PolicyFragmentContentFormat) UnmarshalJSON(bytes []byte) error
type PolicyFragmentContract ¶
type PolicyFragmentContract struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *PolicyFragmentContractProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type PolicyFragmentContractOperationPredicate ¶
func (PolicyFragmentContractOperationPredicate) Matches ¶
func (p PolicyFragmentContractOperationPredicate) Matches(input PolicyFragmentContract) bool
type PolicyFragmentContractProperties ¶
type PolicyFragmentContractProperties struct { Description *string `json:"description,omitempty"` Format *PolicyFragmentContentFormat `json:"format,omitempty"` Value string `json:"value"` }
type PolicyFragmentId ¶
type PolicyFragmentId struct { SubscriptionId string ResourceGroupName string ServiceName string PolicyFragmentName string }
PolicyFragmentId is a struct representing the Resource ID for a Policy Fragment
func NewPolicyFragmentID ¶
func NewPolicyFragmentID(subscriptionId string, resourceGroupName string, serviceName string, policyFragmentName string) PolicyFragmentId
NewPolicyFragmentID returns a new PolicyFragmentId struct
func ParsePolicyFragmentID ¶
func ParsePolicyFragmentID(input string) (*PolicyFragmentId, error)
ParsePolicyFragmentID parses 'input' into a PolicyFragmentId
func ParsePolicyFragmentIDInsensitively ¶
func ParsePolicyFragmentIDInsensitively(input string) (*PolicyFragmentId, error)
ParsePolicyFragmentIDInsensitively parses 'input' case-insensitively into a PolicyFragmentId note: this method should only be used for API response data and not user input
func (*PolicyFragmentId) FromParseResult ¶
func (id *PolicyFragmentId) FromParseResult(input resourceids.ParseResult) error
func (PolicyFragmentId) ID ¶
func (id PolicyFragmentId) ID() string
ID returns the formatted Policy Fragment ID
func (PolicyFragmentId) Segments ¶
func (id PolicyFragmentId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Policy Fragment ID
func (PolicyFragmentId) String ¶
func (id PolicyFragmentId) String() string
String returns a human-readable description of this Policy Fragment ID
type ResourceOperationPredicate ¶
func (ResourceOperationPredicate) Matches ¶
func (p ResourceOperationPredicate) Matches(input Resource) bool
type ServiceId ¶
ServiceId is a struct representing the Resource ID for a Service
func NewServiceID ¶
NewServiceID returns a new ServiceId struct
func ParseServiceID ¶
ParseServiceID parses 'input' into a ServiceId
func ParseServiceIDInsensitively ¶
ParseServiceIDInsensitively parses 'input' case-insensitively into a ServiceId note: this method should only be used for API response data and not user input
func (*ServiceId) FromParseResult ¶
func (id *ServiceId) FromParseResult(input resourceids.ParseResult) error
func (ServiceId) Segments ¶
func (id ServiceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Service ID
Source Files ¶
- client.go
- constants.go
- id_policyfragment.go
- id_service.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_getentitytag.go
- method_listbyservice.go
- method_listreferences.go
- model_policyfragmentcontract.go
- model_policyfragmentcontractproperties.go
- model_resource.go
- predicates.go
- version.go