diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
index 66d924503f0c3..9970fd20baf41 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
@@ -1,14 +1,440 @@
# Release History
-## 1.2.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2024-10-18)
-### Features Added
+- Azure Resource Manager Machine Learning client library for Java. This package contains Microsoft Azure SDK for Machine Learning Management SDK. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2024-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
### Breaking Changes
-### Bugs Fixed
+#### `models.ComponentContainer$DefinitionStages` was modified
+
+* `withExistingWorkspace(java.lang.String,java.lang.String)` was removed in stage 1
+
+#### `models.DataContainer$DefinitionStages` was modified
+
+* `withExistingWorkspace(java.lang.String,java.lang.String)` was removed in stage 1
+
+#### `models.EnvironmentContainer$DefinitionStages` was modified
+
+* `withExistingWorkspace(java.lang.String,java.lang.String)` was removed in stage 1
+
+#### `models.ModelContainer$DefinitionStages` was modified
+
+* `withExistingWorkspace(java.lang.String,java.lang.String)` was removed in stage 1
+
+#### `models.CodeContainer$DefinitionStages` was modified
+
+* `withExistingWorkspace(java.lang.String,java.lang.String)` was removed in stage 1
+
+#### `models.CodeVersions` was modified
+
+* `deleteById(java.lang.String)` was removed
+* `define(java.lang.String)` was removed
+* `getById(java.lang.String)` was removed
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+
+#### `models.ComponentContainers` was modified
+
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `deleteById(java.lang.String)` was removed
+* `define(java.lang.String)` was removed
+* `getById(java.lang.String)` was removed
+
+#### `models.DataContainer$Definition` was modified
+
+* `withExistingWorkspace(java.lang.String,java.lang.String)` was removed
+
+#### `models.DataVersionBase` was modified
+
+* `publish(models.DestinationAsset)` was removed
+* `publish(models.DestinationAsset,com.azure.core.util.Context)` was removed
+
+#### `models.DataContainers` was modified
+
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `define(java.lang.String)` was removed
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `deleteById(java.lang.String)` was removed
+* `getById(java.lang.String)` was removed
+
+#### `models.ComponentVersion` was modified
+
+* `publish(models.DestinationAsset)` was removed
+* `publish(models.DestinationAsset,com.azure.core.util.Context)` was removed
+
+#### `models.RegistryComponentVersions` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.ComponentVersionInner)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.ComponentVersionInner,com.azure.core.util.Context)` was removed
+
+#### `models.RegistryEnvironmentContainers` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.EnvironmentContainerInner,com.azure.core.util.Context)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.EnvironmentContainerInner)` was removed
+
+#### `models.RegistryCodeContainers` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.CodeContainerInner,com.azure.core.util.Context)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.CodeContainerInner)` was removed
+
+#### `models.RegistryEnvironmentVersions` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.EnvironmentVersionInner,com.azure.core.util.Context)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.EnvironmentVersionInner)` was removed
+
+#### `models.EnvironmentContainers` was modified
+
+* `deleteById(java.lang.String)` was removed
+* `define(java.lang.String)` was removed
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `getById(java.lang.String)` was removed
+
+#### `models.ModelContainer$Definition` was modified
+
+* `withExistingWorkspace(java.lang.String,java.lang.String)` was removed
+
+#### `models.CodeContainer$Definition` was modified
+
+* `withExistingWorkspace(java.lang.String,java.lang.String)` was removed
+
+#### `models.RegistryCodeVersions` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.CodeVersionInner)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.CodeVersionInner,com.azure.core.util.Context)` was removed
+
+#### `models.RegistryDataContainers` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.DataContainerInner,com.azure.core.util.Context)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.DataContainerInner)` was removed
+
+#### `models.EnvironmentContainer$Definition` was modified
+
+* `withExistingWorkspace(java.lang.String,java.lang.String)` was removed
+
+#### `models.WorkspaceConnections` was modified
+
+* `list(java.lang.String,java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+
+#### `models.CodeVersion` was modified
+
+* `publish(models.DestinationAsset,com.azure.core.util.Context)` was removed
+* `publish(models.DestinationAsset)` was removed
+
+#### `MachineLearningManager` was modified
+
+* `fluent.AzureMachineLearningWorkspaces serviceClient()` -> `fluent.AzureMachineLearningServices serviceClient()`
+
+#### `models.WorkspaceUpdateParameters` was modified
+
+* `java.lang.Boolean v1LegacyMode()` -> `java.lang.Boolean v1LegacyMode()`
+* `java.lang.String imageBuildCompute()` -> `java.lang.String imageBuildCompute()`
+* `models.FeatureStoreSettings featureStoreSettings()` -> `models.FeatureStoreSettings featureStoreSettings()`
+* `withApplicationInsights(java.lang.String)` was removed
+* `java.lang.Boolean enableDataIsolation()` -> `java.lang.Boolean enableDataIsolation()`
+* `withEncryption(models.EncryptionUpdateProperties)` was removed
+* `validate()` was removed
+* `withImageBuildCompute(java.lang.String)` was removed
+* `java.lang.String friendlyName()` -> `java.lang.String friendlyName()`
+* `java.util.Map tags()` -> `java.util.Map tags()`
+* `withTags(java.util.Map)` was removed
+* `withPrimaryUserAssignedIdentity(java.lang.String)` was removed
+* `models.ServerlessComputeSettings serverlessComputeSettings()` -> `models.ServerlessComputeSettings serverlessComputeSettings()`
+* `models.PublicNetworkAccess publicNetworkAccess()` -> `models.PublicNetworkAccess publicNetworkAccess()`
+* `withV1LegacyMode(java.lang.Boolean)` was removed
+* `fromJson(com.azure.json.JsonReader)` was removed
+* `withFriendlyName(java.lang.String)` was removed
+* `withServerlessComputeSettings(models.ServerlessComputeSettings)` was removed
+* `models.Sku sku()` -> `models.Sku sku()`
+* `withSku(models.Sku)` was removed
+* `withPublicNetworkAccess(models.PublicNetworkAccess)` was removed
+* `java.lang.String applicationInsights()` -> `java.lang.String applicationInsights()`
+* `java.lang.String primaryUserAssignedIdentity()` -> `java.lang.String primaryUserAssignedIdentity()`
+* `withContainerRegistry(java.lang.String)` was removed
+* `withFeatureStoreSettings(models.FeatureStoreSettings)` was removed
+* `fluent.models.ManagedNetworkSettingsInner managedNetwork()` -> `models.ManagedNetworkSettings managedNetwork()`
+* `java.lang.String containerRegistry()` -> `java.lang.String containerRegistry()`
+* `models.EncryptionUpdateProperties encryption()` -> `models.EncryptionUpdateProperties encryption()`
+* `toJson(com.azure.json.JsonWriter)` was removed
+* `withServiceManagedResourcesSettings(models.ServiceManagedResourcesSettings)` was removed
+* `withIdentity(models.ManagedServiceIdentity)` was removed
+* `models.ServiceManagedResourcesSettings serviceManagedResourcesSettings()` -> `models.ServiceManagedResourcesSettings serviceManagedResourcesSettings()`
+* `models.ManagedServiceIdentity identity()` -> `models.ManagedServiceIdentity identity()`
+* `withDescription(java.lang.String)` was removed
+* `withEnableDataIsolation(java.lang.Boolean)` was removed
+* `java.lang.String description()` -> `java.lang.String description()`
+* `withManagedNetwork(fluent.models.ManagedNetworkSettingsInner)` was removed
+
+#### `models.RegistryComponentContainers` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.ComponentContainerInner,com.azure.core.util.Context)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.ComponentContainerInner)` was removed
+
+#### `models.ComponentVersions` was modified
+
+* `deleteById(java.lang.String)` was removed
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `define(java.lang.String)` was removed
+* `getById(java.lang.String)` was removed
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+
+#### `models.RegistryDataVersions` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.DataVersionBaseInner,com.azure.core.util.Context)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.DataVersionBaseInner)` was removed
+
+#### `models.CodeContainers` was modified
+
+* `define(java.lang.String)` was removed
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `deleteById(java.lang.String)` was removed
+* `getById(java.lang.String)` was removed
+
+#### `models.DataVersions` was modified
+
+* `define(java.lang.String)` was removed
+* `deleteById(java.lang.String)` was removed
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `getById(java.lang.String)` was removed
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+
+#### `models.EnvironmentVersions` was modified
+
+* `define(java.lang.String)` was removed
+* `deleteById(java.lang.String)` was removed
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `getById(java.lang.String)` was removed
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+
+#### `models.ComponentContainer$Definition` was modified
+
+* `withExistingWorkspace(java.lang.String,java.lang.String)` was removed
+
+#### `models.ModelVersions` was modified
+
+* `deleteById(java.lang.String)` was removed
+* `define(java.lang.String)` was removed
+* `getById(java.lang.String)` was removed
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+
+#### `models.ModelVersion` was modified
+
+* `publish(models.DestinationAsset)` was removed
+* `publish(models.DestinationAsset,com.azure.core.util.Context)` was removed
+
+#### `models.RegistryModelVersions` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.ModelVersionInner)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.ModelVersionInner,com.azure.core.util.Context)` was removed
+
+#### `models.ModelContainers` was modified
+
+* `define(java.lang.String)` was removed
+* `getById(java.lang.String)` was removed
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `deleteById(java.lang.String)` was removed
+
+#### `models.EnvironmentVersion` was modified
+
+* `publish(models.DestinationAsset)` was removed
+* `publish(models.DestinationAsset,com.azure.core.util.Context)` was removed
+
+#### `models.RegistryModelContainers` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.ModelContainerInner)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.ModelContainerInner,com.azure.core.util.Context)` was removed
+
+### Features Added
+
+* `models.WorkspaceConnectionPropertiesV2BasicResource$Update` was added
+
+* `models.WorkspaceConnectionUpdateParameter` was added
+
+* `models.FirewallSku` was added
+
+* `models.WorkspaceConnectionPropertiesV2BasicResource$UpdateStages` was added
+
+#### `models.CodeVersions` was modified
+
+* `createOrUpdateWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.CodeVersionInner,com.azure.core.util.Context)` was added
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.CodeVersionInner)` was added
+
+#### `models.ComponentContainers` was modified
+
+* `createOrUpdateWithResponse(java.lang.String,java.lang.String,java.lang.String,fluent.models.ComponentContainerInner,com.azure.core.util.Context)` was added
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.ComponentContainerInner)` was added
+
+#### `models.DataContainer$Definition` was modified
+
+* `withExistingRegistry(java.lang.String,java.lang.String)` was added
+
+#### `models.DataVersionBase` was modified
+
+* `createOrGetStartPendingUpload(models.PendingUploadRequestDto)` was added
+* `createOrGetStartPendingUploadWithResponse(models.PendingUploadRequestDto,com.azure.core.util.Context)` was added
+
+#### `models.DataContainers` was modified
+
+* `createOrUpdateWithResponse(java.lang.String,java.lang.String,java.lang.String,fluent.models.DataContainerInner,com.azure.core.util.Context)` was added
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.DataContainerInner)` was added
+
+#### `models.RegistryComponentVersions` was modified
+
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `deleteById(java.lang.String)` was added
+* `define(java.lang.String)` was added
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `getById(java.lang.String)` was added
+
+#### `models.RegistryEnvironmentContainers` was modified
+
+* `getById(java.lang.String)` was added
+* `deleteById(java.lang.String)` was added
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `define(java.lang.String)` was added
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.RegistryCodeContainers` was modified
+
+* `getById(java.lang.String)` was added
+* `define(java.lang.String)` was added
+* `deleteById(java.lang.String)` was added
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.RegistryEnvironmentVersions` was modified
+
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `deleteById(java.lang.String)` was added
+* `define(java.lang.String)` was added
+* `getById(java.lang.String)` was added
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.EnvironmentContainers` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.EnvironmentContainerInner)` was added
+* `createOrUpdateWithResponse(java.lang.String,java.lang.String,java.lang.String,fluent.models.EnvironmentContainerInner,com.azure.core.util.Context)` was added
+
+#### `models.ModelContainer$Definition` was modified
+
+* `withExistingRegistry(java.lang.String,java.lang.String)` was added
+
+#### `models.CodeContainer$Definition` was modified
+
+* `withExistingRegistry(java.lang.String,java.lang.String)` was added
+
+#### `models.RegistryCodeVersions` was modified
+
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `deleteById(java.lang.String)` was added
+* `getById(java.lang.String)` was added
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `define(java.lang.String)` was added
+
+#### `models.RegistryDataContainers` was modified
+
+* `deleteById(java.lang.String)` was added
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `define(java.lang.String)` was added
+* `getById(java.lang.String)` was added
+
+#### `models.EnvironmentContainer$Definition` was modified
+
+* `withExistingRegistry(java.lang.String,java.lang.String)` was added
+
+#### `models.WorkspaceConnections` was modified
+
+* `list(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Boolean,com.azure.core.util.Context)` was added
+
+#### `models.ManagedNetworkSettings` was modified
+
+* `firewallSku()` was added
+
+#### `models.WorkspaceUpdateParameters` was modified
+
+* `innerModel()` was added
+
+#### `models.RegistryComponentContainers` was modified
+
+* `define(java.lang.String)` was added
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `getById(java.lang.String)` was added
+* `deleteById(java.lang.String)` was added
+
+#### `models.WorkspaceConnectionPropertiesV2BasicResource` was modified
+
+* `update()` was added
+* `resourceGroupName()` was added
+
+#### `models.ComponentVersions` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.ComponentVersionInner)` was added
+* `createOrUpdateWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.ComponentVersionInner,com.azure.core.util.Context)` was added
+
+#### `models.RegistryDataVersions` was modified
+
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `deleteById(java.lang.String)` was added
+* `getById(java.lang.String)` was added
+* `define(java.lang.String)` was added
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.CodeContainers` was modified
+
+* `createOrUpdateWithResponse(java.lang.String,java.lang.String,java.lang.String,fluent.models.CodeContainerInner,com.azure.core.util.Context)` was added
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.CodeContainerInner)` was added
+
+#### `models.DataVersions` was modified
+
+* `createOrUpdateWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.DataVersionBaseInner,com.azure.core.util.Context)` was added
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.DataVersionBaseInner)` was added
+
+#### `models.EnvironmentVersions` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.EnvironmentVersionInner)` was added
+* `createOrUpdateWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.EnvironmentVersionInner,com.azure.core.util.Context)` was added
+
+#### `models.ComponentContainer$Definition` was modified
+
+* `withExistingRegistry(java.lang.String,java.lang.String)` was added
+
+#### `models.ModelVersions` was modified
+
+* `createOrUpdateWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.ModelVersionInner,com.azure.core.util.Context)` was added
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.ModelVersionInner)` was added
+
+#### `models.ModelVersion` was modified
+
+* `createOrGetStartPendingUploadWithResponse(models.PendingUploadRequestDto,com.azure.core.util.Context)` was added
+* `createOrGetStartPendingUpload(models.PendingUploadRequestDto)` was added
+
+#### `models.RegistryModelVersions` was modified
+
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `deleteById(java.lang.String)` was added
+* `define(java.lang.String)` was added
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `getById(java.lang.String)` was added
+
+#### `models.ModelContainers` was modified
+
+* `createOrUpdateWithResponse(java.lang.String,java.lang.String,java.lang.String,fluent.models.ModelContainerInner,com.azure.core.util.Context)` was added
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.ModelContainerInner)` was added
+
+#### `models.RegistryModelContainers` was modified
-### Other Changes
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `define(java.lang.String)` was added
+* `deleteById(java.lang.String)` was added
+* `getById(java.lang.String)` was added
## 1.1.0 (2024-08-22)
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/README.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/README.md
index 4184eaf56d90e..076b2495ce4d2 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/README.md
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/README.md
@@ -2,7 +2,7 @@
Azure Resource Manager Machine Learning client library for Java.
-This package contains Microsoft Azure SDK for Machine Learning Management SDK. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2024-04. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
+This package contains Microsoft Azure SDK for Machine Learning Management SDK. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2024-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
## We'd love to hear your feedback
@@ -32,7 +32,7 @@ Various documentation is available to help you get started
com.azure.resourcemanager
azure-resourcemanager-machinelearning
- 1.1.0
+ 1.2.0-beta.1
```
[//]: # ({x-version-update-end})
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
index 0ef21ec43a9a0..4d1b8c71c3923 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
@@ -335,6 +335,7 @@
- [Get](#workspaceconnections_get)
- [List](#workspaceconnections_list)
- [ListSecrets](#workspaceconnections_listsecrets)
+- [Update](#workspaceconnections_update)
## WorkspaceFeatures
@@ -384,7 +385,7 @@ import java.util.Map;
public final class BatchDeploymentsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchDeployment/createOrUpdate.json
*/
/**
@@ -398,19 +399,19 @@ public final class BatchDeploymentsCreateOrUpdateSamples {
.define("testDeploymentName")
.withRegion("string")
.withExistingBatchEndpoint("test-rg", "my-aml-workspace", "testEndpointName")
- .withProperties(new BatchDeploymentProperties().withDescription("string")
- .withProperties(mapOf("string", "string"))
+ .withProperties(new BatchDeploymentProperties()
.withCodeConfiguration(
new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string"))
+ .withDescription("string")
.withEnvironmentId("string")
.withEnvironmentVariables(mapOf("string", "string"))
+ .withProperties(mapOf("string", "string"))
.withCompute("string")
.withErrorThreshold(1)
- .withRetrySettings(new BatchRetrySettings().withMaxRetries(1).withTimeout(Duration.parse("PT5M")))
- .withMiniBatchSize(1L)
.withLoggingLevel(BatchLoggingLevel.INFO)
- .withModel(new IdAssetReference().withAssetId("string"))
.withMaxConcurrencyPerInstance(1)
+ .withMiniBatchSize(1L)
+ .withModel(new IdAssetReference().withAssetId("string"))
.withOutputAction(BatchOutputAction.SUMMARY_ONLY)
.withOutputFileName("string")
.withResources(new DeploymentResourceConfiguration().withInstanceCount(1)
@@ -418,11 +419,12 @@ public final class BatchDeploymentsCreateOrUpdateSamples {
.withProperties(mapOf("string",
SerializerFactory.createDefaultManagementSerializerAdapter()
.deserialize("{\"cd3c37dc-2876-4ca4-8a54-21bd7619724a\":null}", Object.class,
- SerializerEncoding.JSON)))))
+ SerializerEncoding.JSON))))
+ .withRetrySettings(new BatchRetrySettings().withMaxRetries(1).withTimeout(Duration.parse("PT5M"))))
.withTags(mapOf())
- .withKind("string")
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
.withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
.withSku(new Sku().withName("string")
.withTier(SkuTier.FREE)
.withSize("string")
@@ -454,7 +456,7 @@ public final class BatchDeploymentsCreateOrUpdateSamples {
public final class BatchDeploymentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchDeployment/delete.json
*/
/**
@@ -480,7 +482,7 @@ public final class BatchDeploymentsDeleteSamples {
public final class BatchDeploymentsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchDeployment/get.json
*/
/**
@@ -506,7 +508,7 @@ public final class BatchDeploymentsGetSamples {
public final class BatchDeploymentsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchDeployment/list.json
*/
/**
@@ -537,7 +539,7 @@ import java.util.Map;
public final class BatchDeploymentsUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchDeployment/update.json
*/
/**
@@ -591,7 +593,7 @@ import java.util.Map;
public final class BatchEndpointsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchEndpoint/createOrUpdate.json
*/
/**
@@ -605,14 +607,14 @@ public final class BatchEndpointsCreateOrUpdateSamples {
.define("testEndpointName")
.withRegion("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
- .withProperties(new BatchEndpointProperties().withDescription("string")
+ .withProperties(new BatchEndpointProperties().withAuthMode(EndpointAuthMode.AMLTOKEN)
+ .withDescription("string")
.withProperties(mapOf("string", "string"))
- .withAuthMode(EndpointAuthMode.AMLTOKEN)
.withDefaults(new BatchEndpointDefaults().withDeploymentName("string")))
.withTags(mapOf())
- .withKind("string")
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
.withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
.withSku(new Sku().withName("string")
.withTier(SkuTier.FREE)
.withSize("string")
@@ -644,7 +646,7 @@ public final class BatchEndpointsCreateOrUpdateSamples {
public final class BatchEndpointsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchEndpoint/delete.json
*/
/**
@@ -669,7 +671,7 @@ public final class BatchEndpointsDeleteSamples {
public final class BatchEndpointsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchEndpoint/get.json
*/
/**
@@ -694,7 +696,7 @@ public final class BatchEndpointsGetSamples {
public final class BatchEndpointsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchEndpoint/list.json
*/
/**
@@ -718,7 +720,7 @@ public final class BatchEndpointsListSamples {
public final class BatchEndpointsListKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchEndpoint/listKeys.json
*/
/**
@@ -752,7 +754,7 @@ import java.util.Map;
public final class BatchEndpointsUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/BatchEndpoint/update.json
*/
/**
@@ -791,6 +793,7 @@ public final class BatchEndpointsUpdateSamples {
### CodeContainers_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.CodeContainerInner;
import com.azure.resourcemanager.machinelearning.models.CodeContainerProperties;
import java.util.HashMap;
import java.util.Map;
@@ -801,7 +804,7 @@ import java.util.Map;
public final class CodeContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeContainer/createOrUpdate.json
*/
/**
@@ -812,11 +815,10 @@ public final class CodeContainersCreateOrUpdateSamples {
public static void
createOrUpdateWorkspaceCodeContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.codeContainers()
- .define("testContainer")
- .withExistingWorkspace("testrg123", "testworkspace")
- .withProperties(new CodeContainerProperties().withDescription("string")
- .withTags(mapOf("tag1", "value1", "tag2", "value2")))
- .create();
+ .createOrUpdateWithResponse("testrg123", "testworkspace", "testContainer",
+ new CodeContainerInner().withProperties(new CodeContainerProperties().withDescription("string")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -842,7 +844,7 @@ public final class CodeContainersCreateOrUpdateSamples {
public final class CodeContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeContainer/delete.json
*/
/**
@@ -867,7 +869,7 @@ public final class CodeContainersDeleteSamples {
public final class CodeContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeContainer/get.json
*/
/**
@@ -892,7 +894,7 @@ public final class CodeContainersGetSamples {
public final class CodeContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeContainer/list.json
*/
/**
@@ -919,7 +921,7 @@ import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
public final class CodeVersionsCreateOrGetStartPendingUploadSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeVersion/createOrGetStartPendingUpload.json
*/
/**
@@ -941,6 +943,7 @@ public final class CodeVersionsCreateOrGetStartPendingUploadSamples {
### CodeVersions_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.CodeVersionInner;
import com.azure.resourcemanager.machinelearning.models.CodeVersionProperties;
import java.util.HashMap;
import java.util.Map;
@@ -951,7 +954,7 @@ import java.util.Map;
public final class CodeVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeVersion/createOrUpdate.json
*/
/**
@@ -962,14 +965,13 @@ public final class CodeVersionsCreateOrUpdateSamples {
public static void
createOrUpdateWorkspaceCodeVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.codeVersions()
- .define("string")
- .withExistingCode("test-rg", "my-aml-workspace", "string")
- .withProperties(new CodeVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withCodeUri("fakeTokenPlaceholder"))
- .create();
+ .createOrUpdateWithResponse("test-rg", "my-aml-workspace", "string", "string",
+ new CodeVersionInner().withProperties(new CodeVersionProperties().withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withCodeUri("fakeTokenPlaceholder")),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -995,7 +997,7 @@ public final class CodeVersionsCreateOrUpdateSamples {
public final class CodeVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeVersion/delete.json
*/
/**
@@ -1020,7 +1022,7 @@ public final class CodeVersionsDeleteSamples {
public final class CodeVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeVersion/get.json
*/
/**
@@ -1045,7 +1047,7 @@ public final class CodeVersionsGetSamples {
public final class CodeVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeVersion/list.json
*/
/**
@@ -1073,7 +1075,7 @@ import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
public final class CodeVersionsPublishSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/CodeVersion/publish.json
*/
/**
@@ -1085,9 +1087,9 @@ public final class CodeVersionsPublishSamples {
publishWorkspaceCodeVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.codeVersions()
.publish("test-rg", "my-aml-workspace", "string", "string",
- new DestinationAsset().withRegistryName("string")
- .withDestinationName("string")
- .withDestinationVersion("string"),
+ new DestinationAsset().withDestinationName("string")
+ .withDestinationVersion("string")
+ .withRegistryName("string"),
com.azure.core.util.Context.NONE);
}
}
@@ -1096,6 +1098,7 @@ public final class CodeVersionsPublishSamples {
### ComponentContainers_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.ComponentContainerInner;
import com.azure.resourcemanager.machinelearning.models.ComponentContainerProperties;
import java.util.HashMap;
import java.util.Map;
@@ -1106,7 +1109,7 @@ import java.util.Map;
public final class ComponentContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ComponentContainer/createOrUpdate.json
*/
/**
@@ -1117,12 +1120,12 @@ public final class ComponentContainersCreateOrUpdateSamples {
public static void createOrUpdateWorkspaceComponentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.componentContainers()
- .define("string")
- .withExistingWorkspace("test-rg", "my-aml-workspace")
- .withProperties(new ComponentContainerProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string")))
- .create();
+ .createOrUpdateWithResponse("test-rg", "my-aml-workspace", "string",
+ new ComponentContainerInner()
+ .withProperties(new ComponentContainerProperties().withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -1148,7 +1151,7 @@ public final class ComponentContainersCreateOrUpdateSamples {
public final class ComponentContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ComponentContainer/delete.json
*/
/**
@@ -1173,7 +1176,7 @@ public final class ComponentContainersDeleteSamples {
public final class ComponentContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ComponentContainer/get.json
*/
/**
@@ -1199,7 +1202,7 @@ public final class ComponentContainersGetSamples {
public final class ComponentContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ComponentContainer/list.json
*/
/**
@@ -1219,6 +1222,7 @@ public final class ComponentContainersListSamples {
```java
import com.azure.core.management.serializer.SerializerFactory;
import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.machinelearning.fluent.models.ComponentVersionInner;
import com.azure.resourcemanager.machinelearning.models.ComponentVersionProperties;
import java.io.IOException;
import java.util.HashMap;
@@ -1230,7 +1234,7 @@ import java.util.Map;
public final class ComponentVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ComponentVersion/createOrUpdate.json
*/
/**
@@ -1241,16 +1245,15 @@ public final class ComponentVersionsCreateOrUpdateSamples {
public static void createOrUpdateWorkspaceComponentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
manager.componentVersions()
- .define("string")
- .withExistingComponent("test-rg", "my-aml-workspace", "string")
- .withProperties(new ComponentVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withComponentSpec(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"8ced901b-d826-477d-bfef-329da9672513\":null}", Object.class,
- SerializerEncoding.JSON)))
- .create();
+ .createOrUpdateWithResponse("test-rg", "my-aml-workspace", "string", "string",
+ new ComponentVersionInner().withProperties(new ComponentVersionProperties().withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withComponentSpec(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{\"8ced901b-d826-477d-bfef-329da9672513\":null}", Object.class,
+ SerializerEncoding.JSON))),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -1276,7 +1279,7 @@ public final class ComponentVersionsCreateOrUpdateSamples {
public final class ComponentVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ComponentVersion/delete.json
*/
/**
@@ -1301,7 +1304,7 @@ public final class ComponentVersionsDeleteSamples {
public final class ComponentVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ComponentVersion/get.json
*/
/**
@@ -1327,7 +1330,7 @@ public final class ComponentVersionsGetSamples {
public final class ComponentVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ComponentVersion/list.json
*/
/**
@@ -1354,7 +1357,7 @@ import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
public final class ComponentVersionsPublishSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ComponentVersion/publish.json
*/
/**
@@ -1366,9 +1369,9 @@ public final class ComponentVersionsPublishSamples {
publishWorkspaceComponentVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.componentVersions()
.publish("test-rg", "my-aml-workspace", "string", "string",
- new DestinationAsset().withRegistryName("string")
- .withDestinationName("string")
- .withDestinationVersion("string"),
+ new DestinationAsset().withDestinationName("string")
+ .withDestinationVersion("string")
+ .withRegistryName("string"),
com.azure.core.util.Context.NONE);
}
}
@@ -1427,7 +1430,7 @@ import java.util.Map;
public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/createOrUpdate/BasicAKSCompute.json
*/
/**
@@ -1446,7 +1449,7 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/createOrUpdate/AKSCompute.json
*/
/**
@@ -1468,7 +1471,7 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/createOrUpdate/KubernetesCompute.json
*/
/**
@@ -1496,7 +1499,7 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json
*/
/**
@@ -1530,7 +1533,7 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/createOrUpdate/BasicAmlCompute.json
*/
/**
@@ -1559,7 +1562,7 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/createOrUpdate/ComputeInstance.json
*/
/**
@@ -1605,7 +1608,7 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/createOrUpdate/ComputeInstanceMinimal.json
*/
/**
@@ -1626,7 +1629,7 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/createOrUpdate/AmlCompute.json
*/
/**
@@ -1648,7 +1651,7 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/createOrUpdate/BasicDataFactoryCompute.json
*/
/**
@@ -1691,7 +1694,7 @@ import com.azure.resourcemanager.machinelearning.models.UnderlyingResourceAction
public final class ComputeDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/delete.json
*/
/**
@@ -1716,7 +1719,7 @@ public final class ComputeDeleteSamples {
public final class ComputeGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/get/AKSCompute.json
*/
/**
@@ -1731,7 +1734,7 @@ public final class ComputeGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/get/KubernetesCompute.json
*/
/**
@@ -1746,7 +1749,7 @@ public final class ComputeGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/get/ComputeInstance.json
*/
/**
@@ -1761,7 +1764,7 @@ public final class ComputeGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/get/AmlCompute.json
*/
/**
@@ -1785,7 +1788,7 @@ public final class ComputeGetSamples {
public final class ComputeListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/list.json
*/
/**
@@ -1808,7 +1811,7 @@ public final class ComputeListSamples {
public final class ComputeListKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/listKeys.json
*/
/**
@@ -1832,7 +1835,7 @@ public final class ComputeListKeysSamples {
public final class ComputeListNodesSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/listNodes.json
*/
/**
@@ -1856,7 +1859,7 @@ public final class ComputeListNodesSamples {
public final class ComputeRestartSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/restart.json
*/
/**
@@ -1880,7 +1883,7 @@ public final class ComputeRestartSamples {
public final class ComputeStartSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/start.json
*/
/**
@@ -1904,7 +1907,7 @@ public final class ComputeStartSamples {
public final class ComputeStopSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/stop.json
*/
/**
@@ -1933,7 +1936,7 @@ import java.time.Duration;
public final class ComputeUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Compute/patch.json
*/
/**
@@ -1958,6 +1961,7 @@ public final class ComputeUpdateSamples {
### DataContainers_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.DataContainerInner;
import com.azure.resourcemanager.machinelearning.models.DataContainerProperties;
import com.azure.resourcemanager.machinelearning.models.DataType;
import java.util.HashMap;
@@ -1969,7 +1973,7 @@ import java.util.Map;
public final class DataContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/DataContainer/createOrUpdate.json
*/
/**
@@ -1980,13 +1984,12 @@ public final class DataContainersCreateOrUpdateSamples {
public static void
createOrUpdateWorkspaceDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.dataContainers()
- .define("datacontainer123")
- .withExistingWorkspace("testrg123", "workspace123")
- .withProperties(new DataContainerProperties().withDescription("string")
- .withTags(mapOf("tag1", "value1", "tag2", "value2"))
- .withProperties(mapOf("properties1", "value1", "properties2", "value2"))
- .withDataType(DataType.fromString("UriFile")))
- .create();
+ .createOrUpdateWithResponse("testrg123", "workspace123", "datacontainer123",
+ new DataContainerInner().withProperties(new DataContainerProperties().withDescription("string")
+ .withProperties(mapOf("properties1", "value1", "properties2", "value2"))
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))
+ .withDataType(DataType.fromString("UriFile"))),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -2012,7 +2015,7 @@ public final class DataContainersCreateOrUpdateSamples {
public final class DataContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/DataContainer/delete.json
*/
/**
@@ -2037,7 +2040,7 @@ public final class DataContainersDeleteSamples {
public final class DataContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/DataContainer/get.json
*/
/**
@@ -2063,7 +2066,7 @@ public final class DataContainersGetSamples {
public final class DataContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/DataContainer/list.json
*/
/**
@@ -2081,6 +2084,7 @@ public final class DataContainersListSamples {
### DataVersions_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.DataVersionBaseInner;
import com.azure.resourcemanager.machinelearning.models.UriFileDataVersion;
import java.util.HashMap;
import java.util.Map;
@@ -2091,7 +2095,7 @@ import java.util.Map;
public final class DataVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/DataVersionBase/createOrUpdate.json
*/
/**
@@ -2102,14 +2106,13 @@ public final class DataVersionsCreateOrUpdateSamples {
public static void createOrUpdateWorkspaceDataVersionBase(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.dataVersions()
- .define("string")
- .withExistingData("test-rg", "my-aml-workspace", "string")
- .withProperties(new UriFileDataVersion().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withDataUri("string"))
- .create();
+ .createOrUpdateWithResponse("test-rg", "my-aml-workspace", "string", "string",
+ new DataVersionBaseInner().withProperties(new UriFileDataVersion().withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withDataUri("string")),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -2135,7 +2138,7 @@ public final class DataVersionsCreateOrUpdateSamples {
public final class DataVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/DataVersionBase/delete.json
*/
/**
@@ -2160,7 +2163,7 @@ public final class DataVersionsDeleteSamples {
public final class DataVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/DataVersionBase/get.json
*/
/**
@@ -2186,7 +2189,7 @@ public final class DataVersionsGetSamples {
public final class DataVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/DataVersionBase/list.json
*/
/**
@@ -2214,7 +2217,7 @@ import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
public final class DataVersionsPublishSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/DataVersionBase/publish.json
*/
/**
@@ -2226,9 +2229,9 @@ public final class DataVersionsPublishSamples {
publishWorkspaceDataVersionBase(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.dataVersions()
.publish("test-rg", "my-aml-workspace", "string", "string",
- new DestinationAsset().withRegistryName("string")
- .withDestinationName("string")
- .withDestinationVersion("string"),
+ new DestinationAsset().withDestinationName("string")
+ .withDestinationVersion("string")
+ .withRegistryName("string"),
com.azure.core.util.Context.NONE);
}
}
@@ -2255,7 +2258,7 @@ import java.util.UUID;
public final class DatastoresCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
*/
/**
@@ -2271,10 +2274,10 @@ public final class DatastoresCreateOrUpdateSamples {
.withProperties(new AzureDataLakeGen1Datastore().withDescription("string")
.withTags(mapOf("string", "string"))
.withCredentials(new ServicePrincipalDatastoreCredentials().withAuthorityUrl("string")
- .withResourceUrl("string")
- .withTenantId(UUID.fromString("00000000-1111-2222-3333-444444444444"))
.withClientId(UUID.fromString("00000000-1111-2222-3333-444444444444"))
- .withSecrets(new ServicePrincipalDatastoreSecrets().withClientSecret("fakeTokenPlaceholder")))
+ .withResourceUrl("string")
+ .withSecrets(new ServicePrincipalDatastoreSecrets().withClientSecret("fakeTokenPlaceholder"))
+ .withTenantId(UUID.fromString("00000000-1111-2222-3333-444444444444")))
.withStoreName("string"))
.withSkipValidation(false)
.create();
@@ -2282,7 +2285,7 @@ public final class DatastoresCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
*/
/**
@@ -2298,13 +2301,13 @@ public final class DatastoresCreateOrUpdateSamples {
.withProperties(new AzureDataLakeGen2Datastore().withDescription("string")
.withTags(mapOf("string", "string"))
.withCredentials(new ServicePrincipalDatastoreCredentials().withAuthorityUrl("string")
- .withResourceUrl("string")
- .withTenantId(UUID.fromString("00000000-1111-2222-3333-444444444444"))
.withClientId(UUID.fromString("00000000-1111-2222-3333-444444444444"))
- .withSecrets(new ServicePrincipalDatastoreSecrets().withClientSecret("fakeTokenPlaceholder")))
- .withFilesystem("string")
+ .withResourceUrl("string")
+ .withSecrets(new ServicePrincipalDatastoreSecrets().withClientSecret("fakeTokenPlaceholder"))
+ .withTenantId(UUID.fromString("00000000-1111-2222-3333-444444444444")))
.withAccountName("string")
.withEndpoint("string")
+ .withFilesystem("string")
.withProtocol("string"))
.withSkipValidation(false)
.create();
@@ -2312,7 +2315,7 @@ public final class DatastoresCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
*/
/**
@@ -2339,7 +2342,7 @@ public final class DatastoresCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
*/
/**
@@ -2357,8 +2360,8 @@ public final class DatastoresCreateOrUpdateSamples {
.withCredentials(new AccountKeyDatastoreCredentials()
.withSecrets(new AccountKeyDatastoreSecrets().withKey("fakeTokenPlaceholder")))
.withAccountName("string")
- .withFileShareName("string")
.withEndpoint("string")
+ .withFileShareName("string")
.withProtocol("string"))
.withSkipValidation(false)
.create();
@@ -2387,7 +2390,7 @@ public final class DatastoresCreateOrUpdateSamples {
public final class DatastoresDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Datastore/delete.json
*/
/**
@@ -2411,7 +2414,7 @@ public final class DatastoresDeleteSamples {
public final class DatastoresGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Datastore/get.json
*/
/**
@@ -2436,7 +2439,7 @@ import java.util.Arrays;
public final class DatastoresListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Datastore/list.json
*/
/**
@@ -2461,7 +2464,7 @@ public final class DatastoresListSamples {
public final class DatastoresListSecretsSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Datastore/listSecrets.json
*/
/**
@@ -2479,6 +2482,7 @@ public final class DatastoresListSecretsSamples {
### EnvironmentContainers_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.EnvironmentContainerInner;
import com.azure.resourcemanager.machinelearning.models.EnvironmentContainerProperties;
import java.util.HashMap;
import java.util.Map;
@@ -2489,7 +2493,7 @@ import java.util.Map;
public final class EnvironmentContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/EnvironmentContainer/createOrUpdate.json
*/
/**
@@ -2500,13 +2504,14 @@ public final class EnvironmentContainersCreateOrUpdateSamples {
public static void createOrUpdateWorkspaceEnvironmentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.environmentContainers()
- .define("testEnvironment")
- .withExistingWorkspace("testrg123", "testworkspace")
- .withProperties(new EnvironmentContainerProperties().withDescription("string")
- .withTags(mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
- .withProperties(
- mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string")))
- .create();
+ .createOrUpdateWithResponse("testrg123", "testworkspace", "testEnvironment",
+ new EnvironmentContainerInner().withProperties(new EnvironmentContainerProperties()
+ .withDescription("string")
+ .withProperties(
+ mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
+ .withTags(
+ mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -2532,7 +2537,7 @@ public final class EnvironmentContainersCreateOrUpdateSamples {
public final class EnvironmentContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/EnvironmentContainer/delete.json
*/
/**
@@ -2557,7 +2562,7 @@ public final class EnvironmentContainersDeleteSamples {
public final class EnvironmentContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/EnvironmentContainer/get.json
*/
/**
@@ -2583,7 +2588,7 @@ public final class EnvironmentContainersGetSamples {
public final class EnvironmentContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/EnvironmentContainer/list.json
*/
/**
@@ -2602,6 +2607,7 @@ public final class EnvironmentContainersListSamples {
### EnvironmentVersions_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.EnvironmentVersionInner;
import com.azure.resourcemanager.machinelearning.models.BuildContext;
import com.azure.resourcemanager.machinelearning.models.EnvironmentVersionProperties;
import com.azure.resourcemanager.machinelearning.models.InferenceContainerProperties;
@@ -2615,7 +2621,7 @@ import java.util.Map;
public final class EnvironmentVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/EnvironmentVersion/createOrUpdate.json
*/
/**
@@ -2626,22 +2632,22 @@ public final class EnvironmentVersionsCreateOrUpdateSamples {
public static void createOrUpdateWorkspaceEnvironmentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.environmentVersions()
- .define("string")
- .withExistingEnvironment("test-rg", "my-aml-workspace", "string")
- .withProperties(new EnvironmentVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withImage("docker.io/tensorflow/serving:latest")
- .withCondaFile("string")
- .withBuild(new BuildContext().withContextUri(
- "https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/")
- .withDockerfilePath("prod/Dockerfile"))
- .withInferenceConfig(
- new InferenceContainerProperties().withLivenessRoute(new Route().withPath("string").withPort(1))
- .withReadinessRoute(new Route().withPath("string").withPort(1))
- .withScoringRoute(new Route().withPath("string").withPort(1))))
- .create();
+ .createOrUpdateWithResponse("test-rg", "my-aml-workspace", "string", "string",
+ new EnvironmentVersionInner().withProperties(new EnvironmentVersionProperties()
+ .withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withBuild(new BuildContext().withContextUri(
+ "https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/")
+ .withDockerfilePath("prod/Dockerfile"))
+ .withCondaFile("string")
+ .withImage("docker.io/tensorflow/serving:latest")
+ .withInferenceConfig(
+ new InferenceContainerProperties().withLivenessRoute(new Route().withPath("string").withPort(1))
+ .withReadinessRoute(new Route().withPath("string").withPort(1))
+ .withScoringRoute(new Route().withPath("string").withPort(1)))),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -2667,7 +2673,7 @@ public final class EnvironmentVersionsCreateOrUpdateSamples {
public final class EnvironmentVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/EnvironmentVersion/delete.json
*/
/**
@@ -2692,7 +2698,7 @@ public final class EnvironmentVersionsDeleteSamples {
public final class EnvironmentVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/EnvironmentVersion/get.json
*/
/**
@@ -2718,7 +2724,7 @@ public final class EnvironmentVersionsGetSamples {
public final class EnvironmentVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/EnvironmentVersion/list.json
*/
/**
@@ -2745,7 +2751,7 @@ import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
public final class EnvironmentVersionsPublishSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/EnvironmentVersion/publish.json
*/
/**
@@ -2757,9 +2763,9 @@ public final class EnvironmentVersionsPublishSamples {
publishWorkspaceEnvironmentVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.environmentVersions()
.publish("test-rg", "my-aml-workspace", "string", "string",
- new DestinationAsset().withRegistryName("string")
- .withDestinationName("string")
- .withDestinationVersion("string"),
+ new DestinationAsset().withDestinationName("string")
+ .withDestinationVersion("string")
+ .withRegistryName("string"),
com.azure.core.util.Context.NONE);
}
}
@@ -2774,7 +2780,7 @@ public final class EnvironmentVersionsPublishSamples {
public final class FeaturesGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Feature/get.json
*/
/**
@@ -2800,7 +2806,7 @@ public final class FeaturesGetSamples {
public final class FeaturesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Feature/list.json
*/
/**
@@ -2829,7 +2835,7 @@ import java.util.Map;
public final class FeaturesetContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturesetContainer/createOrUpdate.json
*/
/**
@@ -2843,8 +2849,8 @@ public final class FeaturesetContainersCreateOrUpdateSamples {
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(new FeaturesetContainerProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
.withIsArchived(false))
.create();
}
@@ -2872,7 +2878,7 @@ public final class FeaturesetContainersCreateOrUpdateSamples {
public final class FeaturesetContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturesetContainer/delete.json
*/
/**
@@ -2897,7 +2903,7 @@ public final class FeaturesetContainersDeleteSamples {
public final class FeaturesetContainersGetEntitySamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturesetContainer/getEntity.json
*/
/**
@@ -2924,7 +2930,7 @@ import com.azure.resourcemanager.machinelearning.models.ListViewType;
public final class FeaturesetContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturesetContainer/list.json
*/
/**
@@ -2945,8 +2951,8 @@ public final class FeaturesetContainersListSamples {
```java
import com.azure.resourcemanager.machinelearning.models.DataAvailabilityStatus;
-import com.azure.resourcemanager.machinelearning.models.FeaturesetVersionBackfillRequest;
import com.azure.resourcemanager.machinelearning.models.FeatureWindow;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetVersionBackfillRequest;
import com.azure.resourcemanager.machinelearning.models.MaterializationComputeResource;
import java.time.OffsetDateTime;
import java.util.Arrays;
@@ -2959,7 +2965,7 @@ import java.util.Map;
public final class FeaturesetVersionsBackfillSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturesetVersion/backfill.json
*/
/**
@@ -2971,16 +2977,17 @@ public final class FeaturesetVersionsBackfillSamples {
backfillWorkspaceFeaturesetVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.featuresetVersions()
.backfill("test-rg", "my-aml-workspace", "string", "string",
- new FeaturesetVersionBackfillRequest().withDisplayName("string")
- .withDescription("string")
- .withFeatureWindow(new FeatureWindow()
- .withFeatureWindowStart(OffsetDateTime.parse("2020-01-01T12:34:56.999+00:51"))
- .withFeatureWindowEnd(OffsetDateTime.parse("2020-01-01T12:34:56.999+00:51")))
+ new FeaturesetVersionBackfillRequest()
.withDataAvailabilityStatus(Arrays.asList(DataAvailabilityStatus.NONE))
+ .withDescription("string")
+ .withDisplayName("string")
+ .withFeatureWindow(
+ new FeatureWindow().withFeatureWindowEnd(OffsetDateTime.parse("2020-01-01T12:34:56.999+00:51"))
+ .withFeatureWindowStart(OffsetDateTime.parse("2020-01-01T12:34:56.999+00:51")))
.withJobId("string")
- .withTags(mapOf("string", "string"))
.withResource(new MaterializationComputeResource().withInstanceType("string"))
- .withSparkConfiguration(mapOf("string", "string")),
+ .withSparkConfiguration(mapOf("string", "string"))
+ .withTags(mapOf("string", "string")),
com.azure.core.util.Context.NONE);
}
@@ -3022,7 +3029,7 @@ import java.util.Map;
public final class FeaturesetVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturesetVersion/createOrUpdate.json
*/
/**
@@ -3036,28 +3043,29 @@ public final class FeaturesetVersionsCreateOrUpdateSamples {
.define("string")
.withExistingFeatureset("test-rg", "my-aml-workspace", "string")
.withProperties(new FeaturesetVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
- .withIsArchived(false)
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
+ .withIsArchived(false)
+ .withEntities(Arrays.asList("string"))
+ .withMaterializationSettings(new MaterializationSettings()
+ .withNotification(
+ new NotificationSetting().withEmailOn(Arrays.asList(EmailNotificationEnableType.JOB_FAILED))
+ .withEmails(Arrays.asList("string")))
+ .withResource(new MaterializationComputeResource().withInstanceType("string"))
+ .withSchedule(new RecurrenceTrigger().withEndTime("string")
+ .withStartTime("string")
+ .withTimeZone("string")
+ .withFrequency(RecurrenceFrequency.DAY)
+ .withInterval(1)
+ .withSchedule(new RecurrenceSchedule().withHours(Arrays.asList(1))
+ .withMinutes(Arrays.asList(1))
+ .withMonthDays(Arrays.asList(1))
+ .withWeekDays(Arrays.asList(WeekDay.MONDAY))))
+ .withSparkConfiguration(mapOf("string", "string"))
+ .withStoreType(MaterializationStoreType.ONLINE))
.withSpecification(new FeaturesetSpecification().withPath("string"))
- .withMaterializationSettings(
- new MaterializationSettings().withStoreType(MaterializationStoreType.ONLINE)
- .withSchedule(new RecurrenceTrigger().withEndTime("string")
- .withStartTime("string")
- .withTimeZone("string")
- .withFrequency(RecurrenceFrequency.DAY)
- .withInterval(1)
- .withSchedule(new RecurrenceSchedule().withHours(Arrays.asList(1))
- .withMinutes(Arrays.asList(1))
- .withWeekDays(Arrays.asList(WeekDay.MONDAY))
- .withMonthDays(Arrays.asList(1))))
- .withNotification(new NotificationSetting().withEmails(Arrays.asList("string"))
- .withEmailOn(Arrays.asList(EmailNotificationEnableType.JOB_FAILED)))
- .withResource(new MaterializationComputeResource().withInstanceType("string"))
- .withSparkConfiguration(mapOf("string", "string")))
- .withStage("string")
- .withEntities(Arrays.asList("string")))
+ .withStage("string"))
.create();
}
@@ -3084,7 +3092,7 @@ public final class FeaturesetVersionsCreateOrUpdateSamples {
public final class FeaturesetVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturesetVersion/delete.json
*/
/**
@@ -3109,7 +3117,7 @@ public final class FeaturesetVersionsDeleteSamples {
public final class FeaturesetVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturesetVersion/get.json
*/
/**
@@ -3136,7 +3144,7 @@ import com.azure.resourcemanager.machinelearning.models.ListViewType;
public final class FeaturesetVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturesetVersion/list.json
*/
/**
@@ -3166,7 +3174,7 @@ import java.util.Map;
public final class FeaturestoreEntityContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturestoreEntityContainer/createOrUpdate.json
*/
/**
@@ -3180,8 +3188,8 @@ public final class FeaturestoreEntityContainersCreateOrUpdateSamples {
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(new FeaturestoreEntityContainerProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
.withIsArchived(false))
.create();
}
@@ -3209,7 +3217,7 @@ public final class FeaturestoreEntityContainersCreateOrUpdateSamples {
public final class FeaturestoreEntityContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturestoreEntityContainer/delete.json
*/
/**
@@ -3234,7 +3242,7 @@ public final class FeaturestoreEntityContainersDeleteSamples {
public final class FeaturestoreEntityContainersGetEntitySamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturestoreEntityContainer/getEntity.json
*/
/**
@@ -3261,7 +3269,7 @@ import com.azure.resourcemanager.machinelearning.models.ListViewType;
public final class FeaturestoreEntityContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturestoreEntityContainer/list.json
*/
/**
@@ -3294,7 +3302,7 @@ import java.util.Map;
public final class FeaturestoreEntityVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturestoreEntityVersion/createOrUpdate.json
*/
/**
@@ -3309,12 +3317,12 @@ public final class FeaturestoreEntityVersionsCreateOrUpdateSamples {
.withExistingFeaturestoreEntity("test-rg", "my-aml-workspace", "string")
.withProperties(
new FeaturestoreEntityVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
- .withIsArchived(false)
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
+ .withIsArchived(false)
.withIndexColumns(Arrays
- .asList(new IndexColumn().withDataType(FeatureDataType.DATETIME).withColumnName("string"))))
+ .asList(new IndexColumn().withColumnName("string").withDataType(FeatureDataType.DATETIME))))
.create();
}
@@ -3341,7 +3349,7 @@ public final class FeaturestoreEntityVersionsCreateOrUpdateSamples {
public final class FeaturestoreEntityVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturestoreEntityVersion/delete.json
*/
/**
@@ -3366,7 +3374,7 @@ public final class FeaturestoreEntityVersionsDeleteSamples {
public final class FeaturestoreEntityVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturestoreEntityVersion/get.json
*/
/**
@@ -3393,7 +3401,7 @@ import com.azure.resourcemanager.machinelearning.models.ListViewType;
public final class FeaturestoreEntityVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/FeaturestoreEntityVersion/list.json
*/
/**
@@ -3419,7 +3427,7 @@ public final class FeaturestoreEntityVersionsListSamples {
public final class JobsCancelSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/cancel.json
*/
/**
@@ -3451,8 +3459,8 @@ import com.azure.resourcemanager.machinelearning.models.ImageModelSettingsClassi
import com.azure.resourcemanager.machinelearning.models.JobResourceConfiguration;
import com.azure.resourcemanager.machinelearning.models.JobService;
import com.azure.resourcemanager.machinelearning.models.LiteralJobInput;
-import com.azure.resourcemanager.machinelearning.models.MedianStoppingPolicy;
import com.azure.resourcemanager.machinelearning.models.MLTableJobInput;
+import com.azure.resourcemanager.machinelearning.models.MedianStoppingPolicy;
import com.azure.resourcemanager.machinelearning.models.Mpi;
import com.azure.resourcemanager.machinelearning.models.Objective;
import com.azure.resourcemanager.machinelearning.models.OutputDeliveryMode;
@@ -3474,7 +3482,7 @@ import java.util.Map;
public final class JobsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/AutoMLJob/createOrUpdate.json
*/
/**
@@ -3488,42 +3496,42 @@ public final class JobsCreateOrUpdateSamples {
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(new AutoMLJob().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withComputeId("string")
.withDisplayName("string")
.withExperimentName("string")
+ .withIdentity(new AmlToken())
+ .withIsArchived(false)
.withServices(mapOf("string",
- new JobService().withJobServiceType("string")
+ new JobService().withEndpoint("string")
+ .withJobServiceType("string")
.withPort(1)
- .withEndpoint("string")
.withProperties(mapOf("string", "string"))))
- .withComputeId("string")
- .withIsArchived(false)
- .withIdentity(new AmlToken())
+ .withEnvironmentId("string")
+ .withEnvironmentVariables(mapOf("string", "string"))
+ .withOutputs(mapOf("string",
+ new UriFileJobOutput().withDescription("string")
+ .withMode(OutputDeliveryMode.READ_WRITE_MOUNT)
+ .withUri("string")))
.withResources(new JobResourceConfiguration().withInstanceCount(1)
.withInstanceType("string")
.withProperties(mapOf("string",
SerializerFactory.createDefaultManagementSerializerAdapter()
.deserialize("{\"9bec0ab0-c62f-4fa9-a97c-7b24bbcc90ad\":null}", Object.class,
SerializerEncoding.JSON))))
- .withEnvironmentId("string")
- .withEnvironmentVariables(mapOf("string", "string"))
- .withTaskDetails(new ImageClassification().withTrainingData(new MLTableJobInput().withUri("string"))
- .withTargetColumnName("string")
+ .withTaskDetails(new ImageClassification().withTargetColumnName("string")
+ .withTrainingData(new MLTableJobInput().withUri("string"))
.withModelSettings(new ImageModelSettingsClassification().withValidationCropSize(2))
.withSearchSpace(Arrays.asList(
new ImageModelDistributionSettingsClassification().withValidationCropSize("choice(2, 360)")))
- .withLimitSettings(new ImageLimitSettings().withMaxTrials(2)))
- .withOutputs(mapOf("string",
- new UriFileJobOutput().withDescription("string")
- .withUri("string")
- .withMode(OutputDeliveryMode.READ_WRITE_MOUNT))))
+ .withLimitSettings(new ImageLimitSettings().withMaxTrials(2))))
.create();
}
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/SweepJob/createOrUpdate.json
*/
/**
@@ -3537,29 +3545,29 @@ public final class JobsCreateOrUpdateSamples {
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(new SweepJob().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withComputeId("string")
.withDisplayName("string")
.withExperimentName("string")
.withServices(mapOf("string",
- new JobService().withJobServiceType("string")
+ new JobService().withEndpoint("string")
+ .withJobServiceType("string")
.withPort(1)
- .withEndpoint("string")
.withProperties(mapOf("string", "string"))))
- .withComputeId("string")
+ .withEarlyTermination(new MedianStoppingPolicy().withDelayEvaluation(1).withEvaluationInterval(1))
+ .withLimits(new SweepJobLimits().withMaxConcurrentTrials(1)
+ .withMaxTotalTrials(1)
+ .withTrialTimeout(Duration.parse("PT1S")))
+ .withObjective(new Objective().withGoal(Goal.MINIMIZE).withPrimaryMetric("string"))
+ .withSamplingAlgorithm(new GridSamplingAlgorithm())
.withSearchSpace(SerializerFactory.createDefaultManagementSerializerAdapter()
.deserialize("{\"string\":{}}", Object.class, SerializerEncoding.JSON))
- .withSamplingAlgorithm(new GridSamplingAlgorithm())
- .withLimits(new SweepJobLimits().withMaxTotalTrials(1)
- .withMaxConcurrentTrials(1)
- .withTrialTimeout(Duration.parse("PT1S")))
- .withEarlyTermination(new MedianStoppingPolicy().withEvaluationInterval(1).withDelayEvaluation(1))
- .withObjective(new Objective().withPrimaryMetric("string").withGoal(Goal.MINIMIZE))
.withTrial(new TrialComponent().withCodeId("fakeTokenPlaceholder")
.withCommand("string")
+ .withDistribution(new Mpi().withProcessCountPerInstance(1))
.withEnvironmentId("string")
.withEnvironmentVariables(mapOf("string", "string"))
- .withDistribution(new Mpi().withProcessCountPerInstance(1))
.withResources(new JobResourceConfiguration().withInstanceCount(1)
.withInstanceType("string")
.withProperties(mapOf("string",
@@ -3571,7 +3579,7 @@ public final class JobsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/PipelineJob/createOrUpdate.json
*/
/**
@@ -3585,29 +3593,29 @@ public final class JobsCreateOrUpdateSamples {
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(new PipelineJob().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withComputeId("string")
.withDisplayName("string")
.withExperimentName("string")
.withServices(mapOf("string",
- new JobService().withJobServiceType("string")
+ new JobService().withEndpoint("string")
+ .withJobServiceType("string")
.withPort(1)
- .withEndpoint("string")
.withProperties(mapOf("string", "string"))))
- .withComputeId("string")
- .withSettings(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{}", Object.class, SerializerEncoding.JSON))
.withInputs(mapOf("string", new LiteralJobInput().withDescription("string").withValue("string")))
.withOutputs(mapOf("string",
new UriFileJobOutput().withDescription("string")
- .withUri("string")
- .withMode(OutputDeliveryMode.UPLOAD))))
+ .withMode(OutputDeliveryMode.UPLOAD)
+ .withUri("string")))
+ .withSettings(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON)))
.create();
}
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/CommandJob/createOrUpdate.json
*/
/**
@@ -3621,34 +3629,34 @@ public final class JobsCreateOrUpdateSamples {
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(new CommandJob().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withComputeId("string")
.withDisplayName("string")
.withExperimentName("string")
+ .withIdentity(new AmlToken())
.withServices(mapOf("string",
- new JobService().withJobServiceType("string")
+ new JobService().withEndpoint("string")
+ .withJobServiceType("string")
.withPort(1)
- .withEndpoint("string")
.withProperties(mapOf("string", "string"))))
- .withComputeId("string")
- .withIdentity(new AmlToken())
- .withResources(new JobResourceConfiguration().withInstanceCount(1)
- .withInstanceType("string")
- .withProperties(mapOf("string",
- SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"e6b6493e-7d5e-4db3-be1e-306ec641327e\":null}", Object.class,
- SerializerEncoding.JSON))))
.withCodeId("fakeTokenPlaceholder")
.withCommand("string")
+ .withDistribution(new TensorFlow().withParameterServerCount(1).withWorkerCount(1))
.withEnvironmentId("string")
+ .withEnvironmentVariables(mapOf("string", "string"))
.withInputs(mapOf("string", new LiteralJobInput().withDescription("string").withValue("string")))
+ .withLimits(new CommandJobLimits().withTimeout(Duration.parse("PT5M")))
.withOutputs(mapOf("string",
new UriFileJobOutput().withDescription("string")
- .withUri("string")
- .withMode(OutputDeliveryMode.READ_WRITE_MOUNT)))
- .withDistribution(new TensorFlow().withWorkerCount(1).withParameterServerCount(1))
- .withLimits(new CommandJobLimits().withTimeout(Duration.parse("PT5M")))
- .withEnvironmentVariables(mapOf("string", "string")))
+ .withMode(OutputDeliveryMode.READ_WRITE_MOUNT)
+ .withUri("string")))
+ .withResources(new JobResourceConfiguration().withInstanceCount(1)
+ .withInstanceType("string")
+ .withProperties(mapOf("string",
+ SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{\"e6b6493e-7d5e-4db3-be1e-306ec641327e\":null}", Object.class,
+ SerializerEncoding.JSON)))))
.create();
}
@@ -3675,7 +3683,7 @@ public final class JobsCreateOrUpdateSamples {
public final class JobsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/delete.json
*/
/**
@@ -3701,7 +3709,7 @@ public final class JobsDeleteSamples {
public final class JobsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/CommandJob/get.json
*/
/**
@@ -3715,7 +3723,7 @@ public final class JobsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/AutoMLJob/get.json
*/
/**
@@ -3729,7 +3737,7 @@ public final class JobsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/SweepJob/get.json
*/
/**
@@ -3743,7 +3751,7 @@ public final class JobsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/PipelineJob/get.json
*/
/**
@@ -3767,7 +3775,7 @@ public final class JobsGetSamples {
public final class JobsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/CommandJob/list.json
*/
/**
@@ -3783,7 +3791,7 @@ public final class JobsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/PipelineJob/list.json
*/
/**
@@ -3799,7 +3807,7 @@ public final class JobsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/SweepJob/list.json
*/
/**
@@ -3815,7 +3823,7 @@ public final class JobsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Job/AutoMLJob/list.json
*/
/**
@@ -3841,7 +3849,7 @@ import com.azure.resourcemanager.machinelearning.models.ManagedNetworkProvisionO
public final class ManagedNetworkProvisionsProvisionManagedNetworkSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/ManagedNetwork/provision.json
*/
/**
@@ -3871,7 +3879,7 @@ import com.azure.resourcemanager.machinelearning.models.RuleStatus;
public final class ManagedNetworkSettingsRuleCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/ManagedNetwork/createOrUpdateRule.json
*/
/**
@@ -3901,7 +3909,7 @@ public final class ManagedNetworkSettingsRuleCreateOrUpdateSamples {
public final class ManagedNetworkSettingsRuleDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/ManagedNetwork/deleteRule.json
*/
/**
@@ -3926,7 +3934,7 @@ public final class ManagedNetworkSettingsRuleDeleteSamples {
public final class ManagedNetworkSettingsRuleGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/ManagedNetwork/getRule.json
*/
/**
@@ -3952,7 +3960,7 @@ public final class ManagedNetworkSettingsRuleGetSamples {
public final class ManagedNetworkSettingsRuleListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/ManagedNetwork/listRule.json
*/
/**
@@ -3978,7 +3986,7 @@ import com.azure.resourcemanager.machinelearning.models.MarketplaceSubscriptionP
public final class MarketplaceSubscriptionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/MarketplaceSubscription/createOrUpdate.json
*/
/**
@@ -4006,7 +4014,7 @@ public final class MarketplaceSubscriptionsCreateOrUpdateSamples {
public final class MarketplaceSubscriptionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/MarketplaceSubscription/delete.json
*/
/**
@@ -4031,7 +4039,7 @@ public final class MarketplaceSubscriptionsDeleteSamples {
public final class MarketplaceSubscriptionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/MarketplaceSubscription/get.json
*/
/**
@@ -4056,7 +4064,7 @@ public final class MarketplaceSubscriptionsGetSamples {
public final class MarketplaceSubscriptionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/MarketplaceSubscription/list.json
*/
/**
@@ -4074,6 +4082,7 @@ public final class MarketplaceSubscriptionsListSamples {
### ModelContainers_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.ModelContainerInner;
import com.azure.resourcemanager.machinelearning.models.ModelContainerProperties;
import java.util.HashMap;
import java.util.Map;
@@ -4084,7 +4093,7 @@ import java.util.Map;
public final class ModelContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ModelContainer/createOrUpdate.json
*/
/**
@@ -4095,11 +4104,11 @@ public final class ModelContainersCreateOrUpdateSamples {
public static void createOrUpdateWorkspaceModelContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.modelContainers()
- .define("testContainer")
- .withExistingWorkspace("testrg123", "workspace123")
- .withProperties(new ModelContainerProperties().withDescription("Model container description")
- .withTags(mapOf("tag1", "value1", "tag2", "value2")))
- .create();
+ .createOrUpdateWithResponse("testrg123", "workspace123", "testContainer",
+ new ModelContainerInner()
+ .withProperties(new ModelContainerProperties().withDescription("Model container description")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -4125,7 +4134,7 @@ public final class ModelContainersCreateOrUpdateSamples {
public final class ModelContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ModelContainer/delete.json
*/
/**
@@ -4150,7 +4159,7 @@ public final class ModelContainersDeleteSamples {
public final class ModelContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ModelContainer/get.json
*/
/**
@@ -4176,7 +4185,7 @@ public final class ModelContainersGetSamples {
public final class ModelContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ModelContainer/list.json
*/
/**
@@ -4194,6 +4203,7 @@ public final class ModelContainersListSamples {
### ModelVersions_CreateOrUpdate
```java
+import com.azure.resourcemanager.machinelearning.fluent.models.ModelVersionInner;
import com.azure.resourcemanager.machinelearning.models.FlavorData;
import com.azure.resourcemanager.machinelearning.models.ModelVersionProperties;
import java.util.HashMap;
@@ -4205,7 +4215,7 @@ import java.util.Map;
public final class ModelVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ModelVersion/createOrUpdate.json
*/
/**
@@ -4216,16 +4226,15 @@ public final class ModelVersionsCreateOrUpdateSamples {
public static void
createOrUpdateWorkspaceModelVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.modelVersions()
- .define("string")
- .withExistingModel("test-rg", "my-aml-workspace", "string")
- .withProperties(new ModelVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withFlavors(mapOf("string", new FlavorData().withData(mapOf("string", "string"))))
- .withModelType("CustomModel")
- .withModelUri("string"))
- .create();
+ .createOrUpdateWithResponse("test-rg", "my-aml-workspace", "string", "string",
+ new ModelVersionInner().withProperties(new ModelVersionProperties().withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withFlavors(mapOf("string", new FlavorData().withData(mapOf("string", "string"))))
+ .withModelType("CustomModel")
+ .withModelUri("string")),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -4251,7 +4260,7 @@ public final class ModelVersionsCreateOrUpdateSamples {
public final class ModelVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ModelVersion/delete.json
*/
/**
@@ -4276,7 +4285,7 @@ public final class ModelVersionsDeleteSamples {
public final class ModelVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ModelVersion/get.json
*/
/**
@@ -4302,7 +4311,7 @@ public final class ModelVersionsGetSamples {
public final class ModelVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ModelVersion/list.json
*/
/**
@@ -4330,7 +4339,7 @@ import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
public final class ModelVersionsPublishSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ModelVersion/publish.json
*/
/**
@@ -4342,9 +4351,9 @@ public final class ModelVersionsPublishSamples {
publishWorkspaceModelVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.modelVersions()
.publish("test-rg", "my-aml-workspace", "string", "string",
- new DestinationAsset().withRegistryName("string")
- .withDestinationName("string")
- .withDestinationVersion("string"),
+ new DestinationAsset().withDestinationName("string")
+ .withDestinationVersion("string")
+ .withRegistryName("string"),
com.azure.core.util.Context.NONE);
}
}
@@ -4376,7 +4385,7 @@ import java.util.Map;
public final class OnlineDeploymentsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json
*/
/**
@@ -4390,34 +4399,35 @@ public final class OnlineDeploymentsCreateOrUpdateSamples {
.define("testDeploymentName")
.withRegion("string")
.withExistingOnlineEndpoint("test-rg", "my-aml-workspace", "testEndpointName")
- .withProperties(new KubernetesOnlineDeployment().withDescription("string")
- .withProperties(mapOf("string", "string"))
+ .withProperties(new KubernetesOnlineDeployment()
.withCodeConfiguration(
new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string"))
+ .withDescription("string")
.withEnvironmentId("string")
.withEnvironmentVariables(mapOf("string", "string"))
- .withScaleSettings(new DefaultScaleSettings())
- .withRequestSettings(new OnlineRequestSettings().withMaxQueueWait(Duration.parse("PT5M"))
- .withRequestTimeout(Duration.parse("PT5M"))
- .withMaxConcurrentRequestsPerInstance(1))
- .withModelMountPath("string")
+ .withProperties(mapOf("string", "string"))
.withAppInsightsEnabled(false)
+ .withInstanceType("string")
.withLivenessProbe(new ProbeSettings().withFailureThreshold(1)
- .withSuccessThreshold(1)
- .withTimeout(Duration.parse("PT5M"))
+ .withInitialDelay(Duration.parse("PT5M"))
.withPeriod(Duration.parse("PT5M"))
- .withInitialDelay(Duration.parse("PT5M")))
- .withInstanceType("string")
+ .withSuccessThreshold(1)
+ .withTimeout(Duration.parse("PT5M")))
.withModel("string")
+ .withModelMountPath("string")
+ .withRequestSettings(new OnlineRequestSettings().withMaxConcurrentRequestsPerInstance(1)
+ .withMaxQueueWait(Duration.parse("PT5M"))
+ .withRequestTimeout(Duration.parse("PT5M")))
+ .withScaleSettings(new DefaultScaleSettings())
.withContainerResourceRequirements(new ContainerResourceRequirements()
- .withContainerResourceRequests(
- new ContainerResourceSettings().withCpu("\"1\"").withMemory("\"2Gi\"").withGpu("\"1\""))
.withContainerResourceLimits(
- new ContainerResourceSettings().withCpu("\"1\"").withMemory("\"2Gi\"").withGpu("\"1\""))))
+ new ContainerResourceSettings().withCpu("\"1\"").withGpu("\"1\"").withMemory("\"2Gi\""))
+ .withContainerResourceRequests(
+ new ContainerResourceSettings().withCpu("\"1\"").withGpu("\"1\"").withMemory("\"2Gi\""))))
.withTags(mapOf())
- .withKind("string")
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
.withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
.withSku(new Sku().withName("string")
.withTier(SkuTier.FREE)
.withSize("string")
@@ -4428,7 +4438,7 @@ public final class OnlineDeploymentsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json
*/
/**
@@ -4442,34 +4452,35 @@ public final class OnlineDeploymentsCreateOrUpdateSamples {
.define("testDeploymentName")
.withRegion("string")
.withExistingOnlineEndpoint("test-rg", "my-aml-workspace", "testEndpointName")
- .withProperties(new ManagedOnlineDeployment().withDescription("string")
- .withProperties(mapOf("string", "string"))
+ .withProperties(new ManagedOnlineDeployment()
.withCodeConfiguration(
new CodeConfiguration().withCodeId("fakeTokenPlaceholder").withScoringScript("string"))
+ .withDescription("string")
.withEnvironmentId("string")
.withEnvironmentVariables(mapOf("string", "string"))
- .withScaleSettings(new DefaultScaleSettings())
- .withRequestSettings(new OnlineRequestSettings().withMaxQueueWait(Duration.parse("PT5M"))
- .withRequestTimeout(Duration.parse("PT5M"))
- .withMaxConcurrentRequestsPerInstance(1))
- .withModelMountPath("string")
+ .withProperties(mapOf("string", "string"))
.withAppInsightsEnabled(false)
+ .withInstanceType("string")
.withLivenessProbe(new ProbeSettings().withFailureThreshold(1)
- .withSuccessThreshold(1)
- .withTimeout(Duration.parse("PT5M"))
+ .withInitialDelay(Duration.parse("PT5M"))
.withPeriod(Duration.parse("PT5M"))
- .withInitialDelay(Duration.parse("PT5M")))
- .withReadinessProbe(new ProbeSettings().withFailureThreshold(30)
.withSuccessThreshold(1)
- .withTimeout(Duration.parse("PT2S"))
+ .withTimeout(Duration.parse("PT5M")))
+ .withModel("string")
+ .withModelMountPath("string")
+ .withReadinessProbe(new ProbeSettings().withFailureThreshold(30)
+ .withInitialDelay(Duration.parse("PT1S"))
.withPeriod(Duration.parse("PT10S"))
- .withInitialDelay(Duration.parse("PT1S")))
- .withInstanceType("string")
- .withModel("string"))
+ .withSuccessThreshold(1)
+ .withTimeout(Duration.parse("PT2S")))
+ .withRequestSettings(new OnlineRequestSettings().withMaxConcurrentRequestsPerInstance(1)
+ .withMaxQueueWait(Duration.parse("PT5M"))
+ .withRequestTimeout(Duration.parse("PT5M")))
+ .withScaleSettings(new DefaultScaleSettings()))
.withTags(mapOf())
- .withKind("string")
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
.withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
.withSku(new Sku().withName("string")
.withTier(SkuTier.FREE)
.withSize("string")
@@ -4501,7 +4512,7 @@ public final class OnlineDeploymentsCreateOrUpdateSamples {
public final class OnlineDeploymentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/OnlineDeployment/delete.json
*/
/**
@@ -4526,7 +4537,7 @@ public final class OnlineDeploymentsDeleteSamples {
public final class OnlineDeploymentsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
*/
/**
@@ -4543,7 +4554,7 @@ public final class OnlineDeploymentsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/ManagedOnlineDeployment/get.json
*/
/**
@@ -4572,7 +4583,7 @@ import com.azure.resourcemanager.machinelearning.models.DeploymentLogsRequest;
public final class OnlineDeploymentsGetLogsSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/getLogs.json
*/
/**
@@ -4599,7 +4610,7 @@ public final class OnlineDeploymentsGetLogsSamples {
public final class OnlineDeploymentsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/list.json
*/
/**
@@ -4624,7 +4635,7 @@ public final class OnlineDeploymentsListSamples {
public final class OnlineDeploymentsListSkusSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json
*/
/**
@@ -4641,7 +4652,7 @@ public final class OnlineDeploymentsListSkusSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json
*/
/**
@@ -4673,7 +4684,7 @@ import java.util.Map;
public final class OnlineDeploymentsUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/ManagedOnlineDeployment/update.json
*/
/**
@@ -4689,17 +4700,17 @@ public final class OnlineDeploymentsUpdateSamples {
.getValue();
resource.update()
.withTags(mapOf())
- .withSku(new PartialSku().withName("string")
- .withTier(SkuTier.FREE)
- .withSize("string")
+ .withSku(new PartialSku().withCapacity(1)
.withFamily("string")
- .withCapacity(1))
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.FREE))
.apply();
}
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/OnlineDeployment/KubernetesOnlineDeployment/update.json
*/
/**
@@ -4715,11 +4726,11 @@ public final class OnlineDeploymentsUpdateSamples {
.getValue();
resource.update()
.withTags(mapOf())
- .withSku(new PartialSku().withName("string")
- .withTier(SkuTier.FREE)
- .withSize("string")
+ .withSku(new PartialSku().withCapacity(1)
.withFamily("string")
- .withCapacity(1))
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.FREE))
.apply();
}
@@ -4756,7 +4767,7 @@ import java.util.Map;
public final class OnlineEndpointsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/OnlineEndpoint/createOrUpdate.json
*/
/**
@@ -4770,15 +4781,15 @@ public final class OnlineEndpointsCreateOrUpdateSamples {
.define("testEndpointName")
.withRegion("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
- .withProperties(new OnlineEndpointProperties().withDescription("string")
+ .withProperties(new OnlineEndpointProperties().withAuthMode(EndpointAuthMode.AMLTOKEN)
+ .withDescription("string")
.withProperties(mapOf("string", "string"))
- .withAuthMode(EndpointAuthMode.AMLTOKEN)
.withCompute("string")
.withTraffic(mapOf("string", 1)))
.withTags(mapOf())
- .withKind("string")
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
.withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
.withSku(new Sku().withName("string")
.withTier(SkuTier.FREE)
.withSize("string")
@@ -4810,7 +4821,7 @@ public final class OnlineEndpointsCreateOrUpdateSamples {
public final class OnlineEndpointsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/OnlineEndpoint/delete.json
*/
/**
@@ -4835,7 +4846,7 @@ public final class OnlineEndpointsDeleteSamples {
public final class OnlineEndpointsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/OnlineEndpoint/get.json
*/
/**
@@ -4860,7 +4871,7 @@ public final class OnlineEndpointsGetSamples {
public final class OnlineEndpointsGetTokenSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/OnlineEndpoint/getToken.json
*/
/**
@@ -4888,7 +4899,7 @@ import com.azure.resourcemanager.machinelearning.models.OrderString;
public final class OnlineEndpointsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/OnlineEndpoint/list.json
*/
/**
@@ -4914,7 +4925,7 @@ public final class OnlineEndpointsListSamples {
public final class OnlineEndpointsListKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/OnlineEndpoint/listKeys.json
*/
/**
@@ -4942,7 +4953,7 @@ import com.azure.resourcemanager.machinelearning.models.RegenerateEndpointKeysRe
public final class OnlineEndpointsRegenerateKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/OnlineEndpoint/regenerateKeys.json
*/
/**
@@ -4978,7 +4989,7 @@ import java.util.Map;
public final class OnlineEndpointsUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/OnlineEndpoint/update.json
*/
/**
@@ -5023,7 +5034,7 @@ public final class OnlineEndpointsUpdateSamples {
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/operationsList.json
*/
/**
@@ -5049,7 +5060,7 @@ import com.azure.resourcemanager.machinelearning.models.PrivateLinkServiceConnec
public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/PrivateEndpointConnection/createOrUpdate.json
*/
/**
@@ -5079,7 +5090,7 @@ public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
public final class PrivateEndpointConnectionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/PrivateEndpointConnection/delete.json
*/
/**
@@ -5105,7 +5116,7 @@ public final class PrivateEndpointConnectionsDeleteSamples {
public final class PrivateEndpointConnectionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/PrivateEndpointConnection/get.json
*/
/**
@@ -5131,7 +5142,7 @@ public final class PrivateEndpointConnectionsGetSamples {
public final class PrivateEndpointConnectionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/PrivateEndpointConnection/list.json
*/
/**
@@ -5155,7 +5166,7 @@ public final class PrivateEndpointConnectionsListSamples {
public final class PrivateLinkResourcesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/PrivateLinkResource/list.json
*/
/**
@@ -5179,7 +5190,7 @@ public final class PrivateLinkResourcesListSamples {
public final class QuotasListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Quota/list.json
*/
/**
@@ -5208,7 +5219,7 @@ import java.util.Arrays;
public final class QuotasUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Quota/update.json
*/
/**
@@ -5264,7 +5275,7 @@ import java.util.Map;
public final class RegistriesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registries/createOrUpdate-SystemCreated.json
*/
/**
@@ -5319,7 +5330,7 @@ public final class RegistriesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registries/createOrUpdate-UserCreated.json
*/
/**
@@ -5389,7 +5400,7 @@ public final class RegistriesCreateOrUpdateSamples {
public final class RegistriesDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registries/delete.json
*/
/**
@@ -5412,7 +5423,7 @@ public final class RegistriesDeleteSamples {
public final class RegistriesGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registries/get-UserCreated.json
*/
/**
@@ -5427,7 +5438,7 @@ public final class RegistriesGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registries/get-SystemCreated.json
*/
/**
@@ -5451,7 +5462,7 @@ public final class RegistriesGetByResourceGroupSamples {
public final class RegistriesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registries/listBySubscription.json
*/
/**
@@ -5475,7 +5486,7 @@ public final class RegistriesListSamples {
public final class RegistriesListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registries/list-UserCreated.json
*/
/**
@@ -5490,7 +5501,7 @@ public final class RegistriesListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registries/list-SystemCreated.json
*/
/**
@@ -5536,7 +5547,7 @@ import java.util.Map;
public final class RegistriesRemoveRegionsSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registries/removeRegions.json
*/
/**
@@ -5625,7 +5636,7 @@ import java.util.Map;
public final class RegistriesUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registries/update-UserCreated.json
*/
/**
@@ -5642,17 +5653,17 @@ public final class RegistriesUpdateSamples {
.withTags(mapOf())
.withIdentity(new RegistryPartialManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED)
.withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
- .withSku(new PartialSku().withName("string")
- .withTier(SkuTier.BASIC)
- .withSize("string")
+ .withSku(new PartialSku().withCapacity(1)
.withFamily("string")
- .withCapacity(1))
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.BASIC))
.apply();
}
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registries/update-SystemCreated.json
*/
/**
@@ -5670,11 +5681,11 @@ public final class RegistriesUpdateSamples {
.withIdentity(
new RegistryPartialManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
.withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
- .withSku(new PartialSku().withName("string")
- .withTier(SkuTier.BASIC)
- .withSize("string")
+ .withSku(new PartialSku().withCapacity(1)
.withFamily("string")
- .withCapacity(1))
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.BASIC))
.apply();
}
@@ -5695,7 +5706,6 @@ public final class RegistriesUpdateSamples {
### RegistryCodeContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.fluent.models.CodeContainerInner;
import com.azure.resourcemanager.machinelearning.models.CodeContainerProperties;
import java.util.HashMap;
import java.util.Map;
@@ -5706,7 +5716,7 @@ import java.util.Map;
public final class RegistryCodeContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/CodeContainer/createOrUpdate.json
*/
/**
@@ -5717,10 +5727,11 @@ public final class RegistryCodeContainersCreateOrUpdateSamples {
public static void
createOrUpdateRegistryCodeContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.registryCodeContainers()
- .createOrUpdate("testrg123", "testregistry", "testContainer",
- new CodeContainerInner().withProperties(new CodeContainerProperties().withDescription("string")
- .withTags(mapOf("tag1", "value1", "tag2", "value2"))),
- com.azure.core.util.Context.NONE);
+ .define("testContainer")
+ .withExistingRegistry("testrg123", "testregistry")
+ .withProperties(new CodeContainerProperties().withDescription("string")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2")))
+ .create();
}
// Use "Map.of" if available
@@ -5746,7 +5757,7 @@ public final class RegistryCodeContainersCreateOrUpdateSamples {
public final class RegistryCodeContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/CodeContainer/delete.json
*/
/**
@@ -5771,7 +5782,7 @@ public final class RegistryCodeContainersDeleteSamples {
public final class RegistryCodeContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/CodeContainer/get.json
*/
/**
@@ -5796,7 +5807,7 @@ public final class RegistryCodeContainersGetSamples {
public final class RegistryCodeContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/CodeContainer/list.json
*/
/**
@@ -5823,7 +5834,7 @@ import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
public final class RegistryCodeVersionsCreateOrGetStartPendingUploadSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/CodeVersion/createOrGetStartPendingUpload.json
*/
/**
@@ -5845,7 +5856,6 @@ public final class RegistryCodeVersionsCreateOrGetStartPendingUploadSamples {
### RegistryCodeVersions_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.fluent.models.CodeVersionInner;
import com.azure.resourcemanager.machinelearning.models.CodeVersionProperties;
import java.util.HashMap;
import java.util.Map;
@@ -5856,7 +5866,7 @@ import java.util.Map;
public final class RegistryCodeVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/CodeVersion/createOrUpdate.json
*/
/**
@@ -5867,13 +5877,14 @@ public final class RegistryCodeVersionsCreateOrUpdateSamples {
public static void
createOrUpdateRegistryCodeVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.registryCodeVersions()
- .createOrUpdate("test-rg", "my-aml-registry", "string", "string",
- new CodeVersionInner().withProperties(new CodeVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withCodeUri("fakeTokenPlaceholder")),
- com.azure.core.util.Context.NONE);
+ .define("string")
+ .withExistingCode("test-rg", "my-aml-registry", "string")
+ .withProperties(new CodeVersionProperties().withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withCodeUri("fakeTokenPlaceholder"))
+ .create();
}
// Use "Map.of" if available
@@ -5899,7 +5910,7 @@ public final class RegistryCodeVersionsCreateOrUpdateSamples {
public final class RegistryCodeVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/CodeVersion/delete.json
*/
/**
@@ -5924,7 +5935,7 @@ public final class RegistryCodeVersionsDeleteSamples {
public final class RegistryCodeVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/CodeVersion/get.json
*/
/**
@@ -5949,7 +5960,7 @@ public final class RegistryCodeVersionsGetSamples {
public final class RegistryCodeVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/CodeVersion/list.json
*/
/**
@@ -5968,7 +5979,6 @@ public final class RegistryCodeVersionsListSamples {
### RegistryComponentContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.fluent.models.ComponentContainerInner;
import com.azure.resourcemanager.machinelearning.models.ComponentContainerProperties;
import java.util.HashMap;
import java.util.Map;
@@ -5979,7 +5989,7 @@ import java.util.Map;
public final class RegistryComponentContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ComponentContainer/createOrUpdate.json
*/
/**
@@ -5990,12 +6000,12 @@ public final class RegistryComponentContainersCreateOrUpdateSamples {
public static void createOrUpdateRegistryComponentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.registryComponentContainers()
- .createOrUpdate("test-rg", "my-aml-registry", "string",
- new ComponentContainerInner()
- .withProperties(new ComponentContainerProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))),
- com.azure.core.util.Context.NONE);
+ .define("string")
+ .withExistingRegistry("test-rg", "my-aml-registry")
+ .withProperties(new ComponentContainerProperties().withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string")))
+ .create();
}
// Use "Map.of" if available
@@ -6021,7 +6031,7 @@ public final class RegistryComponentContainersCreateOrUpdateSamples {
public final class RegistryComponentContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ComponentContainer/delete.json
*/
/**
@@ -6046,7 +6056,7 @@ public final class RegistryComponentContainersDeleteSamples {
public final class RegistryComponentContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ComponentContainer/get.json
*/
/**
@@ -6071,7 +6081,7 @@ public final class RegistryComponentContainersGetSamples {
public final class RegistryComponentContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ComponentContainer/list.json
*/
/**
@@ -6092,7 +6102,6 @@ public final class RegistryComponentContainersListSamples {
```java
import com.azure.core.management.serializer.SerializerFactory;
import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.machinelearning.fluent.models.ComponentVersionInner;
import com.azure.resourcemanager.machinelearning.models.ComponentVersionProperties;
import java.io.IOException;
import java.util.HashMap;
@@ -6104,7 +6113,7 @@ import java.util.Map;
public final class RegistryComponentVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ComponentVersion/createOrUpdate.json
*/
/**
@@ -6115,15 +6124,16 @@ public final class RegistryComponentVersionsCreateOrUpdateSamples {
public static void createOrUpdateRegistryComponentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
manager.registryComponentVersions()
- .createOrUpdate("test-rg", "my-aml-registry", "string", "string",
- new ComponentVersionInner().withProperties(new ComponentVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withComponentSpec(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"8ced901b-d826-477d-bfef-329da9672513\":null}", Object.class,
- SerializerEncoding.JSON))),
- com.azure.core.util.Context.NONE);
+ .define("string")
+ .withExistingComponent("test-rg", "my-aml-registry", "string")
+ .withProperties(new ComponentVersionProperties().withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withComponentSpec(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{\"8ced901b-d826-477d-bfef-329da9672513\":null}", Object.class,
+ SerializerEncoding.JSON)))
+ .create();
}
// Use "Map.of" if available
@@ -6149,7 +6159,7 @@ public final class RegistryComponentVersionsCreateOrUpdateSamples {
public final class RegistryComponentVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ComponentVersion/delete.json
*/
/**
@@ -6174,7 +6184,7 @@ public final class RegistryComponentVersionsDeleteSamples {
public final class RegistryComponentVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ComponentVersion/get.json
*/
/**
@@ -6199,7 +6209,7 @@ public final class RegistryComponentVersionsGetSamples {
public final class RegistryComponentVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ComponentVersion/list.json
*/
/**
@@ -6218,7 +6228,6 @@ public final class RegistryComponentVersionsListSamples {
### RegistryDataContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.fluent.models.DataContainerInner;
import com.azure.resourcemanager.machinelearning.models.DataContainerProperties;
import com.azure.resourcemanager.machinelearning.models.DataType;
import java.util.HashMap;
@@ -6230,7 +6239,7 @@ import java.util.Map;
public final class RegistryDataContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/DataContainer/createOrUpdate.json
*/
/**
@@ -6241,13 +6250,14 @@ public final class RegistryDataContainersCreateOrUpdateSamples {
public static void
createOrUpdateRegistryDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.registryDataContainers()
- .createOrUpdate("test-rg", "registryName", "string",
- new DataContainerInner().withProperties(new DataContainerProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))
- .withIsArchived(false)
- .withDataType(DataType.URI_FOLDER)),
- com.azure.core.util.Context.NONE);
+ .define("string")
+ .withExistingRegistry("test-rg", "registryName")
+ .withProperties(new DataContainerProperties().withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsArchived(false)
+ .withDataType(DataType.URI_FOLDER))
+ .create();
}
// Use "Map.of" if available
@@ -6273,7 +6283,7 @@ public final class RegistryDataContainersCreateOrUpdateSamples {
public final class RegistryDataContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/DataContainer/delete.json
*/
/**
@@ -6297,7 +6307,7 @@ public final class RegistryDataContainersDeleteSamples {
public final class RegistryDataContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/DataContainer/get.json
*/
/**
@@ -6324,7 +6334,7 @@ import com.azure.resourcemanager.machinelearning.models.ListViewType;
public final class RegistryDataContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/DataContainer/registryList.json
*/
/**
@@ -6351,7 +6361,7 @@ import com.azure.resourcemanager.machinelearning.models.GetBlobReferenceSasReque
public final class RegistryDataReferencesGetBlobReferenceSasSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/DataReference/getBlobReferenceSAS.json
*/
/**
@@ -6382,7 +6392,7 @@ import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
public final class RegistryDataVersionsCreateOrGetStartPendingUploadSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/DataVersionBase/createOrGetStartPendingUpload.json
*/
/**
@@ -6404,7 +6414,6 @@ public final class RegistryDataVersionsCreateOrGetStartPendingUploadSamples {
### RegistryDataVersions_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.fluent.models.DataVersionBaseInner;
import com.azure.resourcemanager.machinelearning.models.MLTableData;
import java.util.Arrays;
import java.util.HashMap;
@@ -6416,7 +6425,7 @@ import java.util.Map;
public final class RegistryDataVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/DataVersionBase/createOrUpdate.json
*/
/**
@@ -6427,15 +6436,16 @@ public final class RegistryDataVersionsCreateOrUpdateSamples {
public static void createOrUpdateRegistryDataVersionBase(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.registryDataVersions()
- .createOrUpdate("test-rg", "registryName", "string", "string",
- new DataVersionBaseInner().withProperties(new MLTableData().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))
- .withIsArchived(false)
- .withIsAnonymous(false)
- .withDataUri("string")
- .withReferencedUris(Arrays.asList("string"))),
- com.azure.core.util.Context.NONE);
+ .define("string")
+ .withExistingData("test-rg", "registryName", "string")
+ .withProperties(new MLTableData().withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withIsArchived(false)
+ .withDataUri("string")
+ .withReferencedUris(Arrays.asList("string")))
+ .create();
}
// Use "Map.of" if available
@@ -6461,7 +6471,7 @@ public final class RegistryDataVersionsCreateOrUpdateSamples {
public final class RegistryDataVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/DataVersionBase/delete.json
*/
/**
@@ -6486,7 +6496,7 @@ public final class RegistryDataVersionsDeleteSamples {
public final class RegistryDataVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/DataVersionBase/get.json
*/
/**
@@ -6513,7 +6523,7 @@ import com.azure.resourcemanager.machinelearning.models.ListViewType;
public final class RegistryDataVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/DataVersionBase/registryList.json
*/
/**
@@ -6533,7 +6543,6 @@ public final class RegistryDataVersionsListSamples {
### RegistryEnvironmentContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.fluent.models.EnvironmentContainerInner;
import com.azure.resourcemanager.machinelearning.models.EnvironmentContainerProperties;
import java.util.HashMap;
import java.util.Map;
@@ -6544,7 +6553,7 @@ import java.util.Map;
public final class RegistryEnvironmentContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/EnvironmentContainer/createOrUpdate.json
*/
/**
@@ -6555,14 +6564,13 @@ public final class RegistryEnvironmentContainersCreateOrUpdateSamples {
public static void createOrUpdateRegistryEnvironmentContainer(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.registryEnvironmentContainers()
- .createOrUpdate("testrg123", "testregistry", "testEnvironment",
- new EnvironmentContainerInner().withProperties(new EnvironmentContainerProperties()
- .withDescription("string")
- .withTags(
- mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
- .withProperties(
- mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))),
- com.azure.core.util.Context.NONE);
+ .define("testEnvironment")
+ .withExistingRegistry("testrg123", "testregistry")
+ .withProperties(new EnvironmentContainerProperties().withDescription("string")
+ .withProperties(
+ mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))
+ .withTags(mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string")))
+ .create();
}
// Use "Map.of" if available
@@ -6588,7 +6596,7 @@ public final class RegistryEnvironmentContainersCreateOrUpdateSamples {
public final class RegistryEnvironmentContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/EnvironmentContainer/delete.json
*/
/**
@@ -6613,7 +6621,7 @@ public final class RegistryEnvironmentContainersDeleteSamples {
public final class RegistryEnvironmentContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/EnvironmentContainer/get.json
*/
/**
@@ -6639,7 +6647,7 @@ public final class RegistryEnvironmentContainersGetSamples {
public final class RegistryEnvironmentContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/EnvironmentContainer/list.json
*/
/**
@@ -6658,7 +6666,6 @@ public final class RegistryEnvironmentContainersListSamples {
### RegistryEnvironmentVersions_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.fluent.models.EnvironmentVersionInner;
import com.azure.resourcemanager.machinelearning.models.BuildContext;
import com.azure.resourcemanager.machinelearning.models.EnvironmentVersionProperties;
import com.azure.resourcemanager.machinelearning.models.InferenceContainerProperties;
@@ -6672,7 +6679,7 @@ import java.util.Map;
public final class RegistryEnvironmentVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/EnvironmentVersion/createOrUpdate.json
*/
/**
@@ -6683,22 +6690,22 @@ public final class RegistryEnvironmentVersionsCreateOrUpdateSamples {
public static void createOrUpdateRegistryEnvironmentVersion(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.registryEnvironmentVersions()
- .createOrUpdate("test-rg", "my-aml-registry", "string", "string",
- new EnvironmentVersionInner().withProperties(new EnvironmentVersionProperties()
- .withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withImage("docker.io/tensorflow/serving:latest")
- .withCondaFile("string")
- .withBuild(new BuildContext().withContextUri(
- "https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/")
- .withDockerfilePath("prod/Dockerfile"))
- .withInferenceConfig(
- new InferenceContainerProperties().withLivenessRoute(new Route().withPath("string").withPort(1))
- .withReadinessRoute(new Route().withPath("string").withPort(1))
- .withScoringRoute(new Route().withPath("string").withPort(1)))),
- com.azure.core.util.Context.NONE);
+ .define("string")
+ .withExistingEnvironment("test-rg", "my-aml-registry", "string")
+ .withProperties(new EnvironmentVersionProperties().withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withBuild(new BuildContext().withContextUri(
+ "https://storage-account.blob.core.windows.net/azureml/DockerBuildContext/95ddede6b9b8c4e90472db3acd0a8d28/")
+ .withDockerfilePath("prod/Dockerfile"))
+ .withCondaFile("string")
+ .withImage("docker.io/tensorflow/serving:latest")
+ .withInferenceConfig(
+ new InferenceContainerProperties().withLivenessRoute(new Route().withPath("string").withPort(1))
+ .withReadinessRoute(new Route().withPath("string").withPort(1))
+ .withScoringRoute(new Route().withPath("string").withPort(1))))
+ .create();
}
// Use "Map.of" if available
@@ -6724,7 +6731,7 @@ public final class RegistryEnvironmentVersionsCreateOrUpdateSamples {
public final class RegistryEnvironmentVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/EnvironmentVersion/delete.json
*/
/**
@@ -6749,7 +6756,7 @@ public final class RegistryEnvironmentVersionsDeleteSamples {
public final class RegistryEnvironmentVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/EnvironmentVersion/get.json
*/
/**
@@ -6775,7 +6782,7 @@ public final class RegistryEnvironmentVersionsGetSamples {
public final class RegistryEnvironmentVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/EnvironmentVersion/list.json
*/
/**
@@ -6794,7 +6801,6 @@ public final class RegistryEnvironmentVersionsListSamples {
### RegistryModelContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.fluent.models.ModelContainerInner;
import com.azure.resourcemanager.machinelearning.models.ModelContainerProperties;
import java.util.HashMap;
import java.util.Map;
@@ -6805,7 +6811,7 @@ import java.util.Map;
public final class RegistryModelContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ModelContainer/createOrUpdate.json
*/
/**
@@ -6816,11 +6822,11 @@ public final class RegistryModelContainersCreateOrUpdateSamples {
public static void
createOrUpdateRegistryModelContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.registryModelContainers()
- .createOrUpdate("testrg123", "registry123", "testContainer",
- new ModelContainerInner()
- .withProperties(new ModelContainerProperties().withDescription("Model container description")
- .withTags(mapOf("tag1", "value1", "tag2", "value2"))),
- com.azure.core.util.Context.NONE);
+ .define("testContainer")
+ .withExistingRegistry("testrg123", "registry123")
+ .withProperties(new ModelContainerProperties().withDescription("Model container description")
+ .withTags(mapOf("tag1", "value1", "tag2", "value2")))
+ .create();
}
// Use "Map.of" if available
@@ -6846,7 +6852,7 @@ public final class RegistryModelContainersCreateOrUpdateSamples {
public final class RegistryModelContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ModelContainer/delete.json
*/
/**
@@ -6871,7 +6877,7 @@ public final class RegistryModelContainersDeleteSamples {
public final class RegistryModelContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ModelContainer/get.json
*/
/**
@@ -6897,7 +6903,7 @@ public final class RegistryModelContainersGetSamples {
public final class RegistryModelContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ModelContainer/list.json
*/
/**
@@ -6925,7 +6931,7 @@ import com.azure.resourcemanager.machinelearning.models.PendingUploadType;
public final class RegistryModelVersionsCreateOrGetStartPendingUploadSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ModelVersion/createOrGetStartPendingUpload.json
*/
/**
@@ -6947,7 +6953,6 @@ public final class RegistryModelVersionsCreateOrGetStartPendingUploadSamples {
### RegistryModelVersions_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.fluent.models.ModelVersionInner;
import com.azure.resourcemanager.machinelearning.models.FlavorData;
import com.azure.resourcemanager.machinelearning.models.ModelVersionProperties;
import java.util.HashMap;
@@ -6959,7 +6964,7 @@ import java.util.Map;
public final class RegistryModelVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ModelVersion/createOrUpdate.json
*/
/**
@@ -6970,15 +6975,16 @@ public final class RegistryModelVersionsCreateOrUpdateSamples {
public static void
createOrUpdateRegistryModelVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.registryModelVersions()
- .createOrUpdate("test-rg", "my-aml-registry", "string", "string",
- new ModelVersionInner().withProperties(new ModelVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))
- .withIsAnonymous(false)
- .withFlavors(mapOf("string", new FlavorData().withData(mapOf("string", "string"))))
- .withModelType("CustomModel")
- .withModelUri("string")),
- com.azure.core.util.Context.NONE);
+ .define("string")
+ .withExistingModel("test-rg", "my-aml-registry", "string")
+ .withProperties(new ModelVersionProperties().withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withFlavors(mapOf("string", new FlavorData().withData(mapOf("string", "string"))))
+ .withModelType("CustomModel")
+ .withModelUri("string"))
+ .create();
}
// Use "Map.of" if available
@@ -7004,7 +7010,7 @@ public final class RegistryModelVersionsCreateOrUpdateSamples {
public final class RegistryModelVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ModelVersion/delete.json
*/
/**
@@ -7029,7 +7035,7 @@ public final class RegistryModelVersionsDeleteSamples {
public final class RegistryModelVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ModelVersion/get.json
*/
/**
@@ -7055,7 +7061,7 @@ public final class RegistryModelVersionsGetSamples {
public final class RegistryModelVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Registry/ModelVersion/list.json
*/
/**
@@ -7090,7 +7096,7 @@ import java.util.Map;
public final class SchedulesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Schedule/createOrUpdate.json
*/
/**
@@ -7104,18 +7110,18 @@ public final class SchedulesCreateOrUpdateSamples {
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(new ScheduleProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withAction(new EndpointScheduleAction()
+ .withEndpointInvocationDefinition(SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{\"9965593e-526f-4b89-bb36-761138cf2794\":null}", Object.class,
+ SerializerEncoding.JSON)))
.withDisplayName("string")
.withIsEnabled(false)
.withTrigger(new CronTrigger().withEndTime("string")
.withStartTime("string")
.withTimeZone("string")
- .withExpression("string"))
- .withAction(new EndpointScheduleAction()
- .withEndpointInvocationDefinition(SerializerFactory.createDefaultManagementSerializerAdapter()
- .deserialize("{\"9965593e-526f-4b89-bb36-761138cf2794\":null}", Object.class,
- SerializerEncoding.JSON))))
+ .withExpression("string")))
.create();
}
@@ -7142,7 +7148,7 @@ public final class SchedulesCreateOrUpdateSamples {
public final class SchedulesDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Schedule/delete.json
*/
/**
@@ -7165,7 +7171,7 @@ public final class SchedulesDeleteSamples {
public final class SchedulesGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Schedule/get.json
*/
/**
@@ -7189,7 +7195,7 @@ public final class SchedulesGetSamples {
public final class SchedulesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Schedule/list.json
*/
/**
@@ -7225,7 +7231,7 @@ import java.util.Map;
public final class ServerlessEndpointsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ServerlessEndpoint/createOrUpdate.json
*/
/**
@@ -7239,14 +7245,13 @@ public final class ServerlessEndpointsCreateOrUpdateSamples {
.define("string")
.withRegion("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
- .withProperties(
- new ServerlessEndpointProperties().withModelSettings(new ModelSettings().withModelId("string"))
- .withAuthMode(ServerlessInferenceEndpointAuthMode.KEY)
- .withContentSafety(new ContentSafety().withContentSafetyStatus(ContentSafetyStatus.ENABLED)))
+ .withProperties(new ServerlessEndpointProperties().withAuthMode(ServerlessInferenceEndpointAuthMode.KEY)
+ .withContentSafety(new ContentSafety().withContentSafetyStatus(ContentSafetyStatus.ENABLED))
+ .withModelSettings(new ModelSettings().withModelId("string")))
.withTags(mapOf())
- .withKind("string")
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
.withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
.withSku(new Sku().withName("string")
.withTier(SkuTier.STANDARD)
.withSize("string")
@@ -7278,7 +7283,7 @@ public final class ServerlessEndpointsCreateOrUpdateSamples {
public final class ServerlessEndpointsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ServerlessEndpoint/delete.json
*/
/**
@@ -7302,7 +7307,7 @@ public final class ServerlessEndpointsDeleteSamples {
public final class ServerlessEndpointsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ServerlessEndpoint/get.json
*/
/**
@@ -7327,7 +7332,7 @@ public final class ServerlessEndpointsGetSamples {
public final class ServerlessEndpointsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ServerlessEndpoint/list.json
*/
/**
@@ -7351,7 +7356,7 @@ public final class ServerlessEndpointsListSamples {
public final class ServerlessEndpointsListKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ServerlessEndpoint/listKeys.json
*/
/**
@@ -7379,7 +7384,7 @@ import com.azure.resourcemanager.machinelearning.models.RegenerateEndpointKeysRe
public final class ServerlessEndpointsRegenerateKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ServerlessEndpoint/regenerateKeys.json
*/
/**
@@ -7417,7 +7422,7 @@ import java.util.Map;
public final class ServerlessEndpointsUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/ServerlessEndpoint/update.json
*/
/**
@@ -7432,15 +7437,15 @@ public final class ServerlessEndpointsUpdateSamples {
.getValue();
resource.update()
.withTags(mapOf())
- .withSku(new PartialSku().withName("string")
- .withTier(SkuTier.PREMIUM)
- .withSize("string")
- .withFamily("string")
- .withCapacity(1))
.withIdentity(new PartialManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE)
.withUserAssignedIdentities(mapOf("string",
SerializerFactory.createDefaultManagementSerializerAdapter()
.deserialize("{}", Object.class, SerializerEncoding.JSON))))
+ .withSku(new PartialSku().withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.PREMIUM))
.apply();
}
@@ -7467,7 +7472,7 @@ public final class ServerlessEndpointsUpdateSamples {
public final class UsagesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Usage/list.json
*/
/**
@@ -7490,7 +7495,7 @@ public final class UsagesListSamples {
public final class VirtualMachineSizesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/VirtualMachineSize/list.json
*/
/**
@@ -7516,7 +7521,7 @@ import com.azure.resourcemanager.machinelearning.models.NoneAuthTypeWorkspaceCon
public final class WorkspaceConnectionsCreateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/WorkspaceConnection/create.json
*/
/**
@@ -7546,7 +7551,7 @@ public final class WorkspaceConnectionsCreateSamples {
public final class WorkspaceConnectionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/WorkspaceConnection/delete.json
*/
/**
@@ -7571,7 +7576,7 @@ public final class WorkspaceConnectionsDeleteSamples {
public final class WorkspaceConnectionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/WorkspaceConnection/get.json
*/
/**
@@ -7596,7 +7601,7 @@ public final class WorkspaceConnectionsGetSamples {
public final class WorkspaceConnectionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/WorkspaceConnection/list.json
*/
/**
@@ -7607,7 +7612,7 @@ public final class WorkspaceConnectionsListSamples {
public static void
listWorkspaceConnections(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.workspaceConnections()
- .list("resourceGroup-1", "workspace-1", "www.facebook.com", "ContainerRegistry",
+ .list("resourceGroup-1", "workspace-1", "www.facebook.com", "ContainerRegistry", null,
com.azure.core.util.Context.NONE);
}
}
@@ -7622,7 +7627,7 @@ public final class WorkspaceConnectionsListSamples {
public final class WorkspaceConnectionsListSecretsSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/WorkspaceConnection/listSecrets.json
*/
/**
@@ -7638,6 +7643,61 @@ public final class WorkspaceConnectionsListSecretsSamples {
}
```
+### WorkspaceConnections_Update
+
+```java
+import com.azure.resourcemanager.machinelearning.models.AccessKeyAuthTypeWorkspaceConnectionProperties;
+import com.azure.resourcemanager.machinelearning.models.ConnectionCategory;
+import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionAccessKey;
+import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionPropertiesV2BasicResource;
+import java.time.OffsetDateTime;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for WorkspaceConnections Update.
+ */
+public final class WorkspaceConnectionsUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
+ * examples/WorkspaceConnection/update.json
+ */
+ /**
+ * Sample code: UpdateWorkspaceConnection.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ updateWorkspaceConnection(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ WorkspaceConnectionPropertiesV2BasicResource resource = manager.workspaceConnections()
+ .getWithResponse("test-rg", "workspace-1", "connection-1", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withProperties(
+ new AccessKeyAuthTypeWorkspaceConnectionProperties().withCategory(ConnectionCategory.ADLSGEN2)
+ .withExpiryTime(OffsetDateTime.parse("2020-01-01T00:00:00Z"))
+ .withTarget("some_string")
+ .withMetadata(mapOf())
+ .withCredentials(new WorkspaceConnectionAccessKey().withAccessKeyId("fakeTokenPlaceholder")
+ .withSecretAccessKey("fakeTokenPlaceholder")))
+ .apply();
+ }
+
+ // Use "Map.of" if available
+ @SuppressWarnings("unchecked")
+ private static Map mapOf(Object... inputs) {
+ Map map = new HashMap<>();
+ for (int i = 0; i < inputs.length; i += 2) {
+ String key = (String) inputs[i];
+ T value = (T) inputs[i + 1];
+ map.put(key, value);
+ }
+ return map;
+ }
+}
+```
+
### WorkspaceFeatures_List
```java
@@ -7647,7 +7707,7 @@ public final class WorkspaceConnectionsListSecretsSamples {
public final class WorkspaceFeaturesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/WorkspaceFeature/list.json
*/
/**
@@ -7683,7 +7743,7 @@ import java.util.Map;
public final class WorkspacesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/create.json
*/
/**
@@ -7750,7 +7810,7 @@ public final class WorkspacesCreateOrUpdateSamples {
public final class WorkspacesDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/delete.json
*/
/**
@@ -7778,7 +7838,7 @@ import java.util.Map;
public final class WorkspacesDiagnoseSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/diagnose.json
*/
/**
@@ -7824,7 +7884,7 @@ public final class WorkspacesDiagnoseSamples {
public final class WorkspacesGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/get.json
*/
/**
@@ -7848,7 +7908,7 @@ public final class WorkspacesGetByResourceGroupSamples {
public final class WorkspacesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/listBySubscription.json
*/
/**
@@ -7872,7 +7932,7 @@ public final class WorkspacesListSamples {
public final class WorkspacesListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/listByResourceGroup.json
*/
/**
@@ -7896,7 +7956,7 @@ public final class WorkspacesListByResourceGroupSamples {
public final class WorkspacesListKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/listKeys.json
*/
/**
@@ -7919,7 +7979,7 @@ public final class WorkspacesListKeysSamples {
public final class WorkspacesListNotebookAccessTokenSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/listNotebookAccessToken.json
*/
/**
@@ -7943,7 +8003,7 @@ public final class WorkspacesListNotebookAccessTokenSamples {
public final class WorkspacesListNotebookKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Notebook/listKeys.json
*/
/**
@@ -7967,7 +8027,7 @@ public final class WorkspacesListNotebookKeysSamples {
public final class WorkspacesListOutboundNetworkDependenciesEndpointsSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/ExternalFQDN/get.json
*/
/**
@@ -7993,7 +8053,7 @@ public final class WorkspacesListOutboundNetworkDependenciesEndpointsSamples {
public final class WorkspacesListStorageAccountKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/listStorageAccountKeys.json
*/
/**
@@ -8017,7 +8077,7 @@ public final class WorkspacesListStorageAccountKeysSamples {
public final class WorkspacesPrepareNotebookSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Notebook/prepare.json
*/
/**
@@ -8040,7 +8100,7 @@ public final class WorkspacesPrepareNotebookSamples {
public final class WorkspacesResyncKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/resyncKeys.json
*/
/**
@@ -8066,7 +8126,7 @@ import com.azure.resourcemanager.machinelearning.models.Workspace;
public final class WorkspacesUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-10-01/
* examples/Workspace/update.json
*/
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml b/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
index 1d8bed167c950..3b77aa61cdd32 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
@@ -18,7 +18,7 @@
jar
Microsoft Azure SDK for Machine Learning Management
- This package contains Microsoft Azure SDK for Machine Learning Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2024-04.
+ This package contains Microsoft Azure SDK for Machine Learning Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. These APIs allow end users to operate on Azure Machine Learning Workspace resources. Package tag package-2024-10.
https://github.com/Azure/azure-sdk-for-java
@@ -46,13 +46,9 @@
0
0
true
+ false
-
- com.azure
- azure-json
- 1.3.0
-
com.azure
azure-core
@@ -63,17 +59,16 @@
azure-core-management
1.15.4
+
+ com.azure
+ azure-json
+ 1.3.0
+
com.azure
azure-core-test
1.27.0-beta.2
test
-
-
- com.azure
- azure-core-http-jdk-httpclient
-
-
com.azure
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java
index bb31e555c22f5..46641fe2d5950 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java
@@ -11,8 +11,8 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
-import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
@@ -23,8 +23,8 @@
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
-import com.azure.resourcemanager.machinelearning.fluent.AzureMachineLearningWorkspaces;
-import com.azure.resourcemanager.machinelearning.implementation.AzureMachineLearningWorkspacesBuilder;
+import com.azure.resourcemanager.machinelearning.fluent.AzureMachineLearningServices;
+import com.azure.resourcemanager.machinelearning.implementation.AzureMachineLearningServicesBuilder;
import com.azure.resourcemanager.machinelearning.implementation.BatchDeploymentsImpl;
import com.azure.resourcemanager.machinelearning.implementation.BatchEndpointsImpl;
import com.azure.resourcemanager.machinelearning.implementation.CodeContainersImpl;
@@ -33,13 +33,13 @@
import com.azure.resourcemanager.machinelearning.implementation.ComponentVersionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.ComputesImpl;
import com.azure.resourcemanager.machinelearning.implementation.DataContainersImpl;
-import com.azure.resourcemanager.machinelearning.implementation.DatastoresImpl;
import com.azure.resourcemanager.machinelearning.implementation.DataVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.DatastoresImpl;
import com.azure.resourcemanager.machinelearning.implementation.EnvironmentContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.EnvironmentVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.FeaturesImpl;
import com.azure.resourcemanager.machinelearning.implementation.FeaturesetContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.FeaturesetVersionsImpl;
-import com.azure.resourcemanager.machinelearning.implementation.FeaturesImpl;
import com.azure.resourcemanager.machinelearning.implementation.FeaturestoreEntityContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.FeaturestoreEntityVersionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.JobsImpl;
@@ -81,8 +81,8 @@
import com.azure.resourcemanager.machinelearning.models.ComponentVersions;
import com.azure.resourcemanager.machinelearning.models.Computes;
import com.azure.resourcemanager.machinelearning.models.DataContainers;
-import com.azure.resourcemanager.machinelearning.models.Datastores;
import com.azure.resourcemanager.machinelearning.models.DataVersions;
+import com.azure.resourcemanager.machinelearning.models.Datastores;
import com.azure.resourcemanager.machinelearning.models.EnvironmentContainers;
import com.azure.resourcemanager.machinelearning.models.EnvironmentVersions;
import com.azure.resourcemanager.machinelearning.models.Features;
@@ -133,10 +133,6 @@
* These APIs allow end users to operate on Azure Machine Learning Workspace resources.
*/
public final class MachineLearningManager {
- private Operations operations;
-
- private Workspaces workspaces;
-
private Usages usages;
private VirtualMachineSizes virtualMachineSizes;
@@ -145,16 +141,6 @@ public final class MachineLearningManager {
private Computes computes;
- private PrivateEndpointConnections privateEndpointConnections;
-
- private PrivateLinkResources privateLinkResources;
-
- private WorkspaceConnections workspaceConnections;
-
- private ManagedNetworkSettingsRules managedNetworkSettingsRules;
-
- private ManagedNetworkProvisions managedNetworkProvisions;
-
private RegistryCodeContainers registryCodeContainers;
private RegistryCodeVersions registryCodeVersions;
@@ -229,12 +215,26 @@ public final class MachineLearningManager {
private WorkspaceFeatures workspaceFeatures;
- private final AzureMachineLearningWorkspaces clientObject;
+ private Operations operations;
+
+ private Workspaces workspaces;
+
+ private PrivateEndpointConnections privateEndpointConnections;
+
+ private PrivateLinkResources privateLinkResources;
+
+ private WorkspaceConnections workspaceConnections;
+
+ private ManagedNetworkSettingsRules managedNetworkSettingsRules;
+
+ private ManagedNetworkProvisions managedNetworkProvisions;
+
+ private final AzureMachineLearningServices clientObject;
private MachineLearningManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
Objects.requireNonNull(httpPipeline, "'httpPipeline' cannot be null.");
Objects.requireNonNull(profile, "'profile' cannot be null.");
- this.clientObject = new AzureMachineLearningWorkspacesBuilder().pipeline(httpPipeline)
+ this.clientObject = new AzureMachineLearningServicesBuilder().pipeline(httpPipeline)
.endpoint(profile.getEnvironment().getResourceManagerEndpoint())
.subscriptionId(profile.getSubscriptionId())
.defaultPollInterval(defaultPollInterval)
@@ -393,7 +393,7 @@ public MachineLearningManager authenticate(TokenCredential credential, AzureProf
.append("-")
.append("com.azure.resourcemanager.machinelearning")
.append("/")
- .append("1.1.0");
+ .append("1.0.0-beta.1");
if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
userAgentBuilder.append(" (")
.append(Configuration.getGlobalConfiguration().get("java.version"))
@@ -439,30 +439,6 @@ public MachineLearningManager authenticate(TokenCredential credential, AzureProf
}
}
- /**
- * Gets the resource collection API of Operations.
- *
- * @return Resource collection API of Operations.
- */
- public Operations operations() {
- if (this.operations == null) {
- this.operations = new OperationsImpl(clientObject.getOperations(), this);
- }
- return operations;
- }
-
- /**
- * Gets the resource collection API of Workspaces. It manages Workspace.
- *
- * @return Resource collection API of Workspaces.
- */
- public Workspaces workspaces() {
- if (this.workspaces == null) {
- this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
- }
- return workspaces;
- }
-
/**
* Gets the resource collection API of Usages.
*
@@ -512,71 +488,7 @@ public Computes computes() {
}
/**
- * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
- *
- * @return Resource collection API of PrivateEndpointConnections.
- */
- public PrivateEndpointConnections privateEndpointConnections() {
- if (this.privateEndpointConnections == null) {
- this.privateEndpointConnections
- = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
- }
- return privateEndpointConnections;
- }
-
- /**
- * Gets the resource collection API of PrivateLinkResources.
- *
- * @return Resource collection API of PrivateLinkResources.
- */
- public PrivateLinkResources privateLinkResources() {
- if (this.privateLinkResources == null) {
- this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
- }
- return privateLinkResources;
- }
-
- /**
- * Gets the resource collection API of WorkspaceConnections. It manages
- * WorkspaceConnectionPropertiesV2BasicResource.
- *
- * @return Resource collection API of WorkspaceConnections.
- */
- public WorkspaceConnections workspaceConnections() {
- if (this.workspaceConnections == null) {
- this.workspaceConnections = new WorkspaceConnectionsImpl(clientObject.getWorkspaceConnections(), this);
- }
- return workspaceConnections;
- }
-
- /**
- * Gets the resource collection API of ManagedNetworkSettingsRules. It manages OutboundRuleBasicResource.
- *
- * @return Resource collection API of ManagedNetworkSettingsRules.
- */
- public ManagedNetworkSettingsRules managedNetworkSettingsRules() {
- if (this.managedNetworkSettingsRules == null) {
- this.managedNetworkSettingsRules
- = new ManagedNetworkSettingsRulesImpl(clientObject.getManagedNetworkSettingsRules(), this);
- }
- return managedNetworkSettingsRules;
- }
-
- /**
- * Gets the resource collection API of ManagedNetworkProvisions.
- *
- * @return Resource collection API of ManagedNetworkProvisions.
- */
- public ManagedNetworkProvisions managedNetworkProvisions() {
- if (this.managedNetworkProvisions == null) {
- this.managedNetworkProvisions
- = new ManagedNetworkProvisionsImpl(clientObject.getManagedNetworkProvisions(), this);
- }
- return managedNetworkProvisions;
- }
-
- /**
- * Gets the resource collection API of RegistryCodeContainers.
+ * Gets the resource collection API of RegistryCodeContainers. It manages CodeContainer.
*
* @return Resource collection API of RegistryCodeContainers.
*/
@@ -589,7 +501,7 @@ public RegistryCodeContainers registryCodeContainers() {
}
/**
- * Gets the resource collection API of RegistryCodeVersions.
+ * Gets the resource collection API of RegistryCodeVersions. It manages CodeVersion.
*
* @return Resource collection API of RegistryCodeVersions.
*/
@@ -601,7 +513,7 @@ public RegistryCodeVersions registryCodeVersions() {
}
/**
- * Gets the resource collection API of RegistryComponentContainers.
+ * Gets the resource collection API of RegistryComponentContainers. It manages ComponentContainer.
*
* @return Resource collection API of RegistryComponentContainers.
*/
@@ -614,7 +526,7 @@ public RegistryComponentContainers registryComponentContainers() {
}
/**
- * Gets the resource collection API of RegistryComponentVersions.
+ * Gets the resource collection API of RegistryComponentVersions. It manages ComponentVersion.
*
* @return Resource collection API of RegistryComponentVersions.
*/
@@ -627,7 +539,7 @@ public RegistryComponentVersions registryComponentVersions() {
}
/**
- * Gets the resource collection API of RegistryDataContainers.
+ * Gets the resource collection API of RegistryDataContainers. It manages DataContainer.
*
* @return Resource collection API of RegistryDataContainers.
*/
@@ -640,7 +552,7 @@ public RegistryDataContainers registryDataContainers() {
}
/**
- * Gets the resource collection API of RegistryDataVersions.
+ * Gets the resource collection API of RegistryDataVersions. It manages DataVersionBase.
*
* @return Resource collection API of RegistryDataVersions.
*/
@@ -665,7 +577,7 @@ public RegistryDataReferences registryDataReferences() {
}
/**
- * Gets the resource collection API of RegistryEnvironmentContainers.
+ * Gets the resource collection API of RegistryEnvironmentContainers. It manages EnvironmentContainer.
*
* @return Resource collection API of RegistryEnvironmentContainers.
*/
@@ -678,7 +590,7 @@ public RegistryEnvironmentContainers registryEnvironmentContainers() {
}
/**
- * Gets the resource collection API of RegistryEnvironmentVersions.
+ * Gets the resource collection API of RegistryEnvironmentVersions. It manages EnvironmentVersion.
*
* @return Resource collection API of RegistryEnvironmentVersions.
*/
@@ -691,7 +603,7 @@ public RegistryEnvironmentVersions registryEnvironmentVersions() {
}
/**
- * Gets the resource collection API of RegistryModelContainers.
+ * Gets the resource collection API of RegistryModelContainers. It manages ModelContainer.
*
* @return Resource collection API of RegistryModelContainers.
*/
@@ -704,7 +616,7 @@ public RegistryModelContainers registryModelContainers() {
}
/**
- * Gets the resource collection API of RegistryModelVersions.
+ * Gets the resource collection API of RegistryModelVersions. It manages ModelVersion.
*
* @return Resource collection API of RegistryModelVersions.
*/
@@ -740,7 +652,7 @@ public BatchDeployments batchDeployments() {
}
/**
- * Gets the resource collection API of CodeContainers. It manages CodeContainer.
+ * Gets the resource collection API of CodeContainers.
*
* @return Resource collection API of CodeContainers.
*/
@@ -752,7 +664,7 @@ public CodeContainers codeContainers() {
}
/**
- * Gets the resource collection API of CodeVersions. It manages CodeVersion.
+ * Gets the resource collection API of CodeVersions.
*
* @return Resource collection API of CodeVersions.
*/
@@ -764,7 +676,7 @@ public CodeVersions codeVersions() {
}
/**
- * Gets the resource collection API of ComponentContainers. It manages ComponentContainer.
+ * Gets the resource collection API of ComponentContainers.
*
* @return Resource collection API of ComponentContainers.
*/
@@ -776,7 +688,7 @@ public ComponentContainers componentContainers() {
}
/**
- * Gets the resource collection API of ComponentVersions. It manages ComponentVersion.
+ * Gets the resource collection API of ComponentVersions.
*
* @return Resource collection API of ComponentVersions.
*/
@@ -788,7 +700,7 @@ public ComponentVersions componentVersions() {
}
/**
- * Gets the resource collection API of DataContainers. It manages DataContainer.
+ * Gets the resource collection API of DataContainers.
*
* @return Resource collection API of DataContainers.
*/
@@ -800,7 +712,7 @@ public DataContainers dataContainers() {
}
/**
- * Gets the resource collection API of DataVersions. It manages DataVersionBase.
+ * Gets the resource collection API of DataVersions.
*
* @return Resource collection API of DataVersions.
*/
@@ -824,7 +736,7 @@ public Datastores datastores() {
}
/**
- * Gets the resource collection API of EnvironmentContainers. It manages EnvironmentContainer.
+ * Gets the resource collection API of EnvironmentContainers.
*
* @return Resource collection API of EnvironmentContainers.
*/
@@ -836,7 +748,7 @@ public EnvironmentContainers environmentContainers() {
}
/**
- * Gets the resource collection API of EnvironmentVersions. It manages EnvironmentVersion.
+ * Gets the resource collection API of EnvironmentVersions.
*
* @return Resource collection API of EnvironmentVersions.
*/
@@ -935,7 +847,7 @@ public MarketplaceSubscriptions marketplaceSubscriptions() {
}
/**
- * Gets the resource collection API of ModelContainers. It manages ModelContainer.
+ * Gets the resource collection API of ModelContainers.
*
* @return Resource collection API of ModelContainers.
*/
@@ -947,7 +859,7 @@ public ModelContainers modelContainers() {
}
/**
- * Gets the resource collection API of ModelVersions. It manages ModelVersion.
+ * Gets the resource collection API of ModelVersions.
*
* @return Resource collection API of ModelVersions.
*/
@@ -1031,12 +943,100 @@ public WorkspaceFeatures workspaceFeatures() {
}
/**
- * Gets wrapped service client AzureMachineLearningWorkspaces providing direct access to the underlying
- * auto-generated API implementation, based on Azure REST API.
+ * Gets the resource collection API of Operations.
+ *
+ * @return Resource collection API of Operations.
+ */
+ public Operations operations() {
+ if (this.operations == null) {
+ this.operations = new OperationsImpl(clientObject.getOperations(), this);
+ }
+ return operations;
+ }
+
+ /**
+ * Gets the resource collection API of Workspaces. It manages Workspace.
+ *
+ * @return Resource collection API of Workspaces.
+ */
+ public Workspaces workspaces() {
+ if (this.workspaces == null) {
+ this.workspaces = new WorkspacesImpl(clientObject.getWorkspaces(), this);
+ }
+ return workspaces;
+ }
+
+ /**
+ * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
+ *
+ * @return Resource collection API of PrivateEndpointConnections.
+ */
+ public PrivateEndpointConnections privateEndpointConnections() {
+ if (this.privateEndpointConnections == null) {
+ this.privateEndpointConnections
+ = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this);
+ }
+ return privateEndpointConnections;
+ }
+
+ /**
+ * Gets the resource collection API of PrivateLinkResources.
+ *
+ * @return Resource collection API of PrivateLinkResources.
+ */
+ public PrivateLinkResources privateLinkResources() {
+ if (this.privateLinkResources == null) {
+ this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this);
+ }
+ return privateLinkResources;
+ }
+
+ /**
+ * Gets the resource collection API of WorkspaceConnections. It manages
+ * WorkspaceConnectionPropertiesV2BasicResource.
+ *
+ * @return Resource collection API of WorkspaceConnections.
+ */
+ public WorkspaceConnections workspaceConnections() {
+ if (this.workspaceConnections == null) {
+ this.workspaceConnections = new WorkspaceConnectionsImpl(clientObject.getWorkspaceConnections(), this);
+ }
+ return workspaceConnections;
+ }
+
+ /**
+ * Gets the resource collection API of ManagedNetworkSettingsRules. It manages OutboundRuleBasicResource.
+ *
+ * @return Resource collection API of ManagedNetworkSettingsRules.
+ */
+ public ManagedNetworkSettingsRules managedNetworkSettingsRules() {
+ if (this.managedNetworkSettingsRules == null) {
+ this.managedNetworkSettingsRules
+ = new ManagedNetworkSettingsRulesImpl(clientObject.getManagedNetworkSettingsRules(), this);
+ }
+ return managedNetworkSettingsRules;
+ }
+
+ /**
+ * Gets the resource collection API of ManagedNetworkProvisions.
+ *
+ * @return Resource collection API of ManagedNetworkProvisions.
+ */
+ public ManagedNetworkProvisions managedNetworkProvisions() {
+ if (this.managedNetworkProvisions == null) {
+ this.managedNetworkProvisions
+ = new ManagedNetworkProvisionsImpl(clientObject.getManagedNetworkProvisions(), this);
+ }
+ return managedNetworkProvisions;
+ }
+
+ /**
+ * Gets wrapped service client AzureMachineLearningServices providing direct access to the underlying auto-generated
+ * API implementation, based on Azure REST API.
*
- * @return Wrapped service client AzureMachineLearningWorkspaces.
+ * @return Wrapped service client AzureMachineLearningServices.
*/
- public AzureMachineLearningWorkspaces serviceClient() {
+ public AzureMachineLearningServices serviceClient() {
return this.clientObject;
}
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningWorkspaces.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningServices.java
similarity index 98%
rename from sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningWorkspaces.java
rename to sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningServices.java
index f9ec50f298e52..bbe39275447e3 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningWorkspaces.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/AzureMachineLearningServices.java
@@ -8,9 +8,9 @@
import java.time.Duration;
/**
- * The interface for AzureMachineLearningWorkspaces class.
+ * The interface for AzureMachineLearningServices class.
*/
-public interface AzureMachineLearningWorkspaces {
+public interface AzureMachineLearningServices {
/**
* Gets The ID of the target subscription.
*
@@ -46,20 +46,6 @@ public interface AzureMachineLearningWorkspaces {
*/
Duration getDefaultPollInterval();
- /**
- * Gets the OperationsClient object to access its operations.
- *
- * @return the OperationsClient object.
- */
- OperationsClient getOperations();
-
- /**
- * Gets the WorkspacesClient object to access its operations.
- *
- * @return the WorkspacesClient object.
- */
- WorkspacesClient getWorkspaces();
-
/**
* Gets the UsagesClient object to access its operations.
*
@@ -88,41 +74,6 @@ public interface AzureMachineLearningWorkspaces {
*/
ComputesClient getComputes();
- /**
- * Gets the PrivateEndpointConnectionsClient object to access its operations.
- *
- * @return the PrivateEndpointConnectionsClient object.
- */
- PrivateEndpointConnectionsClient getPrivateEndpointConnections();
-
- /**
- * Gets the PrivateLinkResourcesClient object to access its operations.
- *
- * @return the PrivateLinkResourcesClient object.
- */
- PrivateLinkResourcesClient getPrivateLinkResources();
-
- /**
- * Gets the WorkspaceConnectionsClient object to access its operations.
- *
- * @return the WorkspaceConnectionsClient object.
- */
- WorkspaceConnectionsClient getWorkspaceConnections();
-
- /**
- * Gets the ManagedNetworkSettingsRulesClient object to access its operations.
- *
- * @return the ManagedNetworkSettingsRulesClient object.
- */
- ManagedNetworkSettingsRulesClient getManagedNetworkSettingsRules();
-
- /**
- * Gets the ManagedNetworkProvisionsClient object to access its operations.
- *
- * @return the ManagedNetworkProvisionsClient object.
- */
- ManagedNetworkProvisionsClient getManagedNetworkProvisions();
-
/**
* Gets the RegistryCodeContainersClient object to access its operations.
*
@@ -381,4 +332,53 @@ public interface AzureMachineLearningWorkspaces {
* @return the WorkspaceFeaturesClient object.
*/
WorkspaceFeaturesClient getWorkspaceFeatures();
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ OperationsClient getOperations();
+
+ /**
+ * Gets the WorkspacesClient object to access its operations.
+ *
+ * @return the WorkspacesClient object.
+ */
+ WorkspacesClient getWorkspaces();
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ PrivateEndpointConnectionsClient getPrivateEndpointConnections();
+
+ /**
+ * Gets the PrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the PrivateLinkResourcesClient object.
+ */
+ PrivateLinkResourcesClient getPrivateLinkResources();
+
+ /**
+ * Gets the WorkspaceConnectionsClient object to access its operations.
+ *
+ * @return the WorkspaceConnectionsClient object.
+ */
+ WorkspaceConnectionsClient getWorkspaceConnections();
+
+ /**
+ * Gets the ManagedNetworkSettingsRulesClient object to access its operations.
+ *
+ * @return the ManagedNetworkSettingsRulesClient object.
+ */
+ ManagedNetworkSettingsRulesClient getManagedNetworkSettingsRules();
+
+ /**
+ * Gets the ManagedNetworkProvisionsClient object to access its operations.
+ *
+ * @return the ManagedNetworkProvisionsClient object.
+ */
+ ManagedNetworkProvisionsClient getManagedNetworkProvisions();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/WorkspaceConnectionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/WorkspaceConnectionsClient.java
index eee87969a4a32..23067a91b5e22 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/WorkspaceConnectionsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/WorkspaceConnectionsClient.java
@@ -10,6 +10,7 @@
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.machinelearning.fluent.models.WorkspaceConnectionPropertiesV2BasicResourceInner;
+import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionUpdateParameter;
/**
* An instance of this class provides access to all the operations defined in WorkspaceConnectionsClient.
@@ -109,6 +110,38 @@ Response deleteWithResponse(String resourceGroupName, String workspaceName
@ServiceMethod(returns = ReturnType.SINGLE)
void delete(String resourceGroupName, String workspaceName, String connectionName);
+ /**
+ * Update machine learning workspaces connections under the specified workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param body Parameters for workspace connection update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateWithResponse(String resourceGroupName,
+ String workspaceName, String connectionName, WorkspaceConnectionUpdateParameter body, Context context);
+
+ /**
+ * Update machine learning workspaces connections under the specified workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param connectionName Friendly name of the workspace connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkspaceConnectionPropertiesV2BasicResourceInner update(String resourceGroupName, String workspaceName,
+ String connectionName);
+
/**
* The list operation.
*
@@ -130,6 +163,8 @@ PagedIterable list(String res
* @param workspaceName Name of Azure Machine Learning workspace.
* @param target Target of the workspace connection.
* @param category Category of the workspace connection.
+ * @param includeAll query parameter that indicates if get connection call should return both connections and
+ * datastores.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -138,7 +173,7 @@ PagedIterable list(String res
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable list(String resourceGroupName,
- String workspaceName, String target, String category, Context context);
+ String workspaceName, String target, String category, Boolean includeAll, Context context);
/**
* List all the secrets of a machine learning workspaces connections.
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/WorkspacesClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/WorkspacesClient.java
index d3a6d397d5b90..c5422614b13d3 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/WorkspacesClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/WorkspacesClient.java
@@ -19,8 +19,8 @@
import com.azure.resourcemanager.machinelearning.fluent.models.NotebookAccessTokenResultInner;
import com.azure.resourcemanager.machinelearning.fluent.models.NotebookResourceInfoInner;
import com.azure.resourcemanager.machinelearning.fluent.models.WorkspaceInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.WorkspaceUpdateParametersInner;
import com.azure.resourcemanager.machinelearning.models.DiagnoseWorkspaceParameters;
-import com.azure.resourcemanager.machinelearning.models.WorkspaceUpdateParameters;
/**
* An instance of this class provides access to all the operations defined in WorkspacesClient.
@@ -183,7 +183,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkspaceInner> beginUpdate(String resourceGroupName, String workspaceName,
- WorkspaceUpdateParameters parameters);
+ WorkspaceUpdateParametersInner parameters);
/**
* Updates a machine learning workspace with the specified parameters.
@@ -199,7 +199,7 @@ SyncPoller, WorkspaceInner> beginUpdate(String resour
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkspaceInner> beginUpdate(String resourceGroupName, String workspaceName,
- WorkspaceUpdateParameters parameters, Context context);
+ WorkspaceUpdateParametersInner parameters, Context context);
/**
* Updates a machine learning workspace with the specified parameters.
@@ -213,7 +213,7 @@ SyncPoller, WorkspaceInner> beginUpdate(String resour
* @return an object that represents a machine learning workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkspaceInner update(String resourceGroupName, String workspaceName, WorkspaceUpdateParameters parameters);
+ WorkspaceInner update(String resourceGroupName, String workspaceName, WorkspaceUpdateParametersInner parameters);
/**
* Updates a machine learning workspace with the specified parameters.
@@ -228,7 +228,7 @@ SyncPoller, WorkspaceInner> beginUpdate(String resour
* @return an object that represents a machine learning workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- WorkspaceInner update(String resourceGroupName, String workspaceName, WorkspaceUpdateParameters parameters,
+ WorkspaceInner update(String resourceGroupName, String workspaceName, WorkspaceUpdateParametersInner parameters,
Context context);
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/BatchDeploymentInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/BatchDeploymentInner.java
index d4ddade922d39..8cbcab8e32345 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/BatchDeploymentInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/BatchDeploymentInner.java
@@ -23,9 +23,9 @@
@Fluent
public final class BatchDeploymentInner extends Resource {
/*
- * [Required] Additional attributes of the entity.
+ * Managed service identity (system assigned and/or user assigned identities)
*/
- private BatchDeploymentProperties properties;
+ private ManagedServiceIdentity identity;
/*
* Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type.
@@ -33,9 +33,9 @@ public final class BatchDeploymentInner extends Resource {
private String kind;
/*
- * Managed service identity (system assigned and/or user assigned identities)
+ * [Required] Additional attributes of the entity.
*/
- private ManagedServiceIdentity identity;
+ private BatchDeploymentProperties properties;
/*
* Sku details required for ARM contract for Autoscaling.
@@ -48,9 +48,9 @@ public final class BatchDeploymentInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -58,9 +58,9 @@ public final class BatchDeploymentInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of BatchDeploymentInner class.
@@ -69,22 +69,22 @@ public BatchDeploymentInner() {
}
/**
- * Get the properties property: [Required] Additional attributes of the entity.
+ * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @return the properties value.
+ * @return the identity value.
*/
- public BatchDeploymentProperties properties() {
- return this.properties;
+ public ManagedServiceIdentity identity() {
+ return this.identity;
}
/**
- * Set the properties property: [Required] Additional attributes of the entity.
+ * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @param properties the properties value to set.
+ * @param identity the identity value to set.
* @return the BatchDeploymentInner object itself.
*/
- public BatchDeploymentInner withProperties(BatchDeploymentProperties properties) {
- this.properties = properties;
+ public BatchDeploymentInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
return this;
}
@@ -111,22 +111,22 @@ public BatchDeploymentInner withKind(String kind) {
}
/**
- * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Get the properties property: [Required] Additional attributes of the entity.
*
- * @return the identity value.
+ * @return the properties value.
*/
- public ManagedServiceIdentity identity() {
- return this.identity;
+ public BatchDeploymentProperties properties() {
+ return this.properties;
}
/**
- * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Set the properties property: [Required] Additional attributes of the entity.
*
- * @param identity the identity value to set.
+ * @param properties the properties value to set.
* @return the BatchDeploymentInner object itself.
*/
- public BatchDeploymentInner withIdentity(ManagedServiceIdentity identity) {
- this.identity = identity;
+ public BatchDeploymentInner withProperties(BatchDeploymentProperties properties) {
+ this.properties = properties;
return this;
}
@@ -160,13 +160,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -180,13 +180,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -213,6 +213,9 @@ public BatchDeploymentInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
if (properties() == null) {
throw LOGGER.atError()
.log(
@@ -220,9 +223,6 @@ public void validate() {
} else {
properties().validate();
}
- if (identity() != null) {
- identity().validate();
- }
if (sku() != null) {
sku().validate();
}
@@ -239,8 +239,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("location", location());
jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.properties);
- jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("sku", this.sku);
return jsonWriter.writeEndObject();
}
@@ -274,10 +274,10 @@ public static BatchDeploymentInner fromJson(JsonReader jsonReader) throws IOExce
deserializedBatchDeploymentInner.withTags(tags);
} else if ("properties".equals(fieldName)) {
deserializedBatchDeploymentInner.properties = BatchDeploymentProperties.fromJson(reader);
- } else if ("kind".equals(fieldName)) {
- deserializedBatchDeploymentInner.kind = reader.getString();
} else if ("identity".equals(fieldName)) {
deserializedBatchDeploymentInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("kind".equals(fieldName)) {
+ deserializedBatchDeploymentInner.kind = reader.getString();
} else if ("sku".equals(fieldName)) {
deserializedBatchDeploymentInner.sku = Sku.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/BatchEndpointInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/BatchEndpointInner.java
index a4494b6eabf16..0c9302a7bade4 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/BatchEndpointInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/BatchEndpointInner.java
@@ -23,9 +23,9 @@
@Fluent
public final class BatchEndpointInner extends Resource {
/*
- * [Required] Additional attributes of the entity.
+ * Managed service identity (system assigned and/or user assigned identities)
*/
- private BatchEndpointProperties properties;
+ private ManagedServiceIdentity identity;
/*
* Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type.
@@ -33,9 +33,9 @@ public final class BatchEndpointInner extends Resource {
private String kind;
/*
- * Managed service identity (system assigned and/or user assigned identities)
+ * [Required] Additional attributes of the entity.
*/
- private ManagedServiceIdentity identity;
+ private BatchEndpointProperties properties;
/*
* Sku details required for ARM contract for Autoscaling.
@@ -48,9 +48,9 @@ public final class BatchEndpointInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -58,9 +58,9 @@ public final class BatchEndpointInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of BatchEndpointInner class.
@@ -69,22 +69,22 @@ public BatchEndpointInner() {
}
/**
- * Get the properties property: [Required] Additional attributes of the entity.
+ * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @return the properties value.
+ * @return the identity value.
*/
- public BatchEndpointProperties properties() {
- return this.properties;
+ public ManagedServiceIdentity identity() {
+ return this.identity;
}
/**
- * Set the properties property: [Required] Additional attributes of the entity.
+ * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @param properties the properties value to set.
+ * @param identity the identity value to set.
* @return the BatchEndpointInner object itself.
*/
- public BatchEndpointInner withProperties(BatchEndpointProperties properties) {
- this.properties = properties;
+ public BatchEndpointInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
return this;
}
@@ -111,22 +111,22 @@ public BatchEndpointInner withKind(String kind) {
}
/**
- * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Get the properties property: [Required] Additional attributes of the entity.
*
- * @return the identity value.
+ * @return the properties value.
*/
- public ManagedServiceIdentity identity() {
- return this.identity;
+ public BatchEndpointProperties properties() {
+ return this.properties;
}
/**
- * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Set the properties property: [Required] Additional attributes of the entity.
*
- * @param identity the identity value to set.
+ * @param properties the properties value to set.
* @return the BatchEndpointInner object itself.
*/
- public BatchEndpointInner withIdentity(ManagedServiceIdentity identity) {
- this.identity = identity;
+ public BatchEndpointInner withProperties(BatchEndpointProperties properties) {
+ this.properties = properties;
return this;
}
@@ -160,13 +160,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -180,13 +180,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -213,15 +213,15 @@ public BatchEndpointInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
if (properties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException("Missing required property properties in model BatchEndpointInner"));
} else {
properties().validate();
}
- if (identity() != null) {
- identity().validate();
- }
if (sku() != null) {
sku().validate();
}
@@ -238,8 +238,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("location", location());
jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.properties);
- jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("sku", this.sku);
return jsonWriter.writeEndObject();
}
@@ -273,10 +273,10 @@ public static BatchEndpointInner fromJson(JsonReader jsonReader) throws IOExcept
deserializedBatchEndpointInner.withTags(tags);
} else if ("properties".equals(fieldName)) {
deserializedBatchEndpointInner.properties = BatchEndpointProperties.fromJson(reader);
- } else if ("kind".equals(fieldName)) {
- deserializedBatchEndpointInner.kind = reader.getString();
} else if ("identity".equals(fieldName)) {
deserializedBatchEndpointInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("kind".equals(fieldName)) {
+ deserializedBatchEndpointInner.kind = reader.getString();
} else if ("sku".equals(fieldName)) {
deserializedBatchEndpointInner.sku = Sku.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/CodeContainerInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/CodeContainerInner.java
index 81ef24936822e..12bbde6bffc05 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/CodeContainerInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/CodeContainerInner.java
@@ -30,9 +30,9 @@ public final class CodeContainerInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class CodeContainerInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of CodeContainerInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/CodeVersionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/CodeVersionInner.java
index 5b0d8710edc07..5fa02c3298de1 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/CodeVersionInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/CodeVersionInner.java
@@ -30,9 +30,9 @@ public final class CodeVersionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class CodeVersionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of CodeVersionInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComponentContainerInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComponentContainerInner.java
index 0168e82327e59..d0a7dcde8d1b1 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComponentContainerInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComponentContainerInner.java
@@ -30,9 +30,9 @@ public final class ComponentContainerInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class ComponentContainerInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ComponentContainerInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComponentVersionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComponentVersionInner.java
index fbe9071c6c41d..722a1fa21252e 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComponentVersionInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComponentVersionInner.java
@@ -30,9 +30,9 @@ public final class ComponentVersionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class ComponentVersionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ComponentVersionInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComputeResourceInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComputeResourceInner.java
index 9885a5d752a74..2807faa73e379 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComputeResourceInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ComputeResourceInner.java
@@ -52,9 +52,9 @@ public final class ComputeResourceInner extends ProxyResource {
private Compute properties;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -62,9 +62,9 @@ public final class ComputeResourceInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ComputeResourceInner class.
@@ -182,13 +182,13 @@ public ComputeResourceInner withProperties(Compute properties) {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -202,13 +202,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DataContainerInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DataContainerInner.java
index b20e49abe512e..5513a8897d49c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DataContainerInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DataContainerInner.java
@@ -30,9 +30,9 @@ public final class DataContainerInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class DataContainerInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of DataContainerInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DataVersionBaseInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DataVersionBaseInner.java
index 90443894107ed..4d2e169cd82f3 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DataVersionBaseInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DataVersionBaseInner.java
@@ -30,9 +30,9 @@ public final class DataVersionBaseInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class DataVersionBaseInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of DataVersionBaseInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DatastoreInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DatastoreInner.java
index 90773283eb3a5..d7ffc1dc86a95 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DatastoreInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/DatastoreInner.java
@@ -30,9 +30,9 @@ public final class DatastoreInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class DatastoreInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of DatastoreInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointAuthTokenInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointAuthTokenInner.java
index ae60a3319a7b3..f427b864474cf 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointAuthTokenInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointAuthTokenInner.java
@@ -21,11 +21,6 @@ public final class EndpointAuthTokenInner implements JsonSerializable {
+ /*
+ * [Required] Use 'Key' for key based authentication and 'AMLToken' for Azure Machine Learning token-based
+ * authentication. 'Key' doesn't expire but 'AMLToken' does.
+ */
+ private EndpointAuthMode authMode;
+
/*
* Description of the inference endpoint.
*/
private String description;
+ /*
+ * EndpointAuthKeys to set initially on an Endpoint.
+ * This property will always be returned as null. AuthKey values must be retrieved using the ListKeys API.
+ */
+ private EndpointAuthKeysInner keys;
+
/*
* Property dictionary. Properties can be added, but not removed or altered.
*/
@@ -39,22 +51,32 @@ public class EndpointPropertiesBaseInner implements JsonSerializable writer.writeString(element));
jsonWriter.writeJsonField("keys", this.keys);
+ jsonWriter.writeMapField("properties", this.properties, (writer, element) -> writer.writeString(element));
return jsonWriter.writeEndObject();
}
@@ -232,6 +232,8 @@ public static EndpointPropertiesBaseInner fromJson(JsonReader jsonReader) throws
deserializedEndpointPropertiesBaseInner.authMode = EndpointAuthMode.fromString(reader.getString());
} else if ("description".equals(fieldName)) {
deserializedEndpointPropertiesBaseInner.description = reader.getString();
+ } else if ("keys".equals(fieldName)) {
+ deserializedEndpointPropertiesBaseInner.keys = EndpointAuthKeysInner.fromJson(reader);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedEndpointPropertiesBaseInner.properties = properties;
@@ -239,8 +241,6 @@ public static EndpointPropertiesBaseInner fromJson(JsonReader jsonReader) throws
deserializedEndpointPropertiesBaseInner.scoringUri = reader.getString();
} else if ("swaggerUri".equals(fieldName)) {
deserializedEndpointPropertiesBaseInner.swaggerUri = reader.getString();
- } else if ("keys".equals(fieldName)) {
- deserializedEndpointPropertiesBaseInner.keys = EndpointAuthKeysInner.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EnvironmentContainerInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EnvironmentContainerInner.java
index 988eef2ab7d49..95f4949b8eb4f 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EnvironmentContainerInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EnvironmentContainerInner.java
@@ -30,9 +30,9 @@ public final class EnvironmentContainerInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class EnvironmentContainerInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of EnvironmentContainerInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EnvironmentVersionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EnvironmentVersionInner.java
index 479e58bf02483..9930261eaf798 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EnvironmentVersionInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EnvironmentVersionInner.java
@@ -30,9 +30,9 @@ public final class EnvironmentVersionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class EnvironmentVersionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of EnvironmentVersionInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeatureInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeatureInner.java
index 5fab82ad54b0b..98288041faf75 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeatureInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeatureInner.java
@@ -30,9 +30,9 @@ public final class FeatureInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class FeatureInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of FeatureInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetContainerInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetContainerInner.java
index 75e459199aecd..d14b4b449b493 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetContainerInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetContainerInner.java
@@ -30,9 +30,9 @@ public final class FeaturesetContainerInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class FeaturesetContainerInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of FeaturesetContainerInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetVersionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetVersionInner.java
index 68b3d08df57cb..07c47ad78a96a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetVersionInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturesetVersionInner.java
@@ -30,9 +30,9 @@ public final class FeaturesetVersionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class FeaturesetVersionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of FeaturesetVersionInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityContainerInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityContainerInner.java
index 3cff75870f94d..2d15f31c3ec08 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityContainerInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityContainerInner.java
@@ -30,9 +30,9 @@ public final class FeaturestoreEntityContainerInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class FeaturestoreEntityContainerInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of FeaturestoreEntityContainerInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityVersionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityVersionInner.java
index 1c8eee3d76d3d..c379bbb304210 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityVersionInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/FeaturestoreEntityVersionInner.java
@@ -30,9 +30,9 @@ public final class FeaturestoreEntityVersionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class FeaturestoreEntityVersionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of FeaturestoreEntityVersionInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/JobBaseInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/JobBaseInner.java
index f9f23857c3dcf..485d192d54baf 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/JobBaseInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/JobBaseInner.java
@@ -30,9 +30,9 @@ public final class JobBaseInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class JobBaseInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of JobBaseInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ManagedNetworkSettingsInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ManagedNetworkSettingsInner.java
index 288819df29d09..6626fcb2fd68b 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ManagedNetworkSettingsInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ManagedNetworkSettingsInner.java
@@ -9,6 +9,7 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.machinelearning.models.FirewallSku;
import com.azure.resourcemanager.machinelearning.models.IsolationMode;
import com.azure.resourcemanager.machinelearning.models.OutboundRule;
import java.io.IOException;
@@ -39,6 +40,11 @@ public final class ManagedNetworkSettingsInner implements JsonSerializable writer.writeJson(element));
jsonWriter.writeJsonField("status", this.status);
+ jsonWriter.writeStringField("firewallSku", this.firewallSku == null ? null : this.firewallSku.toString());
return jsonWriter.writeEndObject();
}
@@ -170,6 +197,8 @@ public static ManagedNetworkSettingsInner fromJson(JsonReader jsonReader) throws
} else if ("status".equals(fieldName)) {
deserializedManagedNetworkSettingsInner.status
= ManagedNetworkProvisionStatusInner.fromJson(reader);
+ } else if ("firewallSku".equals(fieldName)) {
+ deserializedManagedNetworkSettingsInner.firewallSku = FirewallSku.fromString(reader.getString());
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/MarketplaceSubscriptionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/MarketplaceSubscriptionInner.java
index 600c30acbe368..937bb9c430917 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/MarketplaceSubscriptionInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/MarketplaceSubscriptionInner.java
@@ -30,9 +30,9 @@ public final class MarketplaceSubscriptionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class MarketplaceSubscriptionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of MarketplaceSubscriptionInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ModelContainerInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ModelContainerInner.java
index 1bd535de9b535..640375582d7a4 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ModelContainerInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ModelContainerInner.java
@@ -30,9 +30,9 @@ public final class ModelContainerInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class ModelContainerInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ModelContainerInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ModelVersionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ModelVersionInner.java
index 7f2f08e98758b..9c354de263cc7 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ModelVersionInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ModelVersionInner.java
@@ -30,9 +30,9 @@ public final class ModelVersionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class ModelVersionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ModelVersionInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OnlineDeploymentInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OnlineDeploymentInner.java
index f65e2d1dc6fff..cc7d87a5abba4 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OnlineDeploymentInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OnlineDeploymentInner.java
@@ -23,9 +23,9 @@
@Fluent
public final class OnlineDeploymentInner extends Resource {
/*
- * [Required] Additional attributes of the entity.
+ * Managed service identity (system assigned and/or user assigned identities)
*/
- private OnlineDeploymentProperties properties;
+ private ManagedServiceIdentity identity;
/*
* Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type.
@@ -33,9 +33,9 @@ public final class OnlineDeploymentInner extends Resource {
private String kind;
/*
- * Managed service identity (system assigned and/or user assigned identities)
+ * [Required] Additional attributes of the entity.
*/
- private ManagedServiceIdentity identity;
+ private OnlineDeploymentProperties properties;
/*
* Sku details required for ARM contract for Autoscaling.
@@ -48,9 +48,9 @@ public final class OnlineDeploymentInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -58,9 +58,9 @@ public final class OnlineDeploymentInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of OnlineDeploymentInner class.
@@ -69,22 +69,22 @@ public OnlineDeploymentInner() {
}
/**
- * Get the properties property: [Required] Additional attributes of the entity.
+ * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @return the properties value.
+ * @return the identity value.
*/
- public OnlineDeploymentProperties properties() {
- return this.properties;
+ public ManagedServiceIdentity identity() {
+ return this.identity;
}
/**
- * Set the properties property: [Required] Additional attributes of the entity.
+ * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @param properties the properties value to set.
+ * @param identity the identity value to set.
* @return the OnlineDeploymentInner object itself.
*/
- public OnlineDeploymentInner withProperties(OnlineDeploymentProperties properties) {
- this.properties = properties;
+ public OnlineDeploymentInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
return this;
}
@@ -111,22 +111,22 @@ public OnlineDeploymentInner withKind(String kind) {
}
/**
- * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Get the properties property: [Required] Additional attributes of the entity.
*
- * @return the identity value.
+ * @return the properties value.
*/
- public ManagedServiceIdentity identity() {
- return this.identity;
+ public OnlineDeploymentProperties properties() {
+ return this.properties;
}
/**
- * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Set the properties property: [Required] Additional attributes of the entity.
*
- * @param identity the identity value to set.
+ * @param properties the properties value to set.
* @return the OnlineDeploymentInner object itself.
*/
- public OnlineDeploymentInner withIdentity(ManagedServiceIdentity identity) {
- this.identity = identity;
+ public OnlineDeploymentInner withProperties(OnlineDeploymentProperties properties) {
+ this.properties = properties;
return this;
}
@@ -160,13 +160,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -180,13 +180,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -213,6 +213,9 @@ public OnlineDeploymentInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
if (properties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -220,9 +223,6 @@ public void validate() {
} else {
properties().validate();
}
- if (identity() != null) {
- identity().validate();
- }
if (sku() != null) {
sku().validate();
}
@@ -239,8 +239,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("location", location());
jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.properties);
- jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("sku", this.sku);
return jsonWriter.writeEndObject();
}
@@ -274,10 +274,10 @@ public static OnlineDeploymentInner fromJson(JsonReader jsonReader) throws IOExc
deserializedOnlineDeploymentInner.withTags(tags);
} else if ("properties".equals(fieldName)) {
deserializedOnlineDeploymentInner.properties = OnlineDeploymentProperties.fromJson(reader);
- } else if ("kind".equals(fieldName)) {
- deserializedOnlineDeploymentInner.kind = reader.getString();
} else if ("identity".equals(fieldName)) {
deserializedOnlineDeploymentInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("kind".equals(fieldName)) {
+ deserializedOnlineDeploymentInner.kind = reader.getString();
} else if ("sku".equals(fieldName)) {
deserializedOnlineDeploymentInner.sku = Sku.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OnlineEndpointInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OnlineEndpointInner.java
index 7170897d22354..99fcf54205e21 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OnlineEndpointInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OnlineEndpointInner.java
@@ -23,9 +23,9 @@
@Fluent
public final class OnlineEndpointInner extends Resource {
/*
- * [Required] Additional attributes of the entity.
+ * Managed service identity (system assigned and/or user assigned identities)
*/
- private OnlineEndpointProperties properties;
+ private ManagedServiceIdentity identity;
/*
* Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type.
@@ -33,9 +33,9 @@ public final class OnlineEndpointInner extends Resource {
private String kind;
/*
- * Managed service identity (system assigned and/or user assigned identities)
+ * [Required] Additional attributes of the entity.
*/
- private ManagedServiceIdentity identity;
+ private OnlineEndpointProperties properties;
/*
* Sku details required for ARM contract for Autoscaling.
@@ -48,9 +48,9 @@ public final class OnlineEndpointInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -58,9 +58,9 @@ public final class OnlineEndpointInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of OnlineEndpointInner class.
@@ -69,22 +69,22 @@ public OnlineEndpointInner() {
}
/**
- * Get the properties property: [Required] Additional attributes of the entity.
+ * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @return the properties value.
+ * @return the identity value.
*/
- public OnlineEndpointProperties properties() {
- return this.properties;
+ public ManagedServiceIdentity identity() {
+ return this.identity;
}
/**
- * Set the properties property: [Required] Additional attributes of the entity.
+ * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @param properties the properties value to set.
+ * @param identity the identity value to set.
* @return the OnlineEndpointInner object itself.
*/
- public OnlineEndpointInner withProperties(OnlineEndpointProperties properties) {
- this.properties = properties;
+ public OnlineEndpointInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
return this;
}
@@ -111,22 +111,22 @@ public OnlineEndpointInner withKind(String kind) {
}
/**
- * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Get the properties property: [Required] Additional attributes of the entity.
*
- * @return the identity value.
+ * @return the properties value.
*/
- public ManagedServiceIdentity identity() {
- return this.identity;
+ public OnlineEndpointProperties properties() {
+ return this.properties;
}
/**
- * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Set the properties property: [Required] Additional attributes of the entity.
*
- * @param identity the identity value to set.
+ * @param properties the properties value to set.
* @return the OnlineEndpointInner object itself.
*/
- public OnlineEndpointInner withIdentity(ManagedServiceIdentity identity) {
- this.identity = identity;
+ public OnlineEndpointInner withProperties(OnlineEndpointProperties properties) {
+ this.properties = properties;
return this;
}
@@ -160,13 +160,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -180,13 +180,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -213,15 +213,15 @@ public OnlineEndpointInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
if (properties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException("Missing required property properties in model OnlineEndpointInner"));
} else {
properties().validate();
}
- if (identity() != null) {
- identity().validate();
- }
if (sku() != null) {
sku().validate();
}
@@ -238,8 +238,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("location", location());
jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.properties);
- jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("sku", this.sku);
return jsonWriter.writeEndObject();
}
@@ -273,10 +273,10 @@ public static OnlineEndpointInner fromJson(JsonReader jsonReader) throws IOExcep
deserializedOnlineEndpointInner.withTags(tags);
} else if ("properties".equals(fieldName)) {
deserializedOnlineEndpointInner.properties = OnlineEndpointProperties.fromJson(reader);
- } else if ("kind".equals(fieldName)) {
- deserializedOnlineEndpointInner.kind = reader.getString();
} else if ("identity".equals(fieldName)) {
deserializedOnlineEndpointInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("kind".equals(fieldName)) {
+ deserializedOnlineEndpointInner.kind = reader.getString();
} else if ("sku".equals(fieldName)) {
deserializedOnlineEndpointInner.sku = Sku.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OutboundRuleBasicResourceInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OutboundRuleBasicResourceInner.java
index 6795602d33bbd..2174991fe1b6c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OutboundRuleBasicResourceInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/OutboundRuleBasicResourceInner.java
@@ -30,9 +30,9 @@ public final class OutboundRuleBasicResourceInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class OutboundRuleBasicResourceInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of OutboundRuleBasicResourceInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionInner.java
index a18d97bb627af..fe62059fd0aec 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionInner.java
@@ -54,9 +54,9 @@ public final class PrivateEndpointConnectionInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -64,9 +64,9 @@ public final class PrivateEndpointConnectionInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of PrivateEndpointConnectionInner class.
@@ -173,13 +173,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -193,13 +193,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryInner.java
index 446a0a7f6dcfa..243d369cce083 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryInner.java
@@ -51,9 +51,9 @@ public final class RegistryInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -61,9 +61,9 @@ public final class RegistryInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of RegistryInner class.
@@ -152,13 +152,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -172,13 +172,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ScheduleInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ScheduleInner.java
index 0073aa67f7108..dc7fc065a559a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ScheduleInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ScheduleInner.java
@@ -30,9 +30,9 @@ public final class ScheduleInner extends ProxyResource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -40,9 +40,9 @@ public final class ScheduleInner extends ProxyResource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ScheduleInner class.
@@ -80,13 +80,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -100,13 +100,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ServerlessEndpointInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ServerlessEndpointInner.java
index 9c5eba6320854..f3e6844c059c1 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ServerlessEndpointInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ServerlessEndpointInner.java
@@ -23,9 +23,9 @@
@Fluent
public final class ServerlessEndpointInner extends Resource {
/*
- * [Required] Additional attributes of the entity.
+ * Managed service identity (system assigned and/or user assigned identities)
*/
- private ServerlessEndpointProperties properties;
+ private ManagedServiceIdentity identity;
/*
* Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type.
@@ -33,9 +33,9 @@ public final class ServerlessEndpointInner extends Resource {
private String kind;
/*
- * Managed service identity (system assigned and/or user assigned identities)
+ * [Required] Additional attributes of the entity.
*/
- private ManagedServiceIdentity identity;
+ private ServerlessEndpointProperties properties;
/*
* Sku details required for ARM contract for Autoscaling.
@@ -48,9 +48,9 @@ public final class ServerlessEndpointInner extends Resource {
private SystemData systemData;
/*
- * Fully qualified resource Id for the resource.
+ * The type of the resource.
*/
- private String id;
+ private String type;
/*
* The name of the resource.
@@ -58,9 +58,9 @@ public final class ServerlessEndpointInner extends Resource {
private String name;
/*
- * The type of the resource.
+ * Fully qualified resource Id for the resource.
*/
- private String type;
+ private String id;
/**
* Creates an instance of ServerlessEndpointInner class.
@@ -69,22 +69,22 @@ public ServerlessEndpointInner() {
}
/**
- * Get the properties property: [Required] Additional attributes of the entity.
+ * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @return the properties value.
+ * @return the identity value.
*/
- public ServerlessEndpointProperties properties() {
- return this.properties;
+ public ManagedServiceIdentity identity() {
+ return this.identity;
}
/**
- * Set the properties property: [Required] Additional attributes of the entity.
+ * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @param properties the properties value to set.
+ * @param identity the identity value to set.
* @return the ServerlessEndpointInner object itself.
*/
- public ServerlessEndpointInner withProperties(ServerlessEndpointProperties properties) {
- this.properties = properties;
+ public ServerlessEndpointInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
return this;
}
@@ -111,22 +111,22 @@ public ServerlessEndpointInner withKind(String kind) {
}
/**
- * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Get the properties property: [Required] Additional attributes of the entity.
*
- * @return the identity value.
+ * @return the properties value.
*/
- public ManagedServiceIdentity identity() {
- return this.identity;
+ public ServerlessEndpointProperties properties() {
+ return this.properties;
}
/**
- * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Set the properties property: [Required] Additional attributes of the entity.
*
- * @param identity the identity value to set.
+ * @param properties the properties value to set.
* @return the ServerlessEndpointInner object itself.
*/
- public ServerlessEndpointInner withIdentity(ManagedServiceIdentity identity) {
- this.identity = identity;
+ public ServerlessEndpointInner withProperties(ServerlessEndpointProperties properties) {
+ this.properties = properties;
return this;
}
@@ -160,13 +160,13 @@ public SystemData systemData() {
}
/**
- * Get the id property: Fully qualified resource Id for the resource.
+ * Get the type property: The type of the resource.
*
- * @return the id value.
+ * @return the type value.
*/
@Override
- public String id() {
- return this.id;
+ public String type() {
+ return this.type;
}
/**
@@ -180,13 +180,13 @@ public String name() {
}
/**
- * Get the type property: The type of the resource.
+ * Get the id property: Fully qualified resource Id for the resource.
*
- * @return the type value.
+ * @return the id value.
*/
@Override
- public String type() {
- return this.type;
+ public String id() {
+ return this.id;
}
/**
@@ -213,6 +213,9 @@ public ServerlessEndpointInner withTags(Map tags) {
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
if (properties() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
@@ -220,9 +223,6 @@ public void validate() {
} else {
properties().validate();
}
- if (identity() != null) {
- identity().validate();
- }
if (sku() != null) {
sku().validate();
}
@@ -239,8 +239,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("location", location());
jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("properties", this.properties);
- jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeStringField("kind", this.kind);
jsonWriter.writeJsonField("sku", this.sku);
return jsonWriter.writeEndObject();
}
@@ -274,10 +274,10 @@ public static ServerlessEndpointInner fromJson(JsonReader jsonReader) throws IOE
deserializedServerlessEndpointInner.withTags(tags);
} else if ("properties".equals(fieldName)) {
deserializedServerlessEndpointInner.properties = ServerlessEndpointProperties.fromJson(reader);
- } else if ("kind".equals(fieldName)) {
- deserializedServerlessEndpointInner.kind = reader.getString();
} else if ("identity".equals(fieldName)) {
deserializedServerlessEndpointInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("kind".equals(fieldName)) {
+ deserializedServerlessEndpointInner.kind = reader.getString();
} else if ("sku".equals(fieldName)) {
deserializedServerlessEndpointInner.sku = Sku.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/SkuResourceInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/SkuResourceInner.java
index e3de72408417b..39e15b7bc7c70 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/SkuResourceInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/SkuResourceInner.java
@@ -18,6 +18,11 @@
*/
@Fluent
public final class SkuResourceInner implements JsonSerializable {
+ /*
+ * Gets or sets the Sku Capacity.
+ */
+ private SkuCapacity capacity;
+
/*
* The resource type name.
*/
@@ -28,17 +33,32 @@ public final class SkuResourceInner implements JsonSerializable {
+ /*
+ * The resource tags for the machine learning workspace.
+ */
+ private Map tags;
+
+ /*
+ * The sku of the workspace.
+ */
+ private Sku sku;
+
+ /*
+ * The identity of the resource.
+ */
+ private ManagedServiceIdentity identity;
+
+ /*
+ * The properties that the machine learning workspace will be updated with.
+ */
+ private WorkspacePropertiesUpdateParametersInner innerProperties;
+
+ /**
+ * Creates an instance of WorkspaceUpdateParametersInner class.
+ */
+ public WorkspaceUpdateParametersInner() {
+ }
+
+ /**
+ * Get the tags property: The resource tags for the machine learning workspace.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: The resource tags for the machine learning workspace.
+ *
+ * @param tags the tags value to set.
+ * @return the WorkspaceUpdateParametersInner object itself.
+ */
+ public WorkspaceUpdateParametersInner withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the sku property: The sku of the workspace.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: The sku of the workspace.
+ *
+ * @param sku the sku value to set.
+ * @return the WorkspaceUpdateParametersInner object itself.
+ */
+ public WorkspaceUpdateParametersInner withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the identity property: The identity of the resource.
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: The identity of the resource.
+ *
+ * @param identity the identity value to set.
+ * @return the WorkspaceUpdateParametersInner object itself.
+ */
+ public WorkspaceUpdateParametersInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: The properties that the machine learning workspace will be updated with.
+ *
+ * @return the innerProperties value.
+ */
+ private WorkspacePropertiesUpdateParametersInner innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the description property: The description of this workspace.
+ *
+ * @return the description value.
+ */
+ public String description() {
+ return this.innerProperties() == null ? null : this.innerProperties().description();
+ }
+
+ /**
+ * Set the description property: The description of this workspace.
+ *
+ * @param description the description value to set.
+ * @return the WorkspaceUpdateParametersInner object itself.
+ */
+ public WorkspaceUpdateParametersInner withDescription(String description) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesUpdateParametersInner();
+ }
+ this.innerProperties().withDescription(description);
+ return this;
+ }
+
+ /**
+ * Get the friendlyName property: The friendly name for this workspace.
+ *
+ * @return the friendlyName value.
+ */
+ public String friendlyName() {
+ return this.innerProperties() == null ? null : this.innerProperties().friendlyName();
+ }
+
+ /**
+ * Set the friendlyName property: The friendly name for this workspace.
+ *
+ * @param friendlyName the friendlyName value to set.
+ * @return the WorkspaceUpdateParametersInner object itself.
+ */
+ public WorkspaceUpdateParametersInner withFriendlyName(String friendlyName) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesUpdateParametersInner();
+ }
+ this.innerProperties().withFriendlyName(friendlyName);
+ return this;
+ }
+
+ /**
+ * Get the imageBuildCompute property: The compute name for image build.
+ *
+ * @return the imageBuildCompute value.
+ */
+ public String imageBuildCompute() {
+ return this.innerProperties() == null ? null : this.innerProperties().imageBuildCompute();
+ }
+
+ /**
+ * Set the imageBuildCompute property: The compute name for image build.
+ *
+ * @param imageBuildCompute the imageBuildCompute value to set.
+ * @return the WorkspaceUpdateParametersInner object itself.
+ */
+ public WorkspaceUpdateParametersInner withImageBuildCompute(String imageBuildCompute) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesUpdateParametersInner();
+ }
+ this.innerProperties().withImageBuildCompute(imageBuildCompute);
+ return this;
+ }
+
+ /**
+ * Get the serviceManagedResourcesSettings property: The service managed resource settings.
+ *
+ * @return the serviceManagedResourcesSettings value.
+ */
+ public ServiceManagedResourcesSettings serviceManagedResourcesSettings() {
+ return this.innerProperties() == null ? null : this.innerProperties().serviceManagedResourcesSettings();
+ }
+
+ /**
+ * Set the serviceManagedResourcesSettings property: The service managed resource settings.
+ *
+ * @param serviceManagedResourcesSettings the serviceManagedResourcesSettings value to set.
+ * @return the WorkspaceUpdateParametersInner object itself.
+ */
+ public WorkspaceUpdateParametersInner
+ withServiceManagedResourcesSettings(ServiceManagedResourcesSettings serviceManagedResourcesSettings) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesUpdateParametersInner();
+ }
+ this.innerProperties().withServiceManagedResourcesSettings(serviceManagedResourcesSettings);
+ return this;
+ }
+
+ /**
+ * Get the primaryUserAssignedIdentity property: The user assigned identity resource id that represents the
+ * workspace identity.
+ *
+ * @return the primaryUserAssignedIdentity value.
+ */
+ public String primaryUserAssignedIdentity() {
+ return this.innerProperties() == null ? null : this.innerProperties().primaryUserAssignedIdentity();
+ }
+
+ /**
+ * Set the primaryUserAssignedIdentity property: The user assigned identity resource id that represents the
+ * workspace identity.
+ *
+ * @param primaryUserAssignedIdentity the primaryUserAssignedIdentity value to set.
+ * @return the WorkspaceUpdateParametersInner object itself.
+ */
+ public WorkspaceUpdateParametersInner withPrimaryUserAssignedIdentity(String primaryUserAssignedIdentity) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesUpdateParametersInner();
+ }
+ this.innerProperties().withPrimaryUserAssignedIdentity(primaryUserAssignedIdentity);
+ return this;
+ }
+
+ /**
+ * Get the serverlessComputeSettings property: Settings for serverless compute created in the workspace.
+ *
+ * @return the serverlessComputeSettings value.
+ */
+ public ServerlessComputeSettings serverlessComputeSettings() {
+ return this.innerProperties() == null ? null : this.innerProperties().serverlessComputeSettings();
+ }
+
+ /**
+ * Set the serverlessComputeSettings property: Settings for serverless compute created in the workspace.
+ *
+ * @param serverlessComputeSettings the serverlessComputeSettings value to set.
+ * @return the WorkspaceUpdateParametersInner object itself.
+ */
+ public WorkspaceUpdateParametersInner
+ withServerlessComputeSettings(ServerlessComputeSettings serverlessComputeSettings) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesUpdateParametersInner();
+ }
+ this.innerProperties().withServerlessComputeSettings(serverlessComputeSettings);
+ return this;
+ }
+
+ /**
+ * Get the publicNetworkAccess property: Whether requests from Public Network are allowed.
+ *
+ * @return the publicNetworkAccess value.
+ */
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.innerProperties() == null ? null : this.innerProperties().publicNetworkAccess();
+ }
+
+ /**
+ * Set the publicNetworkAccess property: Whether requests from Public Network are allowed.
+ *
+ * @param publicNetworkAccess the publicNetworkAccess value to set.
+ * @return the WorkspaceUpdateParametersInner object itself.
+ */
+ public WorkspaceUpdateParametersInner withPublicNetworkAccess(PublicNetworkAccess publicNetworkAccess) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesUpdateParametersInner();
+ }
+ this.innerProperties().withPublicNetworkAccess(publicNetworkAccess);
+ return this;
+ }
+
+ /**
+ * Get the applicationInsights property: ARM id of the application insights associated with this workspace.
+ *
+ * @return the applicationInsights value.
+ */
+ public String applicationInsights() {
+ return this.innerProperties() == null ? null : this.innerProperties().applicationInsights();
+ }
+
+ /**
+ * Set the applicationInsights property: ARM id of the application insights associated with this workspace.
+ *
+ * @param applicationInsights the applicationInsights value to set.
+ * @return the WorkspaceUpdateParametersInner object itself.
+ */
+ public WorkspaceUpdateParametersInner withApplicationInsights(String applicationInsights) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesUpdateParametersInner();
+ }
+ this.innerProperties().withApplicationInsights(applicationInsights);
+ return this;
+ }
+
+ /**
+ * Get the containerRegistry property: ARM id of the container registry associated with this workspace.
+ *
+ * @return the containerRegistry value.
+ */
+ public String containerRegistry() {
+ return this.innerProperties() == null ? null : this.innerProperties().containerRegistry();
+ }
+
+ /**
+ * Set the containerRegistry property: ARM id of the container registry associated with this workspace.
+ *
+ * @param containerRegistry the containerRegistry value to set.
+ * @return the WorkspaceUpdateParametersInner object itself.
+ */
+ public WorkspaceUpdateParametersInner withContainerRegistry(String containerRegistry) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesUpdateParametersInner();
+ }
+ this.innerProperties().withContainerRegistry(containerRegistry);
+ return this;
+ }
+
+ /**
+ * Get the featureStoreSettings property: Settings for feature store type workspace.
+ *
+ * @return the featureStoreSettings value.
+ */
+ public FeatureStoreSettings featureStoreSettings() {
+ return this.innerProperties() == null ? null : this.innerProperties().featureStoreSettings();
+ }
+
+ /**
+ * Set the featureStoreSettings property: Settings for feature store type workspace.
+ *
+ * @param featureStoreSettings the featureStoreSettings value to set.
+ * @return the WorkspaceUpdateParametersInner object itself.
+ */
+ public WorkspaceUpdateParametersInner withFeatureStoreSettings(FeatureStoreSettings featureStoreSettings) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesUpdateParametersInner();
+ }
+ this.innerProperties().withFeatureStoreSettings(featureStoreSettings);
+ return this;
+ }
+
+ /**
+ * Get the managedNetwork property: Managed Network settings for a machine learning workspace.
+ *
+ * @return the managedNetwork value.
+ */
+ public ManagedNetworkSettingsInner managedNetwork() {
+ return this.innerProperties() == null ? null : this.innerProperties().managedNetwork();
+ }
+
+ /**
+ * Set the managedNetwork property: Managed Network settings for a machine learning workspace.
+ *
+ * @param managedNetwork the managedNetwork value to set.
+ * @return the WorkspaceUpdateParametersInner object itself.
+ */
+ public WorkspaceUpdateParametersInner withManagedNetwork(ManagedNetworkSettingsInner managedNetwork) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesUpdateParametersInner();
+ }
+ this.innerProperties().withManagedNetwork(managedNetwork);
+ return this;
+ }
+
+ /**
+ * Get the enableDataIsolation property: The enableDataIsolation property.
+ *
+ * @return the enableDataIsolation value.
+ */
+ public Boolean enableDataIsolation() {
+ return this.innerProperties() == null ? null : this.innerProperties().enableDataIsolation();
+ }
+
+ /**
+ * Set the enableDataIsolation property: The enableDataIsolation property.
+ *
+ * @param enableDataIsolation the enableDataIsolation value to set.
+ * @return the WorkspaceUpdateParametersInner object itself.
+ */
+ public WorkspaceUpdateParametersInner withEnableDataIsolation(Boolean enableDataIsolation) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesUpdateParametersInner();
+ }
+ this.innerProperties().withEnableDataIsolation(enableDataIsolation);
+ return this;
+ }
+
+ /**
+ * Get the v1LegacyMode property: Enabling v1_legacy_mode may prevent you from using features provided by the v2
+ * API.
+ *
+ * @return the v1LegacyMode value.
+ */
+ public Boolean v1LegacyMode() {
+ return this.innerProperties() == null ? null : this.innerProperties().v1LegacyMode();
+ }
+
+ /**
+ * Set the v1LegacyMode property: Enabling v1_legacy_mode may prevent you from using features provided by the v2
+ * API.
+ *
+ * @param v1LegacyMode the v1LegacyMode value to set.
+ * @return the WorkspaceUpdateParametersInner object itself.
+ */
+ public WorkspaceUpdateParametersInner withV1LegacyMode(Boolean v1LegacyMode) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesUpdateParametersInner();
+ }
+ this.innerProperties().withV1LegacyMode(v1LegacyMode);
+ return this;
+ }
+
+ /**
+ * Get the encryption property: The encryption property.
+ *
+ * @return the encryption value.
+ */
+ public EncryptionUpdateProperties encryption() {
+ return this.innerProperties() == null ? null : this.innerProperties().encryption();
+ }
+
+ /**
+ * Set the encryption property: The encryption property.
+ *
+ * @param encryption the encryption value to set.
+ * @return the WorkspaceUpdateParametersInner object itself.
+ */
+ public WorkspaceUpdateParametersInner withEncryption(EncryptionUpdateProperties encryption) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new WorkspacePropertiesUpdateParametersInner();
+ }
+ this.innerProperties().withEncryption(encryption);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (sku() != null) {
+ sku().validate();
+ }
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("sku", this.sku);
+ jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of WorkspaceUpdateParametersInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of WorkspaceUpdateParametersInner if the JsonReader was pointing to an instance of it, or
+ * null if it was pointing to JSON null.
+ * @throws IOException If an error occurs while reading the WorkspaceUpdateParametersInner.
+ */
+ public static WorkspaceUpdateParametersInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ WorkspaceUpdateParametersInner deserializedWorkspaceUpdateParametersInner
+ = new WorkspaceUpdateParametersInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedWorkspaceUpdateParametersInner.tags = tags;
+ } else if ("sku".equals(fieldName)) {
+ deserializedWorkspaceUpdateParametersInner.sku = Sku.fromJson(reader);
+ } else if ("identity".equals(fieldName)) {
+ deserializedWorkspaceUpdateParametersInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("properties".equals(fieldName)) {
+ deserializedWorkspaceUpdateParametersInner.innerProperties
+ = WorkspacePropertiesUpdateParametersInner.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedWorkspaceUpdateParametersInner;
+ });
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/package-info.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/package-info.java
index d9c8caf695b00..9540e342a5907 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/package-info.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/package-info.java
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the inner data models for AzureMachineLearningWorkspaces.
+ * Package containing the inner data models for AzureMachineLearningServices.
* These APIs allow end users to operate on Azure Machine Learning Workspace resources.
*/
package com.azure.resourcemanager.machinelearning.fluent.models;
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/package-info.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/package-info.java
index f2f5bd32c612f..3a42b7602c976 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/package-info.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/package-info.java
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the service clients for AzureMachineLearningWorkspaces.
+ * Package containing the service clients for AzureMachineLearningServices.
* These APIs allow end users to operate on Azure Machine Learning Workspace resources.
*/
package com.azure.resourcemanager.machinelearning.fluent;
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesBuilder.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningServicesBuilder.java
similarity index 70%
rename from sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesBuilder.java
rename to sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningServicesBuilder.java
index 35b7529d50c6a..069b2a76dfb19 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesBuilder.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningServicesBuilder.java
@@ -15,10 +15,10 @@
import java.time.Duration;
/**
- * A builder for creating a new instance of the AzureMachineLearningWorkspacesImpl type.
+ * A builder for creating a new instance of the AzureMachineLearningServicesImpl type.
*/
-@ServiceClientBuilder(serviceClients = { AzureMachineLearningWorkspacesImpl.class })
-public final class AzureMachineLearningWorkspacesBuilder {
+@ServiceClientBuilder(serviceClients = { AzureMachineLearningServicesImpl.class })
+public final class AzureMachineLearningServicesBuilder {
/*
* The ID of the target subscription.
*/
@@ -28,9 +28,9 @@ public final class AzureMachineLearningWorkspacesBuilder {
* Sets The ID of the target subscription.
*
* @param subscriptionId the subscriptionId value.
- * @return the AzureMachineLearningWorkspacesBuilder.
+ * @return the AzureMachineLearningServicesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder subscriptionId(String subscriptionId) {
+ public AzureMachineLearningServicesBuilder subscriptionId(String subscriptionId) {
this.subscriptionId = subscriptionId;
return this;
}
@@ -44,9 +44,9 @@ public AzureMachineLearningWorkspacesBuilder subscriptionId(String subscriptionI
* Sets server parameter.
*
* @param endpoint the endpoint value.
- * @return the AzureMachineLearningWorkspacesBuilder.
+ * @return the AzureMachineLearningServicesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder endpoint(String endpoint) {
+ public AzureMachineLearningServicesBuilder endpoint(String endpoint) {
this.endpoint = endpoint;
return this;
}
@@ -60,9 +60,9 @@ public AzureMachineLearningWorkspacesBuilder endpoint(String endpoint) {
* Sets The environment to connect to.
*
* @param environment the environment value.
- * @return the AzureMachineLearningWorkspacesBuilder.
+ * @return the AzureMachineLearningServicesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder environment(AzureEnvironment environment) {
+ public AzureMachineLearningServicesBuilder environment(AzureEnvironment environment) {
this.environment = environment;
return this;
}
@@ -76,9 +76,9 @@ public AzureMachineLearningWorkspacesBuilder environment(AzureEnvironment enviro
* Sets The HTTP pipeline to send requests through.
*
* @param pipeline the pipeline value.
- * @return the AzureMachineLearningWorkspacesBuilder.
+ * @return the AzureMachineLearningServicesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder pipeline(HttpPipeline pipeline) {
+ public AzureMachineLearningServicesBuilder pipeline(HttpPipeline pipeline) {
this.pipeline = pipeline;
return this;
}
@@ -92,9 +92,9 @@ public AzureMachineLearningWorkspacesBuilder pipeline(HttpPipeline pipeline) {
* Sets The default poll interval for long-running operation.
*
* @param defaultPollInterval the defaultPollInterval value.
- * @return the AzureMachineLearningWorkspacesBuilder.
+ * @return the AzureMachineLearningServicesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder defaultPollInterval(Duration defaultPollInterval) {
+ public AzureMachineLearningServicesBuilder defaultPollInterval(Duration defaultPollInterval) {
this.defaultPollInterval = defaultPollInterval;
return this;
}
@@ -108,19 +108,19 @@ public AzureMachineLearningWorkspacesBuilder defaultPollInterval(Duration defaul
* Sets The serializer to serialize an object into a string.
*
* @param serializerAdapter the serializerAdapter value.
- * @return the AzureMachineLearningWorkspacesBuilder.
+ * @return the AzureMachineLearningServicesBuilder.
*/
- public AzureMachineLearningWorkspacesBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ public AzureMachineLearningServicesBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
this.serializerAdapter = serializerAdapter;
return this;
}
/**
- * Builds an instance of AzureMachineLearningWorkspacesImpl with the provided parameters.
+ * Builds an instance of AzureMachineLearningServicesImpl with the provided parameters.
*
- * @return an instance of AzureMachineLearningWorkspacesImpl.
+ * @return an instance of AzureMachineLearningServicesImpl.
*/
- public AzureMachineLearningWorkspacesImpl buildClient() {
+ public AzureMachineLearningServicesImpl buildClient() {
String localEndpoint = (endpoint != null) ? endpoint : "https://management.azure.com";
AzureEnvironment localEnvironment = (environment != null) ? environment : AzureEnvironment.AZURE;
HttpPipeline localPipeline = (pipeline != null)
@@ -131,7 +131,7 @@ public AzureMachineLearningWorkspacesImpl buildClient() {
SerializerAdapter localSerializerAdapter = (serializerAdapter != null)
? serializerAdapter
: SerializerFactory.createDefaultManagementSerializerAdapter();
- AzureMachineLearningWorkspacesImpl client = new AzureMachineLearningWorkspacesImpl(localPipeline,
+ AzureMachineLearningServicesImpl client = new AzureMachineLearningServicesImpl(localPipeline,
localSerializerAdapter, localDefaultPollInterval, localEnvironment, this.subscriptionId, localEndpoint);
return client;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningServicesImpl.java
similarity index 98%
rename from sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesImpl.java
rename to sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningServicesImpl.java
index 9fb3b79b1f9b1..abaa196f06bb7 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningWorkspacesImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/AzureMachineLearningServicesImpl.java
@@ -13,8 +13,8 @@
import com.azure.core.management.AzureEnvironment;
import com.azure.core.management.exception.ManagementError;
import com.azure.core.management.exception.ManagementException;
-import com.azure.core.management.polling.PollerFactory;
import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
import com.azure.core.util.Context;
import com.azure.core.util.CoreUtils;
import com.azure.core.util.logging.ClientLogger;
@@ -23,7 +23,7 @@
import com.azure.core.util.polling.PollerFlux;
import com.azure.core.util.serializer.SerializerAdapter;
import com.azure.core.util.serializer.SerializerEncoding;
-import com.azure.resourcemanager.machinelearning.fluent.AzureMachineLearningWorkspaces;
+import com.azure.resourcemanager.machinelearning.fluent.AzureMachineLearningServices;
import com.azure.resourcemanager.machinelearning.fluent.BatchDeploymentsClient;
import com.azure.resourcemanager.machinelearning.fluent.BatchEndpointsClient;
import com.azure.resourcemanager.machinelearning.fluent.CodeContainersClient;
@@ -32,8 +32,8 @@
import com.azure.resourcemanager.machinelearning.fluent.ComponentVersionsClient;
import com.azure.resourcemanager.machinelearning.fluent.ComputesClient;
import com.azure.resourcemanager.machinelearning.fluent.DataContainersClient;
-import com.azure.resourcemanager.machinelearning.fluent.DatastoresClient;
import com.azure.resourcemanager.machinelearning.fluent.DataVersionsClient;
+import com.azure.resourcemanager.machinelearning.fluent.DatastoresClient;
import com.azure.resourcemanager.machinelearning.fluent.EnvironmentContainersClient;
import com.azure.resourcemanager.machinelearning.fluent.EnvironmentVersionsClient;
import com.azure.resourcemanager.machinelearning.fluent.FeaturesClient;
@@ -82,10 +82,10 @@
import reactor.core.publisher.Mono;
/**
- * Initializes a new instance of the AzureMachineLearningWorkspacesImpl type.
+ * Initializes a new instance of the AzureMachineLearningServicesImpl type.
*/
-@ServiceClient(builder = AzureMachineLearningWorkspacesBuilder.class)
-public final class AzureMachineLearningWorkspacesImpl implements AzureMachineLearningWorkspaces {
+@ServiceClient(builder = AzureMachineLearningServicesBuilder.class)
+public final class AzureMachineLearningServicesImpl implements AzureMachineLearningServices {
/**
* The ID of the target subscription.
*/
@@ -170,34 +170,6 @@ public Duration getDefaultPollInterval() {
return this.defaultPollInterval;
}
- /**
- * The OperationsClient object to access its operations.
- */
- private final OperationsClient operations;
-
- /**
- * Gets the OperationsClient object to access its operations.
- *
- * @return the OperationsClient object.
- */
- public OperationsClient getOperations() {
- return this.operations;
- }
-
- /**
- * The WorkspacesClient object to access its operations.
- */
- private final WorkspacesClient workspaces;
-
- /**
- * Gets the WorkspacesClient object to access its operations.
- *
- * @return the WorkspacesClient object.
- */
- public WorkspacesClient getWorkspaces() {
- return this.workspaces;
- }
-
/**
* The UsagesClient object to access its operations.
*/
@@ -254,76 +226,6 @@ public ComputesClient getComputes() {
return this.computes;
}
- /**
- * The PrivateEndpointConnectionsClient object to access its operations.
- */
- private final PrivateEndpointConnectionsClient privateEndpointConnections;
-
- /**
- * Gets the PrivateEndpointConnectionsClient object to access its operations.
- *
- * @return the PrivateEndpointConnectionsClient object.
- */
- public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
- return this.privateEndpointConnections;
- }
-
- /**
- * The PrivateLinkResourcesClient object to access its operations.
- */
- private final PrivateLinkResourcesClient privateLinkResources;
-
- /**
- * Gets the PrivateLinkResourcesClient object to access its operations.
- *
- * @return the PrivateLinkResourcesClient object.
- */
- public PrivateLinkResourcesClient getPrivateLinkResources() {
- return this.privateLinkResources;
- }
-
- /**
- * The WorkspaceConnectionsClient object to access its operations.
- */
- private final WorkspaceConnectionsClient workspaceConnections;
-
- /**
- * Gets the WorkspaceConnectionsClient object to access its operations.
- *
- * @return the WorkspaceConnectionsClient object.
- */
- public WorkspaceConnectionsClient getWorkspaceConnections() {
- return this.workspaceConnections;
- }
-
- /**
- * The ManagedNetworkSettingsRulesClient object to access its operations.
- */
- private final ManagedNetworkSettingsRulesClient managedNetworkSettingsRules;
-
- /**
- * Gets the ManagedNetworkSettingsRulesClient object to access its operations.
- *
- * @return the ManagedNetworkSettingsRulesClient object.
- */
- public ManagedNetworkSettingsRulesClient getManagedNetworkSettingsRules() {
- return this.managedNetworkSettingsRules;
- }
-
- /**
- * The ManagedNetworkProvisionsClient object to access its operations.
- */
- private final ManagedNetworkProvisionsClient managedNetworkProvisions;
-
- /**
- * Gets the ManagedNetworkProvisionsClient object to access its operations.
- *
- * @return the ManagedNetworkProvisionsClient object.
- */
- public ManagedNetworkProvisionsClient getManagedNetworkProvisions() {
- return this.managedNetworkProvisions;
- }
-
/**
* The RegistryCodeContainersClient object to access its operations.
*/
@@ -843,7 +745,105 @@ public WorkspaceFeaturesClient getWorkspaceFeatures() {
}
/**
- * Initializes an instance of AzureMachineLearningWorkspaces client.
+ * The OperationsClient object to access its operations.
+ */
+ private final OperationsClient operations;
+
+ /**
+ * Gets the OperationsClient object to access its operations.
+ *
+ * @return the OperationsClient object.
+ */
+ public OperationsClient getOperations() {
+ return this.operations;
+ }
+
+ /**
+ * The WorkspacesClient object to access its operations.
+ */
+ private final WorkspacesClient workspaces;
+
+ /**
+ * Gets the WorkspacesClient object to access its operations.
+ *
+ * @return the WorkspacesClient object.
+ */
+ public WorkspacesClient getWorkspaces() {
+ return this.workspaces;
+ }
+
+ /**
+ * The PrivateEndpointConnectionsClient object to access its operations.
+ */
+ private final PrivateEndpointConnectionsClient privateEndpointConnections;
+
+ /**
+ * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ *
+ * @return the PrivateEndpointConnectionsClient object.
+ */
+ public PrivateEndpointConnectionsClient getPrivateEndpointConnections() {
+ return this.privateEndpointConnections;
+ }
+
+ /**
+ * The PrivateLinkResourcesClient object to access its operations.
+ */
+ private final PrivateLinkResourcesClient privateLinkResources;
+
+ /**
+ * Gets the PrivateLinkResourcesClient object to access its operations.
+ *
+ * @return the PrivateLinkResourcesClient object.
+ */
+ public PrivateLinkResourcesClient getPrivateLinkResources() {
+ return this.privateLinkResources;
+ }
+
+ /**
+ * The WorkspaceConnectionsClient object to access its operations.
+ */
+ private final WorkspaceConnectionsClient workspaceConnections;
+
+ /**
+ * Gets the WorkspaceConnectionsClient object to access its operations.
+ *
+ * @return the WorkspaceConnectionsClient object.
+ */
+ public WorkspaceConnectionsClient getWorkspaceConnections() {
+ return this.workspaceConnections;
+ }
+
+ /**
+ * The ManagedNetworkSettingsRulesClient object to access its operations.
+ */
+ private final ManagedNetworkSettingsRulesClient managedNetworkSettingsRules;
+
+ /**
+ * Gets the ManagedNetworkSettingsRulesClient object to access its operations.
+ *
+ * @return the ManagedNetworkSettingsRulesClient object.
+ */
+ public ManagedNetworkSettingsRulesClient getManagedNetworkSettingsRules() {
+ return this.managedNetworkSettingsRules;
+ }
+
+ /**
+ * The ManagedNetworkProvisionsClient object to access its operations.
+ */
+ private final ManagedNetworkProvisionsClient managedNetworkProvisions;
+
+ /**
+ * Gets the ManagedNetworkProvisionsClient object to access its operations.
+ *
+ * @return the ManagedNetworkProvisionsClient object.
+ */
+ public ManagedNetworkProvisionsClient getManagedNetworkProvisions() {
+ return this.managedNetworkProvisions;
+ }
+
+ /**
+ * Initializes an instance of AzureMachineLearningServices client.
*
* @param httpPipeline The HTTP pipeline to send requests through.
* @param serializerAdapter The serializer to serialize an object into a string.
@@ -852,25 +852,18 @@ public WorkspaceFeaturesClient getWorkspaceFeatures() {
* @param subscriptionId The ID of the target subscription.
* @param endpoint server parameter.
*/
- AzureMachineLearningWorkspacesImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
+ AzureMachineLearningServicesImpl(HttpPipeline httpPipeline, SerializerAdapter serializerAdapter,
Duration defaultPollInterval, AzureEnvironment environment, String subscriptionId, String endpoint) {
this.httpPipeline = httpPipeline;
this.serializerAdapter = serializerAdapter;
this.defaultPollInterval = defaultPollInterval;
this.subscriptionId = subscriptionId;
this.endpoint = endpoint;
- this.apiVersion = "2024-04-01";
- this.operations = new OperationsClientImpl(this);
- this.workspaces = new WorkspacesClientImpl(this);
+ this.apiVersion = "2024-10-01";
this.usages = new UsagesClientImpl(this);
this.virtualMachineSizes = new VirtualMachineSizesClientImpl(this);
this.quotas = new QuotasClientImpl(this);
this.computes = new ComputesClientImpl(this);
- this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);
- this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
- this.workspaceConnections = new WorkspaceConnectionsClientImpl(this);
- this.managedNetworkSettingsRules = new ManagedNetworkSettingsRulesClientImpl(this);
- this.managedNetworkProvisions = new ManagedNetworkProvisionsClientImpl(this);
this.registryCodeContainers = new RegistryCodeContainersClientImpl(this);
this.registryCodeVersions = new RegistryCodeVersionsClientImpl(this);
this.registryComponentContainers = new RegistryComponentContainersClientImpl(this);
@@ -908,6 +901,13 @@ public WorkspaceFeaturesClient getWorkspaceFeatures() {
this.serverlessEndpoints = new ServerlessEndpointsClientImpl(this);
this.registries = new RegistriesClientImpl(this);
this.workspaceFeatures = new WorkspaceFeaturesClientImpl(this);
+ this.operations = new OperationsClientImpl(this);
+ this.workspaces = new WorkspacesClientImpl(this);
+ this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this);
+ this.privateLinkResources = new PrivateLinkResourcesClientImpl(this);
+ this.workspaceConnections = new WorkspaceConnectionsClientImpl(this);
+ this.managedNetworkSettingsRules = new ManagedNetworkSettingsRulesClientImpl(this);
+ this.managedNetworkProvisions = new ManagedNetworkProvisionsClientImpl(this);
}
/**
@@ -1036,5 +1036,5 @@ public Mono getBodyAsString(Charset charset) {
}
}
- private static final ClientLogger LOGGER = new ClientLogger(AzureMachineLearningWorkspacesImpl.class);
+ private static final ClientLogger LOGGER = new ClientLogger(AzureMachineLearningServicesImpl.class);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentImpl.java
index 438b2bd3c3555..91b616906e5f0 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentImpl.java
@@ -47,16 +47,16 @@ public Map tags() {
}
}
- public BatchDeploymentProperties properties() {
- return this.innerModel().properties();
+ public ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
}
public String kind() {
return this.innerModel().kind();
}
- public ManagedServiceIdentity identity() {
- return this.innerModel().identity();
+ public BatchDeploymentProperties properties() {
+ return this.innerModel().properties();
}
public Sku sku() {
@@ -196,13 +196,13 @@ public BatchDeploymentImpl withTags(Map tags) {
}
}
- public BatchDeploymentImpl withKind(String kind) {
- this.innerModel().withKind(kind);
+ public BatchDeploymentImpl withIdentity(ManagedServiceIdentity identity) {
+ this.innerModel().withIdentity(identity);
return this;
}
- public BatchDeploymentImpl withIdentity(ManagedServiceIdentity identity) {
- this.innerModel().withIdentity(identity);
+ public BatchDeploymentImpl withKind(String kind) {
+ this.innerModel().withKind(kind);
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentsClientImpl.java
index e4285f70aec12..06cbc420d0ef5 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchDeploymentsClientImpl.java
@@ -52,22 +52,22 @@ public final class BatchDeploymentsClientImpl implements BatchDeploymentsClient
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of BatchDeploymentsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- BatchDeploymentsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ BatchDeploymentsClientImpl(AzureMachineLearningServicesImpl client) {
this.service
= RestProxy.create(BatchDeploymentsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesBatchDeployments to be used by the
- * proxy service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesBatchDeployments to be used by the proxy
+ * service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchEndpointImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchEndpointImpl.java
index f9067b4de92ca..5f0f014d02c3a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchEndpointImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchEndpointImpl.java
@@ -49,16 +49,16 @@ public Map tags() {
}
}
- public BatchEndpointProperties properties() {
- return this.innerModel().properties();
+ public ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
}
public String kind() {
return this.innerModel().kind();
}
- public ManagedServiceIdentity identity() {
- return this.innerModel().identity();
+ public BatchEndpointProperties properties() {
+ return this.innerModel().properties();
}
public Sku sku() {
@@ -201,13 +201,13 @@ public BatchEndpointImpl withTags(Map tags) {
}
}
- public BatchEndpointImpl withKind(String kind) {
- this.innerModel().withKind(kind);
+ public BatchEndpointImpl withIdentity(ManagedServiceIdentity identity) {
+ this.innerModel().withIdentity(identity);
return this;
}
- public BatchEndpointImpl withIdentity(ManagedServiceIdentity identity) {
- this.innerModel().withIdentity(identity);
+ public BatchEndpointImpl withKind(String kind) {
+ this.innerModel().withKind(kind);
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchEndpointsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchEndpointsClientImpl.java
index e1bf9be205ea0..0261070a77ac9 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchEndpointsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/BatchEndpointsClientImpl.java
@@ -54,21 +54,21 @@ public final class BatchEndpointsClientImpl implements BatchEndpointsClient {
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of BatchEndpointsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- BatchEndpointsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ BatchEndpointsClientImpl(AzureMachineLearningServicesImpl client) {
this.service
= RestProxy.create(BatchEndpointsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesBatchEndpoints to be used by the proxy
+ * The interface defining all the services for AzureMachineLearningServicesBatchEndpoints to be used by the proxy
* service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainerImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainerImpl.java
index e8d4e9866fe96..2c925457ce743 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainerImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainerImpl.java
@@ -49,36 +49,34 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String resourceGroupName;
- private String workspaceName;
+ private String registryName;
- private String name;
+ private String codeName;
- public CodeContainerImpl withExistingWorkspace(String resourceGroupName, String workspaceName) {
+ public CodeContainerImpl withExistingRegistry(String resourceGroupName, String registryName) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
+ this.registryName = registryName;
return this;
}
public CodeContainer create() {
this.innerObject = serviceManager.serviceClient()
- .getCodeContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryCodeContainers()
+ .createOrUpdate(resourceGroupName, registryName, codeName, this.innerModel(), Context.NONE);
return this;
}
public CodeContainer create(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getCodeContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryCodeContainers()
+ .createOrUpdate(resourceGroupName, registryName, codeName, this.innerModel(), context);
return this;
}
CodeContainerImpl(String name, com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
this.innerObject = new CodeContainerInner();
this.serviceManager = serviceManager;
- this.name = name;
+ this.codeName = name;
}
public CodeContainerImpl update() {
@@ -87,17 +85,15 @@ public CodeContainerImpl update() {
public CodeContainer apply() {
this.innerObject = serviceManager.serviceClient()
- .getCodeContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryCodeContainers()
+ .createOrUpdate(resourceGroupName, registryName, codeName, this.innerModel(), Context.NONE);
return this;
}
public CodeContainer apply(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getCodeContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryCodeContainers()
+ .createOrUpdate(resourceGroupName, registryName, codeName, this.innerModel(), context);
return this;
}
@@ -106,22 +102,22 @@ public CodeContainer apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces");
- this.name = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "codes");
+ this.registryName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "registries");
+ this.codeName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "codes");
}
public CodeContainer refresh() {
this.innerObject = serviceManager.serviceClient()
- .getCodeContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, Context.NONE)
+ .getRegistryCodeContainers()
+ .getWithResponse(resourceGroupName, registryName, codeName, Context.NONE)
.getValue();
return this;
}
public CodeContainer refresh(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getCodeContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, context)
+ .getRegistryCodeContainers()
+ .getWithResponse(resourceGroupName, registryName, codeName, context)
.getValue();
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersClientImpl.java
index ff26ff2c637ad..1dad2d29439d6 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersClientImpl.java
@@ -45,21 +45,21 @@ public final class CodeContainersClientImpl implements CodeContainersClient {
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of CodeContainersClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- CodeContainersClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ CodeContainersClientImpl(AzureMachineLearningServicesImpl client) {
this.service
= RestProxy.create(CodeContainersService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesCodeContainers to be used by the proxy
+ * The interface defining all the services for AzureMachineLearningServicesCodeContainers to be used by the proxy
* service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersImpl.java
index 1e84c22d3534c..0f6a8f0490cf3 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeContainersImpl.java
@@ -69,80 +69,26 @@ public CodeContainer get(String resourceGroupName, String workspaceName, String
}
}
- public CodeContainer getById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
+ public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName,
+ String name, CodeContainerInner body, Context context) {
+ Response inner
+ = this.serviceClient().createOrUpdateWithResponse(resourceGroupName, workspaceName, name, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new CodeContainerImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
}
- this.deleteWithResponse(resourceGroupName, workspaceName, name, Context.NONE);
}
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
+ public CodeContainer createOrUpdate(String resourceGroupName, String workspaceName, String name,
+ CodeContainerInner body) {
+ CodeContainerInner inner = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, body);
+ if (inner != null) {
+ return new CodeContainerImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, context);
}
private CodeContainersClient serviceClient() {
@@ -152,8 +98,4 @@ private CodeContainersClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public CodeContainerImpl define(String name) {
- return new CodeContainerImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionImpl.java
index b6f4d8c324431..ae5f52c3a26b5 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionImpl.java
@@ -10,7 +10,6 @@
import com.azure.resourcemanager.machinelearning.fluent.models.CodeVersionInner;
import com.azure.resourcemanager.machinelearning.models.CodeVersion;
import com.azure.resourcemanager.machinelearning.models.CodeVersionProperties;
-import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
import com.azure.resourcemanager.machinelearning.models.PendingUploadResponseDto;
@@ -53,33 +52,30 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String resourceGroupName;
- private String workspaceName;
+ private String registryName;
- private String name;
+ private String codeName;
private String version;
- public CodeVersionImpl withExistingCode(String resourceGroupName, String workspaceName, String name) {
+ public CodeVersionImpl withExistingCode(String resourceGroupName, String registryName, String codeName) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
- this.name = name;
+ this.registryName = registryName;
+ this.codeName = codeName;
return this;
}
public CodeVersion create() {
this.innerObject = serviceManager.serviceClient()
- .getCodeVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(),
- Context.NONE)
- .getValue();
+ .getRegistryCodeVersions()
+ .createOrUpdate(resourceGroupName, registryName, codeName, version, this.innerModel(), Context.NONE);
return this;
}
public CodeVersion create(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getCodeVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(), context)
- .getValue();
+ .getRegistryCodeVersions()
+ .createOrUpdate(resourceGroupName, registryName, codeName, version, this.innerModel(), context);
return this;
}
@@ -95,18 +91,15 @@ public CodeVersionImpl update() {
public CodeVersion apply() {
this.innerObject = serviceManager.serviceClient()
- .getCodeVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(),
- Context.NONE)
- .getValue();
+ .getRegistryCodeVersions()
+ .createOrUpdate(resourceGroupName, registryName, codeName, version, this.innerModel(), Context.NONE);
return this;
}
public CodeVersion apply(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getCodeVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(), context)
- .getValue();
+ .getRegistryCodeVersions()
+ .createOrUpdate(resourceGroupName, registryName, codeName, version, this.innerModel(), context);
return this;
}
@@ -115,44 +108,37 @@ public CodeVersion apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces");
- this.name = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "codes");
+ this.registryName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "registries");
+ this.codeName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "codes");
this.version = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "versions");
}
public CodeVersion refresh() {
this.innerObject = serviceManager.serviceClient()
- .getCodeVersions()
- .getWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE)
+ .getRegistryCodeVersions()
+ .getWithResponse(resourceGroupName, registryName, codeName, version, Context.NONE)
.getValue();
return this;
}
public CodeVersion refresh(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getCodeVersions()
- .getWithResponse(resourceGroupName, workspaceName, name, version, context)
+ .getRegistryCodeVersions()
+ .getWithResponse(resourceGroupName, registryName, codeName, version, context)
.getValue();
return this;
}
- public void publish(DestinationAsset body) {
- serviceManager.codeVersions().publish(resourceGroupName, workspaceName, name, version, body);
- }
-
- public void publish(DestinationAsset body, Context context) {
- serviceManager.codeVersions().publish(resourceGroupName, workspaceName, name, version, body, context);
- }
-
public Response createOrGetStartPendingUploadWithResponse(PendingUploadRequestDto body,
Context context) {
- return serviceManager.codeVersions()
- .createOrGetStartPendingUploadWithResponse(resourceGroupName, workspaceName, name, version, body, context);
+ return serviceManager.registryCodeVersions()
+ .createOrGetStartPendingUploadWithResponse(resourceGroupName, registryName, codeName, version, body,
+ context);
}
public PendingUploadResponseDto createOrGetStartPendingUpload(PendingUploadRequestDto body) {
- return serviceManager.codeVersions()
- .createOrGetStartPendingUpload(resourceGroupName, workspaceName, name, version, body);
+ return serviceManager.registryCodeVersions()
+ .createOrGetStartPendingUpload(resourceGroupName, registryName, codeName, version, body);
}
public CodeVersionImpl withProperties(CodeVersionProperties properties) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsClientImpl.java
index 8a613f4823447..0431d1b10b6ed 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsClientImpl.java
@@ -54,21 +54,21 @@ public final class CodeVersionsClientImpl implements CodeVersionsClient {
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of CodeVersionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- CodeVersionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ CodeVersionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service
= RestProxy.create(CodeVersionsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesCodeVersions to be used by the proxy
+ * The interface defining all the services for AzureMachineLearningServicesCodeVersions to be used by the proxy
* service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsImpl.java
index bb1942b7ee99d..f345b530a9c70 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/CodeVersionsImpl.java
@@ -73,6 +73,29 @@ public CodeVersion get(String resourceGroupName, String workspaceName, String na
}
}
+ public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName, String name,
+ String version, CodeVersionInner body, Context context) {
+ Response inner = this.serviceClient()
+ .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new CodeVersionImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
+ }
+ }
+
+ public CodeVersion createOrUpdate(String resourceGroupName, String workspaceName, String name, String version,
+ CodeVersionInner body) {
+ CodeVersionInner inner
+ = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, version, body);
+ if (inner != null) {
+ return new CodeVersionImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public void publish(String resourceGroupName, String workspaceName, String name, String version,
DestinationAsset body) {
this.serviceClient().publish(resourceGroupName, workspaceName, name, version, body);
@@ -106,102 +129,6 @@ public PendingUploadResponseDto createOrGetStartPendingUpload(String resourceGro
}
}
- public CodeVersion getById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, version, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
- }
- this.deleteWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE);
- }
-
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "codes");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
- }
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, version, context);
- }
-
private CodeVersionsClient serviceClient() {
return this.innerClient;
}
@@ -209,8 +136,4 @@ private CodeVersionsClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public CodeVersionImpl define(String name) {
- return new CodeVersionImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainerImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainerImpl.java
index 5fab8426172de..a7bc11c808fcf 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainerImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainerImpl.java
@@ -50,29 +50,27 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String resourceGroupName;
- private String workspaceName;
+ private String registryName;
- private String name;
+ private String componentName;
- public ComponentContainerImpl withExistingWorkspace(String resourceGroupName, String workspaceName) {
+ public ComponentContainerImpl withExistingRegistry(String resourceGroupName, String registryName) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
+ this.registryName = registryName;
return this;
}
public ComponentContainer create() {
this.innerObject = serviceManager.serviceClient()
- .getComponentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryComponentContainers()
+ .createOrUpdate(resourceGroupName, registryName, componentName, this.innerModel(), Context.NONE);
return this;
}
public ComponentContainer create(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getComponentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryComponentContainers()
+ .createOrUpdate(resourceGroupName, registryName, componentName, this.innerModel(), context);
return this;
}
@@ -80,7 +78,7 @@ public ComponentContainer create(Context context) {
com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
this.innerObject = new ComponentContainerInner();
this.serviceManager = serviceManager;
- this.name = name;
+ this.componentName = name;
}
public ComponentContainerImpl update() {
@@ -89,17 +87,15 @@ public ComponentContainerImpl update() {
public ComponentContainer apply() {
this.innerObject = serviceManager.serviceClient()
- .getComponentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryComponentContainers()
+ .createOrUpdate(resourceGroupName, registryName, componentName, this.innerModel(), Context.NONE);
return this;
}
public ComponentContainer apply(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getComponentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryComponentContainers()
+ .createOrUpdate(resourceGroupName, registryName, componentName, this.innerModel(), context);
return this;
}
@@ -108,22 +104,22 @@ public ComponentContainer apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces");
- this.name = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "components");
+ this.registryName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "registries");
+ this.componentName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "components");
}
public ComponentContainer refresh() {
this.innerObject = serviceManager.serviceClient()
- .getComponentContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, Context.NONE)
+ .getRegistryComponentContainers()
+ .getWithResponse(resourceGroupName, registryName, componentName, Context.NONE)
.getValue();
return this;
}
public ComponentContainer refresh(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getComponentContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, context)
+ .getRegistryComponentContainers()
+ .getWithResponse(resourceGroupName, registryName, componentName, context)
.getValue();
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersClientImpl.java
index a8089666e0ecb..f8b8edbff0b5f 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersClientImpl.java
@@ -46,21 +46,21 @@ public final class ComponentContainersClientImpl implements ComponentContainersC
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of ComponentContainersClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- ComponentContainersClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ ComponentContainersClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(ComponentContainersService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesComponentContainers to be used by the
+ * The interface defining all the services for AzureMachineLearningServicesComponentContainers to be used by the
* proxy service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersImpl.java
index b5fddfcb84d15..7d56afd099c11 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentContainersImpl.java
@@ -70,80 +70,27 @@ public ComponentContainer get(String resourceGroupName, String workspaceName, St
}
}
- public ComponentContainer getById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
+ public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName,
+ String name, ComponentContainerInner body, Context context) {
+ Response inner
+ = this.serviceClient().createOrUpdateWithResponse(resourceGroupName, workspaceName, name, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ComponentContainerImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
}
- this.deleteWithResponse(resourceGroupName, workspaceName, name, Context.NONE);
}
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
+ public ComponentContainer createOrUpdate(String resourceGroupName, String workspaceName, String name,
+ ComponentContainerInner body) {
+ ComponentContainerInner inner
+ = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, body);
+ if (inner != null) {
+ return new ComponentContainerImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, context);
}
private ComponentContainersClient serviceClient() {
@@ -153,8 +100,4 @@ private ComponentContainersClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public ComponentContainerImpl define(String name) {
- return new ComponentContainerImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionImpl.java
index e1092e8d81ec1..6cda961e14aa3 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionImpl.java
@@ -9,7 +9,6 @@
import com.azure.resourcemanager.machinelearning.fluent.models.ComponentVersionInner;
import com.azure.resourcemanager.machinelearning.models.ComponentVersion;
import com.azure.resourcemanager.machinelearning.models.ComponentVersionProperties;
-import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
public final class ComponentVersionImpl
implements ComponentVersion, ComponentVersion.Definition, ComponentVersion.Update {
@@ -51,33 +50,31 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String resourceGroupName;
- private String workspaceName;
+ private String registryName;
- private String name;
+ private String componentName;
private String version;
- public ComponentVersionImpl withExistingComponent(String resourceGroupName, String workspaceName, String name) {
+ public ComponentVersionImpl withExistingComponent(String resourceGroupName, String registryName,
+ String componentName) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
- this.name = name;
+ this.registryName = registryName;
+ this.componentName = componentName;
return this;
}
public ComponentVersion create() {
this.innerObject = serviceManager.serviceClient()
- .getComponentVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(),
- Context.NONE)
- .getValue();
+ .getRegistryComponentVersions()
+ .createOrUpdate(resourceGroupName, registryName, componentName, version, this.innerModel(), Context.NONE);
return this;
}
public ComponentVersion create(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getComponentVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(), context)
- .getValue();
+ .getRegistryComponentVersions()
+ .createOrUpdate(resourceGroupName, registryName, componentName, version, this.innerModel(), context);
return this;
}
@@ -93,18 +90,15 @@ public ComponentVersionImpl update() {
public ComponentVersion apply() {
this.innerObject = serviceManager.serviceClient()
- .getComponentVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(),
- Context.NONE)
- .getValue();
+ .getRegistryComponentVersions()
+ .createOrUpdate(resourceGroupName, registryName, componentName, version, this.innerModel(), Context.NONE);
return this;
}
public ComponentVersion apply(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getComponentVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(), context)
- .getValue();
+ .getRegistryComponentVersions()
+ .createOrUpdate(resourceGroupName, registryName, componentName, version, this.innerModel(), context);
return this;
}
@@ -113,35 +107,27 @@ public ComponentVersion apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces");
- this.name = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "components");
+ this.registryName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "registries");
+ this.componentName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "components");
this.version = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "versions");
}
public ComponentVersion refresh() {
this.innerObject = serviceManager.serviceClient()
- .getComponentVersions()
- .getWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE)
+ .getRegistryComponentVersions()
+ .getWithResponse(resourceGroupName, registryName, componentName, version, Context.NONE)
.getValue();
return this;
}
public ComponentVersion refresh(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getComponentVersions()
- .getWithResponse(resourceGroupName, workspaceName, name, version, context)
+ .getRegistryComponentVersions()
+ .getWithResponse(resourceGroupName, registryName, componentName, version, context)
.getValue();
return this;
}
- public void publish(DestinationAsset body) {
- serviceManager.componentVersions().publish(resourceGroupName, workspaceName, name, version, body);
- }
-
- public void publish(DestinationAsset body, Context context) {
- serviceManager.componentVersions().publish(resourceGroupName, workspaceName, name, version, body, context);
- }
-
public ComponentVersionImpl withProperties(ComponentVersionProperties properties) {
this.innerModel().withProperties(properties);
return this;
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsClientImpl.java
index 0f38d5ff1acf9..6dc03ae5074ea 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsClientImpl.java
@@ -53,22 +53,22 @@ public final class ComponentVersionsClientImpl implements ComponentVersionsClien
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of ComponentVersionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- ComponentVersionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ ComponentVersionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service
= RestProxy.create(ComponentVersionsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesComponentVersions to be used by the
- * proxy service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesComponentVersions to be used by the proxy
+ * service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsImpl.java
index e224fb8fd311d..dae94b8cf0c4c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComponentVersionsImpl.java
@@ -71,110 +71,37 @@ public ComponentVersion get(String resourceGroupName, String workspaceName, Stri
}
}
- public void publish(String resourceGroupName, String workspaceName, String name, String version,
- DestinationAsset body) {
- this.serviceClient().publish(resourceGroupName, workspaceName, name, version, body);
- }
-
- public void publish(String resourceGroupName, String workspaceName, String name, String version,
- DestinationAsset body, Context context) {
- this.serviceClient().publish(resourceGroupName, workspaceName, name, version, body, context);
- }
-
- public ComponentVersion getById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName,
+ String name, String version, ComponentVersionInner body, Context context) {
+ Response inner = this.serviceClient()
+ .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ComponentVersionImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
}
- return this.getWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE).getValue();
}
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ public ComponentVersion createOrUpdate(String resourceGroupName, String workspaceName, String name, String version,
+ ComponentVersionInner body) {
+ ComponentVersionInner inner
+ = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, version, body);
+ if (inner != null) {
+ return new ComponentVersionImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.getWithResponse(resourceGroupName, workspaceName, name, version, context);
}
- public void deleteById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
- }
- this.deleteWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE);
+ public void publish(String resourceGroupName, String workspaceName, String name, String version,
+ DestinationAsset body) {
+ this.serviceClient().publish(resourceGroupName, workspaceName, name, version, body);
}
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "components");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
- }
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, version, context);
+ public void publish(String resourceGroupName, String workspaceName, String name, String version,
+ DestinationAsset body, Context context) {
+ this.serviceClient().publish(resourceGroupName, workspaceName, name, version, body, context);
}
private ComponentVersionsClient serviceClient() {
@@ -184,8 +111,4 @@ private ComponentVersionsClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public ComponentVersionImpl define(String name) {
- return new ComponentVersionImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesClientImpl.java
index b08cb2b83e5c5..2e7db270fab71 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesClientImpl.java
@@ -57,21 +57,21 @@ public final class ComputesClientImpl implements ComputesClient {
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of ComputesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- ComputesClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ ComputesClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(ComputesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesComputes to be used by the proxy
- * service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesComputes to be used by the proxy service
+ * to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesImpl.java
index ceab9a7511a87..f617455b8bf40 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ComputesImpl.java
@@ -14,8 +14,8 @@
import com.azure.resourcemanager.machinelearning.fluent.models.ComputeSecretsInner;
import com.azure.resourcemanager.machinelearning.models.AmlComputeNodeInformation;
import com.azure.resourcemanager.machinelearning.models.ComputeResource;
-import com.azure.resourcemanager.machinelearning.models.Computes;
import com.azure.resourcemanager.machinelearning.models.ComputeSecrets;
+import com.azure.resourcemanager.machinelearning.models.Computes;
import com.azure.resourcemanager.machinelearning.models.UnderlyingResourceAction;
public final class ComputesImpl implements Computes {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataContainerImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataContainerImpl.java
index c64667ba9a2e5..048b169c07f6f 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataContainerImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataContainerImpl.java
@@ -49,29 +49,27 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String resourceGroupName;
- private String workspaceName;
+ private String registryName;
private String name;
- public DataContainerImpl withExistingWorkspace(String resourceGroupName, String workspaceName) {
+ public DataContainerImpl withExistingRegistry(String resourceGroupName, String registryName) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
+ this.registryName = registryName;
return this;
}
public DataContainer create() {
this.innerObject = serviceManager.serviceClient()
- .getDataContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryDataContainers()
+ .createOrUpdate(resourceGroupName, registryName, name, this.innerModel(), Context.NONE);
return this;
}
public DataContainer create(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getDataContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryDataContainers()
+ .createOrUpdate(resourceGroupName, registryName, name, this.innerModel(), context);
return this;
}
@@ -87,17 +85,15 @@ public DataContainerImpl update() {
public DataContainer apply() {
this.innerObject = serviceManager.serviceClient()
- .getDataContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryDataContainers()
+ .createOrUpdate(resourceGroupName, registryName, name, this.innerModel(), Context.NONE);
return this;
}
public DataContainer apply(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getDataContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryDataContainers()
+ .createOrUpdate(resourceGroupName, registryName, name, this.innerModel(), context);
return this;
}
@@ -106,22 +102,22 @@ public DataContainer apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces");
+ this.registryName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "registries");
this.name = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "data");
}
public DataContainer refresh() {
this.innerObject = serviceManager.serviceClient()
- .getDataContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, Context.NONE)
+ .getRegistryDataContainers()
+ .getWithResponse(resourceGroupName, registryName, name, Context.NONE)
.getValue();
return this;
}
public DataContainer refresh(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getDataContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, context)
+ .getRegistryDataContainers()
+ .getWithResponse(resourceGroupName, registryName, name, context)
.getValue();
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataContainersClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataContainersClientImpl.java
index 6854369880419..f7b5eed23e6f5 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataContainersClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataContainersClientImpl.java
@@ -46,21 +46,21 @@ public final class DataContainersClientImpl implements DataContainersClient {
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of DataContainersClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- DataContainersClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ DataContainersClientImpl(AzureMachineLearningServicesImpl client) {
this.service
= RestProxy.create(DataContainersService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesDataContainers to be used by the proxy
+ * The interface defining all the services for AzureMachineLearningServicesDataContainers to be used by the proxy
* service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataContainersImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataContainersImpl.java
index 863435b627043..c24b2208cad14 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataContainersImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataContainersImpl.java
@@ -70,80 +70,26 @@ public DataContainer get(String resourceGroupName, String workspaceName, String
}
}
- public DataContainer getById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "data");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'data'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "data");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'data'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "data");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'data'.", id)));
+ public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName,
+ String name, DataContainerInner body, Context context) {
+ Response inner
+ = this.serviceClient().createOrUpdateWithResponse(resourceGroupName, workspaceName, name, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new DataContainerImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
}
- this.deleteWithResponse(resourceGroupName, workspaceName, name, Context.NONE);
}
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "data");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'data'.", id)));
+ public DataContainer createOrUpdate(String resourceGroupName, String workspaceName, String name,
+ DataContainerInner body) {
+ DataContainerInner inner = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, body);
+ if (inner != null) {
+ return new DataContainerImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, context);
}
private DataContainersClient serviceClient() {
@@ -153,8 +99,4 @@ private DataContainersClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public DataContainerImpl define(String name) {
- return new DataContainerImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataVersionBaseImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataVersionBaseImpl.java
index 816fc0dbc6f7a..5a2b41cd2b147 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataVersionBaseImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataVersionBaseImpl.java
@@ -4,12 +4,14 @@
package com.azure.resourcemanager.machinelearning.implementation;
+import com.azure.core.http.rest.Response;
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.machinelearning.fluent.models.DataVersionBaseInner;
import com.azure.resourcemanager.machinelearning.models.DataVersionBase;
import com.azure.resourcemanager.machinelearning.models.DataVersionBaseProperties;
-import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadResponseDto;
public final class DataVersionBaseImpl implements DataVersionBase, DataVersionBase.Definition, DataVersionBase.Update {
private DataVersionBaseInner innerObject;
@@ -50,33 +52,30 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String resourceGroupName;
- private String workspaceName;
+ private String registryName;
private String name;
private String version;
- public DataVersionBaseImpl withExistingData(String resourceGroupName, String workspaceName, String name) {
+ public DataVersionBaseImpl withExistingData(String resourceGroupName, String registryName, String name) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
+ this.registryName = registryName;
this.name = name;
return this;
}
public DataVersionBase create() {
this.innerObject = serviceManager.serviceClient()
- .getDataVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(),
- Context.NONE)
- .getValue();
+ .getRegistryDataVersions()
+ .createOrUpdate(resourceGroupName, registryName, name, version, this.innerModel(), Context.NONE);
return this;
}
public DataVersionBase create(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getDataVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(), context)
- .getValue();
+ .getRegistryDataVersions()
+ .createOrUpdate(resourceGroupName, registryName, name, version, this.innerModel(), context);
return this;
}
@@ -92,18 +91,15 @@ public DataVersionBaseImpl update() {
public DataVersionBase apply() {
this.innerObject = serviceManager.serviceClient()
- .getDataVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(),
- Context.NONE)
- .getValue();
+ .getRegistryDataVersions()
+ .createOrUpdate(resourceGroupName, registryName, name, version, this.innerModel(), Context.NONE);
return this;
}
public DataVersionBase apply(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getDataVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(), context)
- .getValue();
+ .getRegistryDataVersions()
+ .createOrUpdate(resourceGroupName, registryName, name, version, this.innerModel(), context);
return this;
}
@@ -112,33 +108,36 @@ public DataVersionBase apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces");
+ this.registryName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "registries");
this.name = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "data");
this.version = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "versions");
}
public DataVersionBase refresh() {
this.innerObject = serviceManager.serviceClient()
- .getDataVersions()
- .getWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE)
+ .getRegistryDataVersions()
+ .getWithResponse(resourceGroupName, registryName, name, version, Context.NONE)
.getValue();
return this;
}
public DataVersionBase refresh(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getDataVersions()
- .getWithResponse(resourceGroupName, workspaceName, name, version, context)
+ .getRegistryDataVersions()
+ .getWithResponse(resourceGroupName, registryName, name, version, context)
.getValue();
return this;
}
- public void publish(DestinationAsset body) {
- serviceManager.dataVersions().publish(resourceGroupName, workspaceName, name, version, body);
+ public Response createOrGetStartPendingUploadWithResponse(PendingUploadRequestDto body,
+ Context context) {
+ return serviceManager.registryDataVersions()
+ .createOrGetStartPendingUploadWithResponse(resourceGroupName, registryName, name, version, body, context);
}
- public void publish(DestinationAsset body, Context context) {
- serviceManager.dataVersions().publish(resourceGroupName, workspaceName, name, version, body, context);
+ public PendingUploadResponseDto createOrGetStartPendingUpload(PendingUploadRequestDto body) {
+ return serviceManager.registryDataVersions()
+ .createOrGetStartPendingUpload(resourceGroupName, registryName, name, version, body);
}
public DataVersionBaseImpl withProperties(DataVersionBaseProperties properties) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataVersionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataVersionsClientImpl.java
index b795ed9d26d64..571d77ea4bd0d 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataVersionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataVersionsClientImpl.java
@@ -53,21 +53,21 @@ public final class DataVersionsClientImpl implements DataVersionsClient {
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of DataVersionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- DataVersionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ DataVersionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service
= RestProxy.create(DataVersionsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesDataVersions to be used by the proxy
+ * The interface defining all the services for AzureMachineLearningServicesDataVersions to be used by the proxy
* service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataVersionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataVersionsImpl.java
index 3907bbab91238..58a42367235ab 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataVersionsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DataVersionsImpl.java
@@ -71,110 +71,37 @@ public DataVersionBase get(String resourceGroupName, String workspaceName, Strin
}
}
- public void publish(String resourceGroupName, String workspaceName, String name, String version,
- DestinationAsset body) {
- this.serviceClient().publish(resourceGroupName, workspaceName, name, version, body);
- }
-
- public void publish(String resourceGroupName, String workspaceName, String name, String version,
- DestinationAsset body, Context context) {
- this.serviceClient().publish(resourceGroupName, workspaceName, name, version, body, context);
- }
-
- public DataVersionBase getById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "data");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'data'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName,
+ String name, String version, DataVersionBaseInner body, Context context) {
+ Response inner = this.serviceClient()
+ .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new DataVersionBaseImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
}
- return this.getWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE).getValue();
}
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "data");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'data'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ public DataVersionBase createOrUpdate(String resourceGroupName, String workspaceName, String name, String version,
+ DataVersionBaseInner body) {
+ DataVersionBaseInner inner
+ = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, version, body);
+ if (inner != null) {
+ return new DataVersionBaseImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.getWithResponse(resourceGroupName, workspaceName, name, version, context);
}
- public void deleteById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "data");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'data'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
- }
- this.deleteWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE);
+ public void publish(String resourceGroupName, String workspaceName, String name, String version,
+ DestinationAsset body) {
+ this.serviceClient().publish(resourceGroupName, workspaceName, name, version, body);
}
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "data");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'data'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
- }
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, version, context);
+ public void publish(String resourceGroupName, String workspaceName, String name, String version,
+ DestinationAsset body, Context context) {
+ this.serviceClient().publish(resourceGroupName, workspaceName, name, version, body, context);
}
private DataVersionsClient serviceClient() {
@@ -184,8 +111,4 @@ private DataVersionsClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public DataVersionBaseImpl define(String name) {
- return new DataVersionBaseImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DatastoresClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DatastoresClientImpl.java
index 98b657dec3205..b994279fce3de 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DatastoresClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DatastoresClientImpl.java
@@ -50,21 +50,21 @@ public final class DatastoresClientImpl implements DatastoresClient {
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of DatastoresClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- DatastoresClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ DatastoresClientImpl(AzureMachineLearningServicesImpl client) {
this.service
= RestProxy.create(DatastoresService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesDatastores to be used by the proxy
+ * The interface defining all the services for AzureMachineLearningServicesDatastores to be used by the proxy
* service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DatastoresImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DatastoresImpl.java
index fa7812fdde1c5..95f18bb20de1b 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DatastoresImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/DatastoresImpl.java
@@ -13,8 +13,8 @@
import com.azure.resourcemanager.machinelearning.fluent.models.DatastoreInner;
import com.azure.resourcemanager.machinelearning.fluent.models.DatastoreSecretsInner;
import com.azure.resourcemanager.machinelearning.models.Datastore;
-import com.azure.resourcemanager.machinelearning.models.Datastores;
import com.azure.resourcemanager.machinelearning.models.DatastoreSecrets;
+import com.azure.resourcemanager.machinelearning.models.Datastores;
import java.util.List;
public final class DatastoresImpl implements Datastores {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EndpointAuthTokenImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EndpointAuthTokenImpl.java
index 9746d7e9d7941..c3b96d3617e53 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EndpointAuthTokenImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EndpointAuthTokenImpl.java
@@ -22,10 +22,6 @@ public String accessToken() {
return this.innerModel().accessToken();
}
- public String tokenType() {
- return this.innerModel().tokenType();
- }
-
public Long expiryTimeUtc() {
return this.innerModel().expiryTimeUtc();
}
@@ -34,6 +30,10 @@ public Long refreshAfterTimeUtc() {
return this.innerModel().refreshAfterTimeUtc();
}
+ public String tokenType() {
+ return this.innerModel().tokenType();
+ }
+
public EndpointAuthTokenInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EndpointPropertiesBaseImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EndpointPropertiesBaseImpl.java
index a9770051f489b..6ed2d488ad9ac 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EndpointPropertiesBaseImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EndpointPropertiesBaseImpl.java
@@ -23,10 +23,23 @@ public final class EndpointPropertiesBaseImpl implements EndpointPropertiesBase
this.serviceManager = serviceManager;
}
+ public EndpointAuthMode authMode() {
+ return this.innerModel().authMode();
+ }
+
public String description() {
return this.innerModel().description();
}
+ public EndpointAuthKeys keys() {
+ EndpointAuthKeysInner inner = this.innerModel().keys();
+ if (inner != null) {
+ return new EndpointAuthKeysImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
public Map properties() {
Map inner = this.innerModel().properties();
if (inner != null) {
@@ -44,19 +57,6 @@ public String swaggerUri() {
return this.innerModel().swaggerUri();
}
- public EndpointAuthMode authMode() {
- return this.innerModel().authMode();
- }
-
- public EndpointAuthKeys keys() {
- EndpointAuthKeysInner inner = this.innerModel().keys();
- if (inner != null) {
- return new EndpointAuthKeysImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public EndpointPropertiesBaseInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainerImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainerImpl.java
index e41b0dc669e80..19b2d2a571f73 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainerImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainerImpl.java
@@ -50,29 +50,27 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String resourceGroupName;
- private String workspaceName;
+ private String registryName;
- private String name;
+ private String environmentName;
- public EnvironmentContainerImpl withExistingWorkspace(String resourceGroupName, String workspaceName) {
+ public EnvironmentContainerImpl withExistingRegistry(String resourceGroupName, String registryName) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
+ this.registryName = registryName;
return this;
}
public EnvironmentContainer create() {
this.innerObject = serviceManager.serviceClient()
- .getEnvironmentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryEnvironmentContainers()
+ .createOrUpdate(resourceGroupName, registryName, environmentName, this.innerModel(), Context.NONE);
return this;
}
public EnvironmentContainer create(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getEnvironmentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryEnvironmentContainers()
+ .createOrUpdate(resourceGroupName, registryName, environmentName, this.innerModel(), context);
return this;
}
@@ -80,7 +78,7 @@ public EnvironmentContainer create(Context context) {
com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
this.innerObject = new EnvironmentContainerInner();
this.serviceManager = serviceManager;
- this.name = name;
+ this.environmentName = name;
}
public EnvironmentContainerImpl update() {
@@ -89,17 +87,15 @@ public EnvironmentContainerImpl update() {
public EnvironmentContainer apply() {
this.innerObject = serviceManager.serviceClient()
- .getEnvironmentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryEnvironmentContainers()
+ .createOrUpdate(resourceGroupName, registryName, environmentName, this.innerModel(), Context.NONE);
return this;
}
public EnvironmentContainer apply(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getEnvironmentContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryEnvironmentContainers()
+ .createOrUpdate(resourceGroupName, registryName, environmentName, this.innerModel(), context);
return this;
}
@@ -108,22 +104,22 @@ public EnvironmentContainer apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces");
- this.name = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "environments");
+ this.registryName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "registries");
+ this.environmentName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "environments");
}
public EnvironmentContainer refresh() {
this.innerObject = serviceManager.serviceClient()
- .getEnvironmentContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, Context.NONE)
+ .getRegistryEnvironmentContainers()
+ .getWithResponse(resourceGroupName, registryName, environmentName, Context.NONE)
.getValue();
return this;
}
public EnvironmentContainer refresh(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getEnvironmentContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, context)
+ .getRegistryEnvironmentContainers()
+ .getWithResponse(resourceGroupName, registryName, environmentName, context)
.getValue();
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainersClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainersClientImpl.java
index d2590aaddd141..9a25903d62270 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainersClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainersClientImpl.java
@@ -46,21 +46,21 @@ public final class EnvironmentContainersClientImpl implements EnvironmentContain
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of EnvironmentContainersClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- EnvironmentContainersClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ EnvironmentContainersClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(EnvironmentContainersService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesEnvironmentContainers to be used by the
+ * The interface defining all the services for AzureMachineLearningServicesEnvironmentContainers to be used by the
* proxy service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainersImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainersImpl.java
index 688d360e5bed9..2fc436a988624 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainersImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentContainersImpl.java
@@ -70,80 +70,27 @@ public EnvironmentContainer get(String resourceGroupName, String workspaceName,
}
}
- public EnvironmentContainer getById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "environments");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "environments");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "environments");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", id)));
+ public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName,
+ String name, EnvironmentContainerInner body, Context context) {
+ Response inner
+ = this.serviceClient().createOrUpdateWithResponse(resourceGroupName, workspaceName, name, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new EnvironmentContainerImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
}
- this.deleteWithResponse(resourceGroupName, workspaceName, name, Context.NONE);
}
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "environments");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", id)));
+ public EnvironmentContainer createOrUpdate(String resourceGroupName, String workspaceName, String name,
+ EnvironmentContainerInner body) {
+ EnvironmentContainerInner inner
+ = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, body);
+ if (inner != null) {
+ return new EnvironmentContainerImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, context);
}
private EnvironmentContainersClient serviceClient() {
@@ -153,8 +100,4 @@ private EnvironmentContainersClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public EnvironmentContainerImpl define(String name) {
- return new EnvironmentContainerImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionImpl.java
index 4741ee27fdcb0..b289025c96c28 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionImpl.java
@@ -7,7 +7,6 @@
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.machinelearning.fluent.models.EnvironmentVersionInner;
-import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
import com.azure.resourcemanager.machinelearning.models.EnvironmentVersion;
import com.azure.resourcemanager.machinelearning.models.EnvironmentVersionProperties;
@@ -51,33 +50,31 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String resourceGroupName;
- private String workspaceName;
+ private String registryName;
- private String name;
+ private String environmentName;
private String version;
- public EnvironmentVersionImpl withExistingEnvironment(String resourceGroupName, String workspaceName, String name) {
+ public EnvironmentVersionImpl withExistingEnvironment(String resourceGroupName, String registryName,
+ String environmentName) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
- this.name = name;
+ this.registryName = registryName;
+ this.environmentName = environmentName;
return this;
}
public EnvironmentVersion create() {
this.innerObject = serviceManager.serviceClient()
- .getEnvironmentVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(),
- Context.NONE)
- .getValue();
+ .getRegistryEnvironmentVersions()
+ .createOrUpdate(resourceGroupName, registryName, environmentName, version, this.innerModel(), Context.NONE);
return this;
}
public EnvironmentVersion create(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getEnvironmentVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(), context)
- .getValue();
+ .getRegistryEnvironmentVersions()
+ .createOrUpdate(resourceGroupName, registryName, environmentName, version, this.innerModel(), context);
return this;
}
@@ -94,18 +91,15 @@ public EnvironmentVersionImpl update() {
public EnvironmentVersion apply() {
this.innerObject = serviceManager.serviceClient()
- .getEnvironmentVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(),
- Context.NONE)
- .getValue();
+ .getRegistryEnvironmentVersions()
+ .createOrUpdate(resourceGroupName, registryName, environmentName, version, this.innerModel(), Context.NONE);
return this;
}
public EnvironmentVersion apply(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getEnvironmentVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(), context)
- .getValue();
+ .getRegistryEnvironmentVersions()
+ .createOrUpdate(resourceGroupName, registryName, environmentName, version, this.innerModel(), context);
return this;
}
@@ -114,35 +108,27 @@ public EnvironmentVersion apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces");
- this.name = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "environments");
+ this.registryName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "registries");
+ this.environmentName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "environments");
this.version = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "versions");
}
public EnvironmentVersion refresh() {
this.innerObject = serviceManager.serviceClient()
- .getEnvironmentVersions()
- .getWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE)
+ .getRegistryEnvironmentVersions()
+ .getWithResponse(resourceGroupName, registryName, environmentName, version, Context.NONE)
.getValue();
return this;
}
public EnvironmentVersion refresh(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getEnvironmentVersions()
- .getWithResponse(resourceGroupName, workspaceName, name, version, context)
+ .getRegistryEnvironmentVersions()
+ .getWithResponse(resourceGroupName, registryName, environmentName, version, context)
.getValue();
return this;
}
- public void publish(DestinationAsset body) {
- serviceManager.environmentVersions().publish(resourceGroupName, workspaceName, name, version, body);
- }
-
- public void publish(DestinationAsset body, Context context) {
- serviceManager.environmentVersions().publish(resourceGroupName, workspaceName, name, version, body, context);
- }
-
public EnvironmentVersionImpl withProperties(EnvironmentVersionProperties properties) {
this.innerModel().withProperties(properties);
return this;
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionsClientImpl.java
index 0a9014a771cab..0244634a05fdb 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionsClientImpl.java
@@ -53,21 +53,21 @@ public final class EnvironmentVersionsClientImpl implements EnvironmentVersionsC
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of EnvironmentVersionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- EnvironmentVersionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ EnvironmentVersionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(EnvironmentVersionsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesEnvironmentVersions to be used by the
+ * The interface defining all the services for AzureMachineLearningServicesEnvironmentVersions to be used by the
* proxy service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionsImpl.java
index 67ec016573b26..0d34616954173 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/EnvironmentVersionsImpl.java
@@ -72,110 +72,37 @@ public EnvironmentVersion get(String resourceGroupName, String workspaceName, St
}
}
- public void publish(String resourceGroupName, String workspaceName, String name, String version,
- DestinationAsset body) {
- this.serviceClient().publish(resourceGroupName, workspaceName, name, version, body);
- }
-
- public void publish(String resourceGroupName, String workspaceName, String name, String version,
- DestinationAsset body, Context context) {
- this.serviceClient().publish(resourceGroupName, workspaceName, name, version, body, context);
- }
-
- public EnvironmentVersion getById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "environments");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName,
+ String name, String version, EnvironmentVersionInner body, Context context) {
+ Response inner = this.serviceClient()
+ .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new EnvironmentVersionImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
}
- return this.getWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE).getValue();
}
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "environments");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ public EnvironmentVersion createOrUpdate(String resourceGroupName, String workspaceName, String name,
+ String version, EnvironmentVersionInner body) {
+ EnvironmentVersionInner inner
+ = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, version, body);
+ if (inner != null) {
+ return new EnvironmentVersionImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.getWithResponse(resourceGroupName, workspaceName, name, version, context);
}
- public void deleteById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "environments");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
- }
- this.deleteWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE);
+ public void publish(String resourceGroupName, String workspaceName, String name, String version,
+ DestinationAsset body) {
+ this.serviceClient().publish(resourceGroupName, workspaceName, name, version, body);
}
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "environments");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
- }
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, version, context);
+ public void publish(String resourceGroupName, String workspaceName, String name, String version,
+ DestinationAsset body, Context context) {
+ this.serviceClient().publish(resourceGroupName, workspaceName, name, version, body, context);
}
private EnvironmentVersionsClient serviceClient() {
@@ -185,8 +112,4 @@ private EnvironmentVersionsClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public EnvironmentVersionImpl define(String name) {
- return new EnvironmentVersionImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturesClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturesClientImpl.java
index ffb1aec315dba..7dd17ea48d6a9 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturesClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturesClientImpl.java
@@ -43,21 +43,21 @@ public final class FeaturesClientImpl implements FeaturesClient {
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of FeaturesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- FeaturesClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ FeaturesClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(FeaturesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesFeatures to be used by the proxy
- * service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesFeatures to be used by the proxy service
+ * to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturesetContainersClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturesetContainersClientImpl.java
index 7f5883a132fca..9f6620fde471d 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturesetContainersClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturesetContainersClientImpl.java
@@ -51,21 +51,21 @@ public final class FeaturesetContainersClientImpl implements FeaturesetContainer
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of FeaturesetContainersClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- FeaturesetContainersClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ FeaturesetContainersClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(FeaturesetContainersService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesFeaturesetContainers to be used by the
+ * The interface defining all the services for AzureMachineLearningServicesFeaturesetContainers to be used by the
* proxy service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturesetVersionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturesetVersionsClientImpl.java
index a333bc84f26ae..2e96628cee728 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturesetVersionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturesetVersionsClientImpl.java
@@ -54,21 +54,21 @@ public final class FeaturesetVersionsClientImpl implements FeaturesetVersionsCli
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of FeaturesetVersionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- FeaturesetVersionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ FeaturesetVersionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(FeaturesetVersionsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesFeaturesetVersions to be used by the
+ * The interface defining all the services for AzureMachineLearningServicesFeaturesetVersions to be used by the
* proxy service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturestoreEntityContainersClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturestoreEntityContainersClientImpl.java
index 3be33e68d1784..58d9a432cf605 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturestoreEntityContainersClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturestoreEntityContainersClientImpl.java
@@ -51,21 +51,21 @@ public final class FeaturestoreEntityContainersClientImpl implements Featurestor
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of FeaturestoreEntityContainersClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- FeaturestoreEntityContainersClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ FeaturestoreEntityContainersClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(FeaturestoreEntityContainersService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesFeaturestoreEntityContainers to be used
+ * The interface defining all the services for AzureMachineLearningServicesFeaturestoreEntityContainers to be used
* by the proxy service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturestoreEntityVersionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturestoreEntityVersionsClientImpl.java
index 852d0513b6ca8..136872b04117f 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturestoreEntityVersionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/FeaturestoreEntityVersionsClientImpl.java
@@ -51,22 +51,22 @@ public final class FeaturestoreEntityVersionsClientImpl implements FeaturestoreE
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of FeaturestoreEntityVersionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- FeaturestoreEntityVersionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ FeaturestoreEntityVersionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(FeaturestoreEntityVersionsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesFeaturestoreEntityVersions to be used
- * by the proxy service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesFeaturestoreEntityVersions to be used by
+ * the proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/JobsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/JobsClientImpl.java
index 34892a85f2da4..6a8c2967eb27a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/JobsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/JobsClientImpl.java
@@ -52,20 +52,20 @@ public final class JobsClientImpl implements JobsClient {
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of JobsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- JobsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ JobsClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(JobsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesJobs to be used by the proxy service to
+ * The interface defining all the services for AzureMachineLearningServicesJobs to be used by the proxy service to
* perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkProvisionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkProvisionsClientImpl.java
index 96e272d5478b5..116a06278d5e7 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkProvisionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkProvisionsClientImpl.java
@@ -44,21 +44,21 @@ public final class ManagedNetworkProvisionsClientImpl implements ManagedNetworkP
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of ManagedNetworkProvisionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- ManagedNetworkProvisionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ ManagedNetworkProvisionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(ManagedNetworkProvisionsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesManagedNetworkProvisions to be used by
+ * The interface defining all the services for AzureMachineLearningServicesManagedNetworkProvisions to be used by
* the proxy service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkProvisionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkProvisionsImpl.java
index f4cf1d1ea9aa9..eb0d0a15e575e 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkProvisionsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkProvisionsImpl.java
@@ -9,8 +9,8 @@
import com.azure.resourcemanager.machinelearning.fluent.ManagedNetworkProvisionsClient;
import com.azure.resourcemanager.machinelearning.fluent.models.ManagedNetworkProvisionStatusInner;
import com.azure.resourcemanager.machinelearning.models.ManagedNetworkProvisionOptions;
-import com.azure.resourcemanager.machinelearning.models.ManagedNetworkProvisions;
import com.azure.resourcemanager.machinelearning.models.ManagedNetworkProvisionStatus;
+import com.azure.resourcemanager.machinelearning.models.ManagedNetworkProvisions;
public final class ManagedNetworkProvisionsImpl implements ManagedNetworkProvisions {
private static final ClientLogger LOGGER = new ClientLogger(ManagedNetworkProvisionsImpl.class);
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkSettingsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkSettingsImpl.java
index 5f961f3216330..861c91b223268 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkSettingsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkSettingsImpl.java
@@ -6,6 +6,7 @@
import com.azure.resourcemanager.machinelearning.fluent.models.ManagedNetworkProvisionStatusInner;
import com.azure.resourcemanager.machinelearning.fluent.models.ManagedNetworkSettingsInner;
+import com.azure.resourcemanager.machinelearning.models.FirewallSku;
import com.azure.resourcemanager.machinelearning.models.IsolationMode;
import com.azure.resourcemanager.machinelearning.models.ManagedNetworkProvisionStatus;
import com.azure.resourcemanager.machinelearning.models.ManagedNetworkSettings;
@@ -50,6 +51,10 @@ public ManagedNetworkProvisionStatus status() {
}
}
+ public FirewallSku firewallSku() {
+ return this.innerModel().firewallSku();
+ }
+
public ManagedNetworkSettingsInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkSettingsRulesClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkSettingsRulesClientImpl.java
index ea48a2334edb4..1e79c9d26ece4 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkSettingsRulesClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ManagedNetworkSettingsRulesClientImpl.java
@@ -50,22 +50,22 @@ public final class ManagedNetworkSettingsRulesClientImpl implements ManagedNetwo
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of ManagedNetworkSettingsRulesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- ManagedNetworkSettingsRulesClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ ManagedNetworkSettingsRulesClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(ManagedNetworkSettingsRulesService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesManagedNetworkSettingsRules to be used
- * by the proxy service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesManagedNetworkSettingsRules to be used by
+ * the proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/MarketplaceSubscriptionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/MarketplaceSubscriptionsClientImpl.java
index 926936abcdd44..1aa823de82c2c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/MarketplaceSubscriptionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/MarketplaceSubscriptionsClientImpl.java
@@ -50,21 +50,21 @@ public final class MarketplaceSubscriptionsClientImpl implements MarketplaceSubs
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of MarketplaceSubscriptionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- MarketplaceSubscriptionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ MarketplaceSubscriptionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(MarketplaceSubscriptionsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesMarketplaceSubscriptions to be used by
+ * The interface defining all the services for AzureMachineLearningServicesMarketplaceSubscriptions to be used by
* the proxy service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelContainerImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelContainerImpl.java
index de2c051030fd5..470818200770d 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelContainerImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelContainerImpl.java
@@ -49,36 +49,34 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String resourceGroupName;
- private String workspaceName;
+ private String registryName;
- private String name;
+ private String modelName;
- public ModelContainerImpl withExistingWorkspace(String resourceGroupName, String workspaceName) {
+ public ModelContainerImpl withExistingRegistry(String resourceGroupName, String registryName) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
+ this.registryName = registryName;
return this;
}
public ModelContainer create() {
this.innerObject = serviceManager.serviceClient()
- .getModelContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryModelContainers()
+ .createOrUpdate(resourceGroupName, registryName, modelName, this.innerModel(), Context.NONE);
return this;
}
public ModelContainer create(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getModelContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryModelContainers()
+ .createOrUpdate(resourceGroupName, registryName, modelName, this.innerModel(), context);
return this;
}
ModelContainerImpl(String name, com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
this.innerObject = new ModelContainerInner();
this.serviceManager = serviceManager;
- this.name = name;
+ this.modelName = name;
}
public ModelContainerImpl update() {
@@ -87,17 +85,15 @@ public ModelContainerImpl update() {
public ModelContainer apply() {
this.innerObject = serviceManager.serviceClient()
- .getModelContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), Context.NONE)
- .getValue();
+ .getRegistryModelContainers()
+ .createOrUpdate(resourceGroupName, registryName, modelName, this.innerModel(), Context.NONE);
return this;
}
public ModelContainer apply(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getModelContainers()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, this.innerModel(), context)
- .getValue();
+ .getRegistryModelContainers()
+ .createOrUpdate(resourceGroupName, registryName, modelName, this.innerModel(), context);
return this;
}
@@ -106,22 +102,22 @@ public ModelContainer apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces");
- this.name = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "models");
+ this.registryName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "registries");
+ this.modelName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "models");
}
public ModelContainer refresh() {
this.innerObject = serviceManager.serviceClient()
- .getModelContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, Context.NONE)
+ .getRegistryModelContainers()
+ .getWithResponse(resourceGroupName, registryName, modelName, Context.NONE)
.getValue();
return this;
}
public ModelContainer refresh(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getModelContainers()
- .getWithResponse(resourceGroupName, workspaceName, name, context)
+ .getRegistryModelContainers()
+ .getWithResponse(resourceGroupName, registryName, modelName, context)
.getValue();
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelContainersClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelContainersClientImpl.java
index 493e45b642641..2b2b2453c96eb 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelContainersClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelContainersClientImpl.java
@@ -46,21 +46,21 @@ public final class ModelContainersClientImpl implements ModelContainersClient {
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of ModelContainersClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- ModelContainersClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ ModelContainersClientImpl(AzureMachineLearningServicesImpl client) {
this.service
= RestProxy.create(ModelContainersService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesModelContainers to be used by the proxy
+ * The interface defining all the services for AzureMachineLearningServicesModelContainers to be used by the proxy
* service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelContainersImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelContainersImpl.java
index 20efa5792028a..d306fddea8716 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelContainersImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelContainersImpl.java
@@ -70,80 +70,26 @@ public ModelContainer get(String resourceGroupName, String workspaceName, String
}
}
- public ModelContainer getById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "models");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'models'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, Context.NONE).getValue();
- }
-
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "models");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'models'.", id)));
- }
- return this.getWithResponse(resourceGroupName, workspaceName, name, context);
- }
-
- public void deleteById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "models");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'models'.", id)));
+ public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName,
+ String name, ModelContainerInner body, Context context) {
+ Response inner
+ = this.serviceClient().createOrUpdateWithResponse(resourceGroupName, workspaceName, name, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ModelContainerImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
}
- this.deleteWithResponse(resourceGroupName, workspaceName, name, Context.NONE);
}
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "models");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'models'.", id)));
+ public ModelContainer createOrUpdate(String resourceGroupName, String workspaceName, String name,
+ ModelContainerInner body) {
+ ModelContainerInner inner = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, body);
+ if (inner != null) {
+ return new ModelContainerImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, context);
}
private ModelContainersClient serviceClient() {
@@ -153,8 +99,4 @@ private ModelContainersClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public ModelContainerImpl define(String name) {
- return new ModelContainerImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelVersionImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelVersionImpl.java
index f3f0d5289c5ca..3af95506f6504 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelVersionImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelVersionImpl.java
@@ -4,12 +4,14 @@
package com.azure.resourcemanager.machinelearning.implementation;
+import com.azure.core.http.rest.Response;
import com.azure.core.management.SystemData;
import com.azure.core.util.Context;
import com.azure.resourcemanager.machinelearning.fluent.models.ModelVersionInner;
-import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
import com.azure.resourcemanager.machinelearning.models.ModelVersion;
import com.azure.resourcemanager.machinelearning.models.ModelVersionProperties;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadRequestDto;
+import com.azure.resourcemanager.machinelearning.models.PendingUploadResponseDto;
public final class ModelVersionImpl implements ModelVersion, ModelVersion.Definition, ModelVersion.Update {
private ModelVersionInner innerObject;
@@ -50,33 +52,30 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String resourceGroupName;
- private String workspaceName;
+ private String registryName;
- private String name;
+ private String modelName;
private String version;
- public ModelVersionImpl withExistingModel(String resourceGroupName, String workspaceName, String name) {
+ public ModelVersionImpl withExistingModel(String resourceGroupName, String registryName, String modelName) {
this.resourceGroupName = resourceGroupName;
- this.workspaceName = workspaceName;
- this.name = name;
+ this.registryName = registryName;
+ this.modelName = modelName;
return this;
}
public ModelVersion create() {
this.innerObject = serviceManager.serviceClient()
- .getModelVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(),
- Context.NONE)
- .getValue();
+ .getRegistryModelVersions()
+ .createOrUpdate(resourceGroupName, registryName, modelName, version, this.innerModel(), Context.NONE);
return this;
}
public ModelVersion create(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getModelVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(), context)
- .getValue();
+ .getRegistryModelVersions()
+ .createOrUpdate(resourceGroupName, registryName, modelName, version, this.innerModel(), context);
return this;
}
@@ -92,18 +91,15 @@ public ModelVersionImpl update() {
public ModelVersion apply() {
this.innerObject = serviceManager.serviceClient()
- .getModelVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(),
- Context.NONE)
- .getValue();
+ .getRegistryModelVersions()
+ .createOrUpdate(resourceGroupName, registryName, modelName, version, this.innerModel(), Context.NONE);
return this;
}
public ModelVersion apply(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getModelVersions()
- .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, this.innerModel(), context)
- .getValue();
+ .getRegistryModelVersions()
+ .createOrUpdate(resourceGroupName, registryName, modelName, version, this.innerModel(), context);
return this;
}
@@ -112,33 +108,37 @@ public ModelVersion apply(Context context) {
this.innerObject = innerObject;
this.serviceManager = serviceManager;
this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
- this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces");
- this.name = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "models");
+ this.registryName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "registries");
+ this.modelName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "models");
this.version = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "versions");
}
public ModelVersion refresh() {
this.innerObject = serviceManager.serviceClient()
- .getModelVersions()
- .getWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE)
+ .getRegistryModelVersions()
+ .getWithResponse(resourceGroupName, registryName, modelName, version, Context.NONE)
.getValue();
return this;
}
public ModelVersion refresh(Context context) {
this.innerObject = serviceManager.serviceClient()
- .getModelVersions()
- .getWithResponse(resourceGroupName, workspaceName, name, version, context)
+ .getRegistryModelVersions()
+ .getWithResponse(resourceGroupName, registryName, modelName, version, context)
.getValue();
return this;
}
- public void publish(DestinationAsset body) {
- serviceManager.modelVersions().publish(resourceGroupName, workspaceName, name, version, body);
+ public Response createOrGetStartPendingUploadWithResponse(PendingUploadRequestDto body,
+ Context context) {
+ return serviceManager.registryModelVersions()
+ .createOrGetStartPendingUploadWithResponse(resourceGroupName, registryName, modelName, version, body,
+ context);
}
- public void publish(DestinationAsset body, Context context) {
- serviceManager.modelVersions().publish(resourceGroupName, workspaceName, name, version, body, context);
+ public PendingUploadResponseDto createOrGetStartPendingUpload(PendingUploadRequestDto body) {
+ return serviceManager.registryModelVersions()
+ .createOrGetStartPendingUpload(resourceGroupName, registryName, modelName, version, body);
}
public ModelVersionImpl withProperties(ModelVersionProperties properties) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelVersionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelVersionsClientImpl.java
index 97bef5abd7d3d..552a03580e906 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelVersionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelVersionsClientImpl.java
@@ -53,21 +53,21 @@ public final class ModelVersionsClientImpl implements ModelVersionsClient {
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of ModelVersionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- ModelVersionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ ModelVersionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service
= RestProxy.create(ModelVersionsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesModelVersions to be used by the proxy
+ * The interface defining all the services for AzureMachineLearningServicesModelVersions to be used by the proxy
* service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelVersionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelVersionsImpl.java
index f1fe269b59963..7858ec43de304 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelVersionsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ModelVersionsImpl.java
@@ -73,110 +73,37 @@ public ModelVersion get(String resourceGroupName, String workspaceName, String n
}
}
- public void publish(String resourceGroupName, String workspaceName, String name, String version,
- DestinationAsset body) {
- this.serviceClient().publish(resourceGroupName, workspaceName, name, version, body);
- }
-
- public void publish(String resourceGroupName, String workspaceName, String name, String version,
- DestinationAsset body, Context context) {
- this.serviceClient().publish(resourceGroupName, workspaceName, name, version, body, context);
- }
-
- public ModelVersion getById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "models");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'models'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ public Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName,
+ String name, String version, ModelVersionInner body, Context context) {
+ Response inner = this.serviceClient()
+ .createOrUpdateWithResponse(resourceGroupName, workspaceName, name, version, body, context);
+ if (inner != null) {
+ return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(),
+ new ModelVersionImpl(inner.getValue(), this.manager()));
+ } else {
+ return null;
}
- return this.getWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE).getValue();
}
- public Response getByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "models");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'models'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ public ModelVersion createOrUpdate(String resourceGroupName, String workspaceName, String name, String version,
+ ModelVersionInner body) {
+ ModelVersionInner inner
+ = this.serviceClient().createOrUpdate(resourceGroupName, workspaceName, name, version, body);
+ if (inner != null) {
+ return new ModelVersionImpl(inner, this.manager());
+ } else {
+ return null;
}
- return this.getWithResponse(resourceGroupName, workspaceName, name, version, context);
}
- public void deleteById(String id) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "models");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'models'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
- }
- this.deleteWithResponse(resourceGroupName, workspaceName, name, version, Context.NONE);
+ public void publish(String resourceGroupName, String workspaceName, String name, String version,
+ DestinationAsset body) {
+ this.serviceClient().publish(resourceGroupName, workspaceName, name, version, body);
}
- public Response deleteByIdWithResponse(String id, Context context) {
- String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
- if (resourceGroupName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
- }
- String workspaceName = ResourceManagerUtils.getValueFromIdByName(id, "workspaces");
- if (workspaceName == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'workspaces'.", id)));
- }
- String name = ResourceManagerUtils.getValueFromIdByName(id, "models");
- if (name == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'models'.", id)));
- }
- String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
- if (version == null) {
- throw LOGGER.logExceptionAsError(new IllegalArgumentException(
- String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
- }
- return this.deleteWithResponse(resourceGroupName, workspaceName, name, version, context);
+ public void publish(String resourceGroupName, String workspaceName, String name, String version,
+ DestinationAsset body, Context context) {
+ this.serviceClient().publish(resourceGroupName, workspaceName, name, version, body, context);
}
private ModelVersionsClient serviceClient() {
@@ -186,8 +113,4 @@ private ModelVersionsClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
-
- public ModelVersionImpl define(String name) {
- return new ModelVersionImpl(name, this.manager());
- }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineDeploymentImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineDeploymentImpl.java
index 1219e37c4d824..cac2d85bd3ab9 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineDeploymentImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineDeploymentImpl.java
@@ -51,16 +51,16 @@ public Map tags() {
}
}
- public OnlineDeploymentProperties properties() {
- return this.innerModel().properties();
+ public ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
}
public String kind() {
return this.innerModel().kind();
}
- public ManagedServiceIdentity identity() {
- return this.innerModel().identity();
+ public OnlineDeploymentProperties properties() {
+ return this.innerModel().properties();
}
public Sku sku() {
@@ -210,13 +210,13 @@ public OnlineDeploymentImpl withTags(Map tags) {
}
}
- public OnlineDeploymentImpl withKind(String kind) {
- this.innerModel().withKind(kind);
+ public OnlineDeploymentImpl withIdentity(ManagedServiceIdentity identity) {
+ this.innerModel().withIdentity(identity);
return this;
}
- public OnlineDeploymentImpl withIdentity(ManagedServiceIdentity identity) {
- this.innerModel().withIdentity(identity);
+ public OnlineDeploymentImpl withKind(String kind) {
+ this.innerModel().withKind(kind);
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineDeploymentsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineDeploymentsClientImpl.java
index 4e71103e1745f..231d456c8563c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineDeploymentsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineDeploymentsClientImpl.java
@@ -57,22 +57,22 @@ public final class OnlineDeploymentsClientImpl implements OnlineDeploymentsClien
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of OnlineDeploymentsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- OnlineDeploymentsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ OnlineDeploymentsClientImpl(AzureMachineLearningServicesImpl client) {
this.service
= RestProxy.create(OnlineDeploymentsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesOnlineDeployments to be used by the
- * proxy service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesOnlineDeployments to be used by the proxy
+ * service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineEndpointImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineEndpointImpl.java
index 26821fa97776b..deca2eaaba4b2 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineEndpointImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineEndpointImpl.java
@@ -51,16 +51,16 @@ public Map tags() {
}
}
- public OnlineEndpointProperties properties() {
- return this.innerModel().properties();
+ public ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
}
public String kind() {
return this.innerModel().kind();
}
- public ManagedServiceIdentity identity() {
- return this.innerModel().identity();
+ public OnlineEndpointProperties properties() {
+ return this.innerModel().properties();
}
public Sku sku() {
@@ -220,13 +220,13 @@ public OnlineEndpointImpl withTags(Map tags) {
}
}
- public OnlineEndpointImpl withKind(String kind) {
- this.innerModel().withKind(kind);
+ public OnlineEndpointImpl withIdentity(ManagedServiceIdentity identity) {
+ this.innerModel().withIdentity(identity);
return this;
}
- public OnlineEndpointImpl withIdentity(ManagedServiceIdentity identity) {
- this.innerModel().withIdentity(identity);
+ public OnlineEndpointImpl withKind(String kind) {
+ this.innerModel().withKind(kind);
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineEndpointsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineEndpointsClientImpl.java
index bba062523c754..0eb3765d5e9e1 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineEndpointsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OnlineEndpointsClientImpl.java
@@ -58,21 +58,21 @@ public final class OnlineEndpointsClientImpl implements OnlineEndpointsClient {
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of OnlineEndpointsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- OnlineEndpointsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ OnlineEndpointsClientImpl(AzureMachineLearningServicesImpl client) {
this.service
= RestProxy.create(OnlineEndpointsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesOnlineEndpoints to be used by the proxy
+ * The interface defining all the services for AzureMachineLearningServicesOnlineEndpoints to be used by the proxy
* service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OperationsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OperationsClientImpl.java
index eb1dd2ff4dac7..52d69a6933a90 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OperationsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/OperationsClientImpl.java
@@ -41,21 +41,21 @@ public final class OperationsClientImpl implements OperationsClient {
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of OperationsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- OperationsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ OperationsClientImpl(AzureMachineLearningServicesImpl client) {
this.service
= RestProxy.create(OperationsService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesOperations to be used by the proxy
+ * The interface defining all the services for AzureMachineLearningServicesOperations to be used by the proxy
* service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/PrivateEndpointConnectionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/PrivateEndpointConnectionsClientImpl.java
index d98f87dac6c36..8795f1b3db3d5 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/PrivateEndpointConnectionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/PrivateEndpointConnectionsClientImpl.java
@@ -45,22 +45,22 @@ public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpoi
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of PrivateEndpointConnectionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- PrivateEndpointConnectionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ PrivateEndpointConnectionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(PrivateEndpointConnectionsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesPrivateEndpointConnections to be used
- * by the proxy service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesPrivateEndpointConnections to be used by
+ * the proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/PrivateLinkResourcesClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/PrivateLinkResourcesClientImpl.java
index 50a78d55c3156..199d0432bb925 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/PrivateLinkResourcesClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/PrivateLinkResourcesClientImpl.java
@@ -37,21 +37,21 @@ public final class PrivateLinkResourcesClientImpl implements PrivateLinkResource
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of PrivateLinkResourcesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- PrivateLinkResourcesClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ PrivateLinkResourcesClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(PrivateLinkResourcesService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesPrivateLinkResources to be used by the
+ * The interface defining all the services for AzureMachineLearningServicesPrivateLinkResources to be used by the
* proxy service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/QuotasClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/QuotasClientImpl.java
index 132066459cfba..e268fba325383 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/QuotasClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/QuotasClientImpl.java
@@ -46,21 +46,21 @@ public final class QuotasClientImpl implements QuotasClient {
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of QuotasClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- QuotasClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ QuotasClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(QuotasService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesQuotas to be used by the proxy service
- * to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesQuotas to be used by the proxy service to
+ * perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/QuotasImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/QuotasImpl.java
index e3278e22e6ec0..c9cde5b0fe6a7 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/QuotasImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/QuotasImpl.java
@@ -12,8 +12,8 @@
import com.azure.resourcemanager.machinelearning.fluent.QuotasClient;
import com.azure.resourcemanager.machinelearning.fluent.models.ResourceQuotaInner;
import com.azure.resourcemanager.machinelearning.fluent.models.UpdateWorkspaceQuotasResultInner;
-import com.azure.resourcemanager.machinelearning.models.Quotas;
import com.azure.resourcemanager.machinelearning.models.QuotaUpdateParameters;
+import com.azure.resourcemanager.machinelearning.models.Quotas;
import com.azure.resourcemanager.machinelearning.models.ResourceQuota;
import com.azure.resourcemanager.machinelearning.models.UpdateWorkspaceQuotasResult;
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistriesClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistriesClientImpl.java
index 23ed453ef80c5..774c277c54b86 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistriesClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistriesClientImpl.java
@@ -53,21 +53,21 @@ public final class RegistriesClientImpl implements RegistriesClient {
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of RegistriesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- RegistriesClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ RegistriesClientImpl(AzureMachineLearningServicesImpl client) {
this.service
= RestProxy.create(RegistriesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesRegistries to be used by the proxy
+ * The interface defining all the services for AzureMachineLearningServicesRegistries to be used by the proxy
* service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryCodeContainersClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryCodeContainersClientImpl.java
index 62193d2db1b91..ce32fdfa3b790 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryCodeContainersClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryCodeContainersClientImpl.java
@@ -50,22 +50,22 @@ public final class RegistryCodeContainersClientImpl implements RegistryCodeConta
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of RegistryCodeContainersClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- RegistryCodeContainersClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ RegistryCodeContainersClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(RegistryCodeContainersService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesRegistryCodeContainers to be used by
- * the proxy service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesRegistryCodeContainers to be used by the
+ * proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryCodeContainersImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryCodeContainersImpl.java
index 5565748a4d273..a491e6685ad85 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryCodeContainersImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryCodeContainersImpl.java
@@ -68,25 +68,80 @@ public CodeContainer get(String resourceGroupName, String registryName, String c
}
}
- public CodeContainer createOrUpdate(String resourceGroupName, String registryName, String codeName,
- CodeContainerInner body) {
- CodeContainerInner inner = this.serviceClient().createOrUpdate(resourceGroupName, registryName, codeName, body);
- if (inner != null) {
- return new CodeContainerImpl(inner, this.manager());
- } else {
- return null;
+ public CodeContainer getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String codeName = ResourceManagerUtils.getValueFromIdByName(id, "codes");
+ if (codeName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
}
+ return this.getWithResponse(resourceGroupName, registryName, codeName, Context.NONE).getValue();
}
- public CodeContainer createOrUpdate(String resourceGroupName, String registryName, String codeName,
- CodeContainerInner body, Context context) {
- CodeContainerInner inner
- = this.serviceClient().createOrUpdate(resourceGroupName, registryName, codeName, body, context);
- if (inner != null) {
- return new CodeContainerImpl(inner, this.manager());
- } else {
- return null;
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String codeName = ResourceManagerUtils.getValueFromIdByName(id, "codes");
+ if (codeName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
}
+ return this.getWithResponse(resourceGroupName, registryName, codeName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String codeName = ResourceManagerUtils.getValueFromIdByName(id, "codes");
+ if (codeName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, codeName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String codeName = ResourceManagerUtils.getValueFromIdByName(id, "codes");
+ if (codeName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, codeName, context);
}
private RegistryCodeContainersClient serviceClient() {
@@ -96,4 +151,8 @@ private RegistryCodeContainersClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
+
+ public CodeContainerImpl define(String name) {
+ return new CodeContainerImpl(name, this.manager());
+ }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryCodeVersionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryCodeVersionsClientImpl.java
index 3ba587a442f6a..ff90e1c7c986c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryCodeVersionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryCodeVersionsClientImpl.java
@@ -53,21 +53,21 @@ public final class RegistryCodeVersionsClientImpl implements RegistryCodeVersion
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of RegistryCodeVersionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- RegistryCodeVersionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ RegistryCodeVersionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(RegistryCodeVersionsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesRegistryCodeVersions to be used by the
+ * The interface defining all the services for AzureMachineLearningServicesRegistryCodeVersions to be used by the
* proxy service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryCodeVersionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryCodeVersionsImpl.java
index 6925af5a4d76e..87d9cff7eab0a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryCodeVersionsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryCodeVersionsImpl.java
@@ -72,28 +72,6 @@ public CodeVersion get(String resourceGroupName, String registryName, String cod
}
}
- public CodeVersion createOrUpdate(String resourceGroupName, String registryName, String codeName, String version,
- CodeVersionInner body) {
- CodeVersionInner inner
- = this.serviceClient().createOrUpdate(resourceGroupName, registryName, codeName, version, body);
- if (inner != null) {
- return new CodeVersionImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public CodeVersion createOrUpdate(String resourceGroupName, String registryName, String codeName, String version,
- CodeVersionInner body, Context context) {
- CodeVersionInner inner
- = this.serviceClient().createOrUpdate(resourceGroupName, registryName, codeName, version, body, context);
- if (inner != null) {
- return new CodeVersionImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response createOrGetStartPendingUploadWithResponse(String resourceGroupName,
String registryName, String codeName, String version, PendingUploadRequestDto body, Context context) {
Response inner = this.serviceClient()
@@ -118,6 +96,102 @@ public PendingUploadResponseDto createOrGetStartPendingUpload(String resourceGro
}
}
+ public CodeVersion getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String codeName = ResourceManagerUtils.getValueFromIdByName(id, "codes");
+ if (codeName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, registryName, codeName, version, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String codeName = ResourceManagerUtils.getValueFromIdByName(id, "codes");
+ if (codeName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, registryName, codeName, version, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String codeName = ResourceManagerUtils.getValueFromIdByName(id, "codes");
+ if (codeName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, codeName, version, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String codeName = ResourceManagerUtils.getValueFromIdByName(id, "codes");
+ if (codeName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'codes'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, codeName, version, context);
+ }
+
private RegistryCodeVersionsClient serviceClient() {
return this.innerClient;
}
@@ -125,4 +199,8 @@ private RegistryCodeVersionsClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
+
+ public CodeVersionImpl define(String name) {
+ return new CodeVersionImpl(name, this.manager());
+ }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryComponentContainersClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryComponentContainersClientImpl.java
index 43747c8f69f1a..314b113cd907e 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryComponentContainersClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryComponentContainersClientImpl.java
@@ -50,22 +50,22 @@ public final class RegistryComponentContainersClientImpl implements RegistryComp
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of RegistryComponentContainersClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- RegistryComponentContainersClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ RegistryComponentContainersClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(RegistryComponentContainersService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesRegistryComponentContainers to be used
- * by the proxy service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesRegistryComponentContainers to be used by
+ * the proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryComponentContainersImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryComponentContainersImpl.java
index 97d906d0d38fc..5e2a79a306618 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryComponentContainersImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryComponentContainersImpl.java
@@ -68,26 +68,80 @@ public ComponentContainer get(String resourceGroupName, String registryName, Str
}
}
- public ComponentContainer createOrUpdate(String resourceGroupName, String registryName, String componentName,
- ComponentContainerInner body) {
- ComponentContainerInner inner
- = this.serviceClient().createOrUpdate(resourceGroupName, registryName, componentName, body);
- if (inner != null) {
- return new ComponentContainerImpl(inner, this.manager());
- } else {
- return null;
+ public ComponentContainer getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String componentName = ResourceManagerUtils.getValueFromIdByName(id, "components");
+ if (componentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
}
+ return this.getWithResponse(resourceGroupName, registryName, componentName, Context.NONE).getValue();
}
- public ComponentContainer createOrUpdate(String resourceGroupName, String registryName, String componentName,
- ComponentContainerInner body, Context context) {
- ComponentContainerInner inner
- = this.serviceClient().createOrUpdate(resourceGroupName, registryName, componentName, body, context);
- if (inner != null) {
- return new ComponentContainerImpl(inner, this.manager());
- } else {
- return null;
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String componentName = ResourceManagerUtils.getValueFromIdByName(id, "components");
+ if (componentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
}
+ return this.getWithResponse(resourceGroupName, registryName, componentName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String componentName = ResourceManagerUtils.getValueFromIdByName(id, "components");
+ if (componentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, componentName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String componentName = ResourceManagerUtils.getValueFromIdByName(id, "components");
+ if (componentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, componentName, context);
}
private RegistryComponentContainersClient serviceClient() {
@@ -97,4 +151,8 @@ private RegistryComponentContainersClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
+
+ public ComponentContainerImpl define(String name) {
+ return new ComponentContainerImpl(name, this.manager());
+ }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryComponentVersionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryComponentVersionsClientImpl.java
index b219aac9ce00f..43da2cee78934 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryComponentVersionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryComponentVersionsClientImpl.java
@@ -50,21 +50,21 @@ public final class RegistryComponentVersionsClientImpl implements RegistryCompon
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of RegistryComponentVersionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- RegistryComponentVersionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ RegistryComponentVersionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(RegistryComponentVersionsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesRegistryComponentVersions to be used by
+ * The interface defining all the services for AzureMachineLearningServicesRegistryComponentVersions to be used by
* the proxy service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryComponentVersionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryComponentVersionsImpl.java
index 92c93b6a0c3c3..9bebeec5e2824 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryComponentVersionsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryComponentVersionsImpl.java
@@ -70,26 +70,100 @@ public ComponentVersion get(String resourceGroupName, String registryName, Strin
}
}
- public ComponentVersion createOrUpdate(String resourceGroupName, String registryName, String componentName,
- String version, ComponentVersionInner body) {
- ComponentVersionInner inner
- = this.serviceClient().createOrUpdate(resourceGroupName, registryName, componentName, version, body);
- if (inner != null) {
- return new ComponentVersionImpl(inner, this.manager());
- } else {
- return null;
+ public ComponentVersion getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String componentName = ResourceManagerUtils.getValueFromIdByName(id, "components");
+ if (componentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
}
+ return this.getWithResponse(resourceGroupName, registryName, componentName, version, Context.NONE).getValue();
}
- public ComponentVersion createOrUpdate(String resourceGroupName, String registryName, String componentName,
- String version, ComponentVersionInner body, Context context) {
- ComponentVersionInner inner = this.serviceClient()
- .createOrUpdate(resourceGroupName, registryName, componentName, version, body, context);
- if (inner != null) {
- return new ComponentVersionImpl(inner, this.manager());
- } else {
- return null;
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String componentName = ResourceManagerUtils.getValueFromIdByName(id, "components");
+ if (componentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
}
+ return this.getWithResponse(resourceGroupName, registryName, componentName, version, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String componentName = ResourceManagerUtils.getValueFromIdByName(id, "components");
+ if (componentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, componentName, version, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String componentName = ResourceManagerUtils.getValueFromIdByName(id, "components");
+ if (componentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'components'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, componentName, version, context);
}
private RegistryComponentVersionsClient serviceClient() {
@@ -99,4 +173,8 @@ private RegistryComponentVersionsClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
+
+ public ComponentVersionImpl define(String name) {
+ return new ComponentVersionImpl(name, this.manager());
+ }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataContainersClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataContainersClientImpl.java
index ef927d7a9cfc0..b42e1fd42d6f3 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataContainersClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataContainersClientImpl.java
@@ -51,22 +51,22 @@ public final class RegistryDataContainersClientImpl implements RegistryDataConta
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of RegistryDataContainersClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- RegistryDataContainersClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ RegistryDataContainersClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(RegistryDataContainersService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesRegistryDataContainers to be used by
- * the proxy service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesRegistryDataContainers to be used by the
+ * proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataContainersImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataContainersImpl.java
index 303494a1fc977..df5bf929a8a45 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataContainersImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataContainersImpl.java
@@ -69,25 +69,80 @@ public DataContainer get(String resourceGroupName, String registryName, String n
}
}
- public DataContainer createOrUpdate(String resourceGroupName, String registryName, String name,
- DataContainerInner body) {
- DataContainerInner inner = this.serviceClient().createOrUpdate(resourceGroupName, registryName, name, body);
- if (inner != null) {
- return new DataContainerImpl(inner, this.manager());
- } else {
- return null;
+ public DataContainer getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "data");
+ if (name == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'data'.", id)));
}
+ return this.getWithResponse(resourceGroupName, registryName, name, Context.NONE).getValue();
}
- public DataContainer createOrUpdate(String resourceGroupName, String registryName, String name,
- DataContainerInner body, Context context) {
- DataContainerInner inner
- = this.serviceClient().createOrUpdate(resourceGroupName, registryName, name, body, context);
- if (inner != null) {
- return new DataContainerImpl(inner, this.manager());
- } else {
- return null;
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "data");
+ if (name == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'data'.", id)));
}
+ return this.getWithResponse(resourceGroupName, registryName, name, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "data");
+ if (name == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'data'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, name, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "data");
+ if (name == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'data'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, name, context);
}
private RegistryDataContainersClient serviceClient() {
@@ -97,4 +152,8 @@ private RegistryDataContainersClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
+
+ public DataContainerImpl define(String name) {
+ return new DataContainerImpl(name, this.manager());
+ }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataReferencesClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataReferencesClientImpl.java
index c07530dc17389..7d6f6d3093afb 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataReferencesClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataReferencesClientImpl.java
@@ -39,22 +39,22 @@ public final class RegistryDataReferencesClientImpl implements RegistryDataRefer
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of RegistryDataReferencesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- RegistryDataReferencesClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ RegistryDataReferencesClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(RegistryDataReferencesService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesRegistryDataReferences to be used by
- * the proxy service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesRegistryDataReferences to be used by the
+ * proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataVersionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataVersionsClientImpl.java
index 63b8b6219f677..d7712266906eb 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataVersionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataVersionsClientImpl.java
@@ -54,21 +54,21 @@ public final class RegistryDataVersionsClientImpl implements RegistryDataVersion
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of RegistryDataVersionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- RegistryDataVersionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ RegistryDataVersionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(RegistryDataVersionsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesRegistryDataVersions to be used by the
+ * The interface defining all the services for AzureMachineLearningServicesRegistryDataVersions to be used by the
* proxy service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataVersionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataVersionsImpl.java
index 905b5b9904ab3..39f04326b41a2 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataVersionsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryDataVersionsImpl.java
@@ -72,28 +72,6 @@ public DataVersionBase get(String resourceGroupName, String registryName, String
}
}
- public DataVersionBase createOrUpdate(String resourceGroupName, String registryName, String name, String version,
- DataVersionBaseInner body) {
- DataVersionBaseInner inner
- = this.serviceClient().createOrUpdate(resourceGroupName, registryName, name, version, body);
- if (inner != null) {
- return new DataVersionBaseImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public DataVersionBase createOrUpdate(String resourceGroupName, String registryName, String name, String version,
- DataVersionBaseInner body, Context context) {
- DataVersionBaseInner inner
- = this.serviceClient().createOrUpdate(resourceGroupName, registryName, name, version, body, context);
- if (inner != null) {
- return new DataVersionBaseImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response createOrGetStartPendingUploadWithResponse(String resourceGroupName,
String registryName, String name, String version, PendingUploadRequestDto body, Context context) {
Response inner = this.serviceClient()
@@ -117,6 +95,102 @@ public PendingUploadResponseDto createOrGetStartPendingUpload(String resourceGro
}
}
+ public DataVersionBase getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "data");
+ if (name == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'data'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, registryName, name, version, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "data");
+ if (name == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'data'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, registryName, name, version, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "data");
+ if (name == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'data'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, name, version, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String name = ResourceManagerUtils.getValueFromIdByName(id, "data");
+ if (name == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'data'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, name, version, context);
+ }
+
private RegistryDataVersionsClient serviceClient() {
return this.innerClient;
}
@@ -124,4 +198,8 @@ private RegistryDataVersionsClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
+
+ public DataVersionBaseImpl define(String name) {
+ return new DataVersionBaseImpl(name, this.manager());
+ }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryEnvironmentContainersClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryEnvironmentContainersClientImpl.java
index c6e8089e88159..2da0ebf6cb236 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryEnvironmentContainersClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryEnvironmentContainersClientImpl.java
@@ -51,22 +51,22 @@ public final class RegistryEnvironmentContainersClientImpl implements RegistryEn
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of RegistryEnvironmentContainersClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- RegistryEnvironmentContainersClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ RegistryEnvironmentContainersClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(RegistryEnvironmentContainersService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesRegistryEnvironmentContainers to be
- * used by the proxy service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesRegistryEnvironmentContainers to be used
+ * by the proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryEnvironmentContainersImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryEnvironmentContainersImpl.java
index 9541ffdac34e6..667556ba0a77a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryEnvironmentContainersImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryEnvironmentContainersImpl.java
@@ -69,26 +69,80 @@ public EnvironmentContainer get(String resourceGroupName, String registryName, S
}
}
- public EnvironmentContainer createOrUpdate(String resourceGroupName, String registryName, String environmentName,
- EnvironmentContainerInner body) {
- EnvironmentContainerInner inner
- = this.serviceClient().createOrUpdate(resourceGroupName, registryName, environmentName, body);
- if (inner != null) {
- return new EnvironmentContainerImpl(inner, this.manager());
- } else {
- return null;
+ public EnvironmentContainer getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String environmentName = ResourceManagerUtils.getValueFromIdByName(id, "environments");
+ if (environmentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", id)));
}
+ return this.getWithResponse(resourceGroupName, registryName, environmentName, Context.NONE).getValue();
}
- public EnvironmentContainer createOrUpdate(String resourceGroupName, String registryName, String environmentName,
- EnvironmentContainerInner body, Context context) {
- EnvironmentContainerInner inner
- = this.serviceClient().createOrUpdate(resourceGroupName, registryName, environmentName, body, context);
- if (inner != null) {
- return new EnvironmentContainerImpl(inner, this.manager());
- } else {
- return null;
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String environmentName = ResourceManagerUtils.getValueFromIdByName(id, "environments");
+ if (environmentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", id)));
}
+ return this.getWithResponse(resourceGroupName, registryName, environmentName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String environmentName = ResourceManagerUtils.getValueFromIdByName(id, "environments");
+ if (environmentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, environmentName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String environmentName = ResourceManagerUtils.getValueFromIdByName(id, "environments");
+ if (environmentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, environmentName, context);
}
private RegistryEnvironmentContainersClient serviceClient() {
@@ -98,4 +152,8 @@ private RegistryEnvironmentContainersClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
+
+ public EnvironmentContainerImpl define(String name) {
+ return new EnvironmentContainerImpl(name, this.manager());
+ }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryEnvironmentVersionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryEnvironmentVersionsClientImpl.java
index cd56235fb341f..ddb4b424a084a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryEnvironmentVersionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryEnvironmentVersionsClientImpl.java
@@ -51,22 +51,22 @@ public final class RegistryEnvironmentVersionsClientImpl implements RegistryEnvi
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of RegistryEnvironmentVersionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- RegistryEnvironmentVersionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ RegistryEnvironmentVersionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(RegistryEnvironmentVersionsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesRegistryEnvironmentVersions to be used
- * by the proxy service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesRegistryEnvironmentVersions to be used by
+ * the proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryEnvironmentVersionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryEnvironmentVersionsImpl.java
index 24dafb6a874e3..09cf49941ade6 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryEnvironmentVersionsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryEnvironmentVersionsImpl.java
@@ -74,26 +74,100 @@ public EnvironmentVersion get(String resourceGroupName, String registryName, Str
}
}
- public EnvironmentVersion createOrUpdate(String resourceGroupName, String registryName, String environmentName,
- String version, EnvironmentVersionInner body) {
- EnvironmentVersionInner inner
- = this.serviceClient().createOrUpdate(resourceGroupName, registryName, environmentName, version, body);
- if (inner != null) {
- return new EnvironmentVersionImpl(inner, this.manager());
- } else {
- return null;
+ public EnvironmentVersion getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String environmentName = ResourceManagerUtils.getValueFromIdByName(id, "environments");
+ if (environmentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
}
+ return this.getWithResponse(resourceGroupName, registryName, environmentName, version, Context.NONE).getValue();
}
- public EnvironmentVersion createOrUpdate(String resourceGroupName, String registryName, String environmentName,
- String version, EnvironmentVersionInner body, Context context) {
- EnvironmentVersionInner inner = this.serviceClient()
- .createOrUpdate(resourceGroupName, registryName, environmentName, version, body, context);
- if (inner != null) {
- return new EnvironmentVersionImpl(inner, this.manager());
- } else {
- return null;
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String environmentName = ResourceManagerUtils.getValueFromIdByName(id, "environments");
+ if (environmentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
}
+ return this.getWithResponse(resourceGroupName, registryName, environmentName, version, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String environmentName = ResourceManagerUtils.getValueFromIdByName(id, "environments");
+ if (environmentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, environmentName, version, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String environmentName = ResourceManagerUtils.getValueFromIdByName(id, "environments");
+ if (environmentName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'environments'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, environmentName, version, context);
}
private RegistryEnvironmentVersionsClient serviceClient() {
@@ -103,4 +177,8 @@ private RegistryEnvironmentVersionsClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
+
+ public EnvironmentVersionImpl define(String name) {
+ return new EnvironmentVersionImpl(name, this.manager());
+ }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryModelContainersClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryModelContainersClientImpl.java
index 6c8da0dd65a3a..f60cdfba220ff 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryModelContainersClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryModelContainersClientImpl.java
@@ -51,22 +51,22 @@ public final class RegistryModelContainersClientImpl implements RegistryModelCon
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of RegistryModelContainersClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- RegistryModelContainersClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ RegistryModelContainersClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(RegistryModelContainersService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesRegistryModelContainers to be used by
- * the proxy service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesRegistryModelContainers to be used by the
+ * proxy service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryModelContainersImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryModelContainersImpl.java
index 51e42539e42d6..075465e163fe8 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryModelContainersImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryModelContainersImpl.java
@@ -69,26 +69,80 @@ public ModelContainer get(String resourceGroupName, String registryName, String
}
}
- public ModelContainer createOrUpdate(String resourceGroupName, String registryName, String modelName,
- ModelContainerInner body) {
- ModelContainerInner inner
- = this.serviceClient().createOrUpdate(resourceGroupName, registryName, modelName, body);
- if (inner != null) {
- return new ModelContainerImpl(inner, this.manager());
- } else {
- return null;
+ public ModelContainer getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String modelName = ResourceManagerUtils.getValueFromIdByName(id, "models");
+ if (modelName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'models'.", id)));
}
+ return this.getWithResponse(resourceGroupName, registryName, modelName, Context.NONE).getValue();
}
- public ModelContainer createOrUpdate(String resourceGroupName, String registryName, String modelName,
- ModelContainerInner body, Context context) {
- ModelContainerInner inner
- = this.serviceClient().createOrUpdate(resourceGroupName, registryName, modelName, body, context);
- if (inner != null) {
- return new ModelContainerImpl(inner, this.manager());
- } else {
- return null;
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String modelName = ResourceManagerUtils.getValueFromIdByName(id, "models");
+ if (modelName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'models'.", id)));
}
+ return this.getWithResponse(resourceGroupName, registryName, modelName, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String modelName = ResourceManagerUtils.getValueFromIdByName(id, "models");
+ if (modelName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'models'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, modelName, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String modelName = ResourceManagerUtils.getValueFromIdByName(id, "models");
+ if (modelName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'models'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, modelName, context);
}
private RegistryModelContainersClient serviceClient() {
@@ -98,4 +152,8 @@ private RegistryModelContainersClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
+
+ public ModelContainerImpl define(String name) {
+ return new ModelContainerImpl(name, this.manager());
+ }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryModelVersionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryModelVersionsClientImpl.java
index 67fb67a1dcb06..a040e054cf7ee 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryModelVersionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryModelVersionsClientImpl.java
@@ -54,21 +54,21 @@ public final class RegistryModelVersionsClientImpl implements RegistryModelVersi
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of RegistryModelVersionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- RegistryModelVersionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ RegistryModelVersionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(RegistryModelVersionsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesRegistryModelVersions to be used by the
+ * The interface defining all the services for AzureMachineLearningServicesRegistryModelVersions to be used by the
* proxy service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryModelVersionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryModelVersionsImpl.java
index e27d95552ea49..799af6df7aa6d 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryModelVersionsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/RegistryModelVersionsImpl.java
@@ -75,28 +75,6 @@ public ModelVersion get(String resourceGroupName, String registryName, String mo
}
}
- public ModelVersion createOrUpdate(String resourceGroupName, String registryName, String modelName, String version,
- ModelVersionInner body) {
- ModelVersionInner inner
- = this.serviceClient().createOrUpdate(resourceGroupName, registryName, modelName, version, body);
- if (inner != null) {
- return new ModelVersionImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
- public ModelVersion createOrUpdate(String resourceGroupName, String registryName, String modelName, String version,
- ModelVersionInner body, Context context) {
- ModelVersionInner inner
- = this.serviceClient().createOrUpdate(resourceGroupName, registryName, modelName, version, body, context);
- if (inner != null) {
- return new ModelVersionImpl(inner, this.manager());
- } else {
- return null;
- }
- }
-
public Response createOrGetStartPendingUploadWithResponse(String resourceGroupName,
String registryName, String modelName, String version, PendingUploadRequestDto body, Context context) {
Response inner = this.serviceClient()
@@ -121,6 +99,102 @@ public PendingUploadResponseDto createOrGetStartPendingUpload(String resourceGro
}
}
+ public ModelVersion getById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String modelName = ResourceManagerUtils.getValueFromIdByName(id, "models");
+ if (modelName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'models'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, registryName, modelName, version, Context.NONE).getValue();
+ }
+
+ public Response getByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String modelName = ResourceManagerUtils.getValueFromIdByName(id, "models");
+ if (modelName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'models'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ }
+ return this.getWithResponse(resourceGroupName, registryName, modelName, version, context);
+ }
+
+ public void deleteById(String id) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String modelName = ResourceManagerUtils.getValueFromIdByName(id, "models");
+ if (modelName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'models'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, modelName, version, Context.NONE);
+ }
+
+ public void deleteByIdWithResponse(String id, Context context) {
+ String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups");
+ if (resourceGroupName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
+ }
+ String registryName = ResourceManagerUtils.getValueFromIdByName(id, "registries");
+ if (registryName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'registries'.", id)));
+ }
+ String modelName = ResourceManagerUtils.getValueFromIdByName(id, "models");
+ if (modelName == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'models'.", id)));
+ }
+ String version = ResourceManagerUtils.getValueFromIdByName(id, "versions");
+ if (version == null) {
+ throw LOGGER.logExceptionAsError(new IllegalArgumentException(
+ String.format("The resource ID '%s' is not valid. Missing path segment 'versions'.", id)));
+ }
+ this.delete(resourceGroupName, registryName, modelName, version, context);
+ }
+
private RegistryModelVersionsClient serviceClient() {
return this.innerClient;
}
@@ -128,4 +202,8 @@ private RegistryModelVersionsClient serviceClient() {
private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
return this.serviceManager;
}
+
+ public ModelVersionImpl define(String name) {
+ return new ModelVersionImpl(name, this.manager());
+ }
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/SchedulesClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/SchedulesClientImpl.java
index 245dfad807f65..5a3225c145ab3 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/SchedulesClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/SchedulesClientImpl.java
@@ -51,22 +51,22 @@ public final class SchedulesClientImpl implements SchedulesClient {
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of SchedulesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- SchedulesClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ SchedulesClientImpl(AzureMachineLearningServicesImpl client) {
this.service
= RestProxy.create(SchedulesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesSchedules to be used by the proxy
- * service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesSchedules to be used by the proxy service
+ * to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ServerlessEndpointImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ServerlessEndpointImpl.java
index 0bd10a98774f1..04d5d4e91b6ff 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ServerlessEndpointImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ServerlessEndpointImpl.java
@@ -52,16 +52,16 @@ public Map tags() {
}
}
- public ServerlessEndpointProperties properties() {
- return this.innerModel().properties();
+ public ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
}
public String kind() {
return this.innerModel().kind();
}
- public ManagedServiceIdentity identity() {
- return this.innerModel().identity();
+ public ServerlessEndpointProperties properties() {
+ return this.innerModel().properties();
}
public Sku sku() {
@@ -214,13 +214,13 @@ public ServerlessEndpointImpl withTags(Map tags) {
}
}
- public ServerlessEndpointImpl withKind(String kind) {
- this.innerModel().withKind(kind);
+ public ServerlessEndpointImpl withIdentity(ManagedServiceIdentity identity) {
+ this.innerModel().withIdentity(identity);
return this;
}
- public ServerlessEndpointImpl withIdentity(ManagedServiceIdentity identity) {
- this.innerModel().withIdentity(identity);
+ public ServerlessEndpointImpl withKind(String kind) {
+ this.innerModel().withKind(kind);
return this;
}
@@ -229,13 +229,13 @@ public ServerlessEndpointImpl withSku(Sku sku) {
return this;
}
- public ServerlessEndpointImpl withSku(PartialSku sku) {
- this.updateBody.withSku(sku);
+ public ServerlessEndpointImpl withIdentity(PartialManagedServiceIdentity identity) {
+ this.updateBody.withIdentity(identity);
return this;
}
- public ServerlessEndpointImpl withIdentity(PartialManagedServiceIdentity identity) {
- this.updateBody.withIdentity(identity);
+ public ServerlessEndpointImpl withSku(PartialSku sku) {
+ this.updateBody.withSku(sku);
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ServerlessEndpointsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ServerlessEndpointsClientImpl.java
index a246871073bcd..6a29cf4007dd8 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ServerlessEndpointsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/ServerlessEndpointsClientImpl.java
@@ -55,21 +55,21 @@ public final class ServerlessEndpointsClientImpl implements ServerlessEndpointsC
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of ServerlessEndpointsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- ServerlessEndpointsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ ServerlessEndpointsClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(ServerlessEndpointsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesServerlessEndpoints to be used by the
+ * The interface defining all the services for AzureMachineLearningServicesServerlessEndpoints to be used by the
* proxy service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/SkuResourceImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/SkuResourceImpl.java
index 7d3e193ce5f72..87e01997be481 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/SkuResourceImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/SkuResourceImpl.java
@@ -20,6 +20,10 @@ public final class SkuResourceImpl implements SkuResource {
this.serviceManager = serviceManager;
}
+ public SkuCapacity capacity() {
+ return this.innerModel().capacity();
+ }
+
public String resourceType() {
return this.innerModel().resourceType();
}
@@ -28,10 +32,6 @@ public SkuSetting sku() {
return this.innerModel().sku();
}
- public SkuCapacity capacity() {
- return this.innerModel().capacity();
- }
-
public SkuResourceInner innerModel() {
return this.innerObject;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/UsagesClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/UsagesClientImpl.java
index 1d97ae953ac6f..df51b8bb51d70 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/UsagesClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/UsagesClientImpl.java
@@ -42,21 +42,21 @@ public final class UsagesClientImpl implements UsagesClient {
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of UsagesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- UsagesClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ UsagesClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(UsagesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesUsages to be used by the proxy service
- * to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesUsages to be used by the proxy service to
+ * perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/VirtualMachineSizesClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/VirtualMachineSizesClientImpl.java
index ae6bb5ebcc993..68968ce905937 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/VirtualMachineSizesClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/VirtualMachineSizesClientImpl.java
@@ -37,21 +37,21 @@ public final class VirtualMachineSizesClientImpl implements VirtualMachineSizesC
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of VirtualMachineSizesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- VirtualMachineSizesClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ VirtualMachineSizesClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(VirtualMachineSizesService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesVirtualMachineSizes to be used by the
+ * The interface defining all the services for AzureMachineLearningServicesVirtualMachineSizes to be used by the
* proxy service to perform REST calls.
*/
@Host("{$host}")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionPropertiesV2BasicResourceImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionPropertiesV2BasicResourceImpl.java
index 8dbbeb5c54524..49c25497a59ab 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionPropertiesV2BasicResourceImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionPropertiesV2BasicResourceImpl.java
@@ -10,19 +10,15 @@
import com.azure.resourcemanager.machinelearning.fluent.models.WorkspaceConnectionPropertiesV2BasicResourceInner;
import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionPropertiesV2;
import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionPropertiesV2BasicResource;
+import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionUpdateParameter;
public final class WorkspaceConnectionPropertiesV2BasicResourceImpl
- implements WorkspaceConnectionPropertiesV2BasicResource, WorkspaceConnectionPropertiesV2BasicResource.Definition {
+ implements WorkspaceConnectionPropertiesV2BasicResource, WorkspaceConnectionPropertiesV2BasicResource.Definition,
+ WorkspaceConnectionPropertiesV2BasicResource.Update {
private WorkspaceConnectionPropertiesV2BasicResourceInner innerObject;
private final com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager;
- WorkspaceConnectionPropertiesV2BasicResourceImpl(WorkspaceConnectionPropertiesV2BasicResourceInner innerObject,
- com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
- this.innerObject = innerObject;
- this.serviceManager = serviceManager;
- }
-
public String id() {
return this.innerModel().id();
}
@@ -43,6 +39,10 @@ public SystemData systemData() {
return this.innerModel().systemData();
}
+ public String resourceGroupName() {
+ return resourceGroupName;
+ }
+
public WorkspaceConnectionPropertiesV2BasicResourceInner innerModel() {
return this.innerObject;
}
@@ -57,6 +57,8 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String connectionName;
+ private WorkspaceConnectionUpdateParameter updateBody;
+
public WorkspaceConnectionPropertiesV2BasicResourceImpl withExistingWorkspace(String resourceGroupName,
String workspaceName) {
this.resourceGroupName = resourceGroupName;
@@ -87,6 +89,36 @@ public WorkspaceConnectionPropertiesV2BasicResource create(Context context) {
this.connectionName = name;
}
+ public WorkspaceConnectionPropertiesV2BasicResourceImpl update() {
+ this.updateBody = new WorkspaceConnectionUpdateParameter();
+ return this;
+ }
+
+ public WorkspaceConnectionPropertiesV2BasicResource apply() {
+ this.innerObject = serviceManager.serviceClient()
+ .getWorkspaceConnections()
+ .updateWithResponse(resourceGroupName, workspaceName, connectionName, updateBody, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public WorkspaceConnectionPropertiesV2BasicResource apply(Context context) {
+ this.innerObject = serviceManager.serviceClient()
+ .getWorkspaceConnections()
+ .updateWithResponse(resourceGroupName, workspaceName, connectionName, updateBody, context)
+ .getValue();
+ return this;
+ }
+
+ WorkspaceConnectionPropertiesV2BasicResourceImpl(WorkspaceConnectionPropertiesV2BasicResourceInner innerObject,
+ com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.workspaceName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "workspaces");
+ this.connectionName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "connections");
+ }
+
public WorkspaceConnectionPropertiesV2BasicResource refresh() {
this.innerObject = serviceManager.serviceClient()
.getWorkspaceConnections()
@@ -113,7 +145,16 @@ public WorkspaceConnectionPropertiesV2BasicResource listSecrets() {
}
public WorkspaceConnectionPropertiesV2BasicResourceImpl withProperties(WorkspaceConnectionPropertiesV2 properties) {
- this.innerModel().withProperties(properties);
- return this;
+ if (isInCreateMode()) {
+ this.innerModel().withProperties(properties);
+ return this;
+ } else {
+ this.updateBody.withProperties(properties);
+ return this;
+ }
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
}
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionsClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionsClientImpl.java
index 62ef51558d033..9ab41e515f513 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionsClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionsClientImpl.java
@@ -12,6 +12,7 @@
import com.azure.core.annotation.Headers;
import com.azure.core.annotation.Host;
import com.azure.core.annotation.HostParam;
+import com.azure.core.annotation.Patch;
import com.azure.core.annotation.PathParam;
import com.azure.core.annotation.Post;
import com.azure.core.annotation.Put;
@@ -32,6 +33,7 @@
import com.azure.resourcemanager.machinelearning.fluent.WorkspaceConnectionsClient;
import com.azure.resourcemanager.machinelearning.fluent.models.WorkspaceConnectionPropertiesV2BasicResourceInner;
import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult;
+import com.azure.resourcemanager.machinelearning.models.WorkspaceConnectionUpdateParameter;
import reactor.core.publisher.Mono;
/**
@@ -46,21 +48,21 @@ public final class WorkspaceConnectionsClientImpl implements WorkspaceConnection
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of WorkspaceConnectionsClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- WorkspaceConnectionsClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ WorkspaceConnectionsClientImpl(AzureMachineLearningServicesImpl client) {
this.service = RestProxy.create(WorkspaceConnectionsService.class, client.getHttpPipeline(),
client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesWorkspaceConnections to be used by the
+ * The interface defining all the services for AzureMachineLearningServicesWorkspaceConnections to be used by the
* proxy service to perform REST calls.
*/
@Host("{$host}")
@@ -97,6 +99,17 @@ Mono> delete(@HostParam("$host") String endpoint,
@PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion,
@HeaderParam("Accept") String accept, Context context);
+ @Headers({ "Content-Type: application/json" })
+ @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}")
+ @ExpectedResponses({ 200 })
+ @UnexpectedResponseExceptionType(ManagementException.class)
+ Mono> update(@HostParam("$host") String endpoint,
+ @PathParam("subscriptionId") String subscriptionId,
+ @PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName,
+ @PathParam("connectionName") String connectionName, @QueryParam("api-version") String apiVersion,
+ @BodyParam("application/json") WorkspaceConnectionUpdateParameter body,
+ @HeaderParam("Accept") String accept, Context context);
+
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections")
@ExpectedResponses({ 200 })
@@ -105,7 +118,8 @@ Mono> l
@HostParam("$host") String endpoint, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName,
@QueryParam("target") String target, @QueryParam("category") String category,
- @QueryParam("api-version") String apiVersion, @HeaderParam("Accept") String accept, Context context);
+ @QueryParam("api-version") String apiVersion, @QueryParam("includeAll") Boolean includeAll,
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/connections/{connectionName}/listsecrets")
@@ -536,6 +550,150 @@ public void delete(String resourceGroupName, String workspaceName, String connec
deleteWithResponse(resourceGroupName, workspaceName, connectionName, Context.NONE);
}
+ /**
+ * Update machine learning workspaces connections under the specified workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param body Parameters for workspace connection update.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName, String workspaceName, String connectionName,
+ WorkspaceConnectionUpdateParameter body) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ if (connectionName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null."));
+ }
+ if (body != null) {
+ body.validate();
+ }
+ final String accept = "application/json";
+ return FluxUtil
+ .withContext(context -> service.update(this.client.getEndpoint(), this.client.getSubscriptionId(),
+ resourceGroupName, workspaceName, connectionName, this.client.getApiVersion(), body, accept, context))
+ .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly()));
+ }
+
+ /**
+ * Update machine learning workspaces connections under the specified workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param body Parameters for workspace connection update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response} on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono> updateWithResponseAsync(
+ String resourceGroupName, String workspaceName, String connectionName, WorkspaceConnectionUpdateParameter body,
+ Context context) {
+ if (this.client.getEndpoint() == null) {
+ return Mono.error(
+ new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
+ }
+ if (this.client.getSubscriptionId() == null) {
+ return Mono.error(new IllegalArgumentException(
+ "Parameter this.client.getSubscriptionId() is required and cannot be null."));
+ }
+ if (resourceGroupName == null) {
+ return Mono
+ .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
+ }
+ if (workspaceName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter workspaceName is required and cannot be null."));
+ }
+ if (connectionName == null) {
+ return Mono.error(new IllegalArgumentException("Parameter connectionName is required and cannot be null."));
+ }
+ if (body != null) {
+ body.validate();
+ }
+ final String accept = "application/json";
+ context = this.client.mergeContext(context);
+ return service.update(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ workspaceName, connectionName, this.client.getApiVersion(), body, accept, context);
+ }
+
+ /**
+ * Update machine learning workspaces connections under the specified workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param connectionName Friendly name of the workspace connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body on successful completion of {@link Mono}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ private Mono updateAsync(String resourceGroupName,
+ String workspaceName, String connectionName) {
+ final WorkspaceConnectionUpdateParameter body = null;
+ return updateWithResponseAsync(resourceGroupName, workspaceName, connectionName, body)
+ .flatMap(res -> Mono.justOrEmpty(res.getValue()));
+ }
+
+ /**
+ * Update machine learning workspaces connections under the specified workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param body Parameters for workspace connection update.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response body along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public Response updateWithResponse(String resourceGroupName,
+ String workspaceName, String connectionName, WorkspaceConnectionUpdateParameter body, Context context) {
+ return updateWithResponseAsync(resourceGroupName, workspaceName, connectionName, body, context).block();
+ }
+
+ /**
+ * Update machine learning workspaces connections under the specified workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param connectionName Friendly name of the workspace connection.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ public WorkspaceConnectionPropertiesV2BasicResourceInner update(String resourceGroupName, String workspaceName,
+ String connectionName) {
+ final WorkspaceConnectionUpdateParameter body = null;
+ return updateWithResponse(resourceGroupName, workspaceName, connectionName, body, Context.NONE).getValue();
+ }
+
/**
* The list operation.
*
@@ -543,14 +701,16 @@ public void delete(String resourceGroupName, String workspaceName, String connec
* @param workspaceName Name of Azure Machine Learning workspace.
* @param target Target of the workspace connection.
* @param category Category of the workspace connection.
+ * @param includeAll query parameter that indicates if get connection call should return both connections and
+ * datastores.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the response body along with {@link PagedResponse} on successful completion of {@link Mono}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- private Mono>
- listSinglePageAsync(String resourceGroupName, String workspaceName, String target, String category) {
+ private Mono> listSinglePageAsync(
+ String resourceGroupName, String workspaceName, String target, String category, Boolean includeAll) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -568,8 +728,9 @@ public void delete(String resourceGroupName, String workspaceName, String connec
}
final String accept = "application/json";
return FluxUtil
- .withContext(context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(),
- resourceGroupName, workspaceName, target, category, this.client.getApiVersion(), accept, context))
+ .withContext(
+ context -> service.list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName,
+ workspaceName, target, category, this.client.getApiVersion(), includeAll, accept, context))
.>map(
res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null))
@@ -583,6 +744,8 @@ public void delete(String resourceGroupName, String workspaceName, String connec
* @param workspaceName Name of Azure Machine Learning workspace.
* @param target Target of the workspace connection.
* @param category Category of the workspace connection.
+ * @param includeAll query parameter that indicates if get connection call should return both connections and
+ * datastores.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -591,7 +754,8 @@ public void delete(String resourceGroupName, String workspaceName, String connec
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono> listSinglePageAsync(
- String resourceGroupName, String workspaceName, String target, String category, Context context) {
+ String resourceGroupName, String workspaceName, String target, String category, Boolean includeAll,
+ Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -611,7 +775,7 @@ private Mono> l
context = this.client.mergeContext(context);
return service
.list(this.client.getEndpoint(), this.client.getSubscriptionId(), resourceGroupName, workspaceName, target,
- category, this.client.getApiVersion(), accept, context)
+ category, this.client.getApiVersion(), includeAll, accept, context)
.map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(),
res.getValue().value(), res.getValue().nextLink(), null));
}
@@ -623,6 +787,8 @@ private Mono> l
* @param workspaceName Name of Azure Machine Learning workspace.
* @param target Target of the workspace connection.
* @param category Category of the workspace connection.
+ * @param includeAll query parameter that indicates if get connection call should return both connections and
+ * datastores.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
@@ -630,8 +796,9 @@ private Mono> l
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String resourceGroupName,
- String workspaceName, String target, String category) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, target, category),
+ String workspaceName, String target, String category, Boolean includeAll) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, workspaceName, target, category, includeAll),
nextLink -> listNextSinglePageAsync(nextLink));
}
@@ -650,7 +817,9 @@ private PagedFlux listAsync(S
String workspaceName) {
final String target = null;
final String category = null;
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, target, category),
+ final Boolean includeAll = null;
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, workspaceName, target, category, includeAll),
nextLink -> listNextSinglePageAsync(nextLink));
}
@@ -661,6 +830,8 @@ private PagedFlux listAsync(S
* @param workspaceName Name of Azure Machine Learning workspace.
* @param target Target of the workspace connection.
* @param category Category of the workspace connection.
+ * @param includeAll query parameter that indicates if get connection call should return both connections and
+ * datastores.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -669,8 +840,9 @@ private PagedFlux listAsync(S
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux listAsync(String resourceGroupName,
- String workspaceName, String target, String category, Context context) {
- return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, workspaceName, target, category, context),
+ String workspaceName, String target, String category, Boolean includeAll, Context context) {
+ return new PagedFlux<>(
+ () -> listSinglePageAsync(resourceGroupName, workspaceName, target, category, includeAll, context),
nextLink -> listNextSinglePageAsync(nextLink, context));
}
@@ -689,7 +861,8 @@ public PagedIterable list(Str
String workspaceName) {
final String target = null;
final String category = null;
- return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, target, category));
+ final Boolean includeAll = null;
+ return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, target, category, includeAll));
}
/**
@@ -699,6 +872,8 @@ public PagedIterable list(Str
* @param workspaceName Name of Azure Machine Learning workspace.
* @param target Target of the workspace connection.
* @param category Category of the workspace connection.
+ * @param includeAll query parameter that indicates if get connection call should return both connections and
+ * datastores.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server.
@@ -707,8 +882,8 @@ public PagedIterable list(Str
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable list(String resourceGroupName,
- String workspaceName, String target, String category, Context context) {
- return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, target, category, context));
+ String workspaceName, String target, String category, Boolean includeAll, Context context) {
+ return new PagedIterable<>(listAsync(resourceGroupName, workspaceName, target, category, includeAll, context));
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionsImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionsImpl.java
index 58050994047b8..912b1498cf1ec 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionsImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceConnectionsImpl.java
@@ -68,9 +68,9 @@ public PagedIterable list(String r
}
public PagedIterable list(String resourceGroupName,
- String workspaceName, String target, String category, Context context) {
+ String workspaceName, String target, String category, Boolean includeAll, Context context) {
PagedIterable inner
- = this.serviceClient().list(resourceGroupName, workspaceName, target, category, context);
+ = this.serviceClient().list(resourceGroupName, workspaceName, target, category, includeAll, context);
return ResourceManagerUtils.mapPage(inner,
inner1 -> new WorkspaceConnectionPropertiesV2BasicResourceImpl(inner1, this.manager()));
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceFeaturesClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceFeaturesClientImpl.java
index 43a443320750a..e6c0f065208f7 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceFeaturesClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceFeaturesClientImpl.java
@@ -42,22 +42,22 @@ public final class WorkspaceFeaturesClientImpl implements WorkspaceFeaturesClien
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of WorkspaceFeaturesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- WorkspaceFeaturesClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ WorkspaceFeaturesClientImpl(AzureMachineLearningServicesImpl client) {
this.service
= RestProxy.create(WorkspaceFeaturesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesWorkspaceFeatures to be used by the
- * proxy service to perform REST calls.
+ * The interface defining all the services for AzureMachineLearningServicesWorkspaceFeatures to be used by the proxy
+ * service to perform REST calls.
*/
@Host("{$host}")
@ServiceInterface(name = "AzureMachineLearning")
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceImpl.java
index dea0ef544dde9..45c4a9d20c9c9 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceImpl.java
@@ -12,6 +12,7 @@
import com.azure.resourcemanager.machinelearning.fluent.models.NotebookResourceInfoInner;
import com.azure.resourcemanager.machinelearning.fluent.models.PrivateEndpointConnectionInner;
import com.azure.resourcemanager.machinelearning.fluent.models.WorkspaceInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.WorkspaceUpdateParametersInner;
import com.azure.resourcemanager.machinelearning.models.DiagnoseResponseResult;
import com.azure.resourcemanager.machinelearning.models.DiagnoseWorkspaceParameters;
import com.azure.resourcemanager.machinelearning.models.EncryptionProperty;
@@ -33,7 +34,6 @@
import com.azure.resourcemanager.machinelearning.models.Sku;
import com.azure.resourcemanager.machinelearning.models.Workspace;
import com.azure.resourcemanager.machinelearning.models.WorkspaceHubConfig;
-import com.azure.resourcemanager.machinelearning.models.WorkspaceUpdateParameters;
import java.util.Collections;
import java.util.List;
import java.util.Map;
@@ -264,7 +264,7 @@ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager
private String workspaceName;
- private WorkspaceUpdateParameters updateParameters;
+ private WorkspaceUpdateParametersInner updateParameters;
public WorkspaceImpl withExistingResourceGroup(String resourceGroupName) {
this.resourceGroupName = resourceGroupName;
@@ -292,7 +292,7 @@ public Workspace create(Context context) {
}
public WorkspaceImpl update() {
- this.updateParameters = new WorkspaceUpdateParameters();
+ this.updateParameters = new WorkspaceUpdateParametersInner();
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceUpdateParametersImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceUpdateParametersImpl.java
new file mode 100644
index 0000000000000..32081f8e7d6af
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspaceUpdateParametersImpl.java
@@ -0,0 +1,117 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.machinelearning.implementation;
+
+import com.azure.resourcemanager.machinelearning.fluent.models.ManagedNetworkSettingsInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.WorkspaceUpdateParametersInner;
+import com.azure.resourcemanager.machinelearning.models.EncryptionUpdateProperties;
+import com.azure.resourcemanager.machinelearning.models.FeatureStoreSettings;
+import com.azure.resourcemanager.machinelearning.models.ManagedNetworkSettings;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.PublicNetworkAccess;
+import com.azure.resourcemanager.machinelearning.models.ServerlessComputeSettings;
+import com.azure.resourcemanager.machinelearning.models.ServiceManagedResourcesSettings;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.WorkspaceUpdateParameters;
+import java.util.Collections;
+import java.util.Map;
+
+public final class WorkspaceUpdateParametersImpl implements WorkspaceUpdateParameters {
+ private WorkspaceUpdateParametersInner innerObject;
+
+ private final com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager;
+
+ WorkspaceUpdateParametersImpl(WorkspaceUpdateParametersInner innerObject,
+ com.azure.resourcemanager.machinelearning.MachineLearningManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public Sku sku() {
+ return this.innerModel().sku();
+ }
+
+ public ManagedServiceIdentity identity() {
+ return this.innerModel().identity();
+ }
+
+ public String description() {
+ return this.innerModel().description();
+ }
+
+ public String friendlyName() {
+ return this.innerModel().friendlyName();
+ }
+
+ public String imageBuildCompute() {
+ return this.innerModel().imageBuildCompute();
+ }
+
+ public ServiceManagedResourcesSettings serviceManagedResourcesSettings() {
+ return this.innerModel().serviceManagedResourcesSettings();
+ }
+
+ public String primaryUserAssignedIdentity() {
+ return this.innerModel().primaryUserAssignedIdentity();
+ }
+
+ public ServerlessComputeSettings serverlessComputeSettings() {
+ return this.innerModel().serverlessComputeSettings();
+ }
+
+ public PublicNetworkAccess publicNetworkAccess() {
+ return this.innerModel().publicNetworkAccess();
+ }
+
+ public String applicationInsights() {
+ return this.innerModel().applicationInsights();
+ }
+
+ public String containerRegistry() {
+ return this.innerModel().containerRegistry();
+ }
+
+ public FeatureStoreSettings featureStoreSettings() {
+ return this.innerModel().featureStoreSettings();
+ }
+
+ public ManagedNetworkSettings managedNetwork() {
+ ManagedNetworkSettingsInner inner = this.innerModel().managedNetwork();
+ if (inner != null) {
+ return new ManagedNetworkSettingsImpl(inner, this.manager());
+ } else {
+ return null;
+ }
+ }
+
+ public Boolean enableDataIsolation() {
+ return this.innerModel().enableDataIsolation();
+ }
+
+ public Boolean v1LegacyMode() {
+ return this.innerModel().v1LegacyMode();
+ }
+
+ public EncryptionUpdateProperties encryption() {
+ return this.innerModel().encryption();
+ }
+
+ public WorkspaceUpdateParametersInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.machinelearning.MachineLearningManager manager() {
+ return this.serviceManager;
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspacesClientImpl.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspacesClientImpl.java
index a6b6367922126..feee77d86fa16 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspacesClientImpl.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/WorkspacesClientImpl.java
@@ -42,9 +42,9 @@
import com.azure.resourcemanager.machinelearning.fluent.models.NotebookAccessTokenResultInner;
import com.azure.resourcemanager.machinelearning.fluent.models.NotebookResourceInfoInner;
import com.azure.resourcemanager.machinelearning.fluent.models.WorkspaceInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.WorkspaceUpdateParametersInner;
import com.azure.resourcemanager.machinelearning.models.DiagnoseWorkspaceParameters;
import com.azure.resourcemanager.machinelearning.models.WorkspaceListResult;
-import com.azure.resourcemanager.machinelearning.models.WorkspaceUpdateParameters;
import java.nio.ByteBuffer;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;
@@ -61,21 +61,21 @@ public final class WorkspacesClientImpl implements WorkspacesClient {
/**
* The service client containing this operation class.
*/
- private final AzureMachineLearningWorkspacesImpl client;
+ private final AzureMachineLearningServicesImpl client;
/**
* Initializes an instance of WorkspacesClientImpl.
*
* @param client the instance of the service client containing this operation class.
*/
- WorkspacesClientImpl(AzureMachineLearningWorkspacesImpl client) {
+ WorkspacesClientImpl(AzureMachineLearningServicesImpl client) {
this.service
= RestProxy.create(WorkspacesService.class, client.getHttpPipeline(), client.getSerializerAdapter());
this.client = client;
}
/**
- * The interface defining all the services for AzureMachineLearningWorkspacesWorkspaces to be used by the proxy
+ * The interface defining all the services for AzureMachineLearningServicesWorkspaces to be used by the proxy
* service to perform REST calls.
*/
@Host("{$host}")
@@ -116,8 +116,8 @@ Mono>> delete(@HostParam("$host") String endpoint,
Mono>> update(@HostParam("$host") String endpoint,
@QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId,
@PathParam("resourceGroupName") String resourceGroupName, @PathParam("workspaceName") String workspaceName,
- @BodyParam("application/json") WorkspaceUpdateParameters parameters, @HeaderParam("Accept") String accept,
- Context context);
+ @BodyParam("application/json") WorkspaceUpdateParametersInner parameters,
+ @HeaderParam("Accept") String accept, Context context);
@Headers({ "Content-Type: application/json" })
@Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces")
@@ -842,7 +842,7 @@ public void delete(String resourceGroupName, String workspaceName, Boolean force
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName,
- WorkspaceUpdateParameters parameters) {
+ WorkspaceUpdateParametersInner parameters) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -885,7 +885,7 @@ private Mono>> updateWithResponseAsync(String resource
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono>> updateWithResponseAsync(String resourceGroupName, String workspaceName,
- WorkspaceUpdateParameters parameters, Context context) {
+ WorkspaceUpdateParametersInner parameters, Context context) {
if (this.client.getEndpoint() == null) {
return Mono.error(
new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
@@ -925,7 +925,7 @@ private Mono>> updateWithResponseAsync(String resource
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, WorkspaceInner> beginUpdateAsync(String resourceGroupName,
- String workspaceName, WorkspaceUpdateParameters parameters) {
+ String workspaceName, WorkspaceUpdateParametersInner parameters) {
Mono>> mono = updateWithResponseAsync(resourceGroupName, workspaceName, parameters);
return this.client.getLroResult(mono, this.client.getHttpPipeline(),
WorkspaceInner.class, WorkspaceInner.class, this.client.getContext());
@@ -945,7 +945,7 @@ private PollerFlux, WorkspaceInner> beginUpdateAsync(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
private PollerFlux, WorkspaceInner> beginUpdateAsync(String resourceGroupName,
- String workspaceName, WorkspaceUpdateParameters parameters, Context context) {
+ String workspaceName, WorkspaceUpdateParametersInner parameters, Context context) {
context = this.client.mergeContext(context);
Mono>> mono
= updateWithResponseAsync(resourceGroupName, workspaceName, parameters, context);
@@ -966,7 +966,7 @@ private PollerFlux, WorkspaceInner> beginUpdateAsync(
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, WorkspaceInner> beginUpdate(String resourceGroupName,
- String workspaceName, WorkspaceUpdateParameters parameters) {
+ String workspaceName, WorkspaceUpdateParametersInner parameters) {
return this.beginUpdateAsync(resourceGroupName, workspaceName, parameters).getSyncPoller();
}
@@ -984,7 +984,7 @@ public SyncPoller, WorkspaceInner> beginUpdate(String
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller, WorkspaceInner> beginUpdate(String resourceGroupName,
- String workspaceName, WorkspaceUpdateParameters parameters, Context context) {
+ String workspaceName, WorkspaceUpdateParametersInner parameters, Context context) {
return this.beginUpdateAsync(resourceGroupName, workspaceName, parameters, context).getSyncPoller();
}
@@ -1001,7 +1001,7 @@ public SyncPoller, WorkspaceInner> beginUpdate(String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(String resourceGroupName, String workspaceName,
- WorkspaceUpdateParameters parameters) {
+ WorkspaceUpdateParametersInner parameters) {
return beginUpdateAsync(resourceGroupName, workspaceName, parameters).last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -1020,7 +1020,7 @@ private Mono updateAsync(String resourceGroupName, String worksp
*/
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono updateAsync(String resourceGroupName, String workspaceName,
- WorkspaceUpdateParameters parameters, Context context) {
+ WorkspaceUpdateParametersInner parameters, Context context) {
return beginUpdateAsync(resourceGroupName, workspaceName, parameters, context).last()
.flatMap(this.client::getLroFinalResultOrError);
}
@@ -1037,7 +1037,8 @@ private Mono updateAsync(String resourceGroupName, String worksp
* @return an object that represents a machine learning workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public WorkspaceInner update(String resourceGroupName, String workspaceName, WorkspaceUpdateParameters parameters) {
+ public WorkspaceInner update(String resourceGroupName, String workspaceName,
+ WorkspaceUpdateParametersInner parameters) {
return updateAsync(resourceGroupName, workspaceName, parameters).block();
}
@@ -1054,8 +1055,8 @@ public WorkspaceInner update(String resourceGroupName, String workspaceName, Wor
* @return an object that represents a machine learning workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- public WorkspaceInner update(String resourceGroupName, String workspaceName, WorkspaceUpdateParameters parameters,
- Context context) {
+ public WorkspaceInner update(String resourceGroupName, String workspaceName,
+ WorkspaceUpdateParametersInner parameters, Context context) {
return updateAsync(resourceGroupName, workspaceName, parameters, context).block();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/package-info.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/package-info.java
index 8e9ef253090ce..493a1fefe775c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/package-info.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/implementation/package-info.java
@@ -3,7 +3,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.
/**
- * Package containing the implementations for AzureMachineLearningWorkspaces.
+ * Package containing the implementations for AzureMachineLearningServices.
* These APIs allow end users to operate on Azure Machine Learning Workspace resources.
*/
package com.azure.resourcemanager.machinelearning.implementation;
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AadAuthTypeWorkspaceConnectionProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AadAuthTypeWorkspaceConnectionProperties.java
index b9a569dc66e59..7027ea370ce8e 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AadAuthTypeWorkspaceConnectionProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AadAuthTypeWorkspaceConnectionProperties.java
@@ -26,14 +26,14 @@ public final class AadAuthTypeWorkspaceConnectionProperties extends WorkspaceCon
private ConnectionAuthType authType = ConnectionAuthType.AAD;
/*
- * The createdByWorkspaceArmId property.
+ * Group based on connection category
*/
- private String createdByWorkspaceArmId;
+ private ConnectionGroup group;
/*
- * Group based on connection category
+ * The createdByWorkspaceArmId property.
*/
- private ConnectionGroup group;
+ private String createdByWorkspaceArmId;
/**
* Creates an instance of AadAuthTypeWorkspaceConnectionProperties class.
@@ -52,23 +52,23 @@ public ConnectionAuthType authType() {
}
/**
- * Get the createdByWorkspaceArmId property: The createdByWorkspaceArmId property.
+ * Get the group property: Group based on connection category.
*
- * @return the createdByWorkspaceArmId value.
+ * @return the group value.
*/
@Override
- public String createdByWorkspaceArmId() {
- return this.createdByWorkspaceArmId;
+ public ConnectionGroup group() {
+ return this.group;
}
/**
- * Get the group property: Group based on connection category.
+ * Get the createdByWorkspaceArmId property: The createdByWorkspaceArmId property.
*
- * @return the group value.
+ * @return the createdByWorkspaceArmId value.
*/
@Override
- public ConnectionGroup group() {
- return this.group;
+ public String createdByWorkspaceArmId() {
+ return this.createdByWorkspaceArmId;
}
/**
@@ -150,7 +150,6 @@ public AadAuthTypeWorkspaceConnectionProperties withValueFormat(ValueFormat valu
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccessKeyAuthTypeWorkspaceConnectionProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccessKeyAuthTypeWorkspaceConnectionProperties.java
index 7e2fcbcf6ffb3..a3a6e68bd6d6e 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccessKeyAuthTypeWorkspaceConnectionProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccessKeyAuthTypeWorkspaceConnectionProperties.java
@@ -31,14 +31,14 @@ public final class AccessKeyAuthTypeWorkspaceConnectionProperties extends Worksp
private WorkspaceConnectionAccessKey credentials;
/*
- * The createdByWorkspaceArmId property.
+ * Group based on connection category
*/
- private String createdByWorkspaceArmId;
+ private ConnectionGroup group;
/*
- * Group based on connection category
+ * The createdByWorkspaceArmId property.
*/
- private ConnectionGroup group;
+ private String createdByWorkspaceArmId;
/**
* Creates an instance of AccessKeyAuthTypeWorkspaceConnectionProperties class.
@@ -77,23 +77,23 @@ public AccessKeyAuthTypeWorkspaceConnectionProperties withCredentials(WorkspaceC
}
/**
- * Get the createdByWorkspaceArmId property: The createdByWorkspaceArmId property.
+ * Get the group property: Group based on connection category.
*
- * @return the createdByWorkspaceArmId value.
+ * @return the group value.
*/
@Override
- public String createdByWorkspaceArmId() {
- return this.createdByWorkspaceArmId;
+ public ConnectionGroup group() {
+ return this.group;
}
/**
- * Get the group property: Group based on connection category.
+ * Get the createdByWorkspaceArmId property: The createdByWorkspaceArmId property.
*
- * @return the group value.
+ * @return the createdByWorkspaceArmId value.
*/
@Override
- public ConnectionGroup group() {
- return this.group;
+ public String createdByWorkspaceArmId() {
+ return this.createdByWorkspaceArmId;
}
/**
@@ -175,7 +175,6 @@ public AccessKeyAuthTypeWorkspaceConnectionProperties withValueFormat(ValueForma
*/
@Override
public void validate() {
- super.validate();
if (credentials() != null) {
credentials().validate();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyAuthTypeWorkspaceConnectionProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyAuthTypeWorkspaceConnectionProperties.java
index 47bc7db396dd6..e05f2ecc37626 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyAuthTypeWorkspaceConnectionProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyAuthTypeWorkspaceConnectionProperties.java
@@ -31,14 +31,14 @@ public final class AccountKeyAuthTypeWorkspaceConnectionProperties extends Works
private WorkspaceConnectionAccountKey credentials;
/*
- * The createdByWorkspaceArmId property.
+ * Group based on connection category
*/
- private String createdByWorkspaceArmId;
+ private ConnectionGroup group;
/*
- * Group based on connection category
+ * The createdByWorkspaceArmId property.
*/
- private ConnectionGroup group;
+ private String createdByWorkspaceArmId;
/**
* Creates an instance of AccountKeyAuthTypeWorkspaceConnectionProperties class.
@@ -77,23 +77,23 @@ public AccountKeyAuthTypeWorkspaceConnectionProperties withCredentials(Workspace
}
/**
- * Get the createdByWorkspaceArmId property: The createdByWorkspaceArmId property.
+ * Get the group property: Group based on connection category.
*
- * @return the createdByWorkspaceArmId value.
+ * @return the group value.
*/
@Override
- public String createdByWorkspaceArmId() {
- return this.createdByWorkspaceArmId;
+ public ConnectionGroup group() {
+ return this.group;
}
/**
- * Get the group property: Group based on connection category.
+ * Get the createdByWorkspaceArmId property: The createdByWorkspaceArmId property.
*
- * @return the group value.
+ * @return the createdByWorkspaceArmId value.
*/
@Override
- public ConnectionGroup group() {
- return this.group;
+ public String createdByWorkspaceArmId() {
+ return this.createdByWorkspaceArmId;
}
/**
@@ -175,7 +175,6 @@ public AccountKeyAuthTypeWorkspaceConnectionProperties withValueFormat(ValueForm
*/
@Override
public void validate() {
- super.validate();
if (credentials() != null) {
credentials().validate();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyDatastoreCredentials.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyDatastoreCredentials.java
index 765b496c3b61c..49ad2b2f603f4 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyDatastoreCredentials.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyDatastoreCredentials.java
@@ -69,7 +69,6 @@ public AccountKeyDatastoreCredentials withSecrets(AccountKeyDatastoreSecrets sec
*/
@Override
public void validate() {
- super.validate();
if (secrets() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyDatastoreSecrets.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyDatastoreSecrets.java
index f1920d6966646..75844e5c3aaec 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyDatastoreSecrets.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AccountKeyDatastoreSecrets.java
@@ -69,7 +69,6 @@ public AccountKeyDatastoreSecrets withKey(String key) {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/Aks.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/Aks.java
index 76d48c600bfe4..548de236ddf74 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/Aks.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/Aks.java
@@ -30,14 +30,15 @@ public final class Aks extends Compute {
private AksSchemaProperties properties;
/*
- * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed.
+ * Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning
+ * service provisioned it if false.
*/
- private ProvisioningState provisioningState;
+ private Boolean isAttachedCompute;
/*
- * The time at which the compute was created.
+ * Errors during provisioning
*/
- private OffsetDateTime createdOn;
+ private List provisioningErrors;
/*
* The time at which the compute was last modified.
@@ -45,15 +46,14 @@ public final class Aks extends Compute {
private OffsetDateTime modifiedOn;
/*
- * Errors during provisioning
+ * The time at which the compute was created.
*/
- private List provisioningErrors;
+ private OffsetDateTime createdOn;
/*
- * Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning
- * service provisioned it if false.
+ * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed.
*/
- private Boolean isAttachedCompute;
+ private ProvisioningState provisioningState;
/**
* Creates an instance of Aks class.
@@ -92,24 +92,24 @@ public Aks withProperties(AksSchemaProperties properties) {
}
/**
- * Get the provisioningState property: The provision state of the cluster. Valid values are Unknown, Updating,
- * Provisioning, Succeeded, and Failed.
+ * Get the isAttachedCompute property: Indicating whether the compute was provisioned by user and brought from
+ * outside if true, or machine learning service provisioned it if false.
*
- * @return the provisioningState value.
+ * @return the isAttachedCompute value.
*/
@Override
- public ProvisioningState provisioningState() {
- return this.provisioningState;
+ public Boolean isAttachedCompute() {
+ return this.isAttachedCompute;
}
/**
- * Get the createdOn property: The time at which the compute was created.
+ * Get the provisioningErrors property: Errors during provisioning.
*
- * @return the createdOn value.
+ * @return the provisioningErrors value.
*/
@Override
- public OffsetDateTime createdOn() {
- return this.createdOn;
+ public List provisioningErrors() {
+ return this.provisioningErrors;
}
/**
@@ -123,24 +123,24 @@ public OffsetDateTime modifiedOn() {
}
/**
- * Get the provisioningErrors property: Errors during provisioning.
+ * Get the createdOn property: The time at which the compute was created.
*
- * @return the provisioningErrors value.
+ * @return the createdOn value.
*/
@Override
- public List provisioningErrors() {
- return this.provisioningErrors;
+ public OffsetDateTime createdOn() {
+ return this.createdOn;
}
/**
- * Get the isAttachedCompute property: Indicating whether the compute was provisioned by user and brought from
- * outside if true, or machine learning service provisioned it if false.
+ * Get the provisioningState property: The provision state of the cluster. Valid values are Unknown, Updating,
+ * Provisioning, Succeeded, and Failed.
*
- * @return the isAttachedCompute value.
+ * @return the provisioningState value.
*/
@Override
- public Boolean isAttachedCompute() {
- return this.isAttachedCompute;
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
}
/**
@@ -186,7 +186,6 @@ public Aks withDisableLocalAuth(Boolean disableLocalAuth) {
*/
@Override
public void validate() {
- super.validate();
if (properties() != null) {
properties().validate();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AksComputeSecrets.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AksComputeSecrets.java
index 8a4bda318ec92..2942a7c4c192e 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AksComputeSecrets.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AksComputeSecrets.java
@@ -123,7 +123,6 @@ public AksComputeSecrets withImagePullSecretName(String imagePullSecretName) {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AllFeatures.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AllFeatures.java
index 89e05a4ea432f..125d03053a7f7 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AllFeatures.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AllFeatures.java
@@ -44,7 +44,6 @@ public MonitoringFeatureFilterType filterType() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AllNodes.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AllNodes.java
index 2b729b4a09b0e..578362e9a6163 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AllNodes.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AllNodes.java
@@ -43,7 +43,6 @@ public NodesValueType nodesValueType() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlCompute.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlCompute.java
index 25b3ad2c53f7a..902ff640afe99 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlCompute.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlCompute.java
@@ -30,14 +30,15 @@ public final class AmlCompute extends Compute {
private AmlComputeProperties properties;
/*
- * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed.
+ * Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning
+ * service provisioned it if false.
*/
- private ProvisioningState provisioningState;
+ private Boolean isAttachedCompute;
/*
- * The time at which the compute was created.
+ * Errors during provisioning
*/
- private OffsetDateTime createdOn;
+ private List provisioningErrors;
/*
* The time at which the compute was last modified.
@@ -45,15 +46,14 @@ public final class AmlCompute extends Compute {
private OffsetDateTime modifiedOn;
/*
- * Errors during provisioning
+ * The time at which the compute was created.
*/
- private List provisioningErrors;
+ private OffsetDateTime createdOn;
/*
- * Indicating whether the compute was provisioned by user and brought from outside if true, or machine learning
- * service provisioned it if false.
+ * The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed.
*/
- private Boolean isAttachedCompute;
+ private ProvisioningState provisioningState;
/**
* Creates an instance of AmlCompute class.
@@ -92,24 +92,24 @@ public AmlCompute withProperties(AmlComputeProperties properties) {
}
/**
- * Get the provisioningState property: The provision state of the cluster. Valid values are Unknown, Updating,
- * Provisioning, Succeeded, and Failed.
+ * Get the isAttachedCompute property: Indicating whether the compute was provisioned by user and brought from
+ * outside if true, or machine learning service provisioned it if false.
*
- * @return the provisioningState value.
+ * @return the isAttachedCompute value.
*/
@Override
- public ProvisioningState provisioningState() {
- return this.provisioningState;
+ public Boolean isAttachedCompute() {
+ return this.isAttachedCompute;
}
/**
- * Get the createdOn property: The time at which the compute was created.
+ * Get the provisioningErrors property: Errors during provisioning.
*
- * @return the createdOn value.
+ * @return the provisioningErrors value.
*/
@Override
- public OffsetDateTime createdOn() {
- return this.createdOn;
+ public List provisioningErrors() {
+ return this.provisioningErrors;
}
/**
@@ -123,24 +123,24 @@ public OffsetDateTime modifiedOn() {
}
/**
- * Get the provisioningErrors property: Errors during provisioning.
+ * Get the createdOn property: The time at which the compute was created.
*
- * @return the provisioningErrors value.
+ * @return the createdOn value.
*/
@Override
- public List provisioningErrors() {
- return this.provisioningErrors;
+ public OffsetDateTime createdOn() {
+ return this.createdOn;
}
/**
- * Get the isAttachedCompute property: Indicating whether the compute was provisioned by user and brought from
- * outside if true, or machine learning service provisioned it if false.
+ * Get the provisioningState property: The provision state of the cluster. Valid values are Unknown, Updating,
+ * Provisioning, Succeeded, and Failed.
*
- * @return the isAttachedCompute value.
+ * @return the provisioningState value.
*/
@Override
- public Boolean isAttachedCompute() {
- return this.isAttachedCompute;
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
}
/**
@@ -186,7 +186,6 @@ public AmlCompute withDisableLocalAuth(Boolean disableLocalAuth) {
*/
@Override
public void validate() {
- super.validate();
if (properties() != null) {
properties().validate();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlToken.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlToken.java
index daa2130aeb64d..3b6557ad83a68 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlToken.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlToken.java
@@ -43,7 +43,6 @@ public IdentityConfigurationType identityType() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlTokenComputeIdentity.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlTokenComputeIdentity.java
index 4e321bb69e323..3af8f4865620e 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlTokenComputeIdentity.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AmlTokenComputeIdentity.java
@@ -44,7 +44,6 @@ public MonitorComputeIdentityType computeIdentityType() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AnonymousAccessCredential.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AnonymousAccessCredential.java
index 062a8ec3b1797..aeb23cda987e9 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AnonymousAccessCredential.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AnonymousAccessCredential.java
@@ -43,7 +43,6 @@ public DataReferenceCredentialType credentialType() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/ApiKeyAuthWorkspaceConnectionProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/ApiKeyAuthWorkspaceConnectionProperties.java
index cab43ca41a15c..d2f4dfbb494df 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/ApiKeyAuthWorkspaceConnectionProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/ApiKeyAuthWorkspaceConnectionProperties.java
@@ -50,14 +50,14 @@ public final class ApiKeyAuthWorkspaceConnectionProperties extends WorkspaceConn
private WorkspaceConnectionApiKey credentials;
/*
- * The createdByWorkspaceArmId property.
+ * Group based on connection category
*/
- private String createdByWorkspaceArmId;
+ private ConnectionGroup group;
/*
- * Group based on connection category
+ * The createdByWorkspaceArmId property.
*/
- private ConnectionGroup group;
+ private String createdByWorkspaceArmId;
/**
* Creates an instance of ApiKeyAuthWorkspaceConnectionProperties class.
@@ -96,23 +96,23 @@ public ApiKeyAuthWorkspaceConnectionProperties withCredentials(WorkspaceConnecti
}
/**
- * Get the createdByWorkspaceArmId property: The createdByWorkspaceArmId property.
+ * Get the group property: Group based on connection category.
*
- * @return the createdByWorkspaceArmId value.
+ * @return the group value.
*/
@Override
- public String createdByWorkspaceArmId() {
- return this.createdByWorkspaceArmId;
+ public ConnectionGroup group() {
+ return this.group;
}
/**
- * Get the group property: Group based on connection category.
+ * Get the createdByWorkspaceArmId property: The createdByWorkspaceArmId property.
*
- * @return the group value.
+ * @return the createdByWorkspaceArmId value.
*/
@Override
- public ConnectionGroup group() {
- return this.group;
+ public String createdByWorkspaceArmId() {
+ return this.createdByWorkspaceArmId;
}
/**
@@ -194,7 +194,6 @@ public ApiKeyAuthWorkspaceConnectionProperties withValueFormat(ValueFormat value
*/
@Override
public void validate() {
- super.validate();
if (credentials() != null) {
credentials().validate();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetBase.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetBase.java
index 40f0a0158c4f2..f31fc7ccc85fd 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetBase.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetBase.java
@@ -17,14 +17,14 @@
@Fluent
public class AssetBase extends ResourceBase {
/*
- * Is the asset archived?
+ * If the name version are system generated (anonymous registration).
*/
- private Boolean isArchived;
+ private Boolean isAnonymous;
/*
- * If the name version are system generated (anonymous registration).
+ * Is the asset archived?
*/
- private Boolean isAnonymous;
+ private Boolean isArchived;
/**
* Creates an instance of AssetBase class.
@@ -33,42 +33,42 @@ public AssetBase() {
}
/**
- * Get the isArchived property: Is the asset archived?.
+ * Get the isAnonymous property: If the name version are system generated (anonymous registration).
*
- * @return the isArchived value.
+ * @return the isAnonymous value.
*/
- public Boolean isArchived() {
- return this.isArchived;
+ public Boolean isAnonymous() {
+ return this.isAnonymous;
}
/**
- * Set the isArchived property: Is the asset archived?.
+ * Set the isAnonymous property: If the name version are system generated (anonymous registration).
*
- * @param isArchived the isArchived value to set.
+ * @param isAnonymous the isAnonymous value to set.
* @return the AssetBase object itself.
*/
- public AssetBase withIsArchived(Boolean isArchived) {
- this.isArchived = isArchived;
+ public AssetBase withIsAnonymous(Boolean isAnonymous) {
+ this.isAnonymous = isAnonymous;
return this;
}
/**
- * Get the isAnonymous property: If the name version are system generated (anonymous registration).
+ * Get the isArchived property: Is the asset archived?.
*
- * @return the isAnonymous value.
+ * @return the isArchived value.
*/
- public Boolean isAnonymous() {
- return this.isAnonymous;
+ public Boolean isArchived() {
+ return this.isArchived;
}
/**
- * Set the isAnonymous property: If the name version are system generated (anonymous registration).
+ * Set the isArchived property: Is the asset archived?.
*
- * @param isAnonymous the isAnonymous value to set.
+ * @param isArchived the isArchived value to set.
* @return the AssetBase object itself.
*/
- public AssetBase withIsAnonymous(Boolean isAnonymous) {
- this.isAnonymous = isAnonymous;
+ public AssetBase withIsArchived(Boolean isArchived) {
+ this.isArchived = isArchived;
return this;
}
@@ -85,8 +85,8 @@ public AssetBase withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public AssetBase withTags(Map tags) {
- super.withTags(tags);
+ public AssetBase withProperties(Map properties) {
+ super.withProperties(properties);
return this;
}
@@ -94,8 +94,8 @@ public AssetBase withTags(Map tags) {
* {@inheritDoc}
*/
@Override
- public AssetBase withProperties(Map properties) {
- super.withProperties(properties);
+ public AssetBase withTags(Map tags) {
+ super.withTags(tags);
return this;
}
@@ -106,7 +106,6 @@ public AssetBase withProperties(Map properties) {
*/
@Override
public void validate() {
- super.validate();
}
/**
@@ -116,10 +115,10 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeBooleanField("isArchived", this.isArchived);
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeBooleanField("isAnonymous", this.isAnonymous);
+ jsonWriter.writeBooleanField("isArchived", this.isArchived);
return jsonWriter.writeEndObject();
}
@@ -140,16 +139,16 @@ public static AssetBase fromJson(JsonReader jsonReader) throws IOException {
if ("description".equals(fieldName)) {
deserializedAssetBase.withDescription(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedAssetBase.withTags(tags);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedAssetBase.withProperties(properties);
- } else if ("isArchived".equals(fieldName)) {
- deserializedAssetBase.isArchived = reader.getNullable(JsonReader::getBoolean);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAssetBase.withTags(tags);
} else if ("isAnonymous".equals(fieldName)) {
deserializedAssetBase.isAnonymous = reader.getNullable(JsonReader::getBoolean);
+ } else if ("isArchived".equals(fieldName)) {
+ deserializedAssetBase.isArchived = reader.getNullable(JsonReader::getBoolean);
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetContainer.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetContainer.java
index 3361874f3160a..94b7236825599 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetContainer.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetContainer.java
@@ -110,8 +110,8 @@ public AssetContainer withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public AssetContainer withTags(Map tags) {
- super.withTags(tags);
+ public AssetContainer withProperties(Map properties) {
+ super.withProperties(properties);
return this;
}
@@ -119,8 +119,8 @@ public AssetContainer withTags(Map tags) {
* {@inheritDoc}
*/
@Override
- public AssetContainer withProperties(Map properties) {
- super.withProperties(properties);
+ public AssetContainer withTags(Map tags) {
+ super.withTags(tags);
return this;
}
@@ -131,7 +131,6 @@ public AssetContainer withProperties(Map properties) {
*/
@Override
public void validate() {
- super.validate();
}
/**
@@ -141,8 +140,8 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeBooleanField("isArchived", this.isArchived);
return jsonWriter.writeEndObject();
}
@@ -164,12 +163,12 @@ public static AssetContainer fromJson(JsonReader jsonReader) throws IOException
if ("description".equals(fieldName)) {
deserializedAssetContainer.withDescription(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedAssetContainer.withTags(tags);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedAssetContainer.withProperties(properties);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAssetContainer.withTags(tags);
} else if ("isArchived".equals(fieldName)) {
deserializedAssetContainer.isArchived = reader.getNullable(JsonReader::getBoolean);
} else if ("latestVersion".equals(fieldName)) {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetJobInput.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetJobInput.java
index 3f22adaf3d73d..fd821b884c269 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetJobInput.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetJobInput.java
@@ -18,14 +18,14 @@
@Fluent
public class AssetJobInput implements JsonSerializable {
/*
- * [Required] Input Asset URI.
+ * Input Asset Delivery Mode.
*/
- private String uri;
+ private InputDeliveryMode mode;
/*
- * Input Asset Delivery Mode.
+ * [Required] Input Asset URI.
*/
- private InputDeliveryMode mode;
+ private String uri;
/**
* Creates an instance of AssetJobInput class.
@@ -34,42 +34,42 @@ public AssetJobInput() {
}
/**
- * Get the uri property: [Required] Input Asset URI.
+ * Get the mode property: Input Asset Delivery Mode.
*
- * @return the uri value.
+ * @return the mode value.
*/
- public String uri() {
- return this.uri;
+ public InputDeliveryMode mode() {
+ return this.mode;
}
/**
- * Set the uri property: [Required] Input Asset URI.
+ * Set the mode property: Input Asset Delivery Mode.
*
- * @param uri the uri value to set.
+ * @param mode the mode value to set.
* @return the AssetJobInput object itself.
*/
- public AssetJobInput withUri(String uri) {
- this.uri = uri;
+ public AssetJobInput withMode(InputDeliveryMode mode) {
+ this.mode = mode;
return this;
}
/**
- * Get the mode property: Input Asset Delivery Mode.
+ * Get the uri property: [Required] Input Asset URI.
*
- * @return the mode value.
+ * @return the uri value.
*/
- public InputDeliveryMode mode() {
- return this.mode;
+ public String uri() {
+ return this.uri;
}
/**
- * Set the mode property: Input Asset Delivery Mode.
+ * Set the uri property: [Required] Input Asset URI.
*
- * @param mode the mode value to set.
+ * @param uri the uri value to set.
* @return the AssetJobInput object itself.
*/
- public AssetJobInput withMode(InputDeliveryMode mode) {
- this.mode = mode;
+ public AssetJobInput withUri(String uri) {
+ this.uri = uri;
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetJobOutput.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetJobOutput.java
index 777d853f2ca61..44c5179d9f4c8 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetJobOutput.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AssetJobOutput.java
@@ -17,14 +17,14 @@
@Fluent
public class AssetJobOutput implements JsonSerializable {
/*
- * Output Asset URI.
+ * Output Asset Delivery Mode.
*/
- private String uri;
+ private OutputDeliveryMode mode;
/*
- * Output Asset Delivery Mode.
+ * Output Asset URI.
*/
- private OutputDeliveryMode mode;
+ private String uri;
/**
* Creates an instance of AssetJobOutput class.
@@ -33,42 +33,42 @@ public AssetJobOutput() {
}
/**
- * Get the uri property: Output Asset URI.
+ * Get the mode property: Output Asset Delivery Mode.
*
- * @return the uri value.
+ * @return the mode value.
*/
- public String uri() {
- return this.uri;
+ public OutputDeliveryMode mode() {
+ return this.mode;
}
/**
- * Set the uri property: Output Asset URI.
+ * Set the mode property: Output Asset Delivery Mode.
*
- * @param uri the uri value to set.
+ * @param mode the mode value to set.
* @return the AssetJobOutput object itself.
*/
- public AssetJobOutput withUri(String uri) {
- this.uri = uri;
+ public AssetJobOutput withMode(OutputDeliveryMode mode) {
+ this.mode = mode;
return this;
}
/**
- * Get the mode property: Output Asset Delivery Mode.
+ * Get the uri property: Output Asset URI.
*
- * @return the mode value.
+ * @return the uri value.
*/
- public OutputDeliveryMode mode() {
- return this.mode;
+ public String uri() {
+ return this.uri;
}
/**
- * Set the mode property: Output Asset Delivery Mode.
+ * Set the uri property: Output Asset URI.
*
- * @param mode the mode value to set.
+ * @param uri the uri value to set.
* @return the AssetJobOutput object itself.
*/
- public AssetJobOutput withMode(OutputDeliveryMode mode) {
- this.mode = mode;
+ public AssetJobOutput withUri(String uri) {
+ this.uri = uri;
return this;
}
@@ -86,8 +86,8 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeStringField("uri", this.uri);
jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString());
+ jsonWriter.writeStringField("uri", this.uri);
return jsonWriter.writeEndObject();
}
@@ -106,10 +106,10 @@ public static AssetJobOutput fromJson(JsonReader jsonReader) throws IOException
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("uri".equals(fieldName)) {
- deserializedAssetJobOutput.uri = reader.getString();
- } else if ("mode".equals(fieldName)) {
+ if ("mode".equals(fieldName)) {
deserializedAssetJobOutput.mode = OutputDeliveryMode.fromString(reader.getString());
+ } else if ("uri".equals(fieldName)) {
+ deserializedAssetJobOutput.uri = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoForecastHorizon.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoForecastHorizon.java
index 3a85d223e13da..be28893ee9b0a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoForecastHorizon.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoForecastHorizon.java
@@ -43,7 +43,6 @@ public ForecastHorizonMode mode() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoMLJob.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoMLJob.java
index f616e29568747..a1b7854492169 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoMLJob.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoMLJob.java
@@ -24,11 +24,6 @@ public final class AutoMLJob extends JobBaseProperties {
*/
private JobType jobType = JobType.AUTO_ML;
- /*
- * Compute Resource configuration for the job.
- */
- private JobResourceConfiguration resources;
-
/*
* The ARM resource ID of the Environment specification for the job.
* This is optional value to provide, if not provided, AutoML will default this to Production AutoML curated
@@ -41,11 +36,6 @@ public final class AutoMLJob extends JobBaseProperties {
*/
private Map environmentVariables;
- /*
- * [Required] This represents scenario which can be one of Tables/NLP/Image
- */
- private AutoMLVertical taskDetails;
-
/*
* Mapping of output data bindings used in the job.
*/
@@ -56,6 +46,16 @@ public final class AutoMLJob extends JobBaseProperties {
*/
private QueueSettings queueSettings;
+ /*
+ * Compute Resource configuration for the job.
+ */
+ private JobResourceConfiguration resources;
+
+ /*
+ * [Required] This represents scenario which can be one of Tables/NLP/Image
+ */
+ private AutoMLVertical taskDetails;
+
/*
* Status of the job.
*/
@@ -77,26 +77,6 @@ public JobType jobType() {
return this.jobType;
}
- /**
- * Get the resources property: Compute Resource configuration for the job.
- *
- * @return the resources value.
- */
- public JobResourceConfiguration resources() {
- return this.resources;
- }
-
- /**
- * Set the resources property: Compute Resource configuration for the job.
- *
- * @param resources the resources value to set.
- * @return the AutoMLJob object itself.
- */
- public AutoMLJob withResources(JobResourceConfiguration resources) {
- this.resources = resources;
- return this;
- }
-
/**
* Get the environmentId property: The ARM resource ID of the Environment specification for the job.
* This is optional value to provide, if not provided, AutoML will default this to Production AutoML curated
@@ -141,26 +121,6 @@ public AutoMLJob withEnvironmentVariables(Map environmentVariabl
return this;
}
- /**
- * Get the taskDetails property: [Required] This represents scenario which can be one of Tables/NLP/Image.
- *
- * @return the taskDetails value.
- */
- public AutoMLVertical taskDetails() {
- return this.taskDetails;
- }
-
- /**
- * Set the taskDetails property: [Required] This represents scenario which can be one of Tables/NLP/Image.
- *
- * @param taskDetails the taskDetails value to set.
- * @return the AutoMLJob object itself.
- */
- public AutoMLJob withTaskDetails(AutoMLVertical taskDetails) {
- this.taskDetails = taskDetails;
- return this;
- }
-
/**
* Get the outputs property: Mapping of output data bindings used in the job.
*
@@ -201,6 +161,46 @@ public AutoMLJob withQueueSettings(QueueSettings queueSettings) {
return this;
}
+ /**
+ * Get the resources property: Compute Resource configuration for the job.
+ *
+ * @return the resources value.
+ */
+ public JobResourceConfiguration resources() {
+ return this.resources;
+ }
+
+ /**
+ * Set the resources property: Compute Resource configuration for the job.
+ *
+ * @param resources the resources value to set.
+ * @return the AutoMLJob object itself.
+ */
+ public AutoMLJob withResources(JobResourceConfiguration resources) {
+ this.resources = resources;
+ return this;
+ }
+
+ /**
+ * Get the taskDetails property: [Required] This represents scenario which can be one of Tables/NLP/Image.
+ *
+ * @return the taskDetails value.
+ */
+ public AutoMLVertical taskDetails() {
+ return this.taskDetails;
+ }
+
+ /**
+ * Set the taskDetails property: [Required] This represents scenario which can be one of Tables/NLP/Image.
+ *
+ * @param taskDetails the taskDetails value to set.
+ * @return the AutoMLJob object itself.
+ */
+ public AutoMLJob withTaskDetails(AutoMLVertical taskDetails) {
+ this.taskDetails = taskDetails;
+ return this;
+ }
+
/**
* Get the status property: Status of the job.
*
@@ -215,8 +215,8 @@ public JobStatus status() {
* {@inheritDoc}
*/
@Override
- public AutoMLJob withDisplayName(String displayName) {
- super.withDisplayName(displayName);
+ public AutoMLJob withComponentId(String componentId) {
+ super.withComponentId(componentId);
return this;
}
@@ -224,8 +224,8 @@ public AutoMLJob withDisplayName(String displayName) {
* {@inheritDoc}
*/
@Override
- public AutoMLJob withExperimentName(String experimentName) {
- super.withExperimentName(experimentName);
+ public AutoMLJob withComputeId(String computeId) {
+ super.withComputeId(computeId);
return this;
}
@@ -233,8 +233,8 @@ public AutoMLJob withExperimentName(String experimentName) {
* {@inheritDoc}
*/
@Override
- public AutoMLJob withServices(Map services) {
- super.withServices(services);
+ public AutoMLJob withDisplayName(String displayName) {
+ super.withDisplayName(displayName);
return this;
}
@@ -242,8 +242,8 @@ public AutoMLJob withServices(Map services) {
* {@inheritDoc}
*/
@Override
- public AutoMLJob withComputeId(String computeId) {
- super.withComputeId(computeId);
+ public AutoMLJob withExperimentName(String experimentName) {
+ super.withExperimentName(experimentName);
return this;
}
@@ -251,8 +251,8 @@ public AutoMLJob withComputeId(String computeId) {
* {@inheritDoc}
*/
@Override
- public AutoMLJob withIsArchived(Boolean isArchived) {
- super.withIsArchived(isArchived);
+ public AutoMLJob withIdentity(IdentityConfiguration identity) {
+ super.withIdentity(identity);
return this;
}
@@ -260,8 +260,8 @@ public AutoMLJob withIsArchived(Boolean isArchived) {
* {@inheritDoc}
*/
@Override
- public AutoMLJob withIdentity(IdentityConfiguration identity) {
- super.withIdentity(identity);
+ public AutoMLJob withIsArchived(Boolean isArchived) {
+ super.withIsArchived(isArchived);
return this;
}
@@ -269,8 +269,8 @@ public AutoMLJob withIdentity(IdentityConfiguration identity) {
* {@inheritDoc}
*/
@Override
- public AutoMLJob withComponentId(String componentId) {
- super.withComponentId(componentId);
+ public AutoMLJob withNotificationSetting(NotificationSetting notificationSetting) {
+ super.withNotificationSetting(notificationSetting);
return this;
}
@@ -278,8 +278,8 @@ public AutoMLJob withComponentId(String componentId) {
* {@inheritDoc}
*/
@Override
- public AutoMLJob withNotificationSetting(NotificationSetting notificationSetting) {
- super.withNotificationSetting(notificationSetting);
+ public AutoMLJob withServices(Map services) {
+ super.withServices(services);
return this;
}
@@ -296,8 +296,8 @@ public AutoMLJob withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public AutoMLJob withTags(Map tags) {
- super.withTags(tags);
+ public AutoMLJob withProperties(Map properties) {
+ super.withProperties(properties);
return this;
}
@@ -305,8 +305,8 @@ public AutoMLJob withTags(Map tags) {
* {@inheritDoc}
*/
@Override
- public AutoMLJob withProperties(Map properties) {
- super.withProperties(properties);
+ public AutoMLJob withTags(Map tags) {
+ super.withTags(tags);
return this;
}
@@ -317,7 +317,16 @@ public AutoMLJob withProperties(Map properties) {
*/
@Override
public void validate() {
- super.validate();
+ if (outputs() != null) {
+ outputs().values().forEach(e -> {
+ if (e != null) {
+ e.validate();
+ }
+ });
+ }
+ if (queueSettings() != null) {
+ queueSettings().validate();
+ }
if (resources() != null) {
resources().validate();
}
@@ -327,16 +336,19 @@ public void validate() {
} else {
taskDetails().validate();
}
- if (outputs() != null) {
- outputs().values().forEach(e -> {
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (notificationSetting() != null) {
+ notificationSetting().validate();
+ }
+ if (services() != null) {
+ services().values().forEach(e -> {
if (e != null) {
e.validate();
}
});
}
- if (queueSettings() != null) {
- queueSettings().validate();
- }
}
private static final ClientLogger LOGGER = new ClientLogger(AutoMLJob.class);
@@ -348,24 +360,24 @@ public void validate() {
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeStringField("componentId", componentId());
+ jsonWriter.writeStringField("computeId", computeId());
jsonWriter.writeStringField("displayName", displayName());
jsonWriter.writeStringField("experimentName", experimentName());
- jsonWriter.writeMapField("services", services(), (writer, element) -> writer.writeJson(element));
- jsonWriter.writeStringField("computeId", computeId());
- jsonWriter.writeBooleanField("isArchived", isArchived());
jsonWriter.writeJsonField("identity", identity());
- jsonWriter.writeStringField("componentId", componentId());
+ jsonWriter.writeBooleanField("isArchived", isArchived());
jsonWriter.writeJsonField("notificationSetting", notificationSetting());
+ jsonWriter.writeMapField("services", services(), (writer, element) -> writer.writeJson(element));
jsonWriter.writeJsonField("taskDetails", this.taskDetails);
jsonWriter.writeStringField("jobType", this.jobType == null ? null : this.jobType.toString());
- jsonWriter.writeJsonField("resources", this.resources);
jsonWriter.writeStringField("environmentId", this.environmentId);
jsonWriter.writeMapField("environmentVariables", this.environmentVariables,
(writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("outputs", this.outputs, (writer, element) -> writer.writeJson(element));
jsonWriter.writeJsonField("queueSettings", this.queueSettings);
+ jsonWriter.writeJsonField("resources", this.resources);
return jsonWriter.writeEndObject();
}
@@ -387,37 +399,35 @@ public static AutoMLJob fromJson(JsonReader jsonReader) throws IOException {
if ("description".equals(fieldName)) {
deserializedAutoMLJob.withDescription(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedAutoMLJob.withTags(tags);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedAutoMLJob.withProperties(properties);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAutoMLJob.withTags(tags);
+ } else if ("componentId".equals(fieldName)) {
+ deserializedAutoMLJob.withComponentId(reader.getString());
+ } else if ("computeId".equals(fieldName)) {
+ deserializedAutoMLJob.withComputeId(reader.getString());
} else if ("displayName".equals(fieldName)) {
deserializedAutoMLJob.withDisplayName(reader.getString());
- } else if ("status".equals(fieldName)) {
- deserializedAutoMLJob.status = JobStatus.fromString(reader.getString());
} else if ("experimentName".equals(fieldName)) {
deserializedAutoMLJob.withExperimentName(reader.getString());
- } else if ("services".equals(fieldName)) {
- Map services = reader.readMap(reader1 -> JobService.fromJson(reader1));
- deserializedAutoMLJob.withServices(services);
- } else if ("computeId".equals(fieldName)) {
- deserializedAutoMLJob.withComputeId(reader.getString());
- } else if ("isArchived".equals(fieldName)) {
- deserializedAutoMLJob.withIsArchived(reader.getNullable(JsonReader::getBoolean));
} else if ("identity".equals(fieldName)) {
deserializedAutoMLJob.withIdentity(IdentityConfiguration.fromJson(reader));
- } else if ("componentId".equals(fieldName)) {
- deserializedAutoMLJob.withComponentId(reader.getString());
+ } else if ("isArchived".equals(fieldName)) {
+ deserializedAutoMLJob.withIsArchived(reader.getNullable(JsonReader::getBoolean));
} else if ("notificationSetting".equals(fieldName)) {
deserializedAutoMLJob.withNotificationSetting(NotificationSetting.fromJson(reader));
+ } else if ("services".equals(fieldName)) {
+ Map services = reader.readMap(reader1 -> JobService.fromJson(reader1));
+ deserializedAutoMLJob.withServices(services);
+ } else if ("status".equals(fieldName)) {
+ deserializedAutoMLJob.status = JobStatus.fromString(reader.getString());
} else if ("taskDetails".equals(fieldName)) {
deserializedAutoMLJob.taskDetails = AutoMLVertical.fromJson(reader);
} else if ("jobType".equals(fieldName)) {
deserializedAutoMLJob.jobType = JobType.fromString(reader.getString());
- } else if ("resources".equals(fieldName)) {
- deserializedAutoMLJob.resources = JobResourceConfiguration.fromJson(reader);
} else if ("environmentId".equals(fieldName)) {
deserializedAutoMLJob.environmentId = reader.getString();
} else if ("environmentVariables".equals(fieldName)) {
@@ -428,6 +438,8 @@ public static AutoMLJob fromJson(JsonReader jsonReader) throws IOException {
deserializedAutoMLJob.outputs = outputs;
} else if ("queueSettings".equals(fieldName)) {
deserializedAutoMLJob.queueSettings = QueueSettings.fromJson(reader);
+ } else if ("resources".equals(fieldName)) {
+ deserializedAutoMLJob.resources = JobResourceConfiguration.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoMLVertical.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoMLVertical.java
index 322da20d956b3..02ac07f9cec8b 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoMLVertical.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoMLVertical.java
@@ -28,17 +28,17 @@ public class AutoMLVertical implements JsonSerializable {
*/
private LogVerbosity logVerbosity;
- /*
- * [Required] Training data input.
- */
- private MLTableJobInput trainingData;
-
/*
* Target column name: This is prediction values column.
* Also known as label column name in context of classification tasks.
*/
private String targetColumnName;
+ /*
+ * [Required] Training data input.
+ */
+ private MLTableJobInput trainingData;
+
/**
* Creates an instance of AutoMLVertical class.
*/
@@ -75,44 +75,44 @@ public AutoMLVertical withLogVerbosity(LogVerbosity logVerbosity) {
}
/**
- * Get the trainingData property: [Required] Training data input.
+ * Get the targetColumnName property: Target column name: This is prediction values column.
+ * Also known as label column name in context of classification tasks.
*
- * @return the trainingData value.
+ * @return the targetColumnName value.
*/
- public MLTableJobInput trainingData() {
- return this.trainingData;
+ public String targetColumnName() {
+ return this.targetColumnName;
}
/**
- * Set the trainingData property: [Required] Training data input.
+ * Set the targetColumnName property: Target column name: This is prediction values column.
+ * Also known as label column name in context of classification tasks.
*
- * @param trainingData the trainingData value to set.
+ * @param targetColumnName the targetColumnName value to set.
* @return the AutoMLVertical object itself.
*/
- public AutoMLVertical withTrainingData(MLTableJobInput trainingData) {
- this.trainingData = trainingData;
+ public AutoMLVertical withTargetColumnName(String targetColumnName) {
+ this.targetColumnName = targetColumnName;
return this;
}
/**
- * Get the targetColumnName property: Target column name: This is prediction values column.
- * Also known as label column name in context of classification tasks.
+ * Get the trainingData property: [Required] Training data input.
*
- * @return the targetColumnName value.
+ * @return the trainingData value.
*/
- public String targetColumnName() {
- return this.targetColumnName;
+ public MLTableJobInput trainingData() {
+ return this.trainingData;
}
/**
- * Set the targetColumnName property: Target column name: This is prediction values column.
- * Also known as label column name in context of classification tasks.
+ * Set the trainingData property: [Required] Training data input.
*
- * @param targetColumnName the targetColumnName value to set.
+ * @param trainingData the trainingData value to set.
* @return the AutoMLVertical object itself.
*/
- public AutoMLVertical withTargetColumnName(String targetColumnName) {
- this.targetColumnName = targetColumnName;
+ public AutoMLVertical withTrainingData(MLTableJobInput trainingData) {
+ this.trainingData = trainingData;
return this;
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoNCrossValidations.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoNCrossValidations.java
index ee03326107830..911d558f98397 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoNCrossValidations.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoNCrossValidations.java
@@ -43,7 +43,6 @@ public NCrossValidationsMode mode() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoSeasonality.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoSeasonality.java
index 4964bfdf4740f..1de6a2697e7c7 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoSeasonality.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoSeasonality.java
@@ -43,7 +43,6 @@ public SeasonalityMode mode() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoTargetLags.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoTargetLags.java
index db38b2851e9c7..40f57b861f492 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoTargetLags.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoTargetLags.java
@@ -43,7 +43,6 @@ public TargetLagsMode mode() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoTargetRollingWindowSize.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoTargetRollingWindowSize.java
index e323336c4253f..9ae206b7c9149 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoTargetRollingWindowSize.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AutoTargetRollingWindowSize.java
@@ -43,7 +43,6 @@ public TargetRollingWindowSizeMode mode() {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureBlobDatastore.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureBlobDatastore.java
index 472b1f8d525df..ead910fbdf337 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureBlobDatastore.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureBlobDatastore.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.machinelearning.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -47,14 +48,14 @@ public final class AzureBlobDatastore extends DatastoreProperties {
private ServiceDataAccessAuthIdentity serviceDataAccessAuthIdentity;
/*
- * Azure Subscription Id
+ * Azure Resource Group name
*/
- private String subscriptionId;
+ private String resourceGroup;
/*
- * Azure Resource Group name
+ * Azure Subscription Id
*/
- private String resourceGroup;
+ private String subscriptionId;
/*
* Readonly property to indicate if datastore is the workspace default datastore
@@ -181,42 +182,42 @@ public ServiceDataAccessAuthIdentity serviceDataAccessAuthIdentity() {
}
/**
- * Get the subscriptionId property: Azure Subscription Id.
+ * Get the resourceGroup property: Azure Resource Group name.
*
- * @return the subscriptionId value.
+ * @return the resourceGroup value.
*/
- public String subscriptionId() {
- return this.subscriptionId;
+ public String resourceGroup() {
+ return this.resourceGroup;
}
/**
- * Set the subscriptionId property: Azure Subscription Id.
+ * Set the resourceGroup property: Azure Resource Group name.
*
- * @param subscriptionId the subscriptionId value to set.
+ * @param resourceGroup the resourceGroup value to set.
* @return the AzureBlobDatastore object itself.
*/
- public AzureBlobDatastore withSubscriptionId(String subscriptionId) {
- this.subscriptionId = subscriptionId;
+ public AzureBlobDatastore withResourceGroup(String resourceGroup) {
+ this.resourceGroup = resourceGroup;
return this;
}
/**
- * Get the resourceGroup property: Azure Resource Group name.
+ * Get the subscriptionId property: Azure Subscription Id.
*
- * @return the resourceGroup value.
+ * @return the subscriptionId value.
*/
- public String resourceGroup() {
- return this.resourceGroup;
+ public String subscriptionId() {
+ return this.subscriptionId;
}
/**
- * Set the resourceGroup property: Azure Resource Group name.
+ * Set the subscriptionId property: Azure Subscription Id.
*
- * @param resourceGroup the resourceGroup value to set.
+ * @param subscriptionId the subscriptionId value to set.
* @return the AzureBlobDatastore object itself.
*/
- public AzureBlobDatastore withResourceGroup(String resourceGroup) {
- this.resourceGroup = resourceGroup;
+ public AzureBlobDatastore withSubscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
return this;
}
@@ -252,8 +253,8 @@ public AzureBlobDatastore withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public AzureBlobDatastore withTags(Map tags) {
- super.withTags(tags);
+ public AzureBlobDatastore withProperties(Map properties) {
+ super.withProperties(properties);
return this;
}
@@ -261,8 +262,8 @@ public AzureBlobDatastore withTags(Map tags) {
* {@inheritDoc}
*/
@Override
- public AzureBlobDatastore withProperties(Map properties) {
- super.withProperties(properties);
+ public AzureBlobDatastore withTags(Map tags) {
+ super.withTags(tags);
return this;
}
@@ -273,9 +274,16 @@ public AzureBlobDatastore withProperties(Map properties) {
*/
@Override
public void validate() {
- super.validate();
+ if (credentials() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property credentials in model AzureBlobDatastore"));
+ } else {
+ credentials().validate();
+ }
}
+ private static final ClientLogger LOGGER = new ClientLogger(AzureBlobDatastore.class);
+
/**
* {@inheritDoc}
*/
@@ -284,8 +292,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("credentials", credentials());
jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeStringField("datastoreType", this.datastoreType == null ? null : this.datastoreType.toString());
jsonWriter.writeStringField("accountName", this.accountName);
jsonWriter.writeStringField("containerName", this.containerName);
@@ -293,8 +301,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("protocol", this.protocol);
jsonWriter.writeStringField("serviceDataAccessAuthIdentity",
this.serviceDataAccessAuthIdentity == null ? null : this.serviceDataAccessAuthIdentity.toString());
- jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
jsonWriter.writeStringField("resourceGroup", this.resourceGroup);
+ jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
return jsonWriter.writeEndObject();
}
@@ -318,12 +326,12 @@ public static AzureBlobDatastore fromJson(JsonReader jsonReader) throws IOExcept
deserializedAzureBlobDatastore.withCredentials(DatastoreCredentials.fromJson(reader));
} else if ("description".equals(fieldName)) {
deserializedAzureBlobDatastore.withDescription(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedAzureBlobDatastore.withTags(tags);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedAzureBlobDatastore.withProperties(properties);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAzureBlobDatastore.withTags(tags);
} else if ("isDefault".equals(fieldName)) {
deserializedAzureBlobDatastore.isDefault = reader.getNullable(JsonReader::getBoolean);
} else if ("datastoreType".equals(fieldName)) {
@@ -339,10 +347,10 @@ public static AzureBlobDatastore fromJson(JsonReader jsonReader) throws IOExcept
} else if ("serviceDataAccessAuthIdentity".equals(fieldName)) {
deserializedAzureBlobDatastore.serviceDataAccessAuthIdentity
= ServiceDataAccessAuthIdentity.fromString(reader.getString());
- } else if ("subscriptionId".equals(fieldName)) {
- deserializedAzureBlobDatastore.subscriptionId = reader.getString();
} else if ("resourceGroup".equals(fieldName)) {
deserializedAzureBlobDatastore.resourceGroup = reader.getString();
+ } else if ("subscriptionId".equals(fieldName)) {
+ deserializedAzureBlobDatastore.subscriptionId = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDataLakeGen1Datastore.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDataLakeGen1Datastore.java
index 1c46952a1c497..bc639452c5cd5 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDataLakeGen1Datastore.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDataLakeGen1Datastore.java
@@ -22,26 +22,26 @@ public final class AzureDataLakeGen1Datastore extends DatastoreProperties {
*/
private DatastoreType datastoreType = DatastoreType.AZURE_DATA_LAKE_GEN1;
- /*
- * [Required] Azure Data Lake store name.
- */
- private String storeName;
-
/*
* Indicates which identity to use to authenticate service data access to customer's storage.
*/
private ServiceDataAccessAuthIdentity serviceDataAccessAuthIdentity;
/*
- * Azure Subscription Id
+ * [Required] Azure Data Lake store name.
*/
- private String subscriptionId;
+ private String storeName;
/*
* Azure Resource Group name
*/
private String resourceGroup;
+ /*
+ * Azure Subscription Id
+ */
+ private String subscriptionId;
+
/*
* Readonly property to indicate if datastore is the workspace default datastore
*/
@@ -63,26 +63,6 @@ public DatastoreType datastoreType() {
return this.datastoreType;
}
- /**
- * Get the storeName property: [Required] Azure Data Lake store name.
- *
- * @return the storeName value.
- */
- public String storeName() {
- return this.storeName;
- }
-
- /**
- * Set the storeName property: [Required] Azure Data Lake store name.
- *
- * @param storeName the storeName value to set.
- * @return the AzureDataLakeGen1Datastore object itself.
- */
- public AzureDataLakeGen1Datastore withStoreName(String storeName) {
- this.storeName = storeName;
- return this;
- }
-
/**
* Get the serviceDataAccessAuthIdentity property: Indicates which identity to use to authenticate service data
* access to customer's storage.
@@ -107,22 +87,22 @@ public ServiceDataAccessAuthIdentity serviceDataAccessAuthIdentity() {
}
/**
- * Get the subscriptionId property: Azure Subscription Id.
+ * Get the storeName property: [Required] Azure Data Lake store name.
*
- * @return the subscriptionId value.
+ * @return the storeName value.
*/
- public String subscriptionId() {
- return this.subscriptionId;
+ public String storeName() {
+ return this.storeName;
}
/**
- * Set the subscriptionId property: Azure Subscription Id.
+ * Set the storeName property: [Required] Azure Data Lake store name.
*
- * @param subscriptionId the subscriptionId value to set.
+ * @param storeName the storeName value to set.
* @return the AzureDataLakeGen1Datastore object itself.
*/
- public AzureDataLakeGen1Datastore withSubscriptionId(String subscriptionId) {
- this.subscriptionId = subscriptionId;
+ public AzureDataLakeGen1Datastore withStoreName(String storeName) {
+ this.storeName = storeName;
return this;
}
@@ -146,6 +126,26 @@ public AzureDataLakeGen1Datastore withResourceGroup(String resourceGroup) {
return this;
}
+ /**
+ * Get the subscriptionId property: Azure Subscription Id.
+ *
+ * @return the subscriptionId value.
+ */
+ public String subscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /**
+ * Set the subscriptionId property: Azure Subscription Id.
+ *
+ * @param subscriptionId the subscriptionId value to set.
+ * @return the AzureDataLakeGen1Datastore object itself.
+ */
+ public AzureDataLakeGen1Datastore withSubscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
/**
* Get the isDefault property: Readonly property to indicate if datastore is the workspace default datastore.
*
@@ -178,8 +178,8 @@ public AzureDataLakeGen1Datastore withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public AzureDataLakeGen1Datastore withTags(Map tags) {
- super.withTags(tags);
+ public AzureDataLakeGen1Datastore withProperties(Map properties) {
+ super.withProperties(properties);
return this;
}
@@ -187,8 +187,8 @@ public AzureDataLakeGen1Datastore withTags(Map tags) {
* {@inheritDoc}
*/
@Override
- public AzureDataLakeGen1Datastore withProperties(Map properties) {
- super.withProperties(properties);
+ public AzureDataLakeGen1Datastore withTags(Map tags) {
+ super.withTags(tags);
return this;
}
@@ -199,12 +199,18 @@ public AzureDataLakeGen1Datastore withProperties(Map properties)
*/
@Override
public void validate() {
- super.validate();
if (storeName() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
"Missing required property storeName in model AzureDataLakeGen1Datastore"));
}
+ if (credentials() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property credentials in model AzureDataLakeGen1Datastore"));
+ } else {
+ credentials().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureDataLakeGen1Datastore.class);
@@ -217,14 +223,14 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("credentials", credentials());
jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeStringField("storeName", this.storeName);
jsonWriter.writeStringField("datastoreType", this.datastoreType == null ? null : this.datastoreType.toString());
jsonWriter.writeStringField("serviceDataAccessAuthIdentity",
this.serviceDataAccessAuthIdentity == null ? null : this.serviceDataAccessAuthIdentity.toString());
- jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
jsonWriter.writeStringField("resourceGroup", this.resourceGroup);
+ jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
return jsonWriter.writeEndObject();
}
@@ -248,12 +254,12 @@ public static AzureDataLakeGen1Datastore fromJson(JsonReader jsonReader) throws
deserializedAzureDataLakeGen1Datastore.withCredentials(DatastoreCredentials.fromJson(reader));
} else if ("description".equals(fieldName)) {
deserializedAzureDataLakeGen1Datastore.withDescription(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedAzureDataLakeGen1Datastore.withTags(tags);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedAzureDataLakeGen1Datastore.withProperties(properties);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAzureDataLakeGen1Datastore.withTags(tags);
} else if ("isDefault".equals(fieldName)) {
deserializedAzureDataLakeGen1Datastore.isDefault = reader.getNullable(JsonReader::getBoolean);
} else if ("storeName".equals(fieldName)) {
@@ -263,10 +269,10 @@ public static AzureDataLakeGen1Datastore fromJson(JsonReader jsonReader) throws
} else if ("serviceDataAccessAuthIdentity".equals(fieldName)) {
deserializedAzureDataLakeGen1Datastore.serviceDataAccessAuthIdentity
= ServiceDataAccessAuthIdentity.fromString(reader.getString());
- } else if ("subscriptionId".equals(fieldName)) {
- deserializedAzureDataLakeGen1Datastore.subscriptionId = reader.getString();
} else if ("resourceGroup".equals(fieldName)) {
deserializedAzureDataLakeGen1Datastore.resourceGroup = reader.getString();
+ } else if ("subscriptionId".equals(fieldName)) {
+ deserializedAzureDataLakeGen1Datastore.subscriptionId = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDataLakeGen2Datastore.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDataLakeGen2Datastore.java
index cdf22c3f8a1cd..3c488dbdadc33 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDataLakeGen2Datastore.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDataLakeGen2Datastore.java
@@ -22,11 +22,6 @@ public final class AzureDataLakeGen2Datastore extends DatastoreProperties {
*/
private DatastoreType datastoreType = DatastoreType.AZURE_DATA_LAKE_GEN2;
- /*
- * [Required] The name of the Data Lake Gen2 filesystem.
- */
- private String filesystem;
-
/*
* [Required] Storage account name.
*/
@@ -37,6 +32,11 @@ public final class AzureDataLakeGen2Datastore extends DatastoreProperties {
*/
private String endpoint;
+ /*
+ * [Required] The name of the Data Lake Gen2 filesystem.
+ */
+ private String filesystem;
+
/*
* Protocol used to communicate with the storage account.
*/
@@ -48,14 +48,14 @@ public final class AzureDataLakeGen2Datastore extends DatastoreProperties {
private ServiceDataAccessAuthIdentity serviceDataAccessAuthIdentity;
/*
- * Azure Subscription Id
+ * Azure Resource Group name
*/
- private String subscriptionId;
+ private String resourceGroup;
/*
- * Azure Resource Group name
+ * Azure Subscription Id
*/
- private String resourceGroup;
+ private String subscriptionId;
/*
* Readonly property to indicate if datastore is the workspace default datastore
@@ -78,26 +78,6 @@ public DatastoreType datastoreType() {
return this.datastoreType;
}
- /**
- * Get the filesystem property: [Required] The name of the Data Lake Gen2 filesystem.
- *
- * @return the filesystem value.
- */
- public String filesystem() {
- return this.filesystem;
- }
-
- /**
- * Set the filesystem property: [Required] The name of the Data Lake Gen2 filesystem.
- *
- * @param filesystem the filesystem value to set.
- * @return the AzureDataLakeGen2Datastore object itself.
- */
- public AzureDataLakeGen2Datastore withFilesystem(String filesystem) {
- this.filesystem = filesystem;
- return this;
- }
-
/**
* Get the accountName property: [Required] Storage account name.
*
@@ -138,6 +118,26 @@ public AzureDataLakeGen2Datastore withEndpoint(String endpoint) {
return this;
}
+ /**
+ * Get the filesystem property: [Required] The name of the Data Lake Gen2 filesystem.
+ *
+ * @return the filesystem value.
+ */
+ public String filesystem() {
+ return this.filesystem;
+ }
+
+ /**
+ * Set the filesystem property: [Required] The name of the Data Lake Gen2 filesystem.
+ *
+ * @param filesystem the filesystem value to set.
+ * @return the AzureDataLakeGen2Datastore object itself.
+ */
+ public AzureDataLakeGen2Datastore withFilesystem(String filesystem) {
+ this.filesystem = filesystem;
+ return this;
+ }
+
/**
* Get the protocol property: Protocol used to communicate with the storage account.
*
@@ -182,42 +182,42 @@ public ServiceDataAccessAuthIdentity serviceDataAccessAuthIdentity() {
}
/**
- * Get the subscriptionId property: Azure Subscription Id.
+ * Get the resourceGroup property: Azure Resource Group name.
*
- * @return the subscriptionId value.
+ * @return the resourceGroup value.
*/
- public String subscriptionId() {
- return this.subscriptionId;
+ public String resourceGroup() {
+ return this.resourceGroup;
}
/**
- * Set the subscriptionId property: Azure Subscription Id.
+ * Set the resourceGroup property: Azure Resource Group name.
*
- * @param subscriptionId the subscriptionId value to set.
+ * @param resourceGroup the resourceGroup value to set.
* @return the AzureDataLakeGen2Datastore object itself.
*/
- public AzureDataLakeGen2Datastore withSubscriptionId(String subscriptionId) {
- this.subscriptionId = subscriptionId;
+ public AzureDataLakeGen2Datastore withResourceGroup(String resourceGroup) {
+ this.resourceGroup = resourceGroup;
return this;
}
/**
- * Get the resourceGroup property: Azure Resource Group name.
+ * Get the subscriptionId property: Azure Subscription Id.
*
- * @return the resourceGroup value.
+ * @return the subscriptionId value.
*/
- public String resourceGroup() {
- return this.resourceGroup;
+ public String subscriptionId() {
+ return this.subscriptionId;
}
/**
- * Set the resourceGroup property: Azure Resource Group name.
+ * Set the subscriptionId property: Azure Subscription Id.
*
- * @param resourceGroup the resourceGroup value to set.
+ * @param subscriptionId the subscriptionId value to set.
* @return the AzureDataLakeGen2Datastore object itself.
*/
- public AzureDataLakeGen2Datastore withResourceGroup(String resourceGroup) {
- this.resourceGroup = resourceGroup;
+ public AzureDataLakeGen2Datastore withSubscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
return this;
}
@@ -253,8 +253,8 @@ public AzureDataLakeGen2Datastore withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public AzureDataLakeGen2Datastore withTags(Map tags) {
- super.withTags(tags);
+ public AzureDataLakeGen2Datastore withProperties(Map properties) {
+ super.withProperties(properties);
return this;
}
@@ -262,8 +262,8 @@ public AzureDataLakeGen2Datastore withTags(Map tags) {
* {@inheritDoc}
*/
@Override
- public AzureDataLakeGen2Datastore withProperties(Map properties) {
- super.withProperties(properties);
+ public AzureDataLakeGen2Datastore withTags(Map tags) {
+ super.withTags(tags);
return this;
}
@@ -274,16 +274,22 @@ public AzureDataLakeGen2Datastore withProperties(Map properties)
*/
@Override
public void validate() {
- super.validate();
+ if (accountName() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property accountName in model AzureDataLakeGen2Datastore"));
+ }
if (filesystem() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
"Missing required property filesystem in model AzureDataLakeGen2Datastore"));
}
- if (accountName() == null) {
+ if (credentials() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException(
- "Missing required property accountName in model AzureDataLakeGen2Datastore"));
+ "Missing required property credentials in model AzureDataLakeGen2Datastore"));
+ } else {
+ credentials().validate();
}
}
@@ -297,17 +303,17 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("credentials", credentials());
jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
- jsonWriter.writeStringField("filesystem", this.filesystem);
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeStringField("accountName", this.accountName);
+ jsonWriter.writeStringField("filesystem", this.filesystem);
jsonWriter.writeStringField("datastoreType", this.datastoreType == null ? null : this.datastoreType.toString());
jsonWriter.writeStringField("endpoint", this.endpoint);
jsonWriter.writeStringField("protocol", this.protocol);
jsonWriter.writeStringField("serviceDataAccessAuthIdentity",
this.serviceDataAccessAuthIdentity == null ? null : this.serviceDataAccessAuthIdentity.toString());
- jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
jsonWriter.writeStringField("resourceGroup", this.resourceGroup);
+ jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
return jsonWriter.writeEndObject();
}
@@ -331,18 +337,18 @@ public static AzureDataLakeGen2Datastore fromJson(JsonReader jsonReader) throws
deserializedAzureDataLakeGen2Datastore.withCredentials(DatastoreCredentials.fromJson(reader));
} else if ("description".equals(fieldName)) {
deserializedAzureDataLakeGen2Datastore.withDescription(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedAzureDataLakeGen2Datastore.withTags(tags);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedAzureDataLakeGen2Datastore.withProperties(properties);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAzureDataLakeGen2Datastore.withTags(tags);
} else if ("isDefault".equals(fieldName)) {
deserializedAzureDataLakeGen2Datastore.isDefault = reader.getNullable(JsonReader::getBoolean);
- } else if ("filesystem".equals(fieldName)) {
- deserializedAzureDataLakeGen2Datastore.filesystem = reader.getString();
} else if ("accountName".equals(fieldName)) {
deserializedAzureDataLakeGen2Datastore.accountName = reader.getString();
+ } else if ("filesystem".equals(fieldName)) {
+ deserializedAzureDataLakeGen2Datastore.filesystem = reader.getString();
} else if ("datastoreType".equals(fieldName)) {
deserializedAzureDataLakeGen2Datastore.datastoreType = DatastoreType.fromString(reader.getString());
} else if ("endpoint".equals(fieldName)) {
@@ -352,10 +358,10 @@ public static AzureDataLakeGen2Datastore fromJson(JsonReader jsonReader) throws
} else if ("serviceDataAccessAuthIdentity".equals(fieldName)) {
deserializedAzureDataLakeGen2Datastore.serviceDataAccessAuthIdentity
= ServiceDataAccessAuthIdentity.fromString(reader.getString());
- } else if ("subscriptionId".equals(fieldName)) {
- deserializedAzureDataLakeGen2Datastore.subscriptionId = reader.getString();
} else if ("resourceGroup".equals(fieldName)) {
deserializedAzureDataLakeGen2Datastore.resourceGroup = reader.getString();
+ } else if ("subscriptionId".equals(fieldName)) {
+ deserializedAzureDataLakeGen2Datastore.subscriptionId = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDatastore.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDatastore.java
index f358e4ee4c357..88a1b30f48472 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDatastore.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDatastore.java
@@ -17,14 +17,14 @@
@Fluent
public class AzureDatastore implements JsonSerializable {
/*
- * Azure Subscription Id
+ * Azure Resource Group name
*/
- private String subscriptionId;
+ private String resourceGroup;
/*
- * Azure Resource Group name
+ * Azure Subscription Id
*/
- private String resourceGroup;
+ private String subscriptionId;
/**
* Creates an instance of AzureDatastore class.
@@ -33,42 +33,42 @@ public AzureDatastore() {
}
/**
- * Get the subscriptionId property: Azure Subscription Id.
+ * Get the resourceGroup property: Azure Resource Group name.
*
- * @return the subscriptionId value.
+ * @return the resourceGroup value.
*/
- public String subscriptionId() {
- return this.subscriptionId;
+ public String resourceGroup() {
+ return this.resourceGroup;
}
/**
- * Set the subscriptionId property: Azure Subscription Id.
+ * Set the resourceGroup property: Azure Resource Group name.
*
- * @param subscriptionId the subscriptionId value to set.
+ * @param resourceGroup the resourceGroup value to set.
* @return the AzureDatastore object itself.
*/
- public AzureDatastore withSubscriptionId(String subscriptionId) {
- this.subscriptionId = subscriptionId;
+ public AzureDatastore withResourceGroup(String resourceGroup) {
+ this.resourceGroup = resourceGroup;
return this;
}
/**
- * Get the resourceGroup property: Azure Resource Group name.
+ * Get the subscriptionId property: Azure Subscription Id.
*
- * @return the resourceGroup value.
+ * @return the subscriptionId value.
*/
- public String resourceGroup() {
- return this.resourceGroup;
+ public String subscriptionId() {
+ return this.subscriptionId;
}
/**
- * Set the resourceGroup property: Azure Resource Group name.
+ * Set the subscriptionId property: Azure Subscription Id.
*
- * @param resourceGroup the resourceGroup value to set.
+ * @param subscriptionId the subscriptionId value to set.
* @return the AzureDatastore object itself.
*/
- public AzureDatastore withResourceGroup(String resourceGroup) {
- this.resourceGroup = resourceGroup;
+ public AzureDatastore withSubscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
return this;
}
@@ -86,8 +86,8 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
jsonWriter.writeStringField("resourceGroup", this.resourceGroup);
+ jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
return jsonWriter.writeEndObject();
}
@@ -106,10 +106,10 @@ public static AzureDatastore fromJson(JsonReader jsonReader) throws IOException
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("subscriptionId".equals(fieldName)) {
- deserializedAzureDatastore.subscriptionId = reader.getString();
- } else if ("resourceGroup".equals(fieldName)) {
+ if ("resourceGroup".equals(fieldName)) {
deserializedAzureDatastore.resourceGroup = reader.getString();
+ } else if ("subscriptionId".equals(fieldName)) {
+ deserializedAzureDatastore.subscriptionId = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDevOpsWebhook.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDevOpsWebhook.java
index d9c92e528d79c..ddb3aff211fe6 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDevOpsWebhook.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureDevOpsWebhook.java
@@ -52,7 +52,6 @@ public AzureDevOpsWebhook withEventType(String eventType) {
*/
@Override
public void validate() {
- super.validate();
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureFileDatastore.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureFileDatastore.java
index 6896cf837ca53..4013d001d80cd 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureFileDatastore.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/AzureFileDatastore.java
@@ -28,14 +28,14 @@ public final class AzureFileDatastore extends DatastoreProperties {
private String accountName;
/*
- * [Required] The name of the Azure file share that the datastore points to.
+ * Azure cloud endpoint for the storage account.
*/
- private String fileShareName;
+ private String endpoint;
/*
- * Azure cloud endpoint for the storage account.
+ * [Required] The name of the Azure file share that the datastore points to.
*/
- private String endpoint;
+ private String fileShareName;
/*
* Protocol used to communicate with the storage account.
@@ -48,14 +48,14 @@ public final class AzureFileDatastore extends DatastoreProperties {
private ServiceDataAccessAuthIdentity serviceDataAccessAuthIdentity;
/*
- * Azure Subscription Id
+ * Azure Resource Group name
*/
- private String subscriptionId;
+ private String resourceGroup;
/*
- * Azure Resource Group name
+ * Azure Subscription Id
*/
- private String resourceGroup;
+ private String subscriptionId;
/*
* Readonly property to indicate if datastore is the workspace default datastore
@@ -99,42 +99,42 @@ public AzureFileDatastore withAccountName(String accountName) {
}
/**
- * Get the fileShareName property: [Required] The name of the Azure file share that the datastore points to.
+ * Get the endpoint property: Azure cloud endpoint for the storage account.
*
- * @return the fileShareName value.
+ * @return the endpoint value.
*/
- public String fileShareName() {
- return this.fileShareName;
+ public String endpoint() {
+ return this.endpoint;
}
/**
- * Set the fileShareName property: [Required] The name of the Azure file share that the datastore points to.
+ * Set the endpoint property: Azure cloud endpoint for the storage account.
*
- * @param fileShareName the fileShareName value to set.
+ * @param endpoint the endpoint value to set.
* @return the AzureFileDatastore object itself.
*/
- public AzureFileDatastore withFileShareName(String fileShareName) {
- this.fileShareName = fileShareName;
+ public AzureFileDatastore withEndpoint(String endpoint) {
+ this.endpoint = endpoint;
return this;
}
/**
- * Get the endpoint property: Azure cloud endpoint for the storage account.
+ * Get the fileShareName property: [Required] The name of the Azure file share that the datastore points to.
*
- * @return the endpoint value.
+ * @return the fileShareName value.
*/
- public String endpoint() {
- return this.endpoint;
+ public String fileShareName() {
+ return this.fileShareName;
}
/**
- * Set the endpoint property: Azure cloud endpoint for the storage account.
+ * Set the fileShareName property: [Required] The name of the Azure file share that the datastore points to.
*
- * @param endpoint the endpoint value to set.
+ * @param fileShareName the fileShareName value to set.
* @return the AzureFileDatastore object itself.
*/
- public AzureFileDatastore withEndpoint(String endpoint) {
- this.endpoint = endpoint;
+ public AzureFileDatastore withFileShareName(String fileShareName) {
+ this.fileShareName = fileShareName;
return this;
}
@@ -182,42 +182,42 @@ public ServiceDataAccessAuthIdentity serviceDataAccessAuthIdentity() {
}
/**
- * Get the subscriptionId property: Azure Subscription Id.
+ * Get the resourceGroup property: Azure Resource Group name.
*
- * @return the subscriptionId value.
+ * @return the resourceGroup value.
*/
- public String subscriptionId() {
- return this.subscriptionId;
+ public String resourceGroup() {
+ return this.resourceGroup;
}
/**
- * Set the subscriptionId property: Azure Subscription Id.
+ * Set the resourceGroup property: Azure Resource Group name.
*
- * @param subscriptionId the subscriptionId value to set.
+ * @param resourceGroup the resourceGroup value to set.
* @return the AzureFileDatastore object itself.
*/
- public AzureFileDatastore withSubscriptionId(String subscriptionId) {
- this.subscriptionId = subscriptionId;
+ public AzureFileDatastore withResourceGroup(String resourceGroup) {
+ this.resourceGroup = resourceGroup;
return this;
}
/**
- * Get the resourceGroup property: Azure Resource Group name.
+ * Get the subscriptionId property: Azure Subscription Id.
*
- * @return the resourceGroup value.
+ * @return the subscriptionId value.
*/
- public String resourceGroup() {
- return this.resourceGroup;
+ public String subscriptionId() {
+ return this.subscriptionId;
}
/**
- * Set the resourceGroup property: Azure Resource Group name.
+ * Set the subscriptionId property: Azure Subscription Id.
*
- * @param resourceGroup the resourceGroup value to set.
+ * @param subscriptionId the subscriptionId value to set.
* @return the AzureFileDatastore object itself.
*/
- public AzureFileDatastore withResourceGroup(String resourceGroup) {
- this.resourceGroup = resourceGroup;
+ public AzureFileDatastore withSubscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
return this;
}
@@ -253,8 +253,8 @@ public AzureFileDatastore withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public AzureFileDatastore withTags(Map tags) {
- super.withTags(tags);
+ public AzureFileDatastore withProperties(Map properties) {
+ super.withProperties(properties);
return this;
}
@@ -262,8 +262,8 @@ public AzureFileDatastore withTags(Map tags) {
* {@inheritDoc}
*/
@Override
- public AzureFileDatastore withProperties(Map properties) {
- super.withProperties(properties);
+ public AzureFileDatastore withTags(Map tags) {
+ super.withTags(tags);
return this;
}
@@ -274,7 +274,6 @@ public AzureFileDatastore withProperties(Map properties) {
*/
@Override
public void validate() {
- super.validate();
if (accountName() == null) {
throw LOGGER.atError()
.log(new IllegalArgumentException("Missing required property accountName in model AzureFileDatastore"));
@@ -284,6 +283,12 @@ public void validate() {
.log(new IllegalArgumentException(
"Missing required property fileShareName in model AzureFileDatastore"));
}
+ if (credentials() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException("Missing required property credentials in model AzureFileDatastore"));
+ } else {
+ credentials().validate();
+ }
}
private static final ClientLogger LOGGER = new ClientLogger(AzureFileDatastore.class);
@@ -296,8 +301,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeJsonField("credentials", credentials());
jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
+ jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element));
jsonWriter.writeStringField("accountName", this.accountName);
jsonWriter.writeStringField("fileShareName", this.fileShareName);
jsonWriter.writeStringField("datastoreType", this.datastoreType == null ? null : this.datastoreType.toString());
@@ -305,8 +310,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("protocol", this.protocol);
jsonWriter.writeStringField("serviceDataAccessAuthIdentity",
this.serviceDataAccessAuthIdentity == null ? null : this.serviceDataAccessAuthIdentity.toString());
- jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
jsonWriter.writeStringField("resourceGroup", this.resourceGroup);
+ jsonWriter.writeStringField("subscriptionId", this.subscriptionId);
return jsonWriter.writeEndObject();
}
@@ -330,12 +335,12 @@ public static AzureFileDatastore fromJson(JsonReader jsonReader) throws IOExcept
deserializedAzureFileDatastore.withCredentials(DatastoreCredentials.fromJson(reader));
} else if ("description".equals(fieldName)) {
deserializedAzureFileDatastore.withDescription(reader.getString());
- } else if ("tags".equals(fieldName)) {
- Map tags = reader.readMap(reader1 -> reader1.getString());
- deserializedAzureFileDatastore.withTags(tags);
} else if ("properties".equals(fieldName)) {
Map properties = reader.readMap(reader1 -> reader1.getString());
deserializedAzureFileDatastore.withProperties(properties);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedAzureFileDatastore.withTags(tags);
} else if ("isDefault".equals(fieldName)) {
deserializedAzureFileDatastore.isDefault = reader.getNullable(JsonReader::getBoolean);
} else if ("accountName".equals(fieldName)) {
@@ -351,10 +356,10 @@ public static AzureFileDatastore fromJson(JsonReader jsonReader) throws IOExcept
} else if ("serviceDataAccessAuthIdentity".equals(fieldName)) {
deserializedAzureFileDatastore.serviceDataAccessAuthIdentity
= ServiceDataAccessAuthIdentity.fromString(reader.getString());
- } else if ("subscriptionId".equals(fieldName)) {
- deserializedAzureFileDatastore.subscriptionId = reader.getString();
} else if ("resourceGroup".equals(fieldName)) {
deserializedAzureFileDatastore.resourceGroup = reader.getString();
+ } else if ("subscriptionId".equals(fieldName)) {
+ deserializedAzureFileDatastore.subscriptionId = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BanditPolicy.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BanditPolicy.java
index a1a49af990d97..1a2a99524175c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BanditPolicy.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BanditPolicy.java
@@ -21,14 +21,14 @@ public final class BanditPolicy extends EarlyTerminationPolicy {
private EarlyTerminationPolicyType policyType = EarlyTerminationPolicyType.BANDIT;
/*
- * Ratio of the allowed distance from the best performing run.
+ * Absolute distance allowed from the best performing run.
*/
- private Float slackFactor;
+ private Float slackAmount;
/*
- * Absolute distance allowed from the best performing run.
+ * Ratio of the allowed distance from the best performing run.
*/
- private Float slackAmount;
+ private Float slackFactor;
/**
* Creates an instance of BanditPolicy class.
@@ -47,42 +47,42 @@ public EarlyTerminationPolicyType policyType() {
}
/**
- * Get the slackFactor property: Ratio of the allowed distance from the best performing run.
+ * Get the slackAmount property: Absolute distance allowed from the best performing run.
*
- * @return the slackFactor value.
+ * @return the slackAmount value.
*/
- public Float slackFactor() {
- return this.slackFactor;
+ public Float slackAmount() {
+ return this.slackAmount;
}
/**
- * Set the slackFactor property: Ratio of the allowed distance from the best performing run.
+ * Set the slackAmount property: Absolute distance allowed from the best performing run.
*
- * @param slackFactor the slackFactor value to set.
+ * @param slackAmount the slackAmount value to set.
* @return the BanditPolicy object itself.
*/
- public BanditPolicy withSlackFactor(Float slackFactor) {
- this.slackFactor = slackFactor;
+ public BanditPolicy withSlackAmount(Float slackAmount) {
+ this.slackAmount = slackAmount;
return this;
}
/**
- * Get the slackAmount property: Absolute distance allowed from the best performing run.
+ * Get the slackFactor property: Ratio of the allowed distance from the best performing run.
*
- * @return the slackAmount value.
+ * @return the slackFactor value.
*/
- public Float slackAmount() {
- return this.slackAmount;
+ public Float slackFactor() {
+ return this.slackFactor;
}
/**
- * Set the slackAmount property: Absolute distance allowed from the best performing run.
+ * Set the slackFactor property: Ratio of the allowed distance from the best performing run.
*
- * @param slackAmount the slackAmount value to set.
+ * @param slackFactor the slackFactor value to set.
* @return the BanditPolicy object itself.
*/
- public BanditPolicy withSlackAmount(Float slackAmount) {
- this.slackAmount = slackAmount;
+ public BanditPolicy withSlackFactor(Float slackFactor) {
+ this.slackFactor = slackFactor;
return this;
}
@@ -90,8 +90,8 @@ public BanditPolicy withSlackAmount(Float slackAmount) {
* {@inheritDoc}
*/
@Override
- public BanditPolicy withEvaluationInterval(Integer evaluationInterval) {
- super.withEvaluationInterval(evaluationInterval);
+ public BanditPolicy withDelayEvaluation(Integer delayEvaluation) {
+ super.withDelayEvaluation(delayEvaluation);
return this;
}
@@ -99,8 +99,8 @@ public BanditPolicy withEvaluationInterval(Integer evaluationInterval) {
* {@inheritDoc}
*/
@Override
- public BanditPolicy withDelayEvaluation(Integer delayEvaluation) {
- super.withDelayEvaluation(delayEvaluation);
+ public BanditPolicy withEvaluationInterval(Integer evaluationInterval) {
+ super.withEvaluationInterval(evaluationInterval);
return this;
}
@@ -111,7 +111,6 @@ public BanditPolicy withDelayEvaluation(Integer delayEvaluation) {
*/
@Override
public void validate() {
- super.validate();
}
/**
@@ -120,11 +119,11 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeNumberField("evaluationInterval", evaluationInterval());
jsonWriter.writeNumberField("delayEvaluation", delayEvaluation());
+ jsonWriter.writeNumberField("evaluationInterval", evaluationInterval());
jsonWriter.writeStringField("policyType", this.policyType == null ? null : this.policyType.toString());
- jsonWriter.writeNumberField("slackFactor", this.slackFactor);
jsonWriter.writeNumberField("slackAmount", this.slackAmount);
+ jsonWriter.writeNumberField("slackFactor", this.slackFactor);
return jsonWriter.writeEndObject();
}
@@ -143,16 +142,16 @@ public static BanditPolicy fromJson(JsonReader jsonReader) throws IOException {
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("evaluationInterval".equals(fieldName)) {
- deserializedBanditPolicy.withEvaluationInterval(reader.getNullable(JsonReader::getInt));
- } else if ("delayEvaluation".equals(fieldName)) {
+ if ("delayEvaluation".equals(fieldName)) {
deserializedBanditPolicy.withDelayEvaluation(reader.getNullable(JsonReader::getInt));
+ } else if ("evaluationInterval".equals(fieldName)) {
+ deserializedBanditPolicy.withEvaluationInterval(reader.getNullable(JsonReader::getInt));
} else if ("policyType".equals(fieldName)) {
deserializedBanditPolicy.policyType = EarlyTerminationPolicyType.fromString(reader.getString());
- } else if ("slackFactor".equals(fieldName)) {
- deserializedBanditPolicy.slackFactor = reader.getNullable(JsonReader::getFloat);
} else if ("slackAmount".equals(fieldName)) {
deserializedBanditPolicy.slackAmount = reader.getNullable(JsonReader::getFloat);
+ } else if ("slackFactor".equals(fieldName)) {
+ deserializedBanditPolicy.slackFactor = reader.getNullable(JsonReader::getFloat);
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeployment.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeployment.java
index b79d166cd256c..8f626dc515f4c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeployment.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeployment.java
@@ -50,11 +50,11 @@ public interface BatchDeployment {
Map tags();
/**
- * Gets the properties property: [Required] Additional attributes of the entity.
+ * Gets the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @return the properties value.
+ * @return the identity value.
*/
- BatchDeploymentProperties properties();
+ ManagedServiceIdentity identity();
/**
* Gets the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of
@@ -65,11 +65,11 @@ public interface BatchDeployment {
String kind();
/**
- * Gets the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Gets the properties property: [Required] Additional attributes of the entity.
*
- * @return the identity value.
+ * @return the properties value.
*/
- ManagedServiceIdentity identity();
+ BatchDeploymentProperties properties();
/**
* Gets the sku property: Sku details required for ARM contract for Autoscaling.
@@ -184,8 +184,8 @@ interface WithProperties {
* The stage of the BatchDeployment definition which contains all the minimum required properties for the
* resource to be created, but also allows for any other optional properties to be specified.
*/
- interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithKind,
- DefinitionStages.WithIdentity, DefinitionStages.WithSku {
+ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity,
+ DefinitionStages.WithKind, DefinitionStages.WithSku {
/**
* Executes the create request.
*
@@ -216,32 +216,32 @@ interface WithTags {
}
/**
- * The stage of the BatchDeployment definition allowing to specify kind.
+ * The stage of the BatchDeployment definition allowing to specify identity.
*/
- interface WithKind {
+ interface WithIdentity {
/**
- * Specifies the kind property: Metadata used by portal/tooling/etc to render different UX experiences for
- * resources of the same type..
+ * Specifies the identity property: Managed service identity (system assigned and/or user assigned
+ * identities).
*
- * @param kind Metadata used by portal/tooling/etc to render different UX experiences for resources of the
- * same type.
+ * @param identity Managed service identity (system assigned and/or user assigned identities).
* @return the next definition stage.
*/
- WithCreate withKind(String kind);
+ WithCreate withIdentity(ManagedServiceIdentity identity);
}
/**
- * The stage of the BatchDeployment definition allowing to specify identity.
+ * The stage of the BatchDeployment definition allowing to specify kind.
*/
- interface WithIdentity {
+ interface WithKind {
/**
- * Specifies the identity property: Managed service identity (system assigned and/or user assigned
- * identities).
+ * Specifies the kind property: Metadata used by portal/tooling/etc to render different UX experiences for
+ * resources of the same type..
*
- * @param identity Managed service identity (system assigned and/or user assigned identities).
+ * @param kind Metadata used by portal/tooling/etc to render different UX experiences for resources of the
+ * same type.
* @return the next definition stage.
*/
- WithCreate withIdentity(ManagedServiceIdentity identity);
+ WithCreate withKind(String kind);
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeploymentProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeploymentProperties.java
index c42c99f95b9cd..37b6e2da31916 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeploymentProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeploymentProperties.java
@@ -36,10 +36,14 @@ public final class BatchDeploymentProperties extends EndpointDeploymentPropertie
private Integer errorThreshold;
/*
- * Retry Settings for the batch inference operation.
- * If not provided, will default to the defaults defined in BatchRetrySettings.
+ * Logging level for batch inference operation.
*/
- private BatchRetrySettings retrySettings;
+ private BatchLoggingLevel loggingLevel;
+
+ /*
+ * Indicates maximum number of parallelism per instance.
+ */
+ private Integer maxConcurrencyPerInstance;
/*
* Size of the mini-batch passed to each batch invocation.
@@ -48,21 +52,11 @@ public final class BatchDeploymentProperties extends EndpointDeploymentPropertie
*/
private Long miniBatchSize;
- /*
- * Logging level for batch inference operation.
- */
- private BatchLoggingLevel loggingLevel;
-
/*
* Reference to the model asset for the endpoint deployment.
*/
private AssetReferenceBase model;
- /*
- * Indicates maximum number of parallelism per instance.
- */
- private Integer maxConcurrencyPerInstance;
-
/*
* Indicates how the output will be organized.
*/
@@ -73,6 +67,11 @@ public final class BatchDeploymentProperties extends EndpointDeploymentPropertie
*/
private String outputFileName;
+ /*
+ * Provisioning state for the endpoint deployment.
+ */
+ private DeploymentProvisioningState provisioningState;
+
/*
* Indicates compute configuration for the job.
* If not provided, will default to the defaults defined in ResourceConfiguration.
@@ -80,9 +79,10 @@ public final class BatchDeploymentProperties extends EndpointDeploymentPropertie
private DeploymentResourceConfiguration resources;
/*
- * Provisioning state for the endpoint deployment.
+ * Retry Settings for the batch inference operation.
+ * If not provided, will default to the defaults defined in BatchRetrySettings.
*/
- private DeploymentProvisioningState provisioningState;
+ private BatchRetrySettings retrySettings;
/**
* Creates an instance of BatchDeploymentProperties class.
@@ -159,68 +159,66 @@ public BatchDeploymentProperties withErrorThreshold(Integer errorThreshold) {
}
/**
- * Get the retrySettings property: Retry Settings for the batch inference operation.
- * If not provided, will default to the defaults defined in BatchRetrySettings.
+ * Get the loggingLevel property: Logging level for batch inference operation.
*
- * @return the retrySettings value.
+ * @return the loggingLevel value.
*/
- public BatchRetrySettings retrySettings() {
- return this.retrySettings;
+ public BatchLoggingLevel loggingLevel() {
+ return this.loggingLevel;
}
/**
- * Set the retrySettings property: Retry Settings for the batch inference operation.
- * If not provided, will default to the defaults defined in BatchRetrySettings.
+ * Set the loggingLevel property: Logging level for batch inference operation.
*
- * @param retrySettings the retrySettings value to set.
+ * @param loggingLevel the loggingLevel value to set.
* @return the BatchDeploymentProperties object itself.
*/
- public BatchDeploymentProperties withRetrySettings(BatchRetrySettings retrySettings) {
- this.retrySettings = retrySettings;
+ public BatchDeploymentProperties withLoggingLevel(BatchLoggingLevel loggingLevel) {
+ this.loggingLevel = loggingLevel;
return this;
}
/**
- * Get the miniBatchSize property: Size of the mini-batch passed to each batch invocation.
- * For FileDataset, this is the number of files per mini-batch.
- * For TabularDataset, this is the size of the records in bytes, per mini-batch.
+ * Get the maxConcurrencyPerInstance property: Indicates maximum number of parallelism per instance.
*
- * @return the miniBatchSize value.
+ * @return the maxConcurrencyPerInstance value.
*/
- public Long miniBatchSize() {
- return this.miniBatchSize;
+ public Integer maxConcurrencyPerInstance() {
+ return this.maxConcurrencyPerInstance;
}
/**
- * Set the miniBatchSize property: Size of the mini-batch passed to each batch invocation.
- * For FileDataset, this is the number of files per mini-batch.
- * For TabularDataset, this is the size of the records in bytes, per mini-batch.
+ * Set the maxConcurrencyPerInstance property: Indicates maximum number of parallelism per instance.
*
- * @param miniBatchSize the miniBatchSize value to set.
+ * @param maxConcurrencyPerInstance the maxConcurrencyPerInstance value to set.
* @return the BatchDeploymentProperties object itself.
*/
- public BatchDeploymentProperties withMiniBatchSize(Long miniBatchSize) {
- this.miniBatchSize = miniBatchSize;
+ public BatchDeploymentProperties withMaxConcurrencyPerInstance(Integer maxConcurrencyPerInstance) {
+ this.maxConcurrencyPerInstance = maxConcurrencyPerInstance;
return this;
}
/**
- * Get the loggingLevel property: Logging level for batch inference operation.
+ * Get the miniBatchSize property: Size of the mini-batch passed to each batch invocation.
+ * For FileDataset, this is the number of files per mini-batch.
+ * For TabularDataset, this is the size of the records in bytes, per mini-batch.
*
- * @return the loggingLevel value.
+ * @return the miniBatchSize value.
*/
- public BatchLoggingLevel loggingLevel() {
- return this.loggingLevel;
+ public Long miniBatchSize() {
+ return this.miniBatchSize;
}
/**
- * Set the loggingLevel property: Logging level for batch inference operation.
+ * Set the miniBatchSize property: Size of the mini-batch passed to each batch invocation.
+ * For FileDataset, this is the number of files per mini-batch.
+ * For TabularDataset, this is the size of the records in bytes, per mini-batch.
*
- * @param loggingLevel the loggingLevel value to set.
+ * @param miniBatchSize the miniBatchSize value to set.
* @return the BatchDeploymentProperties object itself.
*/
- public BatchDeploymentProperties withLoggingLevel(BatchLoggingLevel loggingLevel) {
- this.loggingLevel = loggingLevel;
+ public BatchDeploymentProperties withMiniBatchSize(Long miniBatchSize) {
+ this.miniBatchSize = miniBatchSize;
return this;
}
@@ -244,26 +242,6 @@ public BatchDeploymentProperties withModel(AssetReferenceBase model) {
return this;
}
- /**
- * Get the maxConcurrencyPerInstance property: Indicates maximum number of parallelism per instance.
- *
- * @return the maxConcurrencyPerInstance value.
- */
- public Integer maxConcurrencyPerInstance() {
- return this.maxConcurrencyPerInstance;
- }
-
- /**
- * Set the maxConcurrencyPerInstance property: Indicates maximum number of parallelism per instance.
- *
- * @param maxConcurrencyPerInstance the maxConcurrencyPerInstance value to set.
- * @return the BatchDeploymentProperties object itself.
- */
- public BatchDeploymentProperties withMaxConcurrencyPerInstance(Integer maxConcurrencyPerInstance) {
- this.maxConcurrencyPerInstance = maxConcurrencyPerInstance;
- return this;
- }
-
/**
* Get the outputAction property: Indicates how the output will be organized.
*
@@ -304,6 +282,15 @@ public BatchDeploymentProperties withOutputFileName(String outputFileName) {
return this;
}
+ /**
+ * Get the provisioningState property: Provisioning state for the endpoint deployment.
+ *
+ * @return the provisioningState value.
+ */
+ public DeploymentProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
/**
* Get the resources property: Indicates compute configuration for the job.
* If not provided, will default to the defaults defined in ResourceConfiguration.
@@ -327,20 +314,24 @@ public BatchDeploymentProperties withResources(DeploymentResourceConfiguration r
}
/**
- * Get the provisioningState property: Provisioning state for the endpoint deployment.
+ * Get the retrySettings property: Retry Settings for the batch inference operation.
+ * If not provided, will default to the defaults defined in BatchRetrySettings.
*
- * @return the provisioningState value.
+ * @return the retrySettings value.
*/
- public DeploymentProvisioningState provisioningState() {
- return this.provisioningState;
+ public BatchRetrySettings retrySettings() {
+ return this.retrySettings;
}
/**
- * {@inheritDoc}
+ * Set the retrySettings property: Retry Settings for the batch inference operation.
+ * If not provided, will default to the defaults defined in BatchRetrySettings.
+ *
+ * @param retrySettings the retrySettings value to set.
+ * @return the BatchDeploymentProperties object itself.
*/
- @Override
- public BatchDeploymentProperties withDescription(String description) {
- super.withDescription(description);
+ public BatchDeploymentProperties withRetrySettings(BatchRetrySettings retrySettings) {
+ this.retrySettings = retrySettings;
return this;
}
@@ -348,8 +339,8 @@ public BatchDeploymentProperties withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public BatchDeploymentProperties withProperties(Map properties) {
- super.withProperties(properties);
+ public BatchDeploymentProperties withCodeConfiguration(CodeConfiguration codeConfiguration) {
+ super.withCodeConfiguration(codeConfiguration);
return this;
}
@@ -357,8 +348,8 @@ public BatchDeploymentProperties withProperties(Map properties)
* {@inheritDoc}
*/
@Override
- public BatchDeploymentProperties withCodeConfiguration(CodeConfiguration codeConfiguration) {
- super.withCodeConfiguration(codeConfiguration);
+ public BatchDeploymentProperties withDescription(String description) {
+ super.withDescription(description);
return this;
}
@@ -380,6 +371,15 @@ public BatchDeploymentProperties withEnvironmentVariables(Map en
return this;
}
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public BatchDeploymentProperties withProperties(Map properties) {
+ super.withProperties(properties);
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -387,19 +387,21 @@ public BatchDeploymentProperties withEnvironmentVariables(Map en
*/
@Override
public void validate() {
- super.validate();
if (deploymentConfiguration() != null) {
deploymentConfiguration().validate();
}
- if (retrySettings() != null) {
- retrySettings().validate();
- }
if (model() != null) {
model().validate();
}
if (resources() != null) {
resources().validate();
}
+ if (retrySettings() != null) {
+ retrySettings().validate();
+ }
+ if (codeConfiguration() != null) {
+ codeConfiguration().validate();
+ }
}
/**
@@ -408,23 +410,23 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeStringField("description", description());
- jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
jsonWriter.writeJsonField("codeConfiguration", codeConfiguration());
+ jsonWriter.writeStringField("description", description());
jsonWriter.writeStringField("environmentId", environmentId());
jsonWriter.writeMapField("environmentVariables", environmentVariables(),
(writer, element) -> writer.writeString(element));
+ jsonWriter.writeMapField("properties", properties(), (writer, element) -> writer.writeString(element));
jsonWriter.writeStringField("compute", this.compute);
jsonWriter.writeJsonField("deploymentConfiguration", this.deploymentConfiguration);
jsonWriter.writeNumberField("errorThreshold", this.errorThreshold);
- jsonWriter.writeJsonField("retrySettings", this.retrySettings);
- jsonWriter.writeNumberField("miniBatchSize", this.miniBatchSize);
jsonWriter.writeStringField("loggingLevel", this.loggingLevel == null ? null : this.loggingLevel.toString());
- jsonWriter.writeJsonField("model", this.model);
jsonWriter.writeNumberField("maxConcurrencyPerInstance", this.maxConcurrencyPerInstance);
+ jsonWriter.writeNumberField("miniBatchSize", this.miniBatchSize);
+ jsonWriter.writeJsonField("model", this.model);
jsonWriter.writeStringField("outputAction", this.outputAction == null ? null : this.outputAction.toString());
jsonWriter.writeStringField("outputFileName", this.outputFileName);
jsonWriter.writeJsonField("resources", this.resources);
+ jsonWriter.writeJsonField("retrySettings", this.retrySettings);
return jsonWriter.writeEndObject();
}
@@ -443,18 +445,18 @@ public static BatchDeploymentProperties fromJson(JsonReader jsonReader) throws I
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("description".equals(fieldName)) {
- deserializedBatchDeploymentProperties.withDescription(reader.getString());
- } else if ("properties".equals(fieldName)) {
- Map properties = reader.readMap(reader1 -> reader1.getString());
- deserializedBatchDeploymentProperties.withProperties(properties);
- } else if ("codeConfiguration".equals(fieldName)) {
+ if ("codeConfiguration".equals(fieldName)) {
deserializedBatchDeploymentProperties.withCodeConfiguration(CodeConfiguration.fromJson(reader));
+ } else if ("description".equals(fieldName)) {
+ deserializedBatchDeploymentProperties.withDescription(reader.getString());
} else if ("environmentId".equals(fieldName)) {
deserializedBatchDeploymentProperties.withEnvironmentId(reader.getString());
} else if ("environmentVariables".equals(fieldName)) {
Map environmentVariables = reader.readMap(reader1 -> reader1.getString());
deserializedBatchDeploymentProperties.withEnvironmentVariables(environmentVariables);
+ } else if ("properties".equals(fieldName)) {
+ Map properties = reader.readMap(reader1 -> reader1.getString());
+ deserializedBatchDeploymentProperties.withProperties(properties);
} else if ("compute".equals(fieldName)) {
deserializedBatchDeploymentProperties.compute = reader.getString();
} else if ("deploymentConfiguration".equals(fieldName)) {
@@ -462,28 +464,28 @@ public static BatchDeploymentProperties fromJson(JsonReader jsonReader) throws I
= BatchDeploymentConfiguration.fromJson(reader);
} else if ("errorThreshold".equals(fieldName)) {
deserializedBatchDeploymentProperties.errorThreshold = reader.getNullable(JsonReader::getInt);
- } else if ("retrySettings".equals(fieldName)) {
- deserializedBatchDeploymentProperties.retrySettings = BatchRetrySettings.fromJson(reader);
- } else if ("miniBatchSize".equals(fieldName)) {
- deserializedBatchDeploymentProperties.miniBatchSize = reader.getNullable(JsonReader::getLong);
} else if ("loggingLevel".equals(fieldName)) {
deserializedBatchDeploymentProperties.loggingLevel
= BatchLoggingLevel.fromString(reader.getString());
- } else if ("model".equals(fieldName)) {
- deserializedBatchDeploymentProperties.model = AssetReferenceBase.fromJson(reader);
} else if ("maxConcurrencyPerInstance".equals(fieldName)) {
deserializedBatchDeploymentProperties.maxConcurrencyPerInstance
= reader.getNullable(JsonReader::getInt);
+ } else if ("miniBatchSize".equals(fieldName)) {
+ deserializedBatchDeploymentProperties.miniBatchSize = reader.getNullable(JsonReader::getLong);
+ } else if ("model".equals(fieldName)) {
+ deserializedBatchDeploymentProperties.model = AssetReferenceBase.fromJson(reader);
} else if ("outputAction".equals(fieldName)) {
deserializedBatchDeploymentProperties.outputAction
= BatchOutputAction.fromString(reader.getString());
} else if ("outputFileName".equals(fieldName)) {
deserializedBatchDeploymentProperties.outputFileName = reader.getString();
- } else if ("resources".equals(fieldName)) {
- deserializedBatchDeploymentProperties.resources = DeploymentResourceConfiguration.fromJson(reader);
} else if ("provisioningState".equals(fieldName)) {
deserializedBatchDeploymentProperties.provisioningState
= DeploymentProvisioningState.fromString(reader.getString());
+ } else if ("resources".equals(fieldName)) {
+ deserializedBatchDeploymentProperties.resources = DeploymentResourceConfiguration.fromJson(reader);
+ } else if ("retrySettings".equals(fieldName)) {
+ deserializedBatchDeploymentProperties.retrySettings = BatchRetrySettings.fromJson(reader);
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeploymentTrackedResourceArmPaginatedResult.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeploymentTrackedResourceArmPaginatedResult.java
index e51a5f0a57485..717749f548855 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeploymentTrackedResourceArmPaginatedResult.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchDeploymentTrackedResourceArmPaginatedResult.java
@@ -20,14 +20,14 @@
public final class BatchDeploymentTrackedResourceArmPaginatedResult
implements JsonSerializable {
/*
- * An array of objects of type BatchDeployment.
+ * The link to the next page of BatchDeployment objects. If null, there are no additional pages.
*/
- private List value;
+ private String nextLink;
/*
- * The link to the next page of BatchDeployment objects. If null, there are no additional pages.
+ * An array of objects of type BatchDeployment.
*/
- private String nextLink;
+ private List value;
/**
* Creates an instance of BatchDeploymentTrackedResourceArmPaginatedResult class.
@@ -36,44 +36,44 @@ public BatchDeploymentTrackedResourceArmPaginatedResult() {
}
/**
- * Get the value property: An array of objects of type BatchDeployment.
+ * Get the nextLink property: The link to the next page of BatchDeployment objects. If null, there are no additional
+ * pages.
*
- * @return the value value.
+ * @return the nextLink value.
*/
- public List value() {
- return this.value;
+ public String nextLink() {
+ return this.nextLink;
}
/**
- * Set the value property: An array of objects of type BatchDeployment.
+ * Set the nextLink property: The link to the next page of BatchDeployment objects. If null, there are no additional
+ * pages.
*
- * @param value the value value to set.
+ * @param nextLink the nextLink value to set.
* @return the BatchDeploymentTrackedResourceArmPaginatedResult object itself.
*/
- public BatchDeploymentTrackedResourceArmPaginatedResult withValue(List value) {
- this.value = value;
+ public BatchDeploymentTrackedResourceArmPaginatedResult withNextLink(String nextLink) {
+ this.nextLink = nextLink;
return this;
}
/**
- * Get the nextLink property: The link to the next page of BatchDeployment objects. If null, there are no additional
- * pages.
+ * Get the value property: An array of objects of type BatchDeployment.
*
- * @return the nextLink value.
+ * @return the value value.
*/
- public String nextLink() {
- return this.nextLink;
+ public List value() {
+ return this.value;
}
/**
- * Set the nextLink property: The link to the next page of BatchDeployment objects. If null, there are no additional
- * pages.
+ * Set the value property: An array of objects of type BatchDeployment.
*
- * @param nextLink the nextLink value to set.
+ * @param value the value value to set.
* @return the BatchDeploymentTrackedResourceArmPaginatedResult object itself.
*/
- public BatchDeploymentTrackedResourceArmPaginatedResult withNextLink(String nextLink) {
- this.nextLink = nextLink;
+ public BatchDeploymentTrackedResourceArmPaginatedResult withValue(List value) {
+ this.value = value;
return this;
}
@@ -94,8 +94,8 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
jsonWriter.writeStringField("nextLink", this.nextLink);
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
return jsonWriter.writeEndObject();
}
@@ -115,12 +115,12 @@ public static BatchDeploymentTrackedResourceArmPaginatedResult fromJson(JsonRead
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("value".equals(fieldName)) {
+ if ("nextLink".equals(fieldName)) {
+ deserializedBatchDeploymentTrackedResourceArmPaginatedResult.nextLink = reader.getString();
+ } else if ("value".equals(fieldName)) {
List value
= reader.readArray(reader1 -> BatchDeploymentInner.fromJson(reader1));
deserializedBatchDeploymentTrackedResourceArmPaginatedResult.value = value;
- } else if ("nextLink".equals(fieldName)) {
- deserializedBatchDeploymentTrackedResourceArmPaginatedResult.nextLink = reader.getString();
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpoint.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpoint.java
index 33ce2fff6eaac..27ec5bc30610a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpoint.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpoint.java
@@ -51,11 +51,11 @@ public interface BatchEndpoint {
Map tags();
/**
- * Gets the properties property: [Required] Additional attributes of the entity.
+ * Gets the identity property: Managed service identity (system assigned and/or user assigned identities).
*
- * @return the properties value.
+ * @return the identity value.
*/
- BatchEndpointProperties properties();
+ ManagedServiceIdentity identity();
/**
* Gets the kind property: Metadata used by portal/tooling/etc to render different UX experiences for resources of
@@ -66,11 +66,11 @@ public interface BatchEndpoint {
String kind();
/**
- * Gets the identity property: Managed service identity (system assigned and/or user assigned identities).
+ * Gets the properties property: [Required] Additional attributes of the entity.
*
- * @return the identity value.
+ * @return the properties value.
*/
- ManagedServiceIdentity identity();
+ BatchEndpointProperties properties();
/**
* Gets the sku property: Sku details required for ARM contract for Autoscaling.
@@ -183,8 +183,8 @@ interface WithProperties {
* The stage of the BatchEndpoint definition which contains all the minimum required properties for the resource
* to be created, but also allows for any other optional properties to be specified.
*/
- interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithKind,
- DefinitionStages.WithIdentity, DefinitionStages.WithSku {
+ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity,
+ DefinitionStages.WithKind, DefinitionStages.WithSku {
/**
* Executes the create request.
*
@@ -215,32 +215,32 @@ interface WithTags {
}
/**
- * The stage of the BatchEndpoint definition allowing to specify kind.
+ * The stage of the BatchEndpoint definition allowing to specify identity.
*/
- interface WithKind {
+ interface WithIdentity {
/**
- * Specifies the kind property: Metadata used by portal/tooling/etc to render different UX experiences for
- * resources of the same type..
+ * Specifies the identity property: Managed service identity (system assigned and/or user assigned
+ * identities).
*
- * @param kind Metadata used by portal/tooling/etc to render different UX experiences for resources of the
- * same type.
+ * @param identity Managed service identity (system assigned and/or user assigned identities).
* @return the next definition stage.
*/
- WithCreate withKind(String kind);
+ WithCreate withIdentity(ManagedServiceIdentity identity);
}
/**
- * The stage of the BatchEndpoint definition allowing to specify identity.
+ * The stage of the BatchEndpoint definition allowing to specify kind.
*/
- interface WithIdentity {
+ interface WithKind {
/**
- * Specifies the identity property: Managed service identity (system assigned and/or user assigned
- * identities).
+ * Specifies the kind property: Metadata used by portal/tooling/etc to render different UX experiences for
+ * resources of the same type..
*
- * @param identity Managed service identity (system assigned and/or user assigned identities).
+ * @param kind Metadata used by portal/tooling/etc to render different UX experiences for resources of the
+ * same type.
* @return the next definition stage.
*/
- WithCreate withIdentity(ManagedServiceIdentity identity);
+ WithCreate withKind(String kind);
}
/**
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpointProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpointProperties.java
index db17ddd4397bd..f2e4611869a7d 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpointProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/models/BatchEndpointProperties.java
@@ -5,6 +5,7 @@
package com.azure.resourcemanager.machinelearning.models;
import com.azure.core.annotation.Fluent;
+import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
@@ -29,14 +30,14 @@ public final class BatchEndpointProperties extends EndpointPropertiesBaseInner {
private EndpointProvisioningState provisioningState;
/*
- * Endpoint URI.
+ * Endpoint Swagger URI.
*/
- private String scoringUri;
+ private String swaggerUri;
/*
- * Endpoint Swagger URI.
+ * Endpoint URI.
*/
- private String swaggerUri;
+ private String scoringUri;
/**
* Creates an instance of BatchEndpointProperties class.
@@ -74,31 +75,31 @@ public EndpointProvisioningState provisioningState() {
}
/**
- * Get the scoringUri property: Endpoint URI.
+ * Get the swaggerUri property: Endpoint Swagger URI.
*
- * @return the scoringUri value.
+ * @return the swaggerUri value.
*/
@Override
- public String scoringUri() {
- return this.scoringUri;
+ public String swaggerUri() {
+ return this.swaggerUri;
}
/**
- * Get the swaggerUri property: Endpoint Swagger URI.
+ * Get the scoringUri property: Endpoint URI.
*
- * @return the swaggerUri value.
+ * @return the scoringUri value.
*/
@Override
- public String swaggerUri() {
- return this.swaggerUri;
+ public String scoringUri() {
+ return this.scoringUri;
}
/**
* {@inheritDoc}
*/
@Override
- public BatchEndpointProperties withDescription(String description) {
- super.withDescription(description);
+ public BatchEndpointProperties withAuthMode(EndpointAuthMode authMode) {
+ super.withAuthMode(authMode);
return this;
}
@@ -106,8 +107,8 @@ public BatchEndpointProperties withDescription(String description) {
* {@inheritDoc}
*/
@Override
- public BatchEndpointProperties withProperties(Map properties) {
- super.withProperties(properties);
+ public BatchEndpointProperties withDescription(String description) {
+ super.withDescription(description);
return this;
}
@@ -115,8 +116,8 @@ public BatchEndpointProperties withProperties(Map