Documentation ¶
Index ¶
- func PossibleValuesForSchemaType() []string
- func ValidateSchemaID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateServiceID(input interface{}, key string) (warnings []string, errors []error)
- type GlobalSchemaContract
- type GlobalSchemaContractOperationPredicate
- type GlobalSchemaContractProperties
- type GlobalSchemaCreateOrUpdateOperationOptions
- type GlobalSchemaCreateOrUpdateOperationResponse
- type GlobalSchemaDeleteOperationOptions
- type GlobalSchemaDeleteOperationResponse
- type GlobalSchemaGetEntityTagOperationResponse
- type GlobalSchemaGetOperationResponse
- type GlobalSchemaListByServiceCompleteResult
- type GlobalSchemaListByServiceOperationOptions
- type GlobalSchemaListByServiceOperationResponse
- type SchemaClient
- func (c SchemaClient) GlobalSchemaCreateOrUpdate(ctx context.Context, id SchemaId, input GlobalSchemaContract, ...) (result GlobalSchemaCreateOrUpdateOperationResponse, err error)
- func (c SchemaClient) GlobalSchemaCreateOrUpdateThenPoll(ctx context.Context, id SchemaId, input GlobalSchemaContract, ...) error
- func (c SchemaClient) GlobalSchemaDelete(ctx context.Context, id SchemaId, options GlobalSchemaDeleteOperationOptions) (result GlobalSchemaDeleteOperationResponse, err error)
- func (c SchemaClient) GlobalSchemaGet(ctx context.Context, id SchemaId) (result GlobalSchemaGetOperationResponse, err error)
- func (c SchemaClient) GlobalSchemaGetEntityTag(ctx context.Context, id SchemaId) (result GlobalSchemaGetEntityTagOperationResponse, err error)
- func (c SchemaClient) GlobalSchemaListByService(ctx context.Context, id ServiceId, ...) (result GlobalSchemaListByServiceOperationResponse, err error)
- func (c SchemaClient) GlobalSchemaListByServiceComplete(ctx context.Context, id ServiceId, ...) (GlobalSchemaListByServiceCompleteResult, error)
- func (c SchemaClient) GlobalSchemaListByServiceCompleteMatchingPredicate(ctx context.Context, id ServiceId, ...) (result GlobalSchemaListByServiceCompleteResult, err error)
- type SchemaId
- type SchemaType
- type ServiceId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForSchemaType ¶
func PossibleValuesForSchemaType() []string
func ValidateSchemaID ¶
ValidateSchemaID checks that 'input' can be parsed as a Schema ID
func ValidateServiceID ¶
ValidateServiceID checks that 'input' can be parsed as a Service ID
Types ¶
type GlobalSchemaContract ¶
type GlobalSchemaContract struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *GlobalSchemaContractProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type GlobalSchemaContractOperationPredicate ¶
func (GlobalSchemaContractOperationPredicate) Matches ¶
func (p GlobalSchemaContractOperationPredicate) Matches(input GlobalSchemaContract) bool
type GlobalSchemaContractProperties ¶
type GlobalSchemaContractProperties struct { Description *string `json:"description,omitempty"` Document *interface{} `json:"document,omitempty"` SchemaType SchemaType `json:"schemaType"` Value *interface{} `json:"value,omitempty"` }
type GlobalSchemaCreateOrUpdateOperationOptions ¶
type GlobalSchemaCreateOrUpdateOperationOptions struct {
IfMatch *string
}
func DefaultGlobalSchemaCreateOrUpdateOperationOptions ¶
func DefaultGlobalSchemaCreateOrUpdateOperationOptions() GlobalSchemaCreateOrUpdateOperationOptions
func (GlobalSchemaCreateOrUpdateOperationOptions) ToHeaders ¶
func (o GlobalSchemaCreateOrUpdateOperationOptions) ToHeaders() *client.Headers
func (GlobalSchemaCreateOrUpdateOperationOptions) ToOData ¶
func (o GlobalSchemaCreateOrUpdateOperationOptions) ToOData() *odata.Query
func (GlobalSchemaCreateOrUpdateOperationOptions) ToQuery ¶
func (o GlobalSchemaCreateOrUpdateOperationOptions) ToQuery() *client.QueryParams
type GlobalSchemaDeleteOperationOptions ¶
type GlobalSchemaDeleteOperationOptions struct {
IfMatch *string
}
func DefaultGlobalSchemaDeleteOperationOptions ¶
func DefaultGlobalSchemaDeleteOperationOptions() GlobalSchemaDeleteOperationOptions
func (GlobalSchemaDeleteOperationOptions) ToHeaders ¶
func (o GlobalSchemaDeleteOperationOptions) ToHeaders() *client.Headers
func (GlobalSchemaDeleteOperationOptions) ToOData ¶
func (o GlobalSchemaDeleteOperationOptions) ToOData() *odata.Query
func (GlobalSchemaDeleteOperationOptions) ToQuery ¶
func (o GlobalSchemaDeleteOperationOptions) ToQuery() *client.QueryParams
type GlobalSchemaGetOperationResponse ¶
type GlobalSchemaGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *GlobalSchemaContract }
type GlobalSchemaListByServiceCompleteResult ¶
type GlobalSchemaListByServiceCompleteResult struct { LatestHttpResponse *http.Response Items []GlobalSchemaContract }
type GlobalSchemaListByServiceOperationOptions ¶
func DefaultGlobalSchemaListByServiceOperationOptions ¶
func DefaultGlobalSchemaListByServiceOperationOptions() GlobalSchemaListByServiceOperationOptions
func (GlobalSchemaListByServiceOperationOptions) ToHeaders ¶
func (o GlobalSchemaListByServiceOperationOptions) ToHeaders() *client.Headers
func (GlobalSchemaListByServiceOperationOptions) ToOData ¶
func (o GlobalSchemaListByServiceOperationOptions) ToOData() *odata.Query
func (GlobalSchemaListByServiceOperationOptions) ToQuery ¶
func (o GlobalSchemaListByServiceOperationOptions) ToQuery() *client.QueryParams
type GlobalSchemaListByServiceOperationResponse ¶
type GlobalSchemaListByServiceOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]GlobalSchemaContract }
type SchemaClient ¶
type SchemaClient struct {
Client *resourcemanager.Client
}
func NewSchemaClientWithBaseURI ¶
func NewSchemaClientWithBaseURI(sdkApi sdkEnv.Api) (*SchemaClient, error)
func (SchemaClient) GlobalSchemaCreateOrUpdate ¶
func (c SchemaClient) GlobalSchemaCreateOrUpdate(ctx context.Context, id SchemaId, input GlobalSchemaContract, options GlobalSchemaCreateOrUpdateOperationOptions) (result GlobalSchemaCreateOrUpdateOperationResponse, err error)
GlobalSchemaCreateOrUpdate ...
func (SchemaClient) GlobalSchemaCreateOrUpdateThenPoll ¶
func (c SchemaClient) GlobalSchemaCreateOrUpdateThenPoll(ctx context.Context, id SchemaId, input GlobalSchemaContract, options GlobalSchemaCreateOrUpdateOperationOptions) error
GlobalSchemaCreateOrUpdateThenPoll performs GlobalSchemaCreateOrUpdate then polls until it's completed
func (SchemaClient) GlobalSchemaDelete ¶
func (c SchemaClient) GlobalSchemaDelete(ctx context.Context, id SchemaId, options GlobalSchemaDeleteOperationOptions) (result GlobalSchemaDeleteOperationResponse, err error)
GlobalSchemaDelete ...
func (SchemaClient) GlobalSchemaGet ¶
func (c SchemaClient) GlobalSchemaGet(ctx context.Context, id SchemaId) (result GlobalSchemaGetOperationResponse, err error)
GlobalSchemaGet ...
func (SchemaClient) GlobalSchemaGetEntityTag ¶
func (c SchemaClient) GlobalSchemaGetEntityTag(ctx context.Context, id SchemaId) (result GlobalSchemaGetEntityTagOperationResponse, err error)
GlobalSchemaGetEntityTag ...
func (SchemaClient) GlobalSchemaListByService ¶
func (c SchemaClient) GlobalSchemaListByService(ctx context.Context, id ServiceId, options GlobalSchemaListByServiceOperationOptions) (result GlobalSchemaListByServiceOperationResponse, err error)
GlobalSchemaListByService ...
func (SchemaClient) GlobalSchemaListByServiceComplete ¶
func (c SchemaClient) GlobalSchemaListByServiceComplete(ctx context.Context, id ServiceId, options GlobalSchemaListByServiceOperationOptions) (GlobalSchemaListByServiceCompleteResult, error)
GlobalSchemaListByServiceComplete retrieves all the results into a single object
func (SchemaClient) GlobalSchemaListByServiceCompleteMatchingPredicate ¶
func (c SchemaClient) GlobalSchemaListByServiceCompleteMatchingPredicate(ctx context.Context, id ServiceId, options GlobalSchemaListByServiceOperationOptions, predicate GlobalSchemaContractOperationPredicate) (result GlobalSchemaListByServiceCompleteResult, err error)
GlobalSchemaListByServiceCompleteMatchingPredicate retrieves all the results and then applies the predicate
type SchemaId ¶
type SchemaId struct { SubscriptionId string ResourceGroupName string ServiceName string SchemaId string }
SchemaId is a struct representing the Resource ID for a Schema
func NewSchemaID ¶
func NewSchemaID(subscriptionId string, resourceGroupName string, serviceName string, schemaId string) SchemaId
NewSchemaID returns a new SchemaId struct
func ParseSchemaID ¶
ParseSchemaID parses 'input' into a SchemaId
func ParseSchemaIDInsensitively ¶
ParseSchemaIDInsensitively parses 'input' case-insensitively into a SchemaId note: this method should only be used for API response data and not user input
func (*SchemaId) FromParseResult ¶
func (id *SchemaId) FromParseResult(input resourceids.ParseResult) error
func (SchemaId) Segments ¶
func (id SchemaId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Schema ID
type SchemaType ¶
type SchemaType string
const ( SchemaTypeJson SchemaType = "json" SchemaTypeXml SchemaType = "xml" )
func (*SchemaType) UnmarshalJSON ¶
func (s *SchemaType) UnmarshalJSON(bytes []byte) error
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_schema.go
- id_service.go
- method_globalschemacreateorupdate.go
- method_globalschemadelete.go
- method_globalschemaget.go
- method_globalschemagetentitytag.go
- method_globalschemalistbyservice.go
- model_globalschemacontract.go
- model_globalschemacontractproperties.go
- predicates.go
- version.go