Documentation ¶
Index ¶
- func ValidateCodeID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateCodeVersionID(input interface{}, key string) (warnings []string, errors []error)
- type CodeId
- type CodeVersion
- type CodeVersionClient
- func (c CodeVersionClient) CreateOrUpdate(ctx context.Context, id CodeVersionId, input CodeVersionResource) (result CreateOrUpdateOperationResponse, err error)
- func (c CodeVersionClient) Delete(ctx context.Context, id CodeVersionId) (result DeleteOperationResponse, err error)
- func (c CodeVersionClient) Get(ctx context.Context, id CodeVersionId) (result GetOperationResponse, err error)
- func (c CodeVersionClient) List(ctx context.Context, id CodeId, options ListOperationOptions) (result ListOperationResponse, err error)
- func (c CodeVersionClient) ListComplete(ctx context.Context, id CodeId, options ListOperationOptions) (ListCompleteResult, error)
- func (c CodeVersionClient) ListCompleteMatchingPredicate(ctx context.Context, id CodeId, options ListOperationOptions, ...) (result ListCompleteResult, err error)
- type CodeVersionId
- type CodeVersionResource
- type CodeVersionResourceOperationPredicate
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateCodeID ¶
ValidateCodeID checks that 'input' can be parsed as a Code ID
func ValidateCodeVersionID ¶
ValidateCodeVersionID checks that 'input' can be parsed as a Code Version ID
Types ¶
type CodeId ¶
type CodeId struct { SubscriptionId string ResourceGroupName string WorkspaceName string CodeName string }
CodeId is a struct representing the Resource ID for a Code
func NewCodeID ¶
func NewCodeID(subscriptionId string, resourceGroupName string, workspaceName string, codeName string) CodeId
NewCodeID returns a new CodeId struct
func ParseCodeID ¶
ParseCodeID parses 'input' into a CodeId
func ParseCodeIDInsensitively ¶
ParseCodeIDInsensitively parses 'input' case-insensitively into a CodeId note: this method should only be used for API response data and not user input
func (CodeId) Segments ¶
func (id CodeId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Code ID
type CodeVersion ¶
type CodeVersion struct { CodeUri *string `json:"codeUri,omitempty"` Description *string `json:"description,omitempty"` IsAnonymous *bool `json:"isAnonymous,omitempty"` IsArchived *bool `json:"isArchived,omitempty"` Properties *map[string]string `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type CodeVersionClient ¶
type CodeVersionClient struct {
Client *resourcemanager.Client
}
func NewCodeVersionClientWithBaseURI ¶
func NewCodeVersionClientWithBaseURI(api environments.Api) (*CodeVersionClient, error)
func (CodeVersionClient) CreateOrUpdate ¶
func (c CodeVersionClient) CreateOrUpdate(ctx context.Context, id CodeVersionId, input CodeVersionResource) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (CodeVersionClient) Delete ¶
func (c CodeVersionClient) Delete(ctx context.Context, id CodeVersionId) (result DeleteOperationResponse, err error)
Delete ...
func (CodeVersionClient) Get ¶
func (c CodeVersionClient) Get(ctx context.Context, id CodeVersionId) (result GetOperationResponse, err error)
Get ...
func (CodeVersionClient) List ¶
func (c CodeVersionClient) List(ctx context.Context, id CodeId, options ListOperationOptions) (result ListOperationResponse, err error)
List ...
func (CodeVersionClient) ListComplete ¶
func (c CodeVersionClient) ListComplete(ctx context.Context, id CodeId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (CodeVersionClient) ListCompleteMatchingPredicate ¶
func (c CodeVersionClient) ListCompleteMatchingPredicate(ctx context.Context, id CodeId, options ListOperationOptions, predicate CodeVersionResourceOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type CodeVersionId ¶
type CodeVersionId struct { SubscriptionId string ResourceGroupName string WorkspaceName string CodeName string VersionName string }
CodeVersionId is a struct representing the Resource ID for a Code Version
func NewCodeVersionID ¶
func NewCodeVersionID(subscriptionId string, resourceGroupName string, workspaceName string, codeName string, versionName string) CodeVersionId
NewCodeVersionID returns a new CodeVersionId struct
func ParseCodeVersionID ¶
func ParseCodeVersionID(input string) (*CodeVersionId, error)
ParseCodeVersionID parses 'input' into a CodeVersionId
func ParseCodeVersionIDInsensitively ¶
func ParseCodeVersionIDInsensitively(input string) (*CodeVersionId, error)
ParseCodeVersionIDInsensitively parses 'input' case-insensitively into a CodeVersionId note: this method should only be used for API response data and not user input
func (CodeVersionId) ID ¶
func (id CodeVersionId) ID() string
ID returns the formatted Code Version ID
func (CodeVersionId) Segments ¶
func (id CodeVersionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Code Version ID
func (CodeVersionId) String ¶
func (id CodeVersionId) String() string
String returns a human-readable description of this Code Version ID
type CodeVersionResource ¶
type CodeVersionResource struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties CodeVersion `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type CodeVersionResourceOperationPredicate ¶
func (CodeVersionResourceOperationPredicate) Matches ¶
func (p CodeVersionResourceOperationPredicate) Matches(input CodeVersionResource) bool
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CodeVersionResource }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *CodeVersionResource }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []CodeVersionResource
}
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
func (ListOperationOptions) ToHeaders ¶ added in v0.20230713.1092427
func (o ListOperationOptions) ToHeaders() *client.Headers
func (ListOperationOptions) ToOData ¶ added in v0.20230713.1092427
func (o ListOperationOptions) ToOData() *odata.Query
func (ListOperationOptions) ToQuery ¶ added in v0.20230713.1092427
func (o ListOperationOptions) ToQuery() *client.QueryParams
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]CodeVersionResource }