Documentation ¶
Index ¶
- func PossibleValuesForApiKind() []string
- func PossibleValuesForLifecycleStage() []string
- func ValidateApiID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateWorkspaceID(input interface{}, key string) (warnings []string, errors []error)
- type Api
- type ApiId
- type ApiKind
- type ApiOperationPredicate
- type ApiProperties
- type ApisClient
- func (c ApisClient) CreateOrUpdate(ctx context.Context, id ApiId, input Api) (result CreateOrUpdateOperationResponse, err error)
- func (c ApisClient) Delete(ctx context.Context, id ApiId) (result DeleteOperationResponse, err error)
- func (c ApisClient) Get(ctx context.Context, id ApiId) (result GetOperationResponse, err error)
- func (c ApisClient) Head(ctx context.Context, id ApiId) (result HeadOperationResponse, err error)
- func (c ApisClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c ApisClient) ListComplete(ctx context.Context, id WorkspaceId, options ListOperationOptions) (ListCompleteResult, error)
- func (c ApisClient) ListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- type Contact
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type ExternalDocumentation
- type GetOperationResponse
- type HeadOperationResponse
- type License
- type LifecycleStage
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type TermsOfService
- type WorkspaceId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForApiKind ¶
func PossibleValuesForApiKind() []string
func PossibleValuesForLifecycleStage ¶
func PossibleValuesForLifecycleStage() []string
func ValidateApiID ¶
ValidateApiID checks that 'input' can be parsed as a Api ID
func ValidateWorkspaceID ¶
ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID
Types ¶
type Api ¶
type Api struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *ApiProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
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 ApiOperationPredicate ¶
func (ApiOperationPredicate) Matches ¶
func (p ApiOperationPredicate) Matches(input Api) bool
type ApiProperties ¶
type ApiProperties struct { Contacts *[]Contact `json:"contacts,omitempty"` CustomProperties *interface{} `json:"customProperties,omitempty"` Description *string `json:"description,omitempty"` ExternalDocumentation *[]ExternalDocumentation `json:"externalDocumentation,omitempty"` Kind ApiKind `json:"kind"` License *License `json:"license,omitempty"` LifecycleStage *LifecycleStage `json:"lifecycleStage,omitempty"` Summary *string `json:"summary,omitempty"` TermsOfService *TermsOfService `json:"termsOfService,omitempty"` Title string `json:"title"` }
type ApisClient ¶
type ApisClient struct {
Client *resourcemanager.Client
}
func NewApisClientWithBaseURI ¶
func NewApisClientWithBaseURI(sdkApi sdkEnv.Api) (*ApisClient, error)
func (ApisClient) CreateOrUpdate ¶
func (c ApisClient) CreateOrUpdate(ctx context.Context, id ApiId, input Api) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ApisClient) Delete ¶
func (c ApisClient) Delete(ctx context.Context, id ApiId) (result DeleteOperationResponse, err error)
Delete ...
func (ApisClient) Get ¶
func (c ApisClient) Get(ctx context.Context, id ApiId) (result GetOperationResponse, err error)
Get ...
func (ApisClient) Head ¶
func (c ApisClient) Head(ctx context.Context, id ApiId) (result HeadOperationResponse, err error)
Head ...
func (ApisClient) List ¶
func (c ApisClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (ApisClient) ListComplete ¶
func (c ApisClient) ListComplete(ctx context.Context, id WorkspaceId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ApisClient) ListCompleteMatchingPredicate ¶
func (c ApisClient) ListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options ListOperationOptions, predicate ApiOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type DeleteOperationResponse ¶
type ExternalDocumentation ¶
type GetOperationResponse ¶
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 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 TermsOfService ¶
type TermsOfService struct {
Url string `json:"url"`
}
type WorkspaceId ¶
type WorkspaceId struct { SubscriptionId string ResourceGroupName string ServiceName string WorkspaceName string }
WorkspaceId is a struct representing the Resource ID for a Workspace
func NewWorkspaceID ¶
func NewWorkspaceID(subscriptionId string, resourceGroupName string, serviceName string, workspaceName string) WorkspaceId
NewWorkspaceID returns a new WorkspaceId struct
func ParseWorkspaceID ¶
func ParseWorkspaceID(input string) (*WorkspaceId, error)
ParseWorkspaceID parses 'input' into a WorkspaceId
func ParseWorkspaceIDInsensitively ¶
func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error)
ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId note: this method should only be used for API response data and not user input
func (*WorkspaceId) FromParseResult ¶
func (id *WorkspaceId) FromParseResult(input resourceids.ParseResult) error
func (WorkspaceId) Segments ¶
func (id WorkspaceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Workspace ID
func (WorkspaceId) String ¶
func (id WorkspaceId) String() string
String returns a human-readable description of this Workspace ID