Documentation ¶
Index ¶
- func PossibleValuesForLifecycleStage() []string
- func ValidateApiID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVersionID(input interface{}, key string) (warnings []string, errors []error)
- type ApiId
- type ApiVersion
- type ApiVersionOperationPredicate
- type ApiVersionProperties
- type ApiVersionsClient
- func (c ApiVersionsClient) CreateOrUpdate(ctx context.Context, id VersionId, input ApiVersion) (result CreateOrUpdateOperationResponse, err error)
- func (c ApiVersionsClient) Delete(ctx context.Context, id VersionId) (result DeleteOperationResponse, err error)
- func (c ApiVersionsClient) Get(ctx context.Context, id VersionId) (result GetOperationResponse, err error)
- func (c ApiVersionsClient) Head(ctx context.Context, id VersionId) (result HeadOperationResponse, err error)
- func (c ApiVersionsClient) List(ctx context.Context, id ApiId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c ApiVersionsClient) ListComplete(ctx context.Context, id ApiId, options ListOperationOptions) (ListCompleteResult, error)
- func (c ApiVersionsClient) ListCompleteMatchingPredicate(ctx context.Context, id ApiId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type HeadOperationResponse
- type LifecycleStage
- type ListCompleteResult
- type ListCustomPager
- type ListOperationOptions
- type ListOperationResponse
- type VersionId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForLifecycleStage ¶
func PossibleValuesForLifecycleStage() []string
func ValidateApiID ¶
ValidateApiID checks that 'input' can be parsed as a Api ID
func ValidateVersionID ¶
ValidateVersionID checks that 'input' can be parsed as a Version ID
Types ¶
type ApiId ¶
type ApiId struct { SubscriptionId string ResourceGroupName string ServiceName string WorkspaceName string ApiName string }
ApiId is a struct representing the Resource ID for a Api
func NewApiID ¶
func NewApiID(subscriptionId string, resourceGroupName string, serviceName string, workspaceName string, apiName 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 ApiVersion ¶
type ApiVersion struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ApiVersionProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type ApiVersionOperationPredicate ¶
func (ApiVersionOperationPredicate) Matches ¶
func (p ApiVersionOperationPredicate) Matches(input ApiVersion) bool
type ApiVersionProperties ¶
type ApiVersionProperties struct { LifecycleStage LifecycleStage `json:"lifecycleStage"` Title string `json:"title"` }
type ApiVersionsClient ¶
type ApiVersionsClient struct {
Client *resourcemanager.Client
}
func NewApiVersionsClientWithBaseURI ¶
func NewApiVersionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ApiVersionsClient, error)
func (ApiVersionsClient) CreateOrUpdate ¶
func (c ApiVersionsClient) CreateOrUpdate(ctx context.Context, id VersionId, input ApiVersion) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ApiVersionsClient) Delete ¶
func (c ApiVersionsClient) Delete(ctx context.Context, id VersionId) (result DeleteOperationResponse, err error)
Delete ...
func (ApiVersionsClient) Get ¶
func (c ApiVersionsClient) Get(ctx context.Context, id VersionId) (result GetOperationResponse, err error)
Get ...
func (ApiVersionsClient) Head ¶
func (c ApiVersionsClient) Head(ctx context.Context, id VersionId) (result HeadOperationResponse, err error)
Head ...
func (ApiVersionsClient) List ¶
func (c ApiVersionsClient) List(ctx context.Context, id ApiId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (ApiVersionsClient) ListComplete ¶
func (c ApiVersionsClient) ListComplete(ctx context.Context, id ApiId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ApiVersionsClient) ListCompleteMatchingPredicate ¶
func (c ApiVersionsClient) ListCompleteMatchingPredicate(ctx context.Context, id ApiId, options ListOperationOptions, predicate ApiVersionOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ApiVersion }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *ApiVersion }
type HeadOperationResponse ¶
type LifecycleStage ¶
type LifecycleStage string
const ( LifecycleStageDeprecated LifecycleStage = "deprecated" LifecycleStageDesign LifecycleStage = "design" LifecycleStageDevelopment LifecycleStage = "development" LifecycleStagePreview LifecycleStage = "preview" LifecycleStageProduction LifecycleStage = "production" LifecycleStageRetired LifecycleStage = "retired" LifecycleStageTesting LifecycleStage = "testing" )
func (*LifecycleStage) UnmarshalJSON ¶
func (s *LifecycleStage) UnmarshalJSON(bytes []byte) error
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []ApiVersion }
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 *[]ApiVersion }
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