Documentation ¶
Index ¶
- func ValidateApiID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateOperationID(input interface{}, key string) (warnings []string, errors []error)
- type ApiId
- type ApiOperationClient
- func (c ApiOperationClient) CreateOrUpdate(ctx context.Context, id OperationId, input OperationContract, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c ApiOperationClient) Delete(ctx context.Context, id OperationId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c ApiOperationClient) Get(ctx context.Context, id OperationId) (result GetOperationResponse, err error)
- func (c ApiOperationClient) GetEntityTag(ctx context.Context, id OperationId) (result GetEntityTagOperationResponse, err error)
- func (c ApiOperationClient) ListByApi(ctx context.Context, id ApiId, options ListByApiOperationOptions) (result ListByApiOperationResponse, err error)
- func (c ApiOperationClient) ListByApiComplete(ctx context.Context, id ApiId, options ListByApiOperationOptions) (ListByApiCompleteResult, error)
- func (c ApiOperationClient) ListByApiCompleteMatchingPredicate(ctx context.Context, id ApiId, options ListByApiOperationOptions, ...) (result ListByApiCompleteResult, err error)
- func (c ApiOperationClient) Update(ctx context.Context, id OperationId, input OperationUpdateContract, ...) (result UpdateOperationResponse, err error)
- type CreateOrUpdateOperationOptions
- type CreateOrUpdateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type GetEntityTagOperationResponse
- type GetOperationResponse
- type ListByApiCompleteResult
- type ListByApiCustomPager
- type ListByApiOperationOptions
- type ListByApiOperationResponse
- type OperationContract
- type OperationContractOperationPredicate
- type OperationContractProperties
- type OperationId
- type OperationUpdateContract
- type OperationUpdateContractProperties
- type ParameterContract
- type ParameterExampleContract
- type RepresentationContract
- type RequestContract
- type ResponseContract
- type UpdateOperationOptions
- type UpdateOperationResponse
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 ValidateOperationID ¶
ValidateOperationID checks that 'input' can be parsed as a Operation 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 ApiOperationClient ¶
type ApiOperationClient struct {
Client *resourcemanager.Client
}
func NewApiOperationClientWithBaseURI ¶
func NewApiOperationClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiOperationClient, error)
func (ApiOperationClient) CreateOrUpdate ¶
func (c ApiOperationClient) CreateOrUpdate(ctx context.Context, id OperationId, input OperationContract, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ApiOperationClient) Delete ¶
func (c ApiOperationClient) Delete(ctx context.Context, id OperationId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (ApiOperationClient) Get ¶
func (c ApiOperationClient) Get(ctx context.Context, id OperationId) (result GetOperationResponse, err error)
Get ...
func (ApiOperationClient) GetEntityTag ¶
func (c ApiOperationClient) GetEntityTag(ctx context.Context, id OperationId) (result GetEntityTagOperationResponse, err error)
GetEntityTag ...
func (ApiOperationClient) ListByApi ¶
func (c ApiOperationClient) ListByApi(ctx context.Context, id ApiId, options ListByApiOperationOptions) (result ListByApiOperationResponse, err error)
ListByApi ...
func (ApiOperationClient) ListByApiComplete ¶
func (c ApiOperationClient) ListByApiComplete(ctx context.Context, id ApiId, options ListByApiOperationOptions) (ListByApiCompleteResult, error)
ListByApiComplete retrieves all the results into a single object
func (ApiOperationClient) ListByApiCompleteMatchingPredicate ¶
func (c ApiOperationClient) ListByApiCompleteMatchingPredicate(ctx context.Context, id ApiId, options ListByApiOperationOptions, predicate OperationContractOperationPredicate) (result ListByApiCompleteResult, err error)
ListByApiCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ApiOperationClient) Update ¶
func (c ApiOperationClient) Update(ctx context.Context, id OperationId, input OperationUpdateContract, options UpdateOperationOptions) (result UpdateOperationResponse, err error)
Update ...
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 CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *OperationContract }
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
IfMatch *string
}
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 *OperationContract }
type ListByApiCompleteResult ¶
type ListByApiCompleteResult struct { LatestHttpResponse *http.Response Items []OperationContract }
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 *[]OperationContract }
type OperationContract ¶
type OperationContract struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *OperationContractProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type OperationContractOperationPredicate ¶
func (OperationContractOperationPredicate) Matches ¶
func (p OperationContractOperationPredicate) Matches(input OperationContract) bool
type OperationContractProperties ¶
type OperationContractProperties struct { Description *string `json:"description,omitempty"` DisplayName string `json:"displayName"` Method string `json:"method"` Policies *string `json:"policies,omitempty"` Request *RequestContract `json:"request,omitempty"` Responses *[]ResponseContract `json:"responses,omitempty"` TemplateParameters *[]ParameterContract `json:"templateParameters,omitempty"` UrlTemplate string `json:"urlTemplate"` }
type OperationId ¶
type OperationId struct { SubscriptionId string ResourceGroupName string ServiceName string ApiId string OperationId string }
OperationId is a struct representing the Resource ID for a Operation
func NewOperationID ¶
func NewOperationID(subscriptionId string, resourceGroupName string, serviceName string, apiId string, operationId string) OperationId
NewOperationID returns a new OperationId struct
func ParseOperationID ¶
func ParseOperationID(input string) (*OperationId, error)
ParseOperationID parses 'input' into a OperationId
func ParseOperationIDInsensitively ¶
func ParseOperationIDInsensitively(input string) (*OperationId, error)
ParseOperationIDInsensitively parses 'input' case-insensitively into a OperationId note: this method should only be used for API response data and not user input
func (*OperationId) FromParseResult ¶
func (id *OperationId) FromParseResult(input resourceids.ParseResult) error
func (OperationId) Segments ¶
func (id OperationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Operation ID
func (OperationId) String ¶
func (id OperationId) String() string
String returns a human-readable description of this Operation ID
type OperationUpdateContract ¶
type OperationUpdateContract struct {
Properties *OperationUpdateContractProperties `json:"properties,omitempty"`
}
type OperationUpdateContractProperties ¶
type OperationUpdateContractProperties struct { Description *string `json:"description,omitempty"` DisplayName *string `json:"displayName,omitempty"` Method *string `json:"method,omitempty"` Policies *string `json:"policies,omitempty"` Request *RequestContract `json:"request,omitempty"` Responses *[]ResponseContract `json:"responses,omitempty"` TemplateParameters *[]ParameterContract `json:"templateParameters,omitempty"` UrlTemplate *string `json:"urlTemplate,omitempty"` }
type ParameterContract ¶
type ParameterContract struct { DefaultValue *string `json:"defaultValue,omitempty"` Description *string `json:"description,omitempty"` Examples *map[string]ParameterExampleContract `json:"examples,omitempty"` Name string `json:"name"` Required *bool `json:"required,omitempty"` SchemaId *string `json:"schemaId,omitempty"` Type string `json:"type"` TypeName *string `json:"typeName,omitempty"` Values *[]string `json:"values,omitempty"` }
type RepresentationContract ¶
type RepresentationContract struct { ContentType string `json:"contentType"` Examples *map[string]ParameterExampleContract `json:"examples,omitempty"` FormParameters *[]ParameterContract `json:"formParameters,omitempty"` SchemaId *string `json:"schemaId,omitempty"` TypeName *string `json:"typeName,omitempty"` }
type RequestContract ¶
type RequestContract struct { Description *string `json:"description,omitempty"` Headers *[]ParameterContract `json:"headers,omitempty"` QueryParameters *[]ParameterContract `json:"queryParameters,omitempty"` Representations *[]RepresentationContract `json:"representations,omitempty"` }
type ResponseContract ¶
type ResponseContract struct { Description *string `json:"description,omitempty"` Headers *[]ParameterContract `json:"headers,omitempty"` Representations *[]RepresentationContract `json:"representations,omitempty"` StatusCode int64 `json:"statusCode"` }
type UpdateOperationOptions ¶
type UpdateOperationOptions struct {
IfMatch *string
}
func DefaultUpdateOperationOptions ¶
func DefaultUpdateOperationOptions() UpdateOperationOptions
func (UpdateOperationOptions) ToHeaders ¶
func (o UpdateOperationOptions) ToHeaders() *client.Headers
func (UpdateOperationOptions) ToOData ¶
func (o UpdateOperationOptions) ToOData() *odata.Query
func (UpdateOperationOptions) ToQuery ¶
func (o UpdateOperationOptions) ToQuery() *client.QueryParams
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *OperationContract }
Source Files ¶
- client.go
- id_api.go
- id_operation.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_getentitytag.go
- method_listbyapi.go
- method_update.go
- model_operationcontract.go
- model_operationcontractproperties.go
- model_operationupdatecontract.go
- model_operationupdatecontractproperties.go
- model_parametercontract.go
- model_parameterexamplecontract.go
- model_representationcontract.go
- model_requestcontract.go
- model_responsecontract.go
- predicates.go
- version.go