README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2022-05-01/componentversion
Documentation
The componentversion
SDK allows for interaction with the Azure Resource Manager Service machinelearningservices
(API Version 2022-05-01
).
This readme covers example usages, but further information on using this SDK can be found in the project root.
Import Path
import "github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2022-05-01/componentversion"
Client Initialization
client := componentversion.NewComponentVersionClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ComponentVersionClient.CreateOrUpdate
ctx := context.TODO()
id := componentversion.NewComponentVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "nameValue", "versionValue")
payload := componentversion.ComponentVersionResource{
// ...
}
read, err := client.CreateOrUpdate(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ComponentVersionClient.Delete
ctx := context.TODO()
id := componentversion.NewComponentVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "nameValue", "versionValue")
read, err := client.Delete(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ComponentVersionClient.Get
ctx := context.TODO()
id := componentversion.NewComponentVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "nameValue", "versionValue")
read, err := client.Get(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ComponentVersionClient.List
ctx := context.TODO()
id := componentversion.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "nameValue")
// alternatively `client.List(ctx, id, componentversion.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, componentversion.DefaultListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func PossibleValuesForListViewType() []string
- func ValidateComponentID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateComponentVersionID(input interface{}, key string) (warnings []string, errors []error)
- type ComponentId
- type ComponentVersion
- type ComponentVersionClient
- func (c ComponentVersionClient) CreateOrUpdate(ctx context.Context, id ComponentVersionId, input ComponentVersionResource) (result CreateOrUpdateOperationResponse, err error)
- func (c ComponentVersionClient) Delete(ctx context.Context, id ComponentVersionId) (result DeleteOperationResponse, err error)
- func (c ComponentVersionClient) Get(ctx context.Context, id ComponentVersionId) (result GetOperationResponse, err error)
- func (c ComponentVersionClient) List(ctx context.Context, id ComponentId, options ListOperationOptions) (resp ListOperationResponse, err error)
- func (c ComponentVersionClient) ListComplete(ctx context.Context, id ComponentId, options ListOperationOptions) (ListCompleteResult, error)
- func (c ComponentVersionClient) ListCompleteMatchingPredicate(ctx context.Context, id ComponentId, options ListOperationOptions, ...) (resp ListCompleteResult, err error)
- type ComponentVersionId
- type ComponentVersionResource
- type ComponentVersionResourceOperationPredicate
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type ListViewType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForListViewType ¶
func PossibleValuesForListViewType() []string
func ValidateComponentID ¶
ValidateComponentID checks that 'input' can be parsed as a Component ID
func ValidateComponentVersionID ¶
ValidateComponentVersionID checks that 'input' can be parsed as a Component Version ID
Types ¶
type ComponentId ¶
type ComponentId struct { SubscriptionId string ResourceGroupName string WorkspaceName string Name string }
ComponentId is a struct representing the Resource ID for a Component
func NewComponentID ¶
func NewComponentID(subscriptionId string, resourceGroupName string, workspaceName string, name string) ComponentId
NewComponentID returns a new ComponentId struct
func ParseComponentID ¶
func ParseComponentID(input string) (*ComponentId, error)
ParseComponentID parses 'input' into a ComponentId
func ParseComponentIDInsensitively ¶
func ParseComponentIDInsensitively(input string) (*ComponentId, error)
ParseComponentIDInsensitively parses 'input' case-insensitively into a ComponentId note: this method should only be used for API response data and not user input
func (ComponentId) Segments ¶
func (id ComponentId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Component ID
func (ComponentId) String ¶
func (id ComponentId) String() string
String returns a human-readable description of this Component ID
type ComponentVersion ¶
type ComponentVersion struct { ComponentSpec *interface{} `json:"componentSpec,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 ComponentVersionClient ¶
type ComponentVersionClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewComponentVersionClientWithBaseURI ¶
func NewComponentVersionClientWithBaseURI(endpoint string) ComponentVersionClient
func (ComponentVersionClient) CreateOrUpdate ¶
func (c ComponentVersionClient) CreateOrUpdate(ctx context.Context, id ComponentVersionId, input ComponentVersionResource) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ComponentVersionClient) Delete ¶
func (c ComponentVersionClient) Delete(ctx context.Context, id ComponentVersionId) (result DeleteOperationResponse, err error)
Delete ...
func (ComponentVersionClient) Get ¶
func (c ComponentVersionClient) Get(ctx context.Context, id ComponentVersionId) (result GetOperationResponse, err error)
Get ...
func (ComponentVersionClient) List ¶
func (c ComponentVersionClient) List(ctx context.Context, id ComponentId, options ListOperationOptions) (resp ListOperationResponse, err error)
List ...
func (ComponentVersionClient) ListComplete ¶
func (c ComponentVersionClient) ListComplete(ctx context.Context, id ComponentId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (ComponentVersionClient) ListCompleteMatchingPredicate ¶
func (c ComponentVersionClient) ListCompleteMatchingPredicate(ctx context.Context, id ComponentId, options ListOperationOptions, predicate ComponentVersionResourceOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type ComponentVersionId ¶
type ComponentVersionId struct { SubscriptionId string ResourceGroupName string WorkspaceName string Name string Version string }
ComponentVersionId is a struct representing the Resource ID for a Component Version
func NewComponentVersionID ¶
func NewComponentVersionID(subscriptionId string, resourceGroupName string, workspaceName string, name string, version string) ComponentVersionId
NewComponentVersionID returns a new ComponentVersionId struct
func ParseComponentVersionID ¶
func ParseComponentVersionID(input string) (*ComponentVersionId, error)
ParseComponentVersionID parses 'input' into a ComponentVersionId
func ParseComponentVersionIDInsensitively ¶
func ParseComponentVersionIDInsensitively(input string) (*ComponentVersionId, error)
ParseComponentVersionIDInsensitively parses 'input' case-insensitively into a ComponentVersionId note: this method should only be used for API response data and not user input
func (ComponentVersionId) ID ¶
func (id ComponentVersionId) ID() string
ID returns the formatted Component Version ID
func (ComponentVersionId) Segments ¶
func (id ComponentVersionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Component Version ID
func (ComponentVersionId) String ¶
func (id ComponentVersionId) String() string
String returns a human-readable description of this Component Version ID
type ComponentVersionResource ¶
type ComponentVersionResource struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties ComponentVersion `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type ComponentVersionResourceOperationPredicate ¶
func (ComponentVersionResourceOperationPredicate) Matches ¶
func (p ComponentVersionResourceOperationPredicate) Matches(input ComponentVersionResource) bool
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *ComponentVersionResource }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *ComponentVersionResource }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []ComponentVersionResource
}
type ListOperationOptions ¶
type ListOperationOptions struct { ListViewType *ListViewType OrderBy *string Skip *string Top *int64 }
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]ComponentVersionResource // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type ListViewType ¶
type ListViewType string
const ( ListViewTypeActiveOnly ListViewType = "ActiveOnly" ListViewTypeAll ListViewType = "All" ListViewTypeArchivedOnly ListViewType = "ArchivedOnly" )