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) (resp 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, ...) (resp 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 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) Segments ¶
func (id ApiId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Api ID
type ApiOperationClient ¶
func NewApiOperationClientWithBaseURI ¶
func NewApiOperationClientWithBaseURI(endpoint string) ApiOperationClient
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) (resp ListByApiOperationResponse, err error)
ListByApi ...
func (ApiOperationClient) ListByApiComplete ¶
func (c ApiOperationClient) ListByApiComplete(ctx context.Context, id ApiId, options ListByApiOperationOptions) (ListByApiCompleteResult, error)
ListByApiComplete retrieves all of the results into a single object
func (ApiOperationClient) ListByApiCompleteMatchingPredicate ¶
func (c ApiOperationClient) ListByApiCompleteMatchingPredicate(ctx context.Context, id ApiId, options ListByApiOperationOptions, predicate OperationContractOperationPredicate) (resp ListByApiCompleteResult, err error)
ListByApiCompleteMatchingPredicate retrieves all of the results and then applied 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
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *OperationContract }
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
IfMatch *string
}
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *OperationContract }
type ListByApiCompleteResult ¶
type ListByApiCompleteResult struct {
Items []OperationContract
}
type ListByApiOperationOptions ¶
func DefaultListByApiOperationOptions ¶
func DefaultListByApiOperationOptions() ListByApiOperationOptions
type ListByApiOperationResponse ¶
type ListByApiOperationResponse struct { HttpResponse *http.Response Model *[]OperationContract // 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 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) 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
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response Model *OperationContract }
Source Files ¶
- client.go
- id_api.go
- id_operation.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_getentitytag_autorest.go
- method_listbyapi_autorest.go
- method_update_autorest.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