Documentation ¶
Index ¶
- func ValidateApiID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateSchemaID(input interface{}, key string) (warnings []string, errors []error)
- type ApiId
- type ApiSchemaClient
- func (c ApiSchemaClient) CreateOrUpdate(ctx context.Context, id SchemaId, input SchemaContract, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c ApiSchemaClient) CreateOrUpdateThenPoll(ctx context.Context, id SchemaId, input SchemaContract, ...) error
- func (c ApiSchemaClient) Delete(ctx context.Context, id SchemaId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c ApiSchemaClient) Get(ctx context.Context, id SchemaId) (result GetOperationResponse, err error)
- func (c ApiSchemaClient) GetEntityTag(ctx context.Context, id SchemaId) (result GetEntityTagOperationResponse, err error)
- func (c ApiSchemaClient) ListByApi(ctx context.Context, id ApiId, options ListByApiOperationOptions) (resp ListByApiOperationResponse, err error)
- func (c ApiSchemaClient) ListByApiComplete(ctx context.Context, id ApiId, options ListByApiOperationOptions) (ListByApiCompleteResult, error)
- func (c ApiSchemaClient) ListByApiCompleteMatchingPredicate(ctx context.Context, id ApiId, options ListByApiOperationOptions, ...) (resp ListByApiCompleteResult, err error)
- type CreateOrUpdateOperationOptions
- type CreateOrUpdateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type GetEntityTagOperationResponse
- type GetOperationResponse
- type ListByApiCompleteResult
- type ListByApiOperationOptions
- type ListByApiOperationResponse
- type SchemaContract
- type SchemaContractOperationPredicate
- type SchemaContractProperties
- type SchemaDocumentProperties
- type SchemaId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateApiID ¶
ValidateApiID checks that 'input' can be parsed as a Api ID
func ValidateSchemaID ¶
ValidateSchemaID checks that 'input' can be parsed as a Schema ID
Types ¶
type ApiId ¶
type ApiId struct { SubscriptionId string ResourceGroupName string ServiceName string ApiId string }
ApiId is a struct representing the Resource ID for a Api
func NewApiID ¶
func NewApiID(subscriptionId string, resourceGroupName string, serviceName string, apiId string) ApiId
NewApiID returns a new ApiId struct
func ParseApiID ¶
ParseApiID parses 'input' into a ApiId
func ParseApiIDInsensitively ¶
ParseApiIDInsensitively parses 'input' case-insensitively into a ApiId note: this method should only be used for API response data and not user input
func (ApiId) Segments ¶
func (id ApiId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Api ID
type ApiSchemaClient ¶
func NewApiSchemaClientWithBaseURI ¶
func NewApiSchemaClientWithBaseURI(endpoint string) ApiSchemaClient
func (ApiSchemaClient) CreateOrUpdate ¶
func (c ApiSchemaClient) CreateOrUpdate(ctx context.Context, id SchemaId, input SchemaContract, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ApiSchemaClient) CreateOrUpdateThenPoll ¶
func (c ApiSchemaClient) CreateOrUpdateThenPoll(ctx context.Context, id SchemaId, input SchemaContract, options CreateOrUpdateOperationOptions) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (ApiSchemaClient) Delete ¶
func (c ApiSchemaClient) Delete(ctx context.Context, id SchemaId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (ApiSchemaClient) Get ¶
func (c ApiSchemaClient) Get(ctx context.Context, id SchemaId) (result GetOperationResponse, err error)
Get ...
func (ApiSchemaClient) GetEntityTag ¶
func (c ApiSchemaClient) GetEntityTag(ctx context.Context, id SchemaId) (result GetEntityTagOperationResponse, err error)
GetEntityTag ...
func (ApiSchemaClient) ListByApi ¶
func (c ApiSchemaClient) ListByApi(ctx context.Context, id ApiId, options ListByApiOperationOptions) (resp ListByApiOperationResponse, err error)
ListByApi ...
func (ApiSchemaClient) ListByApiComplete ¶
func (c ApiSchemaClient) ListByApiComplete(ctx context.Context, id ApiId, options ListByApiOperationOptions) (ListByApiCompleteResult, error)
ListByApiComplete retrieves all of the results into a single object
func (ApiSchemaClient) ListByApiCompleteMatchingPredicate ¶
func (c ApiSchemaClient) ListByApiCompleteMatchingPredicate(ctx context.Context, id ApiId, options ListByApiOperationOptions, predicate SchemaContractOperationPredicate) (resp ListByApiCompleteResult, err error)
ListByApiCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type CreateOrUpdateOperationOptions ¶
type CreateOrUpdateOperationOptions struct {
IfMatch *string
}
func DefaultCreateOrUpdateOperationOptions ¶
func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DeleteOperationOptions ¶
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *SchemaContract }
type ListByApiCompleteResult ¶
type ListByApiCompleteResult struct {
Items []SchemaContract
}
type ListByApiOperationOptions ¶
func DefaultListByApiOperationOptions ¶
func DefaultListByApiOperationOptions() ListByApiOperationOptions
type ListByApiOperationResponse ¶
type ListByApiOperationResponse struct { HttpResponse *http.Response Model *[]SchemaContract // contains filtered or unexported fields }
func (ListByApiOperationResponse) HasMore ¶
func (r ListByApiOperationResponse) HasMore() bool
func (ListByApiOperationResponse) LoadMore ¶
func (r ListByApiOperationResponse) LoadMore(ctx context.Context) (resp ListByApiOperationResponse, err error)
type SchemaContract ¶
type SchemaContract struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SchemaContractProperties `json:"properties"` Type *string `json:"type,omitempty"` }
type SchemaContractOperationPredicate ¶
func (SchemaContractOperationPredicate) Matches ¶
func (p SchemaContractOperationPredicate) Matches(input SchemaContract) bool
type SchemaContractProperties ¶
type SchemaContractProperties struct { ContentType string `json:"contentType"` Document *SchemaDocumentProperties `json:"document"` }
type SchemaDocumentProperties ¶
type SchemaDocumentProperties struct { Components *interface{} `json:"components,omitempty"` Definitions *interface{} `json:"definitions,omitempty"` Value *string `json:"value,omitempty"` }
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) Segments ¶
func (id SchemaId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Schema ID