README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2022-05-01/dataversion
Documentation
The dataversion
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/dataversion"
Client Initialization
client := dataversion.NewDataVersionClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: DataVersionClient.CreateOrUpdate
ctx := context.TODO()
id := dataversion.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dataValue", "versionValue")
payload := dataversion.DataVersionBaseResource{
// ...
}
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: DataVersionClient.Delete
ctx := context.TODO()
id := dataversion.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dataValue", "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: DataVersionClient.Get
ctx := context.TODO()
id := dataversion.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dataValue", "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: DataVersionClient.List
ctx := context.TODO()
id := dataversion.NewDataID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "dataValue")
// alternatively `client.List(ctx, id, dataversion.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, dataversion.DefaultListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Documentation ¶
Index ¶
- func PossibleValuesForDataType() []string
- func PossibleValuesForListViewType() []string
- func ValidateDataID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateVersionID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DataId
- type DataType
- type DataVersionBase
- type DataVersionBaseResource
- type DataVersionBaseResourceOperationPredicate
- type DataVersionClient
- func (c DataVersionClient) CreateOrUpdate(ctx context.Context, id VersionId, input DataVersionBaseResource) (result CreateOrUpdateOperationResponse, err error)
- func (c DataVersionClient) Delete(ctx context.Context, id VersionId) (result DeleteOperationResponse, err error)
- func (c DataVersionClient) Get(ctx context.Context, id VersionId) (result GetOperationResponse, err error)
- func (c DataVersionClient) List(ctx context.Context, id DataId, options ListOperationOptions) (resp ListOperationResponse, err error)
- func (c DataVersionClient) ListComplete(ctx context.Context, id DataId, options ListOperationOptions) (ListCompleteResult, error)
- func (c DataVersionClient) ListCompleteMatchingPredicate(ctx context.Context, id DataId, options ListOperationOptions, ...) (resp ListCompleteResult, err error)
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type ListViewType
- type MLTableData
- type UriFileDataVersion
- type UriFolderDataVersion
- type VersionId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForDataType ¶
func PossibleValuesForDataType() []string
func PossibleValuesForListViewType ¶
func PossibleValuesForListViewType() []string
func ValidateDataID ¶
ValidateDataID checks that 'input' can be parsed as a Data ID
func ValidateVersionID ¶
ValidateVersionID checks that 'input' can be parsed as a Version ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *DataVersionBaseResource }
type DataId ¶
type DataId struct { SubscriptionId string ResourceGroupName string WorkspaceName string DataName string }
DataId is a struct representing the Resource ID for a Data
func NewDataID ¶
func NewDataID(subscriptionId string, resourceGroupName string, workspaceName string, dataName string) DataId
NewDataID returns a new DataId struct
func ParseDataID ¶
ParseDataID parses 'input' into a DataId
func ParseDataIDInsensitively ¶
ParseDataIDInsensitively parses 'input' case-insensitively into a DataId note: this method should only be used for API response data and not user input
func (DataId) Segments ¶
func (id DataId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Data ID
type DataVersionBase ¶
type DataVersionBase interface { }
type DataVersionBaseResource ¶
type DataVersionBaseResource struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties DataVersionBase `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
func (*DataVersionBaseResource) UnmarshalJSON ¶
func (s *DataVersionBaseResource) UnmarshalJSON(bytes []byte) error
type DataVersionBaseResourceOperationPredicate ¶
func (DataVersionBaseResourceOperationPredicate) Matches ¶
func (p DataVersionBaseResourceOperationPredicate) Matches(input DataVersionBaseResource) bool
type DataVersionClient ¶
func NewDataVersionClientWithBaseURI ¶
func NewDataVersionClientWithBaseURI(endpoint string) DataVersionClient
func (DataVersionClient) CreateOrUpdate ¶
func (c DataVersionClient) CreateOrUpdate(ctx context.Context, id VersionId, input DataVersionBaseResource) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (DataVersionClient) Delete ¶
func (c DataVersionClient) Delete(ctx context.Context, id VersionId) (result DeleteOperationResponse, err error)
Delete ...
func (DataVersionClient) Get ¶
func (c DataVersionClient) Get(ctx context.Context, id VersionId) (result GetOperationResponse, err error)
Get ...
func (DataVersionClient) List ¶
func (c DataVersionClient) List(ctx context.Context, id DataId, options ListOperationOptions) (resp ListOperationResponse, err error)
List ...
func (DataVersionClient) ListComplete ¶
func (c DataVersionClient) ListComplete(ctx context.Context, id DataId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (DataVersionClient) ListCompleteMatchingPredicate ¶
func (c DataVersionClient) ListCompleteMatchingPredicate(ctx context.Context, id DataId, options ListOperationOptions, predicate DataVersionBaseResourceOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *DataVersionBaseResource }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []DataVersionBaseResource
}
type ListOperationOptions ¶
type ListOperationOptions struct { ListViewType *ListViewType OrderBy *string Skip *string Tags *string Top *int64 }
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]DataVersionBaseResource // 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" )
type MLTableData ¶
type MLTableData struct { ReferencedUris *[]string `json:"referencedUris,omitempty"` // Fields inherited from DataVersionBase DataUri string `json:"dataUri"` 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"` }
func (MLTableData) MarshalJSON ¶
func (s MLTableData) MarshalJSON() ([]byte, error)
type UriFileDataVersion ¶
type UriFileDataVersion struct { // Fields inherited from DataVersionBase DataUri string `json:"dataUri"` 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"` }
func (UriFileDataVersion) MarshalJSON ¶
func (s UriFileDataVersion) MarshalJSON() ([]byte, error)
type UriFolderDataVersion ¶
type UriFolderDataVersion struct { // Fields inherited from DataVersionBase DataUri string `json:"dataUri"` 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"` }
func (UriFolderDataVersion) MarshalJSON ¶
func (s UriFolderDataVersion) MarshalJSON() ([]byte, error)
type VersionId ¶
type VersionId struct { SubscriptionId string ResourceGroupName string WorkspaceName string DataName string VersionName string }
VersionId is a struct representing the Resource ID for a Version
func NewVersionID ¶
func NewVersionID(subscriptionId string, resourceGroupName string, workspaceName string, dataName 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) 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_data.go
- id_version.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- model_dataversionbase.go
- model_dataversionbaseresource.go
- model_mltabledata.go
- model_urifiledataversion.go
- model_urifolderdataversion.go
- predicates.go
- version.go