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 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 ¶ added in v0.20230523.1140858
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 ¶ added in v0.20231127.1171502
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 ¶ added in v0.20230523.1140858
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 ¶ added in v0.20230523.1140858
func NewApiSchemaID(subscriptionId string, resourceGroupName string, serviceName string, apiId string, schemaId string) ApiSchemaId
NewApiSchemaID returns a new ApiSchemaId struct
func ParseApiSchemaID ¶ added in v0.20230523.1140858
func ParseApiSchemaID(input string) (*ApiSchemaId, error)
ParseApiSchemaID parses 'input' into a ApiSchemaId
func ParseApiSchemaIDInsensitively ¶ added in v0.20230523.1140858
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 ¶ added in v0.20231127.1171502
func (id *ApiSchemaId) FromParseResult(input resourceids.ParseResult) error
func (ApiSchemaId) ID ¶ added in v0.20230523.1140858
func (id ApiSchemaId) ID() string
ID returns the formatted Api Schema ID
func (ApiSchemaId) Segments ¶ added in v0.20230523.1140858
func (id ApiSchemaId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Api Schema ID
func (ApiSchemaId) String ¶ added in v0.20230523.1140858
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 ¶ 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 ¶
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 GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *SchemaContract }
type ListByApiCompleteResult ¶
type ListByApiCompleteResult struct {
Items []SchemaContract
}
type ListByApiOperationOptions ¶
func DefaultListByApiOperationOptions ¶
func DefaultListByApiOperationOptions() ListByApiOperationOptions
func (ListByApiOperationOptions) ToHeaders ¶ added in v0.20230801.1071415
func (o ListByApiOperationOptions) ToHeaders() *client.Headers
func (ListByApiOperationOptions) ToOData ¶ added in v0.20230801.1071415
func (o ListByApiOperationOptions) ToOData() *odata.Query
func (ListByApiOperationOptions) ToQuery ¶ added in v0.20230801.1071415
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,omitempty"` }
type SchemaDocumentProperties ¶
type SchemaDocumentProperties struct { Components *interface{} `json:"components,omitempty"` Definitions *interface{} `json:"definitions,omitempty"` Value *string `json:"value,omitempty"` }