Documentation ¶
Index ¶
- func PossibleValuesForApiSpecExportResultFormat() []string
- func PossibleValuesForApiSpecImportSourceFormat() []string
- func ValidateDefinitionID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVersionID(input interface{}, key string) (warnings []string, errors []error)
- type ApiDefinition
- type ApiDefinitionOperationPredicate
- type ApiDefinitionProperties
- type ApiDefinitionPropertiesSpecification
- type ApiDefinitionsClient
- func (c ApiDefinitionsClient) CreateOrUpdate(ctx context.Context, id DefinitionId, input ApiDefinition) (result CreateOrUpdateOperationResponse, err error)
- func (c ApiDefinitionsClient) Delete(ctx context.Context, id DefinitionId) (result DeleteOperationResponse, err error)
- func (c ApiDefinitionsClient) ExportSpecification(ctx context.Context, id DefinitionId) (result ExportSpecificationOperationResponse, err error)
- func (c ApiDefinitionsClient) ExportSpecificationThenPoll(ctx context.Context, id DefinitionId) error
- func (c ApiDefinitionsClient) Get(ctx context.Context, id DefinitionId) (result GetOperationResponse, err error)
- func (c ApiDefinitionsClient) Head(ctx context.Context, id DefinitionId) (result HeadOperationResponse, err error)
- func (c ApiDefinitionsClient) ImportSpecification(ctx context.Context, id DefinitionId, input ApiSpecImportRequest) (result ImportSpecificationOperationResponse, err error)
- func (c ApiDefinitionsClient) ImportSpecificationThenPoll(ctx context.Context, id DefinitionId, input ApiSpecImportRequest) error
- func (c ApiDefinitionsClient) List(ctx context.Context, id VersionId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c ApiDefinitionsClient) ListComplete(ctx context.Context, id VersionId, options ListOperationOptions) (ListCompleteResult, error)
- func (c ApiDefinitionsClient) ListCompleteMatchingPredicate(ctx context.Context, id VersionId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- type ApiSpecExportResult
- type ApiSpecExportResultFormat
- type ApiSpecImportRequest
- type ApiSpecImportRequestSpecification
- type ApiSpecImportSourceFormat
- type CreateOrUpdateOperationResponse
- type DefinitionId
- type DeleteOperationResponse
- type ExportSpecificationOperationResponse
- type GetOperationResponse
- type HeadOperationResponse
- type ImportSpecificationOperationResponse
- type ListCompleteResult
- type ListCustomPager
- type ListOperationOptions
- type ListOperationResponse
- type VersionId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForApiSpecExportResultFormat ¶
func PossibleValuesForApiSpecExportResultFormat() []string
func PossibleValuesForApiSpecImportSourceFormat ¶
func PossibleValuesForApiSpecImportSourceFormat() []string
func ValidateDefinitionID ¶
ValidateDefinitionID checks that 'input' can be parsed as a Definition ID
func ValidateVersionID ¶
ValidateVersionID checks that 'input' can be parsed as a Version ID
Types ¶
type ApiDefinition ¶
type ApiDefinition struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ApiDefinitionProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type ApiDefinitionOperationPredicate ¶
func (ApiDefinitionOperationPredicate) Matches ¶
func (p ApiDefinitionOperationPredicate) Matches(input ApiDefinition) bool
type ApiDefinitionProperties ¶
type ApiDefinitionProperties struct { Description *string `json:"description,omitempty"` Specification *ApiDefinitionPropertiesSpecification `json:"specification,omitempty"` Title string `json:"title"` }
type ApiDefinitionsClient ¶
type ApiDefinitionsClient struct {
Client *resourcemanager.Client
}
func NewApiDefinitionsClientWithBaseURI ¶
func NewApiDefinitionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiDefinitionsClient, error)
func (ApiDefinitionsClient) CreateOrUpdate ¶
func (c ApiDefinitionsClient) CreateOrUpdate(ctx context.Context, id DefinitionId, input ApiDefinition) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ApiDefinitionsClient) Delete ¶
func (c ApiDefinitionsClient) Delete(ctx context.Context, id DefinitionId) (result DeleteOperationResponse, err error)
Delete ...
func (ApiDefinitionsClient) ExportSpecification ¶
func (c ApiDefinitionsClient) ExportSpecification(ctx context.Context, id DefinitionId) (result ExportSpecificationOperationResponse, err error)
ExportSpecification ...
func (ApiDefinitionsClient) ExportSpecificationThenPoll ¶
func (c ApiDefinitionsClient) ExportSpecificationThenPoll(ctx context.Context, id DefinitionId) error
ExportSpecificationThenPoll performs ExportSpecification then polls until it's completed
func (ApiDefinitionsClient) Get ¶
func (c ApiDefinitionsClient) Get(ctx context.Context, id DefinitionId) (result GetOperationResponse, err error)
Get ...
func (ApiDefinitionsClient) Head ¶
func (c ApiDefinitionsClient) Head(ctx context.Context, id DefinitionId) (result HeadOperationResponse, err error)
Head ...
func (ApiDefinitionsClient) ImportSpecification ¶
func (c ApiDefinitionsClient) ImportSpecification(ctx context.Context, id DefinitionId, input ApiSpecImportRequest) (result ImportSpecificationOperationResponse, err error)
ImportSpecification ...
func (ApiDefinitionsClient) ImportSpecificationThenPoll ¶
func (c ApiDefinitionsClient) ImportSpecificationThenPoll(ctx context.Context, id DefinitionId, input ApiSpecImportRequest) error
ImportSpecificationThenPoll performs ImportSpecification then polls until it's completed
func (ApiDefinitionsClient) List ¶
func (c ApiDefinitionsClient) List(ctx context.Context, id VersionId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (ApiDefinitionsClient) ListComplete ¶
func (c ApiDefinitionsClient) ListComplete(ctx context.Context, id VersionId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ApiDefinitionsClient) ListCompleteMatchingPredicate ¶
func (c ApiDefinitionsClient) ListCompleteMatchingPredicate(ctx context.Context, id VersionId, options ListOperationOptions, predicate ApiDefinitionOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type ApiSpecExportResult ¶
type ApiSpecExportResult struct { Format *ApiSpecExportResultFormat `json:"format,omitempty"` Value *string `json:"value,omitempty"` }
type ApiSpecExportResultFormat ¶
type ApiSpecExportResultFormat string
const ( ApiSpecExportResultFormatInline ApiSpecExportResultFormat = "inline" ApiSpecExportResultFormatLink ApiSpecExportResultFormat = "link" )
func (*ApiSpecExportResultFormat) UnmarshalJSON ¶
func (s *ApiSpecExportResultFormat) UnmarshalJSON(bytes []byte) error
type ApiSpecImportRequest ¶
type ApiSpecImportRequest struct { Format *ApiSpecImportSourceFormat `json:"format,omitempty"` Specification *ApiSpecImportRequestSpecification `json:"specification,omitempty"` Value *string `json:"value,omitempty"` }
type ApiSpecImportSourceFormat ¶
type ApiSpecImportSourceFormat string
const ( ApiSpecImportSourceFormatInline ApiSpecImportSourceFormat = "inline" ApiSpecImportSourceFormatLink ApiSpecImportSourceFormat = "link" )
func (*ApiSpecImportSourceFormat) UnmarshalJSON ¶
func (s *ApiSpecImportSourceFormat) UnmarshalJSON(bytes []byte) error
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ApiDefinition }
type DefinitionId ¶
type DefinitionId struct { SubscriptionId string ResourceGroupName string ServiceName string WorkspaceName string ApiName string VersionName string DefinitionName string }
DefinitionId is a struct representing the Resource ID for a Definition
func NewDefinitionID ¶
func NewDefinitionID(subscriptionId string, resourceGroupName string, serviceName string, workspaceName string, apiName string, versionName string, definitionName string) DefinitionId
NewDefinitionID returns a new DefinitionId struct
func ParseDefinitionID ¶
func ParseDefinitionID(input string) (*DefinitionId, error)
ParseDefinitionID parses 'input' into a DefinitionId
func ParseDefinitionIDInsensitively ¶
func ParseDefinitionIDInsensitively(input string) (*DefinitionId, error)
ParseDefinitionIDInsensitively parses 'input' case-insensitively into a DefinitionId note: this method should only be used for API response data and not user input
func (*DefinitionId) FromParseResult ¶
func (id *DefinitionId) FromParseResult(input resourceids.ParseResult) error
func (DefinitionId) Segments ¶
func (id DefinitionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Definition ID
func (DefinitionId) String ¶
func (id DefinitionId) String() string
String returns a human-readable description of this Definition ID
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ApiDefinition }
type HeadOperationResponse ¶
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []ApiDefinition }
type ListCustomPager ¶ added in v0.20240628.1153531
func (*ListCustomPager) NextPageLink ¶ added in v0.20240628.1153531
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationOptions ¶
type ListOperationOptions struct {
Filter *string
}
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ApiDefinition }
type VersionId ¶
type VersionId struct { SubscriptionId string ResourceGroupName string ServiceName string WorkspaceName string ApiName string VersionName string }
VersionId is a struct representing the Resource ID for a Version
func NewVersionID ¶
func NewVersionID(subscriptionId string, resourceGroupName string, serviceName string, workspaceName string, apiName string, versionName string) VersionId
NewVersionID returns a new VersionId struct
func ParseVersionID ¶
ParseVersionID parses 'input' into a VersionId
func ParseVersionIDInsensitively ¶
ParseVersionIDInsensitively parses 'input' case-insensitively into a VersionId note: this method should only be used for API response data and not user input
func (*VersionId) FromParseResult ¶
func (id *VersionId) FromParseResult(input resourceids.ParseResult) error
func (VersionId) Segments ¶
func (id VersionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Version ID
Source Files ¶
- client.go
- constants.go
- id_definition.go
- id_version.go
- method_createorupdate.go
- method_delete.go
- method_exportspecification.go
- method_get.go
- method_head.go
- method_importspecification.go
- method_list.go
- model_apidefinition.go
- model_apidefinitionproperties.go
- model_apidefinitionpropertiesspecification.go
- model_apispecexportresult.go
- model_apispecimportrequest.go
- model_apispecimportrequestspecification.go
- predicates.go
- version.go