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 ListByServiceOperationOptions
- type ListByServiceOperationResponse
- 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) ListReferences(ctx context.Context, id PolicyFragmentId, ...) (result ListReferencesOperationResponse, err error)
- type PolicyFragmentCollection
- type PolicyFragmentContentFormat
- type PolicyFragmentContract
- type PolicyFragmentContractProperties
- type PolicyFragmentId
- type Resource
- type ResourceCollection
- 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 ¶ added in v0.20230801.1071415
func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers
func (CreateOrUpdateOperationOptions) ToOData ¶ added in v0.20230801.1071415
func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query
func (CreateOrUpdateOperationOptions) ToQuery ¶ added in v0.20230801.1071415
func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
IfMatch *string
}
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
func (DeleteOperationOptions) ToHeaders ¶ added in v0.20230801.1071415
func (o DeleteOperationOptions) ToHeaders() *client.Headers
func (DeleteOperationOptions) ToOData ¶ added in v0.20230801.1071415
func (o DeleteOperationOptions) ToOData() *odata.Query
func (DeleteOperationOptions) ToQuery ¶ added in v0.20230801.1071415
func (o DeleteOperationOptions) ToQuery() *client.QueryParams
type DeleteOperationResponse ¶
type GetOperationOptions ¶
type GetOperationOptions struct {
Format *PolicyFragmentContentFormat
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
func (GetOperationOptions) ToHeaders ¶ added in v0.20230801.1071415
func (o GetOperationOptions) ToHeaders() *client.Headers
func (GetOperationOptions) ToOData ¶ added in v0.20230801.1071415
func (o GetOperationOptions) ToOData() *odata.Query
func (GetOperationOptions) ToQuery ¶ added in v0.20230801.1071415
func (o GetOperationOptions) ToQuery() *client.QueryParams
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PolicyFragmentContract }
type ListByServiceOperationOptions ¶
func DefaultListByServiceOperationOptions ¶
func DefaultListByServiceOperationOptions() ListByServiceOperationOptions
func (ListByServiceOperationOptions) ToHeaders ¶ added in v0.20230801.1071415
func (o ListByServiceOperationOptions) ToHeaders() *client.Headers
func (ListByServiceOperationOptions) ToOData ¶ added in v0.20230801.1071415
func (o ListByServiceOperationOptions) ToOData() *odata.Query
func (ListByServiceOperationOptions) ToQuery ¶ added in v0.20230801.1071415
func (o ListByServiceOperationOptions) ToQuery() *client.QueryParams
type ListByServiceOperationResponse ¶
type ListByServiceOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PolicyFragmentCollection }
type ListReferencesOperationOptions ¶
func DefaultListReferencesOperationOptions ¶
func DefaultListReferencesOperationOptions() ListReferencesOperationOptions
func (ListReferencesOperationOptions) ToHeaders ¶ added in v0.20230801.1071415
func (o ListReferencesOperationOptions) ToHeaders() *client.Headers
func (ListReferencesOperationOptions) ToOData ¶ added in v0.20230801.1071415
func (o ListReferencesOperationOptions) ToOData() *odata.Query
func (ListReferencesOperationOptions) ToQuery ¶ added in v0.20230801.1071415
func (o ListReferencesOperationOptions) ToQuery() *client.QueryParams
type ListReferencesOperationResponse ¶
type ListReferencesOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ResourceCollection }
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) ListReferences ¶
func (c PolicyFragmentClient) ListReferences(ctx context.Context, id PolicyFragmentId, options ListReferencesOperationOptions) (result ListReferencesOperationResponse, err error)
ListReferences ...
type PolicyFragmentCollection ¶
type PolicyFragmentCollection struct { Count *int64 `json:"count,omitempty"` NextLink *string `json:"nextLink,omitempty"` Value *[]PolicyFragmentContract `json:"value,omitempty"` }
type PolicyFragmentContentFormat ¶
type PolicyFragmentContentFormat string
const ( PolicyFragmentContentFormatRawxml PolicyFragmentContentFormat = "rawxml" PolicyFragmentContentFormatXml PolicyFragmentContentFormat = "xml" )
func (*PolicyFragmentContentFormat) UnmarshalJSON ¶ added in v0.20230801.1071415
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 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) 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 ResourceCollection ¶
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) 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_policyfragmentcollection.go
- model_policyfragmentcontract.go
- model_policyfragmentcontractproperties.go
- model_resource.go
- model_resourcecollection.go
- version.go