Documentation ¶
Index ¶
- func ValidateApiID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateApiSchemaID(input interface{}, key string) (warnings []string, errors []error)
- type ApiId
- type ApiSchemaClient
- func (c ApiSchemaClient) CreateOrUpdate(ctx context.Context, id ApiSchemaId, input SchemaContract, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c ApiSchemaClient) CreateOrUpdateThenPoll(ctx context.Context, id ApiSchemaId, input SchemaContract, ...) error
- func (c ApiSchemaClient) Delete(ctx context.Context, id ApiSchemaId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c ApiSchemaClient) Get(ctx context.Context, id ApiSchemaId) (result GetOperationResponse, err error)
- func (c ApiSchemaClient) GetEntityTag(ctx context.Context, id ApiSchemaId) (result GetEntityTagOperationResponse, err error)
- func (c ApiSchemaClient) ListByApi(ctx context.Context, id ApiId, options ListByApiOperationOptions) (result 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, ...) (result ListByApiCompleteResult, err error)
- type ApiSchemaId
- type CreateOrUpdateOperationOptions
- type CreateOrUpdateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type GetEntityTagOperationResponse
- type GetOperationResponse
- type ListByApiCompleteResult
- type ListByApiCustomPager
- type ListByApiOperationOptions
- type ListByApiOperationResponse
- type SchemaContract
- type SchemaContractOperationPredicate
- type SchemaContractProperties
- type SchemaDocumentProperties
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 ValidateApiSchemaID ¶
ValidateApiSchemaID checks that 'input' can be parsed as a Api 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) FromParseResult ¶
func (id *ApiId) FromParseResult(input resourceids.ParseResult) error
func (ApiId) Segments ¶
func (id ApiId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Api ID
type ApiSchemaClient ¶
type ApiSchemaClient struct {
Client *resourcemanager.Client
}
func NewApiSchemaClientWithBaseURI ¶
func NewApiSchemaClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiSchemaClient, error)
func (ApiSchemaClient) CreateOrUpdate ¶
func (c ApiSchemaClient) CreateOrUpdate(ctx context.Context, id ApiSchemaId, input SchemaContract, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ApiSchemaClient) CreateOrUpdateThenPoll ¶
func (c ApiSchemaClient) CreateOrUpdateThenPoll(ctx context.Context, id ApiSchemaId, 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 ApiSchemaId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (ApiSchemaClient) Get ¶
func (c ApiSchemaClient) Get(ctx context.Context, id ApiSchemaId) (result GetOperationResponse, err error)
Get ...
func (ApiSchemaClient) GetEntityTag ¶
func (c ApiSchemaClient) GetEntityTag(ctx context.Context, id ApiSchemaId) (result GetEntityTagOperationResponse, err error)
GetEntityTag ...
func (ApiSchemaClient) ListByApi ¶
func (c ApiSchemaClient) ListByApi(ctx context.Context, id ApiId, options ListByApiOperationOptions) (result ListByApiOperationResponse, err error)
ListByApi ...
func (ApiSchemaClient) ListByApiComplete ¶
func (c ApiSchemaClient) ListByApiComplete(ctx context.Context, id ApiId, options ListByApiOperationOptions) (ListByApiCompleteResult, error)
ListByApiComplete retrieves all the results into a single object
func (ApiSchemaClient) ListByApiCompleteMatchingPredicate ¶
func (c ApiSchemaClient) ListByApiCompleteMatchingPredicate(ctx context.Context, id ApiId, options ListByApiOperationOptions, predicate SchemaContractOperationPredicate) (result ListByApiCompleteResult, err error)
ListByApiCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ApiSchemaId ¶
type ApiSchemaId struct { SubscriptionId string ResourceGroupName string ServiceName string ApiId string SchemaId string }
ApiSchemaId is a struct representing the Resource ID for a Api Schema
func NewApiSchemaID ¶
func NewApiSchemaID(subscriptionId string, resourceGroupName string, serviceName string, apiId string, schemaId string) ApiSchemaId
NewApiSchemaID returns a new ApiSchemaId struct
func ParseApiSchemaID ¶
func ParseApiSchemaID(input string) (*ApiSchemaId, error)
ParseApiSchemaID parses 'input' into a ApiSchemaId
func ParseApiSchemaIDInsensitively ¶
func ParseApiSchemaIDInsensitively(input string) (*ApiSchemaId, error)
ParseApiSchemaIDInsensitively parses 'input' case-insensitively into a ApiSchemaId note: this method should only be used for API response data and not user input
func (*ApiSchemaId) FromParseResult ¶
func (id *ApiSchemaId) FromParseResult(input resourceids.ParseResult) error
func (ApiSchemaId) Segments ¶
func (id ApiSchemaId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Api Schema ID
func (ApiSchemaId) String ¶
func (id ApiSchemaId) String() string
String returns a human-readable description of this Api Schema ID
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 ¶
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 GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SchemaContract }
type ListByApiCompleteResult ¶
type ListByApiCompleteResult struct { LatestHttpResponse *http.Response Items []SchemaContract }
type ListByApiCustomPager ¶ added in v0.20240628.1153531
func (*ListByApiCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListByApiCustomPager) NextPageLink() *odata.Link
type ListByApiOperationOptions ¶
func DefaultListByApiOperationOptions ¶
func DefaultListByApiOperationOptions() ListByApiOperationOptions
func (ListByApiOperationOptions) ToHeaders ¶
func (o ListByApiOperationOptions) ToHeaders() *client.Headers
func (ListByApiOperationOptions) ToOData ¶
func (o ListByApiOperationOptions) ToOData() *odata.Query
func (ListByApiOperationOptions) ToQuery ¶
func (o ListByApiOperationOptions) ToQuery() *client.QueryParams
type ListByApiOperationResponse ¶
type ListByApiOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]SchemaContract }
type SchemaContract ¶
type SchemaContract struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *SchemaContractProperties `json:"properties,omitempty"` 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"` }