README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2022-05-01/datacontainer
Documentation
The datacontainer
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/datacontainer"
Client Initialization
client := datacontainer.NewDataContainerClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: DataContainerClient.CreateOrUpdate
ctx := context.TODO()
id := datacontainer.NewDataID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "nameValue")
payload := datacontainer.DataContainerResource{
// ...
}
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: DataContainerClient.Delete
ctx := context.TODO()
id := datacontainer.NewDataID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "nameValue")
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: DataContainerClient.Get
ctx := context.TODO()
id := datacontainer.NewDataID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "nameValue")
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: DataContainerClient.List
ctx := context.TODO()
id := datacontainer.NewWorkspaceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue")
// alternatively `client.List(ctx, id, datacontainer.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, datacontainer.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 ValidateWorkspaceID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DataContainer
- type DataContainerClient
- func (c DataContainerClient) CreateOrUpdate(ctx context.Context, id DataId, input DataContainerResource) (result CreateOrUpdateOperationResponse, err error)
- func (c DataContainerClient) Delete(ctx context.Context, id DataId) (result DeleteOperationResponse, err error)
- func (c DataContainerClient) Get(ctx context.Context, id DataId) (result GetOperationResponse, err error)
- func (c DataContainerClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (resp ListOperationResponse, err error)
- func (c DataContainerClient) ListComplete(ctx context.Context, id WorkspaceId, options ListOperationOptions) (ListCompleteResult, error)
- func (c DataContainerClient) ListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options ListOperationOptions, ...) (resp ListCompleteResult, err error)
- type DataContainerResource
- type DataContainerResourceOperationPredicate
- type DataId
- type DataType
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type ListViewType
- type WorkspaceId
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 ValidateWorkspaceID ¶
ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID
Types ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *DataContainerResource }
type DataContainer ¶
type DataContainer struct { DataType DataType `json:"dataType"` Description *string `json:"description,omitempty"` IsArchived *bool `json:"isArchived,omitempty"` LatestVersion *string `json:"latestVersion,omitempty"` NextVersion *string `json:"nextVersion,omitempty"` Properties *map[string]string `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type DataContainerClient ¶
type DataContainerClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewDataContainerClientWithBaseURI ¶
func NewDataContainerClientWithBaseURI(endpoint string) DataContainerClient
func (DataContainerClient) CreateOrUpdate ¶
func (c DataContainerClient) CreateOrUpdate(ctx context.Context, id DataId, input DataContainerResource) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (DataContainerClient) Delete ¶
func (c DataContainerClient) Delete(ctx context.Context, id DataId) (result DeleteOperationResponse, err error)
Delete ...
func (DataContainerClient) Get ¶
func (c DataContainerClient) Get(ctx context.Context, id DataId) (result GetOperationResponse, err error)
Get ...
func (DataContainerClient) List ¶
func (c DataContainerClient) List(ctx context.Context, id WorkspaceId, options ListOperationOptions) (resp ListOperationResponse, err error)
List ...
func (DataContainerClient) ListComplete ¶
func (c DataContainerClient) ListComplete(ctx context.Context, id WorkspaceId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (DataContainerClient) ListCompleteMatchingPredicate ¶
func (c DataContainerClient) ListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options ListOperationOptions, predicate DataContainerResourceOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type DataContainerResource ¶
type DataContainerResource struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties DataContainer `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type DataContainerResourceOperationPredicate ¶
func (DataContainerResourceOperationPredicate) Matches ¶
func (p DataContainerResourceOperationPredicate) Matches(input DataContainerResource) bool
type DataId ¶
type DataId struct { SubscriptionId string ResourceGroupName string WorkspaceName string Name string }
DataId is a struct representing the Resource ID for a Data
func NewDataID ¶
func NewDataID(subscriptionId string, resourceGroupName string, workspaceName string, name 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 DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *DataContainerResource }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []DataContainerResource
}
type ListOperationOptions ¶
type ListOperationOptions struct { ListViewType *ListViewType Skip *string }
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]DataContainerResource // 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 WorkspaceId ¶
WorkspaceId is a struct representing the Resource ID for a Workspace
func NewWorkspaceID ¶
func NewWorkspaceID(subscriptionId string, resourceGroupName 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) 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