README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2022-10-01/batchdeployment
Documentation
The batchdeployment
SDK allows for interaction with the Azure Resource Manager Service machinelearningservices
(API Version 2022-10-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-10-01/batchdeployment"
Client Initialization
client := batchdeployment.NewBatchDeploymentClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: BatchDeploymentClient.CreateOrUpdate
ctx := context.TODO()
id := batchdeployment.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "batchEndpointValue", "deploymentValue")
payload := batchdeployment.BatchDeploymentTrackedResource{
// ...
}
if err := client.CreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: BatchDeploymentClient.Delete
ctx := context.TODO()
id := batchdeployment.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "batchEndpointValue", "deploymentValue")
if err := client.DeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: BatchDeploymentClient.Get
ctx := context.TODO()
id := batchdeployment.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "batchEndpointValue", "deploymentValue")
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: BatchDeploymentClient.List
ctx := context.TODO()
id := batchdeployment.NewBatchEndpointID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "batchEndpointValue")
// alternatively `client.List(ctx, id, batchdeployment.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, batchdeployment.DefaultListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: BatchDeploymentClient.Update
ctx := context.TODO()
id := batchdeployment.NewDeploymentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "batchEndpointValue", "deploymentValue")
payload := batchdeployment.PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties{
// ...
}
if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Documentation ¶
Index ¶
- func PossibleValuesForBatchLoggingLevel() []string
- func PossibleValuesForBatchOutputAction() []string
- func PossibleValuesForDeploymentProvisioningState() []string
- func PossibleValuesForReferenceType() []string
- func PossibleValuesForSkuTier() []string
- func ValidateBatchEndpointID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateDeploymentID(input interface{}, key string) (warnings []string, errors []error)
- type AssetReferenceBase
- type BatchDeployment
- type BatchDeploymentClient
- func (c BatchDeploymentClient) CreateOrUpdate(ctx context.Context, id DeploymentId, input BatchDeploymentTrackedResource) (result CreateOrUpdateOperationResponse, err error)
- func (c BatchDeploymentClient) CreateOrUpdateThenPoll(ctx context.Context, id DeploymentId, input BatchDeploymentTrackedResource) error
- func (c BatchDeploymentClient) Delete(ctx context.Context, id DeploymentId) (result DeleteOperationResponse, err error)
- func (c BatchDeploymentClient) DeleteThenPoll(ctx context.Context, id DeploymentId) error
- func (c BatchDeploymentClient) Get(ctx context.Context, id DeploymentId) (result GetOperationResponse, err error)
- func (c BatchDeploymentClient) List(ctx context.Context, id BatchEndpointId, options ListOperationOptions) (resp ListOperationResponse, err error)
- func (c BatchDeploymentClient) ListComplete(ctx context.Context, id BatchEndpointId, options ListOperationOptions) (ListCompleteResult, error)
- func (c BatchDeploymentClient) ListCompleteMatchingPredicate(ctx context.Context, id BatchEndpointId, options ListOperationOptions, ...) (resp ListCompleteResult, err error)
- func (c BatchDeploymentClient) Update(ctx context.Context, id DeploymentId, ...) (result UpdateOperationResponse, err error)
- func (c BatchDeploymentClient) UpdateThenPoll(ctx context.Context, id DeploymentId, ...) error
- type BatchDeploymentTrackedResource
- type BatchDeploymentTrackedResourceOperationPredicate
- type BatchEndpointId
- type BatchLoggingLevel
- type BatchOutputAction
- type BatchRetrySettings
- type CodeConfiguration
- type CreateOrUpdateOperationResponse
- type DataPathAssetReference
- type DeleteOperationResponse
- type DeploymentId
- type DeploymentProvisioningState
- type GetOperationResponse
- type IdAssetReference
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type OutputPathAssetReference
- type PartialBatchDeployment
- type PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties
- type ReferenceType
- type ResourceConfiguration
- type Sku
- type SkuTier
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForBatchLoggingLevel ¶
func PossibleValuesForBatchLoggingLevel() []string
func PossibleValuesForBatchOutputAction ¶
func PossibleValuesForBatchOutputAction() []string
func PossibleValuesForDeploymentProvisioningState ¶
func PossibleValuesForDeploymentProvisioningState() []string
func PossibleValuesForReferenceType ¶
func PossibleValuesForReferenceType() []string
func PossibleValuesForSkuTier ¶
func PossibleValuesForSkuTier() []string
func ValidateBatchEndpointID ¶
ValidateBatchEndpointID checks that 'input' can be parsed as a Batch Endpoint ID
func ValidateDeploymentID ¶
ValidateDeploymentID checks that 'input' can be parsed as a Deployment ID
Types ¶
type AssetReferenceBase ¶
type AssetReferenceBase interface { }
type BatchDeployment ¶
type BatchDeployment struct { CodeConfiguration *CodeConfiguration `json:"codeConfiguration,omitempty"` Compute *string `json:"compute,omitempty"` Description *string `json:"description,omitempty"` EnvironmentId *string `json:"environmentId,omitempty"` EnvironmentVariables *map[string]string `json:"environmentVariables,omitempty"` ErrorThreshold *int64 `json:"errorThreshold,omitempty"` LoggingLevel *BatchLoggingLevel `json:"loggingLevel,omitempty"` MaxConcurrencyPerInstance *int64 `json:"maxConcurrencyPerInstance,omitempty"` MiniBatchSize *int64 `json:"miniBatchSize,omitempty"` Model AssetReferenceBase `json:"model"` OutputAction *BatchOutputAction `json:"outputAction,omitempty"` OutputFileName *string `json:"outputFileName,omitempty"` Properties *map[string]string `json:"properties,omitempty"` ProvisioningState *DeploymentProvisioningState `json:"provisioningState,omitempty"` Resources *ResourceConfiguration `json:"resources,omitempty"` RetrySettings *BatchRetrySettings `json:"retrySettings,omitempty"` }
func (*BatchDeployment) UnmarshalJSON ¶
func (s *BatchDeployment) UnmarshalJSON(bytes []byte) error
type BatchDeploymentClient ¶
type BatchDeploymentClient struct { Client autorest.Client // contains filtered or unexported fields }
func NewBatchDeploymentClientWithBaseURI ¶
func NewBatchDeploymentClientWithBaseURI(endpoint string) BatchDeploymentClient
func (BatchDeploymentClient) CreateOrUpdate ¶
func (c BatchDeploymentClient) CreateOrUpdate(ctx context.Context, id DeploymentId, input BatchDeploymentTrackedResource) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (BatchDeploymentClient) CreateOrUpdateThenPoll ¶
func (c BatchDeploymentClient) CreateOrUpdateThenPoll(ctx context.Context, id DeploymentId, input BatchDeploymentTrackedResource) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (BatchDeploymentClient) Delete ¶
func (c BatchDeploymentClient) Delete(ctx context.Context, id DeploymentId) (result DeleteOperationResponse, err error)
Delete ...
func (BatchDeploymentClient) DeleteThenPoll ¶
func (c BatchDeploymentClient) DeleteThenPoll(ctx context.Context, id DeploymentId) error
DeleteThenPoll performs Delete then polls until it's completed
func (BatchDeploymentClient) Get ¶
func (c BatchDeploymentClient) Get(ctx context.Context, id DeploymentId) (result GetOperationResponse, err error)
Get ...
func (BatchDeploymentClient) List ¶
func (c BatchDeploymentClient) List(ctx context.Context, id BatchEndpointId, options ListOperationOptions) (resp ListOperationResponse, err error)
List ...
func (BatchDeploymentClient) ListComplete ¶
func (c BatchDeploymentClient) ListComplete(ctx context.Context, id BatchEndpointId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (BatchDeploymentClient) ListCompleteMatchingPredicate ¶
func (c BatchDeploymentClient) ListCompleteMatchingPredicate(ctx context.Context, id BatchEndpointId, options ListOperationOptions, predicate BatchDeploymentTrackedResourceOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (BatchDeploymentClient) Update ¶
func (c BatchDeploymentClient) Update(ctx context.Context, id DeploymentId, input PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties) (result UpdateOperationResponse, err error)
Update ...
func (BatchDeploymentClient) UpdateThenPoll ¶
func (c BatchDeploymentClient) UpdateThenPoll(ctx context.Context, id DeploymentId, input PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties) error
UpdateThenPoll performs Update then polls until it's completed
type BatchDeploymentTrackedResource ¶
type BatchDeploymentTrackedResource struct { Id *string `json:"id,omitempty"` Identity *identity.LegacySystemAndUserAssignedMap `json:"identity,omitempty"` Kind *string `json:"kind,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties BatchDeployment `json:"properties"` Sku *Sku `json:"sku,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type BatchDeploymentTrackedResourceOperationPredicate ¶
type BatchDeploymentTrackedResourceOperationPredicate struct { Id *string Kind *string Location *string Name *string Type *string }
func (BatchDeploymentTrackedResourceOperationPredicate) Matches ¶
func (p BatchDeploymentTrackedResourceOperationPredicate) Matches(input BatchDeploymentTrackedResource) bool
type BatchEndpointId ¶
type BatchEndpointId struct { SubscriptionId string ResourceGroupName string WorkspaceName string BatchEndpointName string }
BatchEndpointId is a struct representing the Resource ID for a Batch Endpoint
func NewBatchEndpointID ¶
func NewBatchEndpointID(subscriptionId string, resourceGroupName string, workspaceName string, batchEndpointName string) BatchEndpointId
NewBatchEndpointID returns a new BatchEndpointId struct
func ParseBatchEndpointID ¶
func ParseBatchEndpointID(input string) (*BatchEndpointId, error)
ParseBatchEndpointID parses 'input' into a BatchEndpointId
func ParseBatchEndpointIDInsensitively ¶
func ParseBatchEndpointIDInsensitively(input string) (*BatchEndpointId, error)
ParseBatchEndpointIDInsensitively parses 'input' case-insensitively into a BatchEndpointId note: this method should only be used for API response data and not user input
func (BatchEndpointId) ID ¶
func (id BatchEndpointId) ID() string
ID returns the formatted Batch Endpoint ID
func (BatchEndpointId) Segments ¶
func (id BatchEndpointId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Batch Endpoint ID
func (BatchEndpointId) String ¶
func (id BatchEndpointId) String() string
String returns a human-readable description of this Batch Endpoint ID
type BatchLoggingLevel ¶
type BatchLoggingLevel string
const ( BatchLoggingLevelDebug BatchLoggingLevel = "Debug" BatchLoggingLevelInfo BatchLoggingLevel = "Info" BatchLoggingLevelWarning BatchLoggingLevel = "Warning" )
type BatchOutputAction ¶
type BatchOutputAction string
const ( BatchOutputActionAppendRow BatchOutputAction = "AppendRow" BatchOutputActionSummaryOnly BatchOutputAction = "SummaryOnly" )
type BatchRetrySettings ¶
type CodeConfiguration ¶
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DataPathAssetReference ¶
type DataPathAssetReference struct { DatastoreId *string `json:"datastoreId,omitempty"` Path *string `json:"path,omitempty"` }
func (DataPathAssetReference) MarshalJSON ¶
func (s DataPathAssetReference) MarshalJSON() ([]byte, error)
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DeploymentId ¶
type DeploymentId struct { SubscriptionId string ResourceGroupName string WorkspaceName string BatchEndpointName string DeploymentName string }
DeploymentId is a struct representing the Resource ID for a Deployment
func NewDeploymentID ¶
func NewDeploymentID(subscriptionId string, resourceGroupName string, workspaceName string, batchEndpointName string, deploymentName string) DeploymentId
NewDeploymentID returns a new DeploymentId struct
func ParseDeploymentID ¶
func ParseDeploymentID(input string) (*DeploymentId, error)
ParseDeploymentID parses 'input' into a DeploymentId
func ParseDeploymentIDInsensitively ¶
func ParseDeploymentIDInsensitively(input string) (*DeploymentId, error)
ParseDeploymentIDInsensitively parses 'input' case-insensitively into a DeploymentId note: this method should only be used for API response data and not user input
func (DeploymentId) Segments ¶
func (id DeploymentId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Deployment ID
func (DeploymentId) String ¶
func (id DeploymentId) String() string
String returns a human-readable description of this Deployment ID
type DeploymentProvisioningState ¶
type DeploymentProvisioningState string
const ( DeploymentProvisioningStateCanceled DeploymentProvisioningState = "Canceled" DeploymentProvisioningStateCreating DeploymentProvisioningState = "Creating" DeploymentProvisioningStateDeleting DeploymentProvisioningState = "Deleting" DeploymentProvisioningStateFailed DeploymentProvisioningState = "Failed" DeploymentProvisioningStateScaling DeploymentProvisioningState = "Scaling" DeploymentProvisioningStateSucceeded DeploymentProvisioningState = "Succeeded" DeploymentProvisioningStateUpdating DeploymentProvisioningState = "Updating" )
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *BatchDeploymentTrackedResource }
type IdAssetReference ¶
type IdAssetReference struct {
AssetId string `json:"assetId"`
}
func (IdAssetReference) MarshalJSON ¶
func (s IdAssetReference) MarshalJSON() ([]byte, error)
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []BatchDeploymentTrackedResource
}
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]BatchDeploymentTrackedResource // 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 OutputPathAssetReference ¶
type OutputPathAssetReference struct { JobId *string `json:"jobId,omitempty"` Path *string `json:"path,omitempty"` }
func (OutputPathAssetReference) MarshalJSON ¶
func (s OutputPathAssetReference) MarshalJSON() ([]byte, error)
type PartialBatchDeployment ¶
type PartialBatchDeployment struct {
Description *string `json:"description,omitempty"`
}
type PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties ¶
type PartialBatchDeploymentPartialMinimalTrackedResourceWithProperties struct { Properties *PartialBatchDeployment `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type ReferenceType ¶
type ReferenceType string
const ( ReferenceTypeDataPath ReferenceType = "DataPath" ReferenceTypeId ReferenceType = "Id" ReferenceTypeOutputPath ReferenceType = "OutputPath" )
type ResourceConfiguration ¶
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
Source Files ¶
- client.go
- constants.go
- id_batchendpoint.go
- id_deployment.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- method_update_autorest.go
- model_assetreferencebase.go
- model_batchdeployment.go
- model_batchdeploymenttrackedresource.go
- model_batchretrysettings.go
- model_codeconfiguration.go
- model_datapathassetreference.go
- model_idassetreference.go
- model_outputpathassetreference.go
- model_partialbatchdeployment.go
- model_partialbatchdeploymentpartialminimaltrackedresourcewithproperties.go
- model_resourceconfiguration.go
- model_sku.go
- predicates.go
- version.go