Documentation ¶
Index ¶
- func PossibleValuesForPolicyContentFormat() []string
- func PossibleValuesForPolicyExportFormat() []string
- 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 ListByServiceOperationResponse
- type PolicyClient
- func (c PolicyClient) CreateOrUpdate(ctx context.Context, id ServiceId, input PolicyContract, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c PolicyClient) Delete(ctx context.Context, id ServiceId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c PolicyClient) Get(ctx context.Context, id ServiceId, options GetOperationOptions) (result GetOperationResponse, err error)
- func (c PolicyClient) GetEntityTag(ctx context.Context, id ServiceId) (result GetEntityTagOperationResponse, err error)
- func (c PolicyClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error)
- type PolicyCollection
- type PolicyContentFormat
- type PolicyContract
- type PolicyContractProperties
- type PolicyExportFormat
- type ServiceId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForPolicyContentFormat ¶
func PossibleValuesForPolicyContentFormat() []string
func PossibleValuesForPolicyExportFormat ¶
func PossibleValuesForPolicyExportFormat() []string
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
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *PolicyContract }
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
IfMatch *string
}
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
type DeleteOperationResponse ¶
type GetOperationOptions ¶
type GetOperationOptions struct {
Format *PolicyExportFormat
}
func DefaultGetOperationOptions ¶
func DefaultGetOperationOptions() GetOperationOptions
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *PolicyContract }
type ListByServiceOperationResponse ¶
type ListByServiceOperationResponse struct { HttpResponse *http.Response Model *PolicyCollection }
type PolicyClient ¶
func NewPolicyClientWithBaseURI ¶
func NewPolicyClientWithBaseURI(endpoint string) PolicyClient
func (PolicyClient) CreateOrUpdate ¶
func (c PolicyClient) CreateOrUpdate(ctx context.Context, id ServiceId, input PolicyContract, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (PolicyClient) Delete ¶
func (c PolicyClient) Delete(ctx context.Context, id ServiceId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (PolicyClient) Get ¶
func (c PolicyClient) Get(ctx context.Context, id ServiceId, options GetOperationOptions) (result GetOperationResponse, err error)
Get ...
func (PolicyClient) GetEntityTag ¶
func (c PolicyClient) GetEntityTag(ctx context.Context, id ServiceId) (result GetEntityTagOperationResponse, err error)
GetEntityTag ...
func (PolicyClient) ListByService ¶
func (c PolicyClient) ListByService(ctx context.Context, id ServiceId) (result ListByServiceOperationResponse, err error)
ListByService ...
type PolicyCollection ¶
type PolicyCollection struct { Count *int64 `json:"count,omitempty"` NextLink *string `json:"nextLink,omitempty"` Value *[]PolicyContract `json:"value,omitempty"` }
type PolicyContentFormat ¶
type PolicyContentFormat string
const ( PolicyContentFormatRawxml PolicyContentFormat = "rawxml" PolicyContentFormatRawxmlNegativelink PolicyContentFormat = "rawxml-link" PolicyContentFormatXml PolicyContentFormat = "xml" PolicyContentFormatXmlNegativelink PolicyContentFormat = "xml-link" )
type PolicyContract ¶
type PolicyContract struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *PolicyContractProperties `json:"properties"` Type *string `json:"type,omitempty"` }
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" )
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 ¶
Click to show internal directories.
Click to hide internal directories.