diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/client.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/client.go index 1f3866e9d4d5..9b553e4f9ad5 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/client.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/client.go @@ -45,7 +45,8 @@ func New(subscriptionID string) BaseClient { return NewWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewWithBaseURI creates an instance of the BaseClient client. +// NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with +// an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient { return BaseClient{ Client: autorest.NewClientWithUserAgent(UserAgent()), diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningcompute.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningcompute.go index 5b51e4a95d06..7be9834fb89e 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningcompute.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningcompute.go @@ -36,7 +36,9 @@ func NewMachineLearningComputeClient(subscriptionID string) MachineLearningCompu return NewMachineLearningComputeClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewMachineLearningComputeClientWithBaseURI creates an instance of the MachineLearningComputeClient client. +// NewMachineLearningComputeClientWithBaseURI creates an instance of the MachineLearningComputeClient client using a +// custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, +// Azure stack). func NewMachineLearningComputeClientWithBaseURI(baseURI string, subscriptionID string) MachineLearningComputeClient { return MachineLearningComputeClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningservicesapi/interfaces.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningservicesapi/interfaces.go index 327f2243588a..4045c7b73ea2 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningservicesapi/interfaces.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/machinelearningservicesapi/interfaces.go @@ -26,6 +26,7 @@ import ( // BaseClientAPI contains the set of methods on the BaseClient type. type BaseClientAPI interface { ListSkus(ctx context.Context) (result machinelearningservices.SkuListResultPage, err error) + ListSkusComplete(ctx context.Context) (result machinelearningservices.SkuListResultIterator, err error) } var _ BaseClientAPI = (*machinelearningservices.BaseClient)(nil) @@ -43,7 +44,9 @@ type WorkspacesClientAPI interface { Delete(ctx context.Context, resourceGroupName string, workspaceName string) (result autorest.Response, err error) Get(ctx context.Context, resourceGroupName string, workspaceName string) (result machinelearningservices.Workspace, err error) ListByResourceGroup(ctx context.Context, resourceGroupName string, skiptoken string) (result machinelearningservices.WorkspaceListResultPage, err error) + ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, skiptoken string) (result machinelearningservices.WorkspaceListResultIterator, err error) ListBySubscription(ctx context.Context, skiptoken string) (result machinelearningservices.WorkspaceListResultPage, err error) + ListBySubscriptionComplete(ctx context.Context, skiptoken string) (result machinelearningservices.WorkspaceListResultIterator, err error) ListKeys(ctx context.Context, resourceGroupName string, workspaceName string) (result machinelearningservices.ListWorkspaceKeysResult, err error) ResyncKeys(ctx context.Context, resourceGroupName string, workspaceName string) (result autorest.Response, err error) Update(ctx context.Context, resourceGroupName string, workspaceName string, parameters machinelearningservices.WorkspaceUpdateParameters) (result machinelearningservices.Workspace, err error) @@ -54,6 +57,7 @@ var _ WorkspacesClientAPI = (*machinelearningservices.WorkspacesClient)(nil) // WorkspaceFeaturesClientAPI contains the set of methods on the WorkspaceFeaturesClient type. type WorkspaceFeaturesClientAPI interface { List(ctx context.Context, resourceGroupName string, workspaceName string) (result machinelearningservices.ListAmlUserFeatureResultPage, err error) + ListComplete(ctx context.Context, resourceGroupName string, workspaceName string) (result machinelearningservices.ListAmlUserFeatureResultIterator, err error) } var _ WorkspaceFeaturesClientAPI = (*machinelearningservices.WorkspaceFeaturesClient)(nil) @@ -61,6 +65,7 @@ var _ WorkspaceFeaturesClientAPI = (*machinelearningservices.WorkspaceFeaturesCl // UsagesClientAPI contains the set of methods on the UsagesClient type. type UsagesClientAPI interface { List(ctx context.Context, location string) (result machinelearningservices.ListUsagesResultPage, err error) + ListComplete(ctx context.Context, location string) (result machinelearningservices.ListUsagesResultIterator, err error) } var _ UsagesClientAPI = (*machinelearningservices.UsagesClient)(nil) @@ -75,6 +80,7 @@ var _ VirtualMachineSizesClientAPI = (*machinelearningservices.VirtualMachineSiz // QuotasClientAPI contains the set of methods on the QuotasClient type. type QuotasClientAPI interface { List(ctx context.Context, location string) (result machinelearningservices.ListWorkspaceQuotasPage, err error) + ListComplete(ctx context.Context, location string) (result machinelearningservices.ListWorkspaceQuotasIterator, err error) Update(ctx context.Context, location string, parameters machinelearningservices.QuotaUpdateParameters) (result machinelearningservices.UpdateWorkspaceQuotasResult, err error) } @@ -86,6 +92,7 @@ type MachineLearningComputeClientAPI interface { Delete(ctx context.Context, resourceGroupName string, workspaceName string, computeName string, underlyingResourceAction machinelearningservices.UnderlyingResourceAction) (result machinelearningservices.MachineLearningComputeDeleteFuture, err error) Get(ctx context.Context, resourceGroupName string, workspaceName string, computeName string) (result machinelearningservices.ComputeResource, err error) ListByWorkspace(ctx context.Context, resourceGroupName string, workspaceName string, skiptoken string) (result machinelearningservices.PaginatedComputeResourcesListPage, err error) + ListByWorkspaceComplete(ctx context.Context, resourceGroupName string, workspaceName string, skiptoken string) (result machinelearningservices.PaginatedComputeResourcesListIterator, err error) ListKeys(ctx context.Context, resourceGroupName string, workspaceName string, computeName string) (result machinelearningservices.ComputeSecretsModel, err error) ListNodes(ctx context.Context, resourceGroupName string, workspaceName string, computeName string) (result machinelearningservices.AmlComputeNodesInformation, err error) Update(ctx context.Context, resourceGroupName string, workspaceName string, computeName string, parameters machinelearningservices.ClusterUpdateParameters) (result machinelearningservices.MachineLearningComputeUpdateFuture, err error) diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/models.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/models.go index c9b46151d64a..bafa4ec045b9 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/models.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/models.go @@ -133,6 +133,21 @@ func PossibleComputeTypeBasicComputeSecretsValues() []ComputeTypeBasicComputeSec return []ComputeTypeBasicComputeSecrets{ComputeTypeBasicComputeSecretsComputeTypeAKS, ComputeTypeBasicComputeSecretsComputeTypeComputeSecrets, ComputeTypeBasicComputeSecretsComputeTypeDatabricks, ComputeTypeBasicComputeSecretsComputeTypeVirtualMachine} } +// EncryptionStatus enumerates the values for encryption status. +type EncryptionStatus string + +const ( + // Disabled ... + Disabled EncryptionStatus = "Disabled" + // Enabled ... + Enabled EncryptionStatus = "Enabled" +) + +// PossibleEncryptionStatusValues returns an array of possible values for the EncryptionStatus const type. +func PossibleEncryptionStatusValues() []EncryptionStatus { + return []EncryptionStatus{Disabled, Enabled} +} + // NodeState enumerates the values for node state. type NodeState string @@ -309,15 +324,15 @@ func PossibleStatusValues() []Status { type Status1 string const ( - // Disabled ... - Disabled Status1 = "Disabled" - // Enabled ... - Enabled Status1 = "Enabled" + // Status1Disabled ... + Status1Disabled Status1 = "Disabled" + // Status1Enabled ... + Status1Enabled Status1 = "Enabled" ) // PossibleStatus1Values returns an array of possible values for the Status1 const type. func PossibleStatus1Values() []Status1 { - return []Status1{Disabled, Enabled} + return []Status1{Status1Disabled, Status1Enabled} } // UnderlyingResourceAction enumerates the values for underlying resource action. @@ -1560,6 +1575,14 @@ type DataLakeAnalyticsProperties struct { DataLakeStoreAccountName *string `json:"dataLakeStoreAccountName,omitempty"` } +// EncryptionProperty ... +type EncryptionProperty struct { + // Status - Indicates whether or not the encryption is enabled for the workspace. Possible values include: 'Enabled', 'Disabled' + Status EncryptionStatus `json:"status,omitempty"` + // KeyVaultProperties - Customer Key vault properties. + KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"` +} + // Error wrapper for error response to follow ARM guidelines. type Error struct { // Error - READ-ONLY; The error response. @@ -1694,6 +1717,16 @@ type Identity struct { Type ResourceIdentityType `json:"type,omitempty"` } +// KeyVaultProperties ... +type KeyVaultProperties struct { + // KeyVaultArmID - The ArmId of the keyVault where the customer owned encryption key is present. + KeyVaultArmID *string `json:"keyVaultArmId,omitempty"` + // KeyIdentifier - Key vault uri to access the encryption key. + KeyIdentifier *string `json:"keyIdentifier,omitempty"` + // IdentityClientID - For future use - The client id of the identity which will be used to access key vault. + IdentityClientID *string `json:"identityClientId,omitempty"` +} + // ListAmlUserFeatureResult the List Aml user feature operation response. type ListAmlUserFeatureResult struct { autorest.Response `json:"-"` @@ -3016,7 +3049,7 @@ func NewSkuListResultPage(getNextPage func(context.Context, SkuListResult) (SkuL // SslConfiguration the ssl configuration for scoring type SslConfiguration struct { - // Status - Enable or disable ssl for scoring. Possible values include: 'Disabled', 'Enabled' + // Status - Enable or disable ssl for scoring. Possible values include: 'Status1Disabled', 'Status1Enabled' Status Status1 `json:"status,omitempty"` // Cert - Cert data Cert *string `json:"cert,omitempty"` @@ -3576,6 +3609,10 @@ type WorkspaceProperties struct { DiscoveryURL *string `json:"discoveryUrl,omitempty"` // ProvisioningState - READ-ONLY; The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning. Possible values include: 'ProvisioningStateUnknown', 'ProvisioningStateUpdating', 'ProvisioningStateCreating', 'ProvisioningStateDeleting', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` + // Encryption - The encryption settings of Azure ML workspace. + Encryption *EncryptionProperty `json:"encryption,omitempty"` + // HbiWorkspace - The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service + HbiWorkspace *bool `json:"hbiWorkspace,omitempty"` } // WorkspacePropertiesUpdateParameters the parameters for updating the properties of a machine learning diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/operations.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/operations.go index 66174c5d2807..a83673feebf9 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/operations.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/operations.go @@ -35,7 +35,8 @@ func NewOperationsClient(subscriptionID string) OperationsClient { return NewOperationsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client. +// NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient { return OperationsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privateendpointconnections.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privateendpointconnections.go index 42fc321c024c..7e574b830c86 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privateendpointconnections.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privateendpointconnections.go @@ -37,7 +37,9 @@ func NewPrivateEndpointConnectionsClient(subscriptionID string) PrivateEndpointC return NewPrivateEndpointConnectionsClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewPrivateEndpointConnectionsClientWithBaseURI creates an instance of the PrivateEndpointConnectionsClient client. +// NewPrivateEndpointConnectionsClientWithBaseURI creates an instance of the PrivateEndpointConnectionsClient client +// using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign +// clouds, Azure stack). func NewPrivateEndpointConnectionsClientWithBaseURI(baseURI string, subscriptionID string) PrivateEndpointConnectionsClient { return PrivateEndpointConnectionsClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privatelinkresources.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privatelinkresources.go index 80f13fe8fd1a..354c46568e71 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privatelinkresources.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/privatelinkresources.go @@ -36,7 +36,9 @@ func NewPrivateLinkResourcesClient(subscriptionID string) PrivateLinkResourcesCl return NewPrivateLinkResourcesClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewPrivateLinkResourcesClientWithBaseURI creates an instance of the PrivateLinkResourcesClient client. +// NewPrivateLinkResourcesClientWithBaseURI creates an instance of the PrivateLinkResourcesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). func NewPrivateLinkResourcesClientWithBaseURI(baseURI string, subscriptionID string) PrivateLinkResourcesClient { return PrivateLinkResourcesClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/quotas.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/quotas.go index 6b9d8c0962e0..6449d34609c5 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/quotas.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/quotas.go @@ -36,7 +36,8 @@ func NewQuotasClient(subscriptionID string) QuotasClient { return NewQuotasClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewQuotasClientWithBaseURI creates an instance of the QuotasClient client. +// NewQuotasClientWithBaseURI creates an instance of the QuotasClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewQuotasClientWithBaseURI(baseURI string, subscriptionID string) QuotasClient { return QuotasClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/usages.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/usages.go index 8c65ee6423d0..bef272cbc0ba 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/usages.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/usages.go @@ -36,7 +36,8 @@ func NewUsagesClient(subscriptionID string) UsagesClient { return NewUsagesClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client. +// NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when +// interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string) UsagesClient { return UsagesClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/virtualmachinesizes.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/virtualmachinesizes.go index 989ff8b4fe2c..00cafd5c5eaa 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/virtualmachinesizes.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/virtualmachinesizes.go @@ -37,7 +37,9 @@ func NewVirtualMachineSizesClient(subscriptionID string) VirtualMachineSizesClie return NewVirtualMachineSizesClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewVirtualMachineSizesClientWithBaseURI creates an instance of the VirtualMachineSizesClient client. +// NewVirtualMachineSizesClientWithBaseURI creates an instance of the VirtualMachineSizesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). func NewVirtualMachineSizesClientWithBaseURI(baseURI string, subscriptionID string) VirtualMachineSizesClient { return VirtualMachineSizesClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspacefeatures.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspacefeatures.go index 4d5f8b3a71f6..d5db251b8bbb 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspacefeatures.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspacefeatures.go @@ -35,7 +35,9 @@ func NewWorkspaceFeaturesClient(subscriptionID string) WorkspaceFeaturesClient { return NewWorkspaceFeaturesClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewWorkspaceFeaturesClientWithBaseURI creates an instance of the WorkspaceFeaturesClient client. +// NewWorkspaceFeaturesClientWithBaseURI creates an instance of the WorkspaceFeaturesClient client using a custom +// endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure +// stack). func NewWorkspaceFeaturesClientWithBaseURI(baseURI string, subscriptionID string) WorkspaceFeaturesClient { return WorkspaceFeaturesClient{NewWithBaseURI(baseURI, subscriptionID)} } diff --git a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspaces.go b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspaces.go index 65e8f21ba830..1a6d78814fbb 100644 --- a/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspaces.go +++ b/services/machinelearningservices/mgmt/2020-01-01/machinelearningservices/workspaces.go @@ -21,6 +21,7 @@ import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) @@ -35,7 +36,8 @@ func NewWorkspacesClient(subscriptionID string) WorkspacesClient { return NewWorkspacesClientWithBaseURI(DefaultBaseURI, subscriptionID) } -// NewWorkspacesClientWithBaseURI creates an instance of the WorkspacesClient client. +// NewWorkspacesClientWithBaseURI creates an instance of the WorkspacesClient client using a custom endpoint. Use this +// when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack). func NewWorkspacesClientWithBaseURI(baseURI string, subscriptionID string) WorkspacesClient { return WorkspacesClient{NewWithBaseURI(baseURI, subscriptionID)} } @@ -56,6 +58,19 @@ func (client WorkspacesClient) CreateOrUpdate(ctx context.Context, resourceGroup tracing.EndSpan(ctx, sc, err) }() } + if err := validation.Validate([]validation.Validation{ + {TargetValue: parameters, + Constraints: []validation.Constraint{{Target: "parameters.WorkspaceProperties", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WorkspaceProperties.Encryption", Name: validation.Null, Rule: false, + Chain: []validation.Constraint{{Target: "parameters.WorkspaceProperties.Encryption.KeyVaultProperties", Name: validation.Null, Rule: true, + Chain: []validation.Constraint{{Target: "parameters.WorkspaceProperties.Encryption.KeyVaultProperties.KeyVaultArmID", Name: validation.Null, Rule: true, Chain: nil}, + {Target: "parameters.WorkspaceProperties.Encryption.KeyVaultProperties.KeyIdentifier", Name: validation.Null, Rule: true, Chain: nil}, + }}, + }}, + }}}}}); err != nil { + return result, validation.NewError("machinelearningservices.WorkspacesClient", "CreateOrUpdate", err.Error()) + } + req, err := client.CreateOrUpdatePreparer(ctx, resourceGroupName, workspaceName, parameters) if err != nil { err = autorest.NewErrorWithError(err, "machinelearningservices.WorkspacesClient", "CreateOrUpdate", nil, "Failure preparing request")