diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
index 66d924503f0c..94d1da161000 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
@@ -1,14 +1,1163 @@
# Release History
-## 1.2.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2024-08-29)
-### 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-preview-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.FqdnEndpointsProperties` was removed
+
+* `models.EncryptionKeyVaultProperties` was removed
+
+* `models.ValueFormat` was removed
+
+* `models.PublicNetworkAccess` was removed
+
+* `models.PrivateEndpointServiceConnectionStatus` was removed
+
+#### `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.WorkspaceConnectionPropertiesV2` was modified
+
+* `withValueFormat(models.ValueFormat)` was removed
+* `value()` was removed
+* `withValue(java.lang.String)` was removed
+* `valueFormat()` was removed
+
+#### `models.ListWorkspaceKeysResult` was modified
+
+* `userStorageResourceId()` was removed
+
+#### `models.CodeVersions` was modified
+
+* `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
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+
+#### `models.ComponentContainers` was modified
+
+* `getById(java.lang.String)` 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
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+
+#### `models.FqdnEndpoints` was modified
+
+* `properties()` was removed
+* `withProperties(models.FqdnEndpointsProperties)` 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
+
+* `deleteById(java.lang.String)` was removed
+* `define(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.ComponentVersion` was modified
+
+* `publish(models.DestinationAsset)` was removed
+* `publish(models.DestinationAsset,com.azure.core.util.Context)` was removed
+
+#### `models.Workspace$Update` was modified
+
+* `withPublicNetworkAccess(models.PublicNetworkAccess)` was removed
+
+#### `models.PrivateEndpointConnection$Definition` was modified
+
+* `withPrivateEndpoint(models.PrivateEndpoint)` 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)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.EnvironmentContainerInner,com.azure.core.util.Context)` was removed
+
+#### `models.ServicePrincipalAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withValueFormat(models.ValueFormat)` was removed
+* `withValue(java.lang.String)` was removed
+
+#### `models.RegistryCodeContainers` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.CodeContainerInner)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.CodeContainerInner,com.azure.core.util.Context)` was removed
+
+#### `models.Workspaces` was modified
+
+* `listByResourceGroup(java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+* `list(java.lang.String,com.azure.core.util.Context)` was removed
+
+#### `models.RegistryEnvironmentVersions` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.EnvironmentVersionInner)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.EnvironmentVersionInner,com.azure.core.util.Context)` was removed
+
+#### `models.PrivateLinkServiceConnectionState` was modified
+
+* `models.PrivateEndpointServiceConnectionStatus status()` -> `models.EndpointServiceConnectionStatus status()`
+* `withStatus(models.PrivateEndpointServiceConnectionStatus)` was removed
+
+#### `models.OAuth2AuthTypeWorkspaceConnectionProperties` was modified
+
+* `withValueFormat(models.ValueFormat)` was removed
+* `withValue(java.lang.String)` was removed
+
+#### `models.EnvironmentContainers` was modified
+
+* `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
+* `define(java.lang.String)` was removed
+* `deleteById(java.lang.String)` was removed
+
+#### `models.Workspace$Definition` was modified
+
+* `withPublicNetworkAccess(models.PublicNetworkAccess)` 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.Datastores` was modified
+
+* `listSecretsWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+
+#### `models.PrivateLinkResource` was modified
+
+* `java.util.Map tags()` -> `java.util.Map tags()`
+* `java.lang.String name()` -> `java.lang.String name()`
+* `withRequiredZoneNames(java.util.List)` was removed
+* `fromJson(com.azure.json.JsonReader)` was removed
+* `com.azure.core.management.SystemData systemData()` -> `com.azure.core.management.SystemData systemData()`
+* `java.util.List requiredZoneNames()` -> `java.util.List requiredZoneNames()`
+* `java.util.List requiredMembers()` -> `java.util.List requiredMembers()`
+* `java.lang.String type()` -> `java.lang.String type()`
+* `withTags(java.util.Map)` was removed
+* `models.ManagedServiceIdentity identity()` -> `models.ManagedServiceIdentity identity()`
+* `withSku(models.Sku)` was removed
+* `java.lang.String groupId()` -> `java.lang.String groupId()`
+* `java.lang.String id()` -> `java.lang.String id()`
+* `java.lang.String location()` -> `java.lang.String location()`
+* `withLocation(java.lang.String)` was removed
+* `validate()` was removed
+* `models.Sku sku()` -> `models.Sku sku()`
+* `toJson(com.azure.json.JsonWriter)` was removed
+* `withIdentity(models.ManagedServiceIdentity)` was removed
+
+#### `models.RegistryCodeVersions` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.CodeVersionInner,com.azure.core.util.Context)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.CodeVersionInner)` 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.PrivateEndpointConnection$Update` was modified
+
+* `withPrivateEndpoint(models.PrivateEndpoint)` was removed
+
+#### `models.EnvironmentContainer$Definition` was modified
+
+* `withExistingWorkspace(java.lang.String,java.lang.String)` was removed
+
+#### `models.ApiKeyAuthWorkspaceConnectionProperties` was modified
+
+* `withValue(java.lang.String)` was removed
+* `withValueFormat(models.ValueFormat)` 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.Workspace` was modified
+
+* `models.PublicNetworkAccess publicNetworkAccess()` -> `models.PublicNetworkAccessType publicNetworkAccess()`
+
+#### `models.CodeVersion` was modified
+
+* `publish(models.DestinationAsset)` was removed
+* `publish(models.DestinationAsset,com.azure.core.util.Context)` was removed
+
+#### `models.Datastore` was modified
+
+* `listSecretsWithResponse(com.azure.core.util.Context)` was removed
+
+#### `models.NoneAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withValue(java.lang.String)` was removed
+* `withValueFormat(models.ValueFormat)` was removed
+
+#### `MachineLearningManager` was modified
+
+* `fluent.AzureMachineLearningWorkspaces serviceClient()` -> `fluent.AzureMachineLearningServices serviceClient()`
+
+#### `models.CustomKeysWorkspaceConnectionProperties` was modified
+
+* `withValueFormat(models.ValueFormat)` was removed
+* `withValue(java.lang.String)` was removed
+
+#### `models.UsernamePasswordAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withValue(java.lang.String)` was removed
+* `withValueFormat(models.ValueFormat)` was removed
+
+#### `models.AccountKeyAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withValue(java.lang.String)` was removed
+* `withValueFormat(models.ValueFormat)` was removed
+
+#### `models.WorkspacePropertiesUpdateParameters` was modified
+
+* `models.PublicNetworkAccess publicNetworkAccess()` -> `models.PublicNetworkAccessType publicNetworkAccess()`
+
+#### `models.WorkspaceUpdateParameters` was modified
+
+* `withPrimaryUserAssignedIdentity(java.lang.String)` was removed
+* `toJson(com.azure.json.JsonWriter)` was removed
+* `withFeatureStoreSettings(models.FeatureStoreSettings)` was removed
+* `models.EncryptionUpdateProperties encryption()` -> `models.EncryptionUpdateProperties encryption()`
+* `java.lang.String containerRegistry()` -> `java.lang.String containerRegistry()`
+* `withEncryption(models.EncryptionUpdateProperties)` was removed
+* `withV1LegacyMode(java.lang.Boolean)` was removed
+* `withContainerRegistry(java.lang.String)` was removed
+* `withApplicationInsights(java.lang.String)` was removed
+* `withIdentity(models.ManagedServiceIdentity)` was removed
+* `withSku(models.Sku)` was removed
+* `models.Sku sku()` -> `models.Sku sku()`
+* `withPublicNetworkAccess(models.PublicNetworkAccess)` was removed
+* `java.lang.Boolean v1LegacyMode()` -> `java.lang.Boolean v1LegacyMode()`
+* `withImageBuildCompute(java.lang.String)` was removed
+* `java.lang.String imageBuildCompute()` -> `java.lang.String imageBuildCompute()`
+* `models.PublicNetworkAccess publicNetworkAccess()` -> `models.PublicNetworkAccessType publicNetworkAccess()`
+* `fromJson(com.azure.json.JsonReader)` was removed
+* `java.lang.Boolean enableDataIsolation()` -> `java.lang.Boolean enableDataIsolation()`
+* `fluent.models.ManagedNetworkSettingsInner managedNetwork()` -> `models.ManagedNetworkSettings managedNetwork()`
+* `withDescription(java.lang.String)` was removed
+* `models.ManagedServiceIdentity identity()` -> `models.ManagedServiceIdentity identity()`
+* `models.ServiceManagedResourcesSettings serviceManagedResourcesSettings()` -> `models.ServiceManagedResourcesSettings serviceManagedResourcesSettings()`
+* `java.util.Map tags()` -> `java.util.Map tags()`
+* `validate()` was removed
+* `withEnableDataIsolation(java.lang.Boolean)` was removed
+* `java.lang.String applicationInsights()` -> `java.lang.String applicationInsights()`
+* `models.ServerlessComputeSettings serverlessComputeSettings()` -> `models.ServerlessComputeSettings serverlessComputeSettings()`
+* `java.lang.String friendlyName()` -> `java.lang.String friendlyName()`
+* `withManagedNetwork(fluent.models.ManagedNetworkSettingsInner)` was removed
+* `withTags(java.util.Map)` was removed
+* `java.lang.String description()` -> `java.lang.String description()`
+* `models.FeatureStoreSettings featureStoreSettings()` -> `models.FeatureStoreSettings featureStoreSettings()`
+* `withServiceManagedResourcesSettings(models.ServiceManagedResourcesSettings)` was removed
+* `java.lang.String primaryUserAssignedIdentity()` -> `java.lang.String primaryUserAssignedIdentity()`
+* `withFriendlyName(java.lang.String)` was removed
+* `withServerlessComputeSettings(models.ServerlessComputeSettings)` was removed
+
+#### `models.RegistryComponentContainers` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.ComponentContainerInner)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.ComponentContainerInner,com.azure.core.util.Context)` was removed
+
+#### `models.AccessKeyAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withValue(java.lang.String)` was removed
+* `withValueFormat(models.ValueFormat)` was removed
+
+#### `models.AadAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withValue(java.lang.String)` was removed
+* `withValueFormat(models.ValueFormat)` was removed
+
+#### `models.ComponentVersions` was modified
+
+* `deleteById(java.lang.String)` was removed
+* `getById(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
+
+#### `models.WorkspaceProperties` was modified
+
+* `models.PublicNetworkAccess publicNetworkAccess()` -> `models.PublicNetworkAccessType publicNetworkAccess()`
+
+#### `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.SharedPrivateLinkResource` was modified
+
+* `models.PrivateEndpointServiceConnectionStatus status()` -> `models.EndpointServiceConnectionStatus status()`
+* `withStatus(models.PrivateEndpointServiceConnectionStatus)` was removed
+
+#### `models.CodeContainers` 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.DataVersions` was modified
+
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` 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
+* `define(java.lang.String)` was removed
+
+#### `models.PrivateLinkResources` was modified
+
+* `models.PrivateLinkResourceListResult list(java.lang.String,java.lang.String)` -> `com.azure.core.http.rest.PagedIterable list(java.lang.String,java.lang.String)`
+* `listWithResponse(java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+
+#### `models.SasAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withValueFormat(models.ValueFormat)` was removed
+* `withValue(java.lang.String)` was removed
+
+#### `models.EnvironmentVersions` was modified
+
+* `getById(java.lang.String)` was removed
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `deleteById(java.lang.String)` was removed
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was removed
+* `define(java.lang.String)` was removed
+
+#### `models.EncryptionProperty` was modified
+
+* `models.EncryptionKeyVaultProperties keyVaultProperties()` -> `models.KeyVaultProperties keyVaultProperties()`
+* `withKeyVaultProperties(models.EncryptionKeyVaultProperties)` was removed
+
+#### `models.ComponentContainer$Definition` was modified
+
+* `withExistingWorkspace(java.lang.String,java.lang.String)` was removed
+
+#### `models.ManagedIdentityAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withValue(java.lang.String)` was removed
+* `withValueFormat(models.ValueFormat)` was removed
+
+#### `models.ModelVersions` was modified
+
+* `deleteById(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
+* `define(java.lang.String)` was removed
+* `getById(java.lang.String)` was removed
+
+#### `models.PrivateLinkResourceListResult` was modified
+
+* `innerModel()` was removed
+* `java.util.List value()` -> `java.util.List value()`
+
+#### `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,com.azure.core.util.Context)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.ModelVersionInner)` was removed
+
+#### `models.ModelContainers` was modified
+
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` 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
+* `define(java.lang.String)` was removed
+
+#### `models.PrivateEndpointConnection` was modified
+
+* `models.PrivateEndpoint privateEndpoint()` -> `models.WorkspacePrivateEndpointResource privateEndpoint()`
+
+#### `models.EnvironmentVersion` was modified
+
+* `publish(models.DestinationAsset,com.azure.core.util.Context)` was removed
+* `publish(models.DestinationAsset)` was removed
+
+#### `models.RegistryModelContainers` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.ModelContainerInner,com.azure.core.util.Context)` was removed
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.ModelContainerInner)` was removed
+
+#### `models.PatAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withValueFormat(models.ValueFormat)` was removed
+* `withValue(java.lang.String)` was removed
+
+### Features Added
+
+* `models.ManagedOnlineEndpointResourceProperties` was added
+
+* `models.ManagedPERequirement` was added
+
+* `models.Endpoints` was added
+
+* `models.RaiPolicyPropertiesBasicResource$DefinitionStages` was added
+
+* `models.WorkspaceConnectionPropertiesV2BasicResource$Update` was added
+
+* `models.RaiPolicyType` was added
+
+* `models.RaiBlocklistItemPropertiesBasicResource$Definition` was added
+
+* `models.RaiPolicies` was added
+
+* `models.EndpointResourcePropertiesBasicResource` was added
+
+* `models.EndpointDeployments` was added
+
+* `models.DeploymentModelVersionUpgradeOption` was added
+
+* `models.ServiceAccountKeyName` was added
+
+* `models.EndpointDeploymentResourceProperties` was added
+
+* `models.IdleShutdownSetting` was added
+
+* `models.RaiPolicyPropertiesBasicResource$Definition` was added
+
+* `models.RaiBlocklistProperties` was added
+
+* `models.ServerlessOffer` was added
+
+* `models.ManagedResourceGroupSettings` was added
+
+* `models.ConnectionRaiPolicyOperations` was added
+
+* `models.EndpointResourcePropertiesBasicResource$Definition` was added
+
+* `models.EndpointDeploymentResourcePropertiesBasicResource$UpdateStages` was added
+
+* `models.EndpointModelSkuProperties` was added
+
+* `models.EndpointDeploymentResourcePropertiesBasicResourceArmPaginatedResult` was added
+
+* `models.EndpointResourcePropertiesBasicResource$UpdateStages` was added
+
+* `models.EndpointDeploymentModel` was added
+
+* `models.EndpointResourcePropertiesBasicResource$DefinitionStages` was added
+
+* `models.ManagedResourceGroupAssignedIdentities` was added
+
+* `models.MountMode` was added
+
+* `models.EndpointKeys` was added
+
+* `models.EndpointResourceProperties` was added
+
+* `models.RaiBlocklistPropertiesBasicResource$DefinitionStages` was added
+
+* `models.ServerlessEndpointCapacityReservation` was added
+
+* `models.SpeechEndpointResourceProperties` was added
+
+* `models.EndpointResourcePropertiesBasicResource$Update` was added
+
+* `models.AllowedContentLevel` was added
+
+* `models.EndpointDeploymentResourcePropertiesBasicResource$Update` was added
+
+* `models.CognitiveServiceEndpointDeploymentResourceProperties` was added
+
+* `models.FqdnEndpointsPropertyBag` was added
+
+* `models.JobResources` was added
+
+* `models.ServerlessEndpointModelSettings` was added
+
+* `models.ServerlessEndpointResourceProperties` was added
+
+* `models.ConnectionRaiBlocklists` was added
+
+* `models.AccountApiKeys` was added
+
+* `models.EndpointType` was added
+
+* `models.EndpointModelDeprecationProperties` was added
+
+* `models.ConnectionRaiPolicies` was added
+
+* `models.EndpointModelSkuRateLimitProperties` was added
+
+* `models.EndpointDeploymentResourcePropertiesBasicResource` was added
+
+* `models.RaiPolicyContentFilter` was added
+
+* `models.FineTuningJob` was added
+
+* `models.ResizeSchema` was added
+
+* `models.ModelProvider` was added
+
+* `models.MlflowAutologger` was added
+
+* `models.RaiBlocklistItemPropertiesBasicResource$DefinitionStages` was added
+
+* `models.ComputeInstanceAutologgerSettings` was added
+
+* `models.AzureOpenAiHyperParameters` was added
+
+* `models.ConnectionRaiBlocklistItems` was added
+
+* `models.FineTuningTaskType` was added
+
+* `models.RaiBlocklistPropertiesBasicResource$Definition` was added
+
+* `models.CustomModelFineTuning` was added
+
+* `models.ConnectionRaiBlocklistItemsOperations` was added
+
+* `models.WorkspaceConnectionUpdateParameter` was added
+
+* `models.ConnectionRaiBlocklistOperations` was added
+
+* `models.OpenAIEndpointDeploymentResourceProperties` was added
+
+* `models.EndpointModelProperties` was added
+
+* `models.RaiBlocklistItemBulkRequest` was added
+
+* `models.Connections` was added
+
+* `models.JupyterKernelConfig` was added
+
+* `models.ManagedOnlineEndpointDeploymentResourceProperties` was added
+
+* `models.RaiBlocklistItemPropertiesBasicResource` was added
+
+* `models.AzureOpenAiFineTuning` was added
+
+* `models.RaiBlocklistPropertiesBasicResource` was added
+
+* `models.ModelLifecycleStatus` was added
+
+* `models.RaiPolicyMode` was added
+
+* `models.RaiPolicyOperations` was added
+
+* `models.KeyVaultProperties` was added
+
+* `models.EndpointModelSkuCapacityProperties` was added
+
+* `models.EndpointModelSkuRateLimitRulePatternProperties` was added
+
+* `models.OsPatchingStatus` was added
+
+* `models.PatchStatus` was added
+
+* `models.ServerlessEndpointInferenceEndpoint` was added
+
+* `models.EndpointResourcePropertiesBasicResourceArmPaginatedResult` was added
+
+* `models.ServerlessEndpointContentSafety` was added
+
+* `models.ContentSafetyEndpointDeploymentResourceProperties` was added
+
+* `models.EndpointDeploymentResourcePropertiesBasicResource$DefinitionStages` was added
+
+* `models.WorkspacePrivateEndpointResource` was added
+
+* `models.SpeechEndpointDeploymentResourceProperties` was added
+
+* `models.RaiBlocklistPropertiesBasicResourceArmPaginatedResult` was added
+
+* `models.RaiPolicyPropertiesBasicResource` was added
+
+* `models.RaiPolicyContentSource` was added
+
+* `models.RaiBlocklistConfig` was added
+
+* `models.ContentSafetyEndpointResourceProperties` was added
+
+* `models.ManagedPEStatus` was added
+
+* `models.EndpointDeploymentResourcePropertiesBasicResource$Definition` was added
+
+* `models.FineTuningVertical` was added
+
+* `models.DefaultResourceProvisioningState` was added
+
+* `models.SecretExpiry` was added
+
+* `models.RaiBlocklistItemPropertiesBasicResourceArmPaginatedResult` was added
+
+* `models.RaiPolicyPropertiesBasicResourceArmPaginatedResult` was added
+
+* `models.RegenerateServiceAccountKeyContent` was added
+
+* `models.EndpointModels` was added
+
+* `models.OpenAIEndpointResourceProperties` was added
+
+* `models.RaiPolicyProperties` was added
+
+* `models.RaiBlocklistItemProperties` was added
+
+* `models.WorkspaceConnectionPropertiesV2BasicResource$UpdateStages` was added
+
+* `models.EndpointModelSkuRateLimitRuleProperties` was added
+
+#### `models.Registry$Definition` was modified
+
+* `withManagedResourceGroupSettings(models.ManagedResourceGroupSettings)` was added
+
+#### `models.DiagnoseRequestProperties` was modified
+
+* `requiredResourceProviders()` was added
+* `withRequiredResourceProviders(java.util.Map)` was added
+
+#### `models.WorkspaceConnectionPropertiesV2` was modified
+
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+* `peRequirement()` was added
+* `withPeStatus(models.ManagedPEStatus)` was added
+* `peStatus()` was added
+* `error()` was added
+* `withPeRequirement(models.ManagedPERequirement)` was added
+* `withError(java.lang.String)` was added
+* `useWorkspaceManagedIdentity()` was added
+
+#### `models.ListWorkspaceKeysResult` was modified
+
+* `userStorageArmId()` was added
+
+#### `models.CodeVersions` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.CodeVersionInner)` was added
+* `createOrUpdateWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.CodeVersionInner,com.azure.core.util.Context)` 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.FqdnEndpoints` was modified
+
+* `withEndpoints(java.util.List)` was added
+* `withCategory(java.lang.String)` was added
+* `endpoints()` was added
+* `category()` was added
+
+#### `models.DataContainer$Definition` was modified
+
+* `withExistingRegistry(java.lang.String,java.lang.String)` was added
+
+#### `models.DataVersionBase` was modified
+
+* `createOrGetStartPendingUploadWithResponse(models.PendingUploadRequestDto,com.azure.core.util.Context)` was added
+* `createOrGetStartPendingUpload(models.PendingUploadRequestDto)` was added
+
+#### `models.DataContainers` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.DataContainerInner)` was added
+* `createOrUpdateWithResponse(java.lang.String,java.lang.String,java.lang.String,fluent.models.DataContainerInner,com.azure.core.util.Context)` was added
+
+#### `models.Registry` was modified
+
+* `managedResourceGroupSettings()` was added
+
+#### `models.WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult` was modified
+
+* `withNextLink(java.lang.String)` was added
+
+#### `models.Workspace$Update` was modified
+
+* `withIpAllowlist(java.util.List)` was added
+* `withAllowRoleAssignmentOnRG(java.lang.Boolean)` was added
+* `withEnableSoftwareBillOfMaterials(java.lang.Boolean)` was added
+* `withPublicNetworkAccess(models.PublicNetworkAccessType)` was added
+* `withSoftDeleteRetentionInDays(java.lang.Integer)` was added
+
+#### `models.Image` was modified
+
+* `version()` was added
+* `withVersion(java.lang.String)` was added
+
+#### `models.PrivateEndpointConnection$Definition` was modified
+
+* `withProvisioningState(models.PrivateEndpointConnectionProvisioningState)` was added
+* `withPrivateEndpoint(models.WorkspacePrivateEndpointResource)` was added
+
+#### `models.RegistryComponentVersions` was modified
+
+* `deleteById(java.lang.String)` was added
+* `getById(java.lang.String)` was added
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `define(java.lang.String)` was added
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.RegistryEnvironmentContainers` was modified
+
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `getById(java.lang.String)` was added
+* `define(java.lang.String)` was added
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `deleteById(java.lang.String)` was added
+
+#### `models.ServicePrincipalAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withPeRequirement(models.ManagedPERequirement)` was added
+* `withError(java.lang.String)` was added
+* `withPeStatus(models.ManagedPEStatus)` was added
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+
+#### `models.PrivateEndpointOutboundRule` was modified
+
+* `withFqdns(java.util.List)` was added
+* `fqdns()` was added
+* `parentRuleNames()` was added
+
+#### `models.RegistryCodeContainers` was modified
+
+* `getById(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
+* `deleteById(java.lang.String)` was added
+* `define(java.lang.String)` was added
+
+#### `models.Workspaces` was modified
+
+* `list(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+* `listByResourceGroup(java.lang.String,java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.RegistryEnvironmentVersions` was modified
+
+* `define(java.lang.String)` was added
+* `getById(java.lang.String)` was added
+* `deleteById(java.lang.String)` was added
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.PrivateLinkServiceConnectionState` was modified
+
+* `withStatus(models.EndpointServiceConnectionStatus)` was added
+
+#### `models.Computes` was modified
+
+* `updateIdleShutdownSettingWithResponse(java.lang.String,java.lang.String,java.lang.String,models.IdleShutdownSetting,com.azure.core.util.Context)` was added
+* `resize(java.lang.String,java.lang.String,java.lang.String,models.ResizeSchema,com.azure.core.util.Context)` was added
+* `updateCustomServices(java.lang.String,java.lang.String,java.lang.String,java.util.List)` was added
+* `updateDataMounts(java.lang.String,java.lang.String,java.lang.String,java.util.List)` was added
+* `updateCustomServicesWithResponse(java.lang.String,java.lang.String,java.lang.String,java.util.List,com.azure.core.util.Context)` was added
+* `getAllowedResizeSizes(java.lang.String,java.lang.String,java.lang.String)` was added
+* `getAllowedResizeSizesWithResponse(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+* `updateIdleShutdownSetting(java.lang.String,java.lang.String,java.lang.String,models.IdleShutdownSetting)` was added
+* `resize(java.lang.String,java.lang.String,java.lang.String,models.ResizeSchema)` was added
+* `updateDataMountsWithResponse(java.lang.String,java.lang.String,java.lang.String,java.util.List,com.azure.core.util.Context)` was added
+
+#### `models.OAuth2AuthTypeWorkspaceConnectionProperties` was modified
+
+* `withPeStatus(models.ManagedPEStatus)` was added
+* `withPeRequirement(models.ManagedPERequirement)` was added
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+* `withError(java.lang.String)` was added
+
+#### `models.EnvironmentContainers` was modified
+
+* `createOrUpdateWithResponse(java.lang.String,java.lang.String,java.lang.String,fluent.models.EnvironmentContainerInner,com.azure.core.util.Context)` was added
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.EnvironmentContainerInner)` was added
+
+#### `models.Workspace$Definition` was modified
+
+* `withPublicNetworkAccess(models.PublicNetworkAccessType)` was added
+* `withAllowRoleAssignmentOnRG(java.lang.Boolean)` was added
+* `withStorageAccounts(java.util.List)` was added
+* `withContainerRegistries(java.util.List)` was added
+* `withSystemDatastoresAuthMode(java.lang.String)` was added
+* `withEnableSimplifiedCmk(java.lang.Boolean)` was added
+* `withEnableServiceSideCmkEncryption(java.lang.Boolean)` was added
+* `withSoftDeleteRetentionInDays(java.lang.Integer)` was added
+* `withEnableSoftwareBillOfMaterials(java.lang.Boolean)` was added
+* `withKeyVaults(java.util.List)` was added
+* `withExistingWorkspaces(java.util.List)` was added
+* `withIpAllowlist(java.util.List)` 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.Datastores` was modified
+
+* `listSecretsWithResponse(java.lang.String,java.lang.String,java.lang.String,models.SecretExpiry,com.azure.core.util.Context)` was added
+
+#### `models.PrivateLinkResource` was modified
+
+* `innerModel()` was added
+
+#### `models.RegistryCodeVersions` was modified
+
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` 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
+* `deleteById(java.lang.String)` was added
+
+#### `models.RegistryDataContainers` was modified
+
+* `getById(java.lang.String)` was added
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` 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
+
+#### `models.PrivateEndpointConnection$Update` was modified
+
+* `withProvisioningState(models.PrivateEndpointConnectionProvisioningState)` was added
+* `withPrivateEndpoint(models.WorkspacePrivateEndpointResource)` was added
+
+#### `models.EnvironmentContainer$Definition` was modified
+
+* `withExistingRegistry(java.lang.String,java.lang.String)` was added
+
+#### `models.ApiKeyAuthWorkspaceConnectionProperties` was modified
+
+* `withPeStatus(models.ManagedPEStatus)` was added
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+* `withError(java.lang.String)` was added
+* `withPeRequirement(models.ManagedPERequirement)` was added
+
+#### `models.WorkspaceConnections` was modified
+
+* `testConnection(java.lang.String,java.lang.String,java.lang.String,fluent.models.WorkspaceConnectionPropertiesV2BasicResourceInner,com.azure.core.util.Context)` was added
+* `list(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Boolean,com.azure.core.util.Context)` was added
+* `testConnection(java.lang.String,java.lang.String,java.lang.String)` was added
+
+#### `models.ManagedNetworkSettings` was modified
+
+* `changeableIsolationModes()` was added
+
+#### `models.Workspace` was modified
+
+* `systemDatastoresAuthMode()` was added
+* `ipAllowlist()` was added
+* `softDeleteRetentionInDays()` was added
+* `enableServiceSideCmkEncryption()` was added
+* `existingWorkspaces()` was added
+* `enableSimplifiedCmk()` was added
+* `containerRegistries()` was added
+* `keyVaults()` was added
+* `allowRoleAssignmentOnRG()` was added
+* `storageAccounts()` was added
+* `enableSoftwareBillOfMaterials()` was added
+
+#### `models.Datastore` was modified
+
+* `listSecretsWithResponse(models.SecretExpiry,com.azure.core.util.Context)` was added
+
+#### `models.NoneAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withPeRequirement(models.ManagedPERequirement)` was added
+* `withError(java.lang.String)` was added
+* `withPeStatus(models.ManagedPEStatus)` was added
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+
+#### `MachineLearningManager` was modified
+
+* `raiPolicyOperations()` was added
+* `endpoints()` was added
+* `connectionRaiBlocklists()` was added
+* `endpointDeployments()` was added
+* `connections()` was added
+* `connectionRaiBlocklistItemsOperations()` was added
+* `raiPolicies()` was added
+* `connectionRaiBlocklistOperations()` was added
+* `connectionRaiBlocklistItems()` was added
+* `connectionRaiPolicies()` was added
+* `connectionRaiPolicyOperations()` was added
+
+#### `models.ImageMetadata` was modified
+
+* `osPatchingStatus()` was added
+
+#### `models.CustomKeysWorkspaceConnectionProperties` was modified
+
+* `withError(java.lang.String)` was added
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+* `withPeRequirement(models.ManagedPERequirement)` was added
+* `withPeStatus(models.ManagedPEStatus)` was added
+
+#### `models.UsernamePasswordAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withError(java.lang.String)` was added
+* `withPeStatus(models.ManagedPEStatus)` was added
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+* `withPeRequirement(models.ManagedPERequirement)` was added
+
+#### `models.AccountKeyAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withPeStatus(models.ManagedPEStatus)` was added
+* `withError(java.lang.String)` was added
+* `withPeRequirement(models.ManagedPERequirement)` was added
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+
+#### `models.WorkspacePropertiesUpdateParameters` was modified
+
+* `ipAllowlist()` was added
+* `allowRoleAssignmentOnRG()` was added
+* `enableSoftwareBillOfMaterials()` was added
+* `softDeleteRetentionInDays()` was added
+
+#### `models.WorkspaceUpdateParameters` was modified
+
+* `enableSoftwareBillOfMaterials()` was added
+* `softDeleteRetentionInDays()` was added
+* `allowRoleAssignmentOnRG()` was added
+* `innerModel()` was added
+* `ipAllowlist()` was added
+
+#### `models.RegistryComponentContainers` was modified
+
+* `getById(java.lang.String)` was added
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `deleteById(java.lang.String)` was added
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `define(java.lang.String)` was added
+
+#### `models.AccessKeyAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+* `withPeStatus(models.ManagedPEStatus)` was added
+* `withError(java.lang.String)` was added
+* `withPeRequirement(models.ManagedPERequirement)` was added
+
+#### `models.CustomService` was modified
+
+* `withKernel(models.JupyterKernelConfig)` was added
+* `kernel()` was added
+
+#### `models.AadAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withPeRequirement(models.ManagedPERequirement)` was added
+* `withPeStatus(models.ManagedPEStatus)` was added
+* `withError(java.lang.String)` was added
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+
+#### `models.WorkspaceConnectionPropertiesV2BasicResource` was modified
+
+* `resourceGroupName()` was added
+* `testConnection()` was added
+* `testConnection(fluent.models.WorkspaceConnectionPropertiesV2BasicResourceInner,com.azure.core.util.Context)` was added
+* `update()` 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.WorkspaceProperties` was modified
+
+* `ipAllowlist()` was added
+* `storageAccounts()` was added
+* `systemDatastoresAuthMode()` was added
+* `allowRoleAssignmentOnRG()` was added
+* `enableServiceSideCmkEncryption()` was added
+* `enableSimplifiedCmk()` was added
+* `keyVaults()` was added
+* `softDeleteRetentionInDays()` was added
+* `existingWorkspaces()` was added
+* `containerRegistries()` was added
+* `enableSoftwareBillOfMaterials()` was added
+
+#### `models.RegistryDataVersions` was modified
+
+* `define(java.lang.String)` was added
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `deleteById(java.lang.String)` was added
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `getById(java.lang.String)` was added
+
+#### `models.OutboundRule` was modified
+
+* `parentRuleNames()` was added
+
+#### `models.SharedPrivateLinkResource` was modified
+
+* `withStatus(models.EndpointServiceConnectionStatus)` was added
+
+#### `models.ComputeResource` was modified
+
+* `updateIdleShutdownSettingWithResponse(models.IdleShutdownSetting,com.azure.core.util.Context)` was added
+* `updateCustomServices(java.util.List)` was added
+* `resize(models.ResizeSchema)` was added
+* `getAllowedResizeSizes()` was added
+* `updateIdleShutdownSetting(models.IdleShutdownSetting)` was added
+* `updateDataMounts(java.util.List)` was added
+* `getAllowedResizeSizesWithResponse(com.azure.core.util.Context)` was added
+* `updateDataMountsWithResponse(java.util.List,com.azure.core.util.Context)` was added
+* `resize(models.ResizeSchema,com.azure.core.util.Context)` was added
+* `updateCustomServicesWithResponse(java.util.List,com.azure.core.util.Context)` was added
+
+#### `models.CodeContainers` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,fluent.models.CodeContainerInner)` was added
+* `createOrUpdateWithResponse(java.lang.String,java.lang.String,java.lang.String,fluent.models.CodeContainerInner,com.azure.core.util.Context)` 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.PrivateLinkResources` was modified
+
+* `list(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.SasAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+* `withError(java.lang.String)` was added
+* `withPeRequirement(models.ManagedPERequirement)` was added
+* `withPeStatus(models.ManagedPEStatus)` was added
+
+#### `models.ServiceTagOutboundRule` was modified
+
+* `parentRuleNames()` was added
+
+#### `models.EnvironmentVersions` was modified
+
+* `createOrUpdateWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.EnvironmentVersionInner,com.azure.core.util.Context)` was added
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.EnvironmentVersionInner)` was added
+
+#### `models.EncryptionProperty` was modified
+
+* `searchAccountResourceId()` was added
+* `storageAccountResourceId()` was added
+* `cosmosDbResourceId()` was added
+* `withCosmosDbResourceId(java.lang.String)` was added
+* `withKeyVaultProperties(models.KeyVaultProperties)` was added
+* `withStorageAccountResourceId(java.lang.String)` was added
+* `withSearchAccountResourceId(java.lang.String)` was added
+
+#### `models.ComponentContainer$Definition` was modified
+
+* `withExistingRegistry(java.lang.String,java.lang.String)` was added
+
+#### `models.ManagedIdentityAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withPeStatus(models.ManagedPEStatus)` was added
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+* `withPeRequirement(models.ManagedPERequirement)` was added
+* `withError(java.lang.String)` was added
+
+#### `models.NotebookResourceInfo` was modified
+
+* `isPrivateLinkEnabled()` was added
+
+#### `models.ModelVersions` was modified
+
+* `createOrUpdate(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.ModelVersionInner)` was added
+* `createOrUpdateWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,fluent.models.ModelVersionInner,com.azure.core.util.Context)` was added
+
+#### `models.PrivateLinkResourceListResult` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `validate()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+* `withValue(java.util.List)` was added
+
+#### `models.ComputeInstanceProperties` was modified
+
+* `idleTimeBeforeShutdown()` was added
+* `enableSso()` was added
+* `enableRootAccess()` was added
+* `withEnableSso(java.lang.Boolean)` was added
+* `releaseQuotaOnStop()` was added
+* `withIdleTimeBeforeShutdown(java.lang.String)` was added
+* `withAutologgerSettings(models.ComputeInstanceAutologgerSettings)` was added
+* `withEnableOSPatching(java.lang.Boolean)` was added
+* `enableOSPatching()` was added
+* `withEnableRootAccess(java.lang.Boolean)` was added
+* `withReleaseQuotaOnStop(java.lang.Boolean)` was added
+* `autologgerSettings()` was added
+
+#### `models.ModelVersion` was modified
+
+* `createOrGetStartPendingUpload(models.PendingUploadRequestDto)` was added
+* `createOrGetStartPendingUploadWithResponse(models.PendingUploadRequestDto,com.azure.core.util.Context)` was added
+
+#### `models.RegistryModelVersions` was modified
+
+* `getById(java.lang.String)` was added
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` 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
+
+#### `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.ComputeInstanceDataMount` was modified
+
+* `withMountMode(models.MountMode)` was added
+* `mountMode()` was added
+
+#### `models.RegistryModelContainers` was modified
+
+* `deleteById(java.lang.String)` was added
+* `getByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `getById(java.lang.String)` was added
+* `deleteByIdWithResponse(java.lang.String,com.azure.core.util.Context)` was added
+* `define(java.lang.String)` was added
+
+#### `models.FqdnOutboundRule` was modified
+
+* `parentRuleNames()` was added
+
+#### `models.PatAuthTypeWorkspaceConnectionProperties` was modified
-### Other Changes
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+* `withPeStatus(models.ManagedPEStatus)` was added
+* `withError(java.lang.String)` was added
+* `withPeRequirement(models.ManagedPERequirement)` 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 4184eaf56d90..b363204d3736 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-preview-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 0ef21ec43a9a..df2f6b7f629a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
@@ -54,13 +54,59 @@
- [CreateOrUpdate](#compute_createorupdate)
- [Delete](#compute_delete)
- [Get](#compute_get)
+- [GetAllowedResizeSizes](#compute_getallowedresizesizes)
- [List](#compute_list)
- [ListKeys](#compute_listkeys)
- [ListNodes](#compute_listnodes)
+- [Resize](#compute_resize)
- [Restart](#compute_restart)
- [Start](#compute_start)
- [Stop](#compute_stop)
- [Update](#compute_update)
+- [UpdateCustomServices](#compute_updatecustomservices)
+- [UpdateDataMounts](#compute_updatedatamounts)
+- [UpdateIdleShutdownSetting](#compute_updateidleshutdownsetting)
+
+## Connection
+
+- [CreateOrUpdateDeployment](#connection_createorupdatedeployment)
+- [DeleteDeployment](#connection_deletedeployment)
+- [GetDeployment](#connection_getdeployment)
+- [GetModels](#connection_getmodels)
+- [ListDeployments](#connection_listdeployments)
+- [ListModels](#connection_listmodels)
+
+## ConnectionRaiBlocklistItem
+
+- [AddBulk](#connectionraiblocklistitem_addbulk)
+- [Create](#connectionraiblocklistitem_create)
+- [Delete](#connectionraiblocklistitem_delete)
+- [DeleteBulk](#connectionraiblocklistitem_deletebulk)
+- [Get](#connectionraiblocklistitem_get)
+
+## ConnectionRaiBlocklistItemsOperation
+
+- [List](#connectionraiblocklistitemsoperation_list)
+
+## ConnectionRaiBlocklistOperation
+
+- [Create](#connectionraiblocklistoperation_create)
+- [Delete](#connectionraiblocklistoperation_delete)
+- [Get](#connectionraiblocklistoperation_get)
+
+## ConnectionRaiBlocklists
+
+- [List](#connectionraiblocklists_list)
+
+## ConnectionRaiPolicies
+
+- [List](#connectionraipolicies_list)
+
+## ConnectionRaiPolicyOperation
+
+- [Create](#connectionraipolicyoperation_create)
+- [Delete](#connectionraipolicyoperation_delete)
+- [Get](#connectionraipolicyoperation_get)
## DataContainers
@@ -85,6 +131,23 @@
- [List](#datastores_list)
- [ListSecrets](#datastores_listsecrets)
+## Endpoint
+
+- [CreateOrUpdate](#endpoint_createorupdate)
+- [Get](#endpoint_get)
+- [GetModels](#endpoint_getmodels)
+- [List](#endpoint_list)
+- [ListKeys](#endpoint_listkeys)
+- [RegenerateKeys](#endpoint_regeneratekeys)
+
+## EndpointDeployment
+
+- [CreateOrUpdate](#endpointdeployment_createorupdate)
+- [Delete](#endpointdeployment_delete)
+- [Get](#endpointdeployment_get)
+- [GetInWorkspace](#endpointdeployment_getinworkspace)
+- [List](#endpointdeployment_list)
+
## EnvironmentContainers
- [CreateOrUpdate](#environmentcontainers_createorupdate)
@@ -216,6 +279,16 @@
- [List](#quotas_list)
- [Update](#quotas_update)
+## RaiPolicies
+
+- [List](#raipolicies_list)
+
+## RaiPolicyOperation
+
+- [Create](#raipolicyoperation_create)
+- [Delete](#raipolicyoperation_delete)
+- [Get](#raipolicyoperation_get)
+
## Registries
- [CreateOrUpdate](#registries_createorupdate)
@@ -335,6 +408,8 @@
- [Get](#workspaceconnections_get)
- [List](#workspaceconnections_list)
- [ListSecrets](#workspaceconnections_listsecrets)
+- [TestConnection](#workspaceconnections_testconnection)
+- [Update](#workspaceconnections_update)
## WorkspaceFeatures
@@ -384,8 +459,8 @@ import java.util.Map;
public final class BatchDeploymentsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/BatchDeployment/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/BatchDeployment/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Batch Deployment.
@@ -398,19 +473,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 +493,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,8 +530,8 @@ public final class BatchDeploymentsCreateOrUpdateSamples {
public final class BatchDeploymentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/BatchDeployment/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/BatchDeployment/delete.json
*/
/**
* Sample code: Delete Workspace Batch Deployment.
@@ -480,8 +556,8 @@ public final class BatchDeploymentsDeleteSamples {
public final class BatchDeploymentsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/BatchDeployment/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/BatchDeployment/get.json
*/
/**
* Sample code: Get Workspace Batch Deployment.
@@ -506,8 +582,8 @@ public final class BatchDeploymentsGetSamples {
public final class BatchDeploymentsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/BatchDeployment/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/BatchDeployment/list.json
*/
/**
* Sample code: List Workspace Batch Deployment.
@@ -537,8 +613,8 @@ import java.util.Map;
public final class BatchDeploymentsUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/BatchDeployment/update.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/BatchDeployment/update.json
*/
/**
* Sample code: Update Workspace Batch Deployment.
@@ -591,8 +667,8 @@ import java.util.Map;
public final class BatchEndpointsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/BatchEndpoint/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/BatchEndpoint/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Batch Endpoint.
@@ -605,14 +681,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,8 +720,8 @@ public final class BatchEndpointsCreateOrUpdateSamples {
public final class BatchEndpointsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/BatchEndpoint/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/BatchEndpoint/delete.json
*/
/**
* Sample code: Delete Workspace Batch Endpoint.
@@ -669,8 +745,8 @@ public final class BatchEndpointsDeleteSamples {
public final class BatchEndpointsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/BatchEndpoint/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/BatchEndpoint/get.json
*/
/**
* Sample code: Get Workspace Batch Endpoint.
@@ -694,8 +770,8 @@ public final class BatchEndpointsGetSamples {
public final class BatchEndpointsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/BatchEndpoint/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/BatchEndpoint/list.json
*/
/**
* Sample code: List Workspace Batch Endpoint.
@@ -718,8 +794,8 @@ public final class BatchEndpointsListSamples {
public final class BatchEndpointsListKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/BatchEndpoint/listKeys.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/BatchEndpoint/listKeys.json
*/
/**
* Sample code: ListKeys Workspace Batch Endpoint.
@@ -752,8 +828,8 @@ import java.util.Map;
public final class BatchEndpointsUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/BatchEndpoint/update.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/BatchEndpoint/update.json
*/
/**
* Sample code: Update Workspace Batch Endpoint.
@@ -791,6 +867,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,8 +878,8 @@ import java.util.Map;
public final class CodeContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/CodeContainer/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/CodeContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Code Container.
@@ -812,11 +889,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,8 +918,8 @@ public final class CodeContainersCreateOrUpdateSamples {
public final class CodeContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/CodeContainer/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/CodeContainer/delete.json
*/
/**
* Sample code: Delete Workspace Code Container.
@@ -867,8 +943,8 @@ public final class CodeContainersDeleteSamples {
public final class CodeContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/CodeContainer/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/CodeContainer/get.json
*/
/**
* Sample code: Get Workspace Code Container.
@@ -892,8 +968,8 @@ public final class CodeContainersGetSamples {
public final class CodeContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/CodeContainer/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/CodeContainer/list.json
*/
/**
* Sample code: List Workspace Code Container.
@@ -919,8 +995,8 @@ 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/
- * examples/Workspace/CodeVersion/createOrGetStartPendingUpload.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/CodeVersion/createOrGetStartPendingUpload.json
*/
/**
* Sample code: CreateOrGetStartPendingUpload Workspace Code Version.
@@ -941,6 +1017,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,8 +1028,8 @@ import java.util.Map;
public final class CodeVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/CodeVersion/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/CodeVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Code Version.
@@ -962,14 +1039,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,8 +1071,8 @@ public final class CodeVersionsCreateOrUpdateSamples {
public final class CodeVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/CodeVersion/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/CodeVersion/delete.json
*/
/**
* Sample code: Delete Workspace Code Version.
@@ -1020,8 +1096,8 @@ public final class CodeVersionsDeleteSamples {
public final class CodeVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/CodeVersion/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/CodeVersion/get.json
*/
/**
* Sample code: Get Workspace Code Version.
@@ -1045,8 +1121,8 @@ public final class CodeVersionsGetSamples {
public final class CodeVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/CodeVersion/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/CodeVersion/list.json
*/
/**
* Sample code: List Workspace Code Version.
@@ -1073,8 +1149,8 @@ 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/
- * examples/Workspace/CodeVersion/publish.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/CodeVersion/publish.json
*/
/**
* Sample code: Publish Workspace Code Version.
@@ -1085,9 +1161,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 +1172,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,8 +1183,8 @@ import java.util.Map;
public final class ComponentContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ComponentContainer/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ComponentContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Component Container.
@@ -1117,12 +1194,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,8 +1225,8 @@ public final class ComponentContainersCreateOrUpdateSamples {
public final class ComponentContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ComponentContainer/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ComponentContainer/delete.json
*/
/**
* Sample code: Delete Workspace Component Container.
@@ -1173,8 +1250,8 @@ public final class ComponentContainersDeleteSamples {
public final class ComponentContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ComponentContainer/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ComponentContainer/get.json
*/
/**
* Sample code: Get Workspace Component Container.
@@ -1199,8 +1276,8 @@ public final class ComponentContainersGetSamples {
public final class ComponentContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ComponentContainer/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ComponentContainer/list.json
*/
/**
* Sample code: List Workspace Component Container.
@@ -1219,6 +1296,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,8 +1308,8 @@ import java.util.Map;
public final class ComponentVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ComponentVersion/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ComponentVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Component Version.
@@ -1241,16 +1319,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,8 +1353,8 @@ public final class ComponentVersionsCreateOrUpdateSamples {
public final class ComponentVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ComponentVersion/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ComponentVersion/delete.json
*/
/**
* Sample code: Delete Workspace Component Version.
@@ -1301,8 +1378,8 @@ public final class ComponentVersionsDeleteSamples {
public final class ComponentVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ComponentVersion/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ComponentVersion/get.json
*/
/**
* Sample code: Get Workspace Component Version.
@@ -1327,8 +1404,8 @@ public final class ComponentVersionsGetSamples {
public final class ComponentVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ComponentVersion/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ComponentVersion/list.json
*/
/**
* Sample code: List Workspace Component Version.
@@ -1354,8 +1431,8 @@ 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/
- * examples/Workspace/ComponentVersion/publish.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ComponentVersion/publish.json
*/
/**
* Sample code: Publish Workspace Component Version.
@@ -1366,9 +1443,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);
}
}
@@ -1385,6 +1462,7 @@ import com.azure.resourcemanager.machinelearning.models.ApplicationSharingPolicy
import com.azure.resourcemanager.machinelearning.models.AssignedUser;
import com.azure.resourcemanager.machinelearning.models.ComputeInstance;
import com.azure.resourcemanager.machinelearning.models.ComputeInstanceAuthorizationType;
+import com.azure.resourcemanager.machinelearning.models.ComputeInstanceAutologgerSettings;
import com.azure.resourcemanager.machinelearning.models.ComputeInstanceProperties;
import com.azure.resourcemanager.machinelearning.models.ComputeInstanceSshSettings;
import com.azure.resourcemanager.machinelearning.models.ComputePowerAction;
@@ -1402,8 +1480,10 @@ import com.azure.resourcemanager.machinelearning.models.Image;
import com.azure.resourcemanager.machinelearning.models.ImageType;
import com.azure.resourcemanager.machinelearning.models.InstanceTypeSchema;
import com.azure.resourcemanager.machinelearning.models.InstanceTypeSchemaResources;
+import com.azure.resourcemanager.machinelearning.models.JupyterKernelConfig;
import com.azure.resourcemanager.machinelearning.models.Kubernetes;
import com.azure.resourcemanager.machinelearning.models.KubernetesProperties;
+import com.azure.resourcemanager.machinelearning.models.MlflowAutologger;
import com.azure.resourcemanager.machinelearning.models.OsType;
import com.azure.resourcemanager.machinelearning.models.PersonalComputeInstanceSettings;
import com.azure.resourcemanager.machinelearning.models.Protocol;
@@ -1427,8 +1507,8 @@ import java.util.Map;
public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/createOrUpdate/BasicAKSCompute.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/createOrUpdate/BasicAKSCompute.json
*/
/**
* Sample code: Create an AKS Compute.
@@ -1446,8 +1526,8 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/createOrUpdate/AKSCompute.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/createOrUpdate/AKSCompute.json
*/
/**
* Sample code: Update an AKS Compute.
@@ -1468,8 +1548,8 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/createOrUpdate/KubernetesCompute.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/createOrUpdate/KubernetesCompute.json
*/
/**
* Sample code: Attach a Kubernetes Compute.
@@ -1496,8 +1576,8 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json
*/
/**
* Sample code: Create an ComputeInstance Compute with Schedules.
@@ -1530,8 +1610,8 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/createOrUpdate/BasicAmlCompute.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/createOrUpdate/BasicAmlCompute.json
*/
/**
* Sample code: Create a AML Compute.
@@ -1559,8 +1639,8 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/createOrUpdate/ComputeInstance.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/createOrUpdate/ComputeInstance.json
*/
/**
* Sample code: Create an ComputeInstance Compute.
@@ -1577,26 +1657,35 @@ public final class ComputeCreateOrUpdateSamples {
new ComputeInstance().withProperties(new ComputeInstanceProperties().withVmSize("STANDARD_NC6")
.withSubnet(new ResourceId().withId("test-subnet-resource-id"))
.withApplicationSharingPolicy(ApplicationSharingPolicy.PERSONAL)
+ .withAutologgerSettings(
+ new ComputeInstanceAutologgerSettings().withMlflowAutologger(MlflowAutologger.ENABLED))
.withSshSettings(new ComputeInstanceSshSettings().withSshPublicAccess(SshPublicAccess.DISABLED))
- .withCustomServices(Arrays.asList(new CustomService().withName("rstudio")
+ .withCustomServices(Arrays.asList(new CustomService().withName("rstudio-workbench")
.withImage(new Image().withType(ImageType.DOCKER)
- .withReference("ghcr.io/azure/rocker-rstudio-ml-verse:latest")
+ .withReference("ghcr.io/azure/rstudio-workbench:latest")
.withAdditionalProperties(mapOf()))
- .withEnvironmentVariables(mapOf("test_variable",
+ .withEnvironmentVariables(mapOf("RSP_LICENSE",
new EnvironmentVariable().withType(EnvironmentVariableType.LOCAL)
- .withValue("test_value")
+ .withValue("XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX")
.withAdditionalProperties(mapOf())))
.withDocker(new Docker().withPrivileged(true).withAdditionalProperties(mapOf()))
.withEndpoints(Arrays.asList(new Endpoint().withProtocol(Protocol.HTTP)
.withName("connect")
.withTarget(8787)
- .withPublished(8787)))
+ .withPublished(4444)))
.withVolumes(Arrays.asList(new VolumeDefinition().withType(VolumeDefinitionType.BIND)
- .withReadOnly(false)
- .withSource("/home/azureuser/cloudfiles")
- .withTarget("/home/azureuser/cloudfiles")))
+ .withReadOnly(true)
+ .withSource("/mnt/azureuser/")
+ .withTarget("/home/testuser/")))
+ .withKernel(new JupyterKernelConfig().withArgv(Arrays.asList("option1", "option2", "option3"))
+ .withDisplayName("TestKernel")
+ .withLanguage("python"))
.withAdditionalProperties(mapOf())))
.withComputeInstanceAuthorizationType(ComputeInstanceAuthorizationType.PERSONAL)
+ .withEnableOSPatching(true)
+ .withEnableRootAccess(true)
+ .withEnableSso(true)
+ .withReleaseQuotaOnStop(true)
.withPersonalComputeInstanceSettings(new PersonalComputeInstanceSettings()
.withAssignedUser(new AssignedUser().withObjectId("00000000-0000-0000-0000-000000000000")
.withTenantId("00000000-0000-0000-0000-000000000000")))))
@@ -1605,8 +1694,8 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/createOrUpdate/ComputeInstanceMinimal.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/createOrUpdate/ComputeInstanceMinimal.json
*/
/**
* Sample code: Create an ComputeInstance Compute with minimal inputs.
@@ -1626,8 +1715,8 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/createOrUpdate/AmlCompute.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/createOrUpdate/AmlCompute.json
*/
/**
* Sample code: Update a AML Compute.
@@ -1648,8 +1737,8 @@ public final class ComputeCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/createOrUpdate/BasicDataFactoryCompute.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/createOrUpdate/BasicDataFactoryCompute.json
*/
/**
* Sample code: Create a DataFactory Compute.
@@ -1691,8 +1780,8 @@ 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/
- * examples/Compute/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/delete.json
*/
/**
* Sample code: Delete Compute.
@@ -1716,8 +1805,8 @@ public final class ComputeDeleteSamples {
public final class ComputeGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/get/AKSCompute.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/get/AKSCompute.json
*/
/**
* Sample code: Get a AKS Compute.
@@ -1731,8 +1820,8 @@ public final class ComputeGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/get/KubernetesCompute.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/get/KubernetesCompute.json
*/
/**
* Sample code: Get a Kubernetes Compute.
@@ -1746,8 +1835,8 @@ public final class ComputeGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/get/ComputeInstance.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/get/ComputeInstance.json
*/
/**
* Sample code: Get an ComputeInstance.
@@ -1761,8 +1850,8 @@ public final class ComputeGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/get/AmlCompute.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/get/AmlCompute.json
*/
/**
* Sample code: Get a AML Compute.
@@ -1776,6 +1865,31 @@ public final class ComputeGetSamples {
}
```
+### Compute_GetAllowedResizeSizes
+
+```java
+/**
+ * Samples for Compute GetAllowedResizeSizes.
+ */
+public final class ComputeGetAllowedResizeSizesSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/getAllowedVMSizesForResize.json
+ */
+ /**
+ * Sample code: List VM Sizes.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listVMSizes(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.computes()
+ .getAllowedResizeSizesWithResponse("testrg123", "workspaces123", "compute123",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Compute_List
```java
@@ -1785,8 +1899,8 @@ public final class ComputeGetSamples {
public final class ComputeListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/list.json
*/
/**
* Sample code: Get Computes.
@@ -1808,8 +1922,8 @@ public final class ComputeListSamples {
public final class ComputeListKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/listKeys.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/listKeys.json
*/
/**
* Sample code: List AKS Compute Keys.
@@ -1832,8 +1946,8 @@ public final class ComputeListKeysSamples {
public final class ComputeListNodesSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/listNodes.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/listNodes.json
*/
/**
* Sample code: Get compute nodes information for a compute.
@@ -1847,6 +1961,33 @@ public final class ComputeListNodesSamples {
}
```
+### Compute_Resize
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ResizeSchema;
+
+/**
+ * Samples for Compute Resize.
+ */
+public final class ComputeResizeSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/resize.json
+ */
+ /**
+ * Sample code: List VM Sizes.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listVMSizes(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.computes()
+ .resize("testrg123", "workspaces123", "compute123", new ResizeSchema().withTargetVMSize("Standard_DS11_v2"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Compute_Restart
```java
@@ -1856,8 +1997,8 @@ public final class ComputeListNodesSamples {
public final class ComputeRestartSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/restart.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/restart.json
*/
/**
* Sample code: Restart ComputeInstance Compute.
@@ -1880,8 +2021,8 @@ public final class ComputeRestartSamples {
public final class ComputeStartSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/start.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/start.json
*/
/**
* Sample code: Start ComputeInstance Compute.
@@ -1904,8 +2045,8 @@ public final class ComputeStartSamples {
public final class ComputeStopSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/stop.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/stop.json
*/
/**
* Sample code: Stop ComputeInstance Compute.
@@ -1933,8 +2074,8 @@ import java.time.Duration;
public final class ComputeUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Compute/patch.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/patch.json
*/
/**
* Sample code: Update a AmlCompute Compute.
@@ -1955,38 +2096,59 @@ public final class ComputeUpdateSamples {
}
```
-### DataContainers_CreateOrUpdate
+### Compute_UpdateCustomServices
```java
-import com.azure.resourcemanager.machinelearning.models.DataContainerProperties;
-import com.azure.resourcemanager.machinelearning.models.DataType;
+import com.azure.resourcemanager.machinelearning.models.CustomService;
+import com.azure.resourcemanager.machinelearning.models.Docker;
+import com.azure.resourcemanager.machinelearning.models.Endpoint;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVariable;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVariableType;
+import com.azure.resourcemanager.machinelearning.models.Image;
+import com.azure.resourcemanager.machinelearning.models.ImageType;
+import com.azure.resourcemanager.machinelearning.models.Protocol;
+import com.azure.resourcemanager.machinelearning.models.VolumeDefinition;
+import com.azure.resourcemanager.machinelearning.models.VolumeDefinitionType;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for DataContainers CreateOrUpdate.
+ * Samples for Compute UpdateCustomServices.
*/
-public final class DataContainersCreateOrUpdateSamples {
+public final class ComputeUpdateCustomServicesSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/DataContainer/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/updateCustomServices.json
*/
/**
- * Sample code: CreateOrUpdate Workspace Data Container.
+ * Sample code: Update Custom Services.
*
* @param manager Entry point to MachineLearningManager.
*/
- 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();
+ public static void updateCustomServices(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.computes()
+ .updateCustomServicesWithResponse("testrg123", "workspaces123", "compute123",
+ Arrays.asList(new CustomService().withName("rstudio-workbench")
+ .withImage(new Image().withType(ImageType.DOCKER)
+ .withReference("ghcr.io/azure/rstudio-workbench:latest")
+ .withAdditionalProperties(mapOf()))
+ .withEnvironmentVariables(mapOf("RSP_LICENSE",
+ new EnvironmentVariable().withType(EnvironmentVariableType.LOCAL)
+ .withValue("XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX")
+ .withAdditionalProperties(mapOf())))
+ .withDocker(new Docker().withPrivileged(true).withAdditionalProperties(mapOf()))
+ .withEndpoints(Arrays.asList(new Endpoint().withProtocol(Protocol.HTTP)
+ .withName("connect")
+ .withTarget(8787)
+ .withPublished(4444)))
+ .withVolumes(Arrays.asList(new VolumeDefinition().withType(VolumeDefinitionType.BIND)
+ .withReadOnly(true)
+ .withSource("/mnt/azureuser/")
+ .withTarget("/home/testuser/")))
+ .withAdditionalProperties(mapOf())),
+ com.azure.core.util.Context.NONE);
}
// Use "Map.of" if available
@@ -2003,242 +2165,917 @@ public final class DataContainersCreateOrUpdateSamples {
}
```
-### DataContainers_Delete
+### Compute_UpdateDataMounts
```java
+import com.azure.resourcemanager.machinelearning.models.ComputeInstanceDataMount;
+import com.azure.resourcemanager.machinelearning.models.MountAction;
+import com.azure.resourcemanager.machinelearning.models.MountMode;
+import com.azure.resourcemanager.machinelearning.models.SourceType;
+import java.util.Arrays;
+
/**
- * Samples for DataContainers Delete.
+ * Samples for Compute UpdateDataMounts.
*/
-public final class DataContainersDeleteSamples {
+public final class ComputeUpdateDataMountsSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/DataContainer/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/updateDataMounts.json
*/
/**
- * Sample code: Delete Workspace Data Container.
+ * Sample code: Update Data Mounts.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void
- deleteWorkspaceDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.dataContainers()
- .deleteWithResponse("testrg123", "workspace123", "datacontainer123", com.azure.core.util.Context.NONE);
+ public static void updateDataMounts(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.computes()
+ .updateDataMountsWithResponse("testrg123", "workspaces123", "compute123",
+ Arrays.asList(new ComputeInstanceDataMount().withSource(
+ "azureml://subscriptions/some-sub/resourcegroups/some-rg/workspaces/some-ws/data/some-data-asset-name/versions/some-data-asset-version")
+ .withSourceType(SourceType.URI)
+ .withMountName("hello")
+ .withMountAction(MountAction.MOUNT)
+ .withMountMode(MountMode.READ_ONLY)
+ .withMountPath("/some/random/path/on/host")),
+ com.azure.core.util.Context.NONE);
}
}
```
-### DataContainers_Get
+### Compute_UpdateIdleShutdownSetting
```java
+import com.azure.resourcemanager.machinelearning.models.IdleShutdownSetting;
+
/**
- * Samples for DataContainers Get.
+ * Samples for Compute UpdateIdleShutdownSetting.
*/
-public final class DataContainersGetSamples {
+public final class ComputeUpdateIdleShutdownSettingSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/DataContainer/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Compute/updateIdleShutdownSetting.json
*/
/**
- * Sample code: Get Workspace Data Container.
+ * Sample code: Update idle shutdown setting of ComputeInstance.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void
- getWorkspaceDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.dataContainers()
- .getWithResponse("testrg123", "workspace123", "datacontainer123", com.azure.core.util.Context.NONE);
+ public static void updateIdleShutdownSettingOfComputeInstance(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.computes()
+ .updateIdleShutdownSettingWithResponse("testrg123", "workspaces123", "compute123",
+ new IdleShutdownSetting().withIdleTimeBeforeShutdown("PT120M"), com.azure.core.util.Context.NONE);
}
}
```
-### DataContainers_List
+### Connection_CreateOrUpdateDeployment
```java
+import com.azure.resourcemanager.machinelearning.models.DeploymentModelVersionUpgradeOption;
+import com.azure.resourcemanager.machinelearning.models.EndpointDeploymentModel;
+import com.azure.resourcemanager.machinelearning.models.OpenAIEndpointDeploymentResourceProperties;
/**
- * Samples for DataContainers List.
+ * Samples for Connection CreateOrUpdateDeployment.
*/
-public final class DataContainersListSamples {
+public final class ConnectionCreateOrUpdateDeploymentSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/DataContainer/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/createDeployment.json
*/
/**
- * Sample code: List Workspace Data Container.
+ * Sample code: Create Azure OpenAI Connection Deployment.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void
- listWorkspaceDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.dataContainers().list("testrg123", "workspace123", null, null, com.azure.core.util.Context.NONE);
+ public static void createAzureOpenAIConnectionDeployment(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connections()
+ .define("text-davinci-003")
+ .withExistingConnection("resourceGroup-1", "testworkspace", "testConnection")
+ .withProperties(new OpenAIEndpointDeploymentResourceProperties()
+ .withModel(
+ new EndpointDeploymentModel().withFormat("OpenAI").withName("text-davinci-003").withVersion("1"))
+ .withVersionUpgradeOption(DeploymentModelVersionUpgradeOption.ONCE_NEW_DEFAULT_VERSION_AVAILABLE))
+ .create();
}
}
```
-### DataVersions_CreateOrUpdate
+### Connection_DeleteDeployment
```java
-import com.azure.resourcemanager.machinelearning.models.UriFileDataVersion;
-import java.util.HashMap;
-import java.util.Map;
-
/**
- * Samples for DataVersions CreateOrUpdate.
+ * Samples for Connection DeleteDeployment.
*/
-public final class DataVersionsCreateOrUpdateSamples {
+public final class ConnectionDeleteDeploymentSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/DataVersionBase/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/deleteDeployment.json
*/
/**
- * Sample code: CreateOrUpdate Workspace Data Version Base.
+ * Sample code: Delete Azure OpenAI Connection Deployment.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateWorkspaceDataVersionBase(
+ public static void deleteAzureOpenAIConnectionDeployment(
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();
+ manager.connections()
+ .deleteDeployment("test-rg", "aml-workspace-name", "testConnection", "testDeploymentName",
+ com.azure.core.util.Context.NONE);
}
+}
+```
- // 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;
+### Connection_GetDeployment
+
+```java
+/**
+ * Samples for Connection GetDeployment.
+ */
+public final class ConnectionGetDeploymentSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/getDeployment.json
+ */
+ /**
+ * Sample code: Get Azure OpenAI Connection Deployment.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ getAzureOpenAIConnectionDeployment(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connections()
+ .getDeploymentWithResponse("resourceGroup-1", "testworkspace", "testConnection", "text-davinci-003",
+ com.azure.core.util.Context.NONE);
}
}
```
-### DataVersions_Delete
+### Connection_GetModels
```java
/**
- * Samples for DataVersions Delete.
+ * Samples for Connection GetModels.
*/
-public final class DataVersionsDeleteSamples {
+public final class ConnectionGetModelsSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/DataVersionBase/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/getModels.json
*/
/**
- * Sample code: Delete Workspace Data Version Base.
+ * Sample code: Get Azure OpenAI Connection Models.
*
* @param manager Entry point to MachineLearningManager.
*/
public static void
- deleteWorkspaceDataVersionBase(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.dataVersions()
- .deleteWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ getAzureOpenAIConnectionModels(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connections()
+ .getModels("test-rg", "aml-workspace-name", "testConnection", com.azure.core.util.Context.NONE);
}
}
```
-### DataVersions_Get
+### Connection_ListDeployments
```java
/**
- * Samples for DataVersions Get.
+ * Samples for Connection ListDeployments.
*/
-public final class DataVersionsGetSamples {
+public final class ConnectionListDeploymentsSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/DataVersionBase/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/listDeployments.json
*/
/**
- * Sample code: Get Workspace Data Version Base.
+ * Sample code: List Azure OpenAI Connection Deployments.
*
* @param manager Entry point to MachineLearningManager.
*/
public static void
- getWorkspaceDataVersionBase(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.dataVersions()
- .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ listAzureOpenAIConnectionDeployments(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connections()
+ .listDeployments("resourceGroup-1", "testworkspace", "testConnection", com.azure.core.util.Context.NONE);
}
}
```
-### DataVersions_List
+### Connection_ListModels
```java
-
/**
- * Samples for DataVersions List.
+ * Samples for Connection ListModels.
*/
-public final class DataVersionsListSamples {
+public final class ConnectionListModelsSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/DataVersionBase/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/listConnectionModels.json
*/
/**
- * Sample code: List Workspace Data Version Base.
+ * Sample code: Get models under the Azure ML workspace for all Azure OpenAI connections that the user can deploy.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void
- listWorkspaceDataVersionBase(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.dataVersions()
- .list("test-rg", "my-aml-workspace", "string", "string", 1, null, "string", null,
- com.azure.core.util.Context.NONE);
+ public static void getModelsUnderTheAzureMLWorkspaceForAllAzureOpenAIConnectionsThatTheUserCanDeploy(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connections().listModelsWithResponse("test-rg", "aml-workspace-name", com.azure.core.util.Context.NONE);
}
}
```
-### DataVersions_Publish
+### ConnectionRaiBlocklistItem_AddBulk
```java
-import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
+import com.azure.resourcemanager.machinelearning.models.RaiBlocklistItemBulkRequest;
+import com.azure.resourcemanager.machinelearning.models.RaiBlocklistItemProperties;
+import java.util.Arrays;
/**
- * Samples for DataVersions Publish.
+ * Samples for ConnectionRaiBlocklistItem AddBulk.
*/
-public final class DataVersionsPublishSamples {
+public final class ConnectionRaiBlocklistItemAddBulkSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/DataVersionBase/publish.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklistItem/addBulk.json
*/
/**
- * Sample code: Publish Workspace Data Version Base.
+ * Sample code: Create Bulk Rai Blocklist Items.
*
* @param manager Entry point to MachineLearningManager.
*/
public static void
- 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"),
+ createBulkRaiBlocklistItems(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connectionRaiBlocklistItems()
+ .addBulk("test-rg", "aml-workspace-name", "testConnection", "raiBlocklistName",
+ Arrays.asList(
+ new RaiBlocklistItemBulkRequest().withName("myblocklistitem1")
+ .withProperties(
+ new RaiBlocklistItemProperties().withIsRegex(true).withPattern("^[a-z0-9_-]{2,16}$")),
+ new RaiBlocklistItemBulkRequest().withName("myblocklistitem2")
+ .withProperties(new RaiBlocklistItemProperties().withIsRegex(false).withPattern("blockwords"))),
com.azure.core.util.Context.NONE);
}
}
```
-### Datastores_CreateOrUpdate
+### ConnectionRaiBlocklistItem_Create
```java
-import com.azure.resourcemanager.machinelearning.models.AccountKeyDatastoreCredentials;
-import com.azure.resourcemanager.machinelearning.models.AccountKeyDatastoreSecrets;
+import com.azure.resourcemanager.machinelearning.models.RaiBlocklistItemProperties;
+
+/**
+ * Samples for ConnectionRaiBlocklistItem Create.
+ */
+public final class ConnectionRaiBlocklistItemCreateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklistItem/create.json
+ */
+ /**
+ * Sample code: Create RaiBlocklist Item.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ createRaiBlocklistItem(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connectionRaiBlocklistItems()
+ .define("raiBlocklistItemName")
+ .withExistingRaiBlocklist("test-rg", "aml-workspace-name", "testConnection", "raiBlocklistName")
+ .withProperties(new RaiBlocklistItemProperties().withIsRegex(false).withPattern("Pattern To Block"))
+ .create();
+ }
+}
+```
+
+### ConnectionRaiBlocklistItem_Delete
+
+```java
+/**
+ * Samples for ConnectionRaiBlocklistItem Delete.
+ */
+public final class ConnectionRaiBlocklistItemDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklistItem/delete.json
+ */
+ /**
+ * Sample code: Delete RaiBlocklist Item.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ deleteRaiBlocklistItem(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connectionRaiBlocklistItems()
+ .delete("test-rg", "aml-workspace-name", "testConnection", "raiBlocklistName", "raiBlocklistItemName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConnectionRaiBlocklistItem_DeleteBulk
+
+```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import java.io.IOException;
+
+/**
+ * Samples for ConnectionRaiBlocklistItem DeleteBulk.
+ */
+public final class ConnectionRaiBlocklistItemDeleteBulkSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklistItem/deleteBulk.json
+ */
+ /**
+ * Sample code: Delete Bulk Rai Blocklist Items.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteBulkRaiBlocklistItems(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ manager.connectionRaiBlocklistItems()
+ .deleteBulk("test-rg", "aml-workspace-name", "testConnection", "raiBlocklistName",
+ SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("[\"myblocklistitem1\",\"myblocklistitem2\"]", Object.class, SerializerEncoding.JSON),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConnectionRaiBlocklistItem_Get
+
+```java
+/**
+ * Samples for ConnectionRaiBlocklistItem Get.
+ */
+public final class ConnectionRaiBlocklistItemGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklistItem/get.json
+ */
+ /**
+ * Sample code: Get Rai RaiBlocklist Item.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ getRaiRaiBlocklistItem(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connectionRaiBlocklistItems()
+ .getWithResponse("test-rg", "aml-workspace-name", "testConnection", "raiBlocklistName",
+ "raiBlocklistItemName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConnectionRaiBlocklistItemsOperation_List
+
+```java
+/**
+ * Samples for ConnectionRaiBlocklistItemsOperation List.
+ */
+public final class ConnectionRaiBlocklistItemsOperationListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklistItem/list.json
+ */
+ /**
+ * Sample code: List RaiBlocklist Items.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRaiBlocklistItems(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connectionRaiBlocklistItemsOperations()
+ .list("test-rg", "aml-workspace-name", "testConnection", "raiBlocklistName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConnectionRaiBlocklistOperation_Create
+
+```java
+import com.azure.resourcemanager.machinelearning.models.RaiBlocklistProperties;
+
+/**
+ * Samples for ConnectionRaiBlocklistOperation Create.
+ */
+public final class ConnectionRaiBlocklistOperationCreateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklist/create.json
+ */
+ /**
+ * Sample code: Create Rai Blocklist.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createRaiBlocklist(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connectionRaiBlocklistOperations()
+ .define("raiBlocklistName")
+ .withExistingConnection("test-rg", "aml-workspace-name", "testConnection")
+ .withProperties(new RaiBlocklistProperties().withDescription("Basic blocklist description"))
+ .create();
+ }
+}
+```
+
+### ConnectionRaiBlocklistOperation_Delete
+
+```java
+/**
+ * Samples for ConnectionRaiBlocklistOperation Delete.
+ */
+public final class ConnectionRaiBlocklistOperationDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklist/delete.json
+ */
+ /**
+ * Sample code: Delete Rai Blocklist.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRaiBlocklist(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connectionRaiBlocklistOperations()
+ .delete("test-rg", "aml-workspace-name", "testConnection", "raiBlocklistName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConnectionRaiBlocklistOperation_Get
+
+```java
+/**
+ * Samples for ConnectionRaiBlocklistOperation Get.
+ */
+public final class ConnectionRaiBlocklistOperationGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklist/get.json
+ */
+ /**
+ * Sample code: Get Rai Blocklist.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRaiBlocklist(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connectionRaiBlocklistOperations()
+ .getWithResponse("test-rg", "aml-workspace-name", "testConnection", "raiBlocklistName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConnectionRaiBlocklists_List
+
+```java
+/**
+ * Samples for ConnectionRaiBlocklists List.
+ */
+public final class ConnectionRaiBlocklistsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklist/list.json
+ */
+ /**
+ * Sample code: List Rai Blocklist.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRaiBlocklist(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connectionRaiBlocklists()
+ .list("test-rg", "aml-workspace-name", "testConnection", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConnectionRaiPolicies_List
+
+```java
+/**
+ * Samples for ConnectionRaiPolicies List.
+ */
+public final class ConnectionRaiPoliciesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/RaiPolicy/list.json
+ */
+ /**
+ * Sample code: List Rai policy.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRaiPolicy(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connectionRaiPolicies()
+ .list("test-rg", "aml-workspace-name", "testConnection", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConnectionRaiPolicyOperation_Create
+
+```java
+import com.azure.resourcemanager.machinelearning.models.AllowedContentLevel;
+import com.azure.resourcemanager.machinelearning.models.RaiBlocklistConfig;
+import com.azure.resourcemanager.machinelearning.models.RaiPolicyContentFilter;
+import com.azure.resourcemanager.machinelearning.models.RaiPolicyContentSource;
+import com.azure.resourcemanager.machinelearning.models.RaiPolicyMode;
+import com.azure.resourcemanager.machinelearning.models.RaiPolicyProperties;
+import com.azure.resourcemanager.machinelearning.models.RaiPolicyType;
+import java.util.Arrays;
+
+/**
+ * Samples for ConnectionRaiPolicyOperation Create.
+ */
+public final class ConnectionRaiPolicyOperationCreateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/RaiPolicy/create.json
+ */
+ /**
+ * Sample code: Create Rai policy.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createRaiPolicy(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connectionRaiPolicyOperations()
+ .define("raiPolicyName")
+ .withExistingConnection("test-rg", "aml-workspace-name", "testConnection")
+ .withProperties(new RaiPolicyProperties().withBasePolicyName("112")
+ .withCompletionBlocklists(
+ Arrays.asList(new RaiBlocklistConfig().withBlocking(false).withBlocklistName("blocklistName")))
+ .withContentFilters(
+ Arrays.asList(new RaiPolicyContentFilter().withAllowedContentLevel(AllowedContentLevel.LOW)
+ .withBlocking(false)
+ .withEnabled(false)
+ .withName("policyName")
+ .withSource(RaiPolicyContentSource.PROMPT)))
+ .withMode(RaiPolicyMode.BLOCKING)
+ .withPromptBlocklists(
+ Arrays.asList(new RaiBlocklistConfig().withBlocking(false).withBlocklistName("blocklistName")))
+ .withType(RaiPolicyType.SYSTEM_MANAGED))
+ .create();
+ }
+}
+```
+
+### ConnectionRaiPolicyOperation_Delete
+
+```java
+/**
+ * Samples for ConnectionRaiPolicyOperation Delete.
+ */
+public final class ConnectionRaiPolicyOperationDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/RaiPolicy/delete.json
+ */
+ /**
+ * Sample code: Delete Rai policy.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRaiPolicy(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connectionRaiPolicyOperations()
+ .delete("test-rg", "aml-workspace-name", "testConnection", "raiPolicyName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### ConnectionRaiPolicyOperation_Get
+
+```java
+/**
+ * Samples for ConnectionRaiPolicyOperation Get.
+ */
+public final class ConnectionRaiPolicyOperationGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/RaiPolicy/get.json
+ */
+ /**
+ * Sample code: Get Rai policy.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getRaiPolicy(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connectionRaiPolicyOperations()
+ .getWithResponse("test-rg", "aml-workspace-name", "testConnection", "raiPolicyName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### 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;
+import java.util.Map;
+
+/**
+ * Samples for DataContainers CreateOrUpdate.
+ */
+public final class DataContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/DataContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Data Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ createOrUpdateWorkspaceDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.dataContainers()
+ .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
+ @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;
+ }
+}
+```
+
+### DataContainers_Delete
+
+```java
+/**
+ * Samples for DataContainers Delete.
+ */
+public final class DataContainersDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/DataContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Data Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ deleteWorkspaceDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.dataContainers()
+ .deleteWithResponse("testrg123", "workspace123", "datacontainer123", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DataContainers_Get
+
+```java
+/**
+ * Samples for DataContainers Get.
+ */
+public final class DataContainersGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/DataContainer/get.json
+ */
+ /**
+ * Sample code: Get Workspace Data Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ getWorkspaceDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.dataContainers()
+ .getWithResponse("testrg123", "workspace123", "datacontainer123", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DataContainers_List
+
+```java
+
+/**
+ * Samples for DataContainers List.
+ */
+public final class DataContainersListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/DataContainer/list.json
+ */
+ /**
+ * Sample code: List Workspace Data Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ listWorkspaceDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.dataContainers().list("testrg123", "workspace123", null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### 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;
+
+/**
+ * Samples for DataVersions CreateOrUpdate.
+ */
+public final class DataVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/DataVersionBase/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Data Version Base.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceDataVersionBase(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.dataVersions()
+ .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
+ @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;
+ }
+}
+```
+
+### DataVersions_Delete
+
+```java
+/**
+ * Samples for DataVersions Delete.
+ */
+public final class DataVersionsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/DataVersionBase/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Data Version Base.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ deleteWorkspaceDataVersionBase(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.dataVersions()
+ .deleteWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DataVersions_Get
+
+```java
+/**
+ * Samples for DataVersions Get.
+ */
+public final class DataVersionsGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/DataVersionBase/get.json
+ */
+ /**
+ * Sample code: Get Workspace Data Version Base.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ getWorkspaceDataVersionBase(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.dataVersions()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DataVersions_List
+
+```java
+
+/**
+ * Samples for DataVersions List.
+ */
+public final class DataVersionsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/DataVersionBase/list.json
+ */
+ /**
+ * Sample code: List Workspace Data Version Base.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ listWorkspaceDataVersionBase(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.dataVersions()
+ .list("test-rg", "my-aml-workspace", "string", "string", 1, null, "string", null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### DataVersions_Publish
+
+```java
+import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
+
+/**
+ * Samples for DataVersions Publish.
+ */
+public final class DataVersionsPublishSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/DataVersionBase/publish.json
+ */
+ /**
+ * Sample code: Publish Workspace Data Version Base.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ publishWorkspaceDataVersionBase(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.dataVersions()
+ .publish("test-rg", "my-aml-workspace", "string", "string",
+ new DestinationAsset().withDestinationName("string")
+ .withDestinationVersion("string")
+ .withRegistryName("string"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Datastores_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.AccountKeyDatastoreCredentials;
+import com.azure.resourcemanager.machinelearning.models.AccountKeyDatastoreSecrets;
import com.azure.resourcemanager.machinelearning.models.AzureBlobDatastore;
import com.azure.resourcemanager.machinelearning.models.AzureDataLakeGen1Datastore;
import com.azure.resourcemanager.machinelearning.models.AzureDataLakeGen2Datastore;
@@ -2255,8 +3092,8 @@ import java.util.UUID;
public final class DatastoresCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure Data Lake Gen1 w/ ServicePrincipal).
@@ -2271,10 +3108,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,8 +3119,8 @@ public final class DatastoresCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure Data Lake Gen2 w/ Service Principal).
@@ -2298,13 +3135,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,8 +3149,8 @@ public final class DatastoresCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (AzureBlob w/ AccountKey).
@@ -2339,8 +3176,8 @@ public final class DatastoresCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate datastore (Azure File store w/ AccountKey).
@@ -2357,8 +3194,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,8 +3224,8 @@ public final class DatastoresCreateOrUpdateSamples {
public final class DatastoresDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Datastore/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Datastore/delete.json
*/
/**
* Sample code: Delete datastore.
@@ -2411,8 +3248,8 @@ public final class DatastoresDeleteSamples {
public final class DatastoresGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Datastore/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Datastore/get.json
*/
/**
* Sample code: Get datastore.
@@ -2436,8 +3273,8 @@ import java.util.Arrays;
public final class DatastoresListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Datastore/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Datastore/list.json
*/
/**
* Sample code: List datastores.
@@ -2455,14 +3292,16 @@ public final class DatastoresListSamples {
### Datastores_ListSecrets
```java
+import com.azure.resourcemanager.machinelearning.models.SecretExpiry;
+
/**
* Samples for Datastores ListSecrets.
*/
public final class DatastoresListSecretsSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Datastore/listSecrets.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Datastore/listSecrets.json
*/
/**
* Sample code: Get datastore secrets.
@@ -2471,7 +3310,309 @@ public final class DatastoresListSecretsSamples {
*/
public static void getDatastoreSecrets(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.datastores()
- .listSecretsWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ .listSecretsWithResponse("test-rg", "my-aml-workspace", "string",
+ new SecretExpiry().withExpirableSecret(false).withExpireAfterHours(1),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Endpoint_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.OpenAIEndpointResourceProperties;
+
+/**
+ * Samples for Endpoint CreateOrUpdate.
+ */
+public final class EndpointCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Endpoint/create.json
+ */
+ /**
+ * Sample code: Create Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.endpoints()
+ .define("Azure.OpenAI")
+ .withExistingWorkspace("test-rg", "aml-workspace-name")
+ .withProperties(new OpenAIEndpointResourceProperties().withAssociatedResourceId(
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveService/account/account-1")
+ .withName("Azure.OpenAI"))
+ .create();
+ }
+}
+```
+
+### Endpoint_Get
+
+```java
+/**
+ * Samples for Endpoint Get.
+ */
+public final class EndpointGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Endpoint/get.json
+ */
+ /**
+ * Sample code: Get Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.endpoints()
+ .getWithResponse("test-rg", "aml-workspace-name", "Azure.OpenAI", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Endpoint_GetModels
+
+```java
+/**
+ * Samples for Endpoint GetModels.
+ */
+public final class EndpointGetModelsSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Endpoint/getModels.json
+ */
+ /**
+ * Sample code: Get Endpoint Models.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getEndpointModels(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.endpoints()
+ .getModels("test-rg", "aml-workspace-name", "Azure.OpenAI", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Endpoint_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.EndpointType;
+
+/**
+ * Samples for Endpoint List.
+ */
+public final class EndpointListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Endpoint/list.json
+ */
+ /**
+ * Sample code: List Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.endpoints()
+ .list("test-rg", "aml-workspace-name", EndpointType.AZURE_OPEN_AI, null, "skip_string", null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Endpoint_ListKeys
+
+```java
+/**
+ * Samples for Endpoint ListKeys.
+ */
+public final class EndpointListKeysSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Endpoint/listKeys.json
+ */
+ /**
+ * Sample code: List Endpoint Keys.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listEndpointKeys(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.endpoints()
+ .listKeysWithResponse("test-rg", "aml-workspace-name", "Azure.OpenAI", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Endpoint_RegenerateKeys
+
+```java
+import com.azure.resourcemanager.machinelearning.models.RegenerateServiceAccountKeyContent;
+import com.azure.resourcemanager.machinelearning.models.ServiceAccountKeyName;
+
+/**
+ * Samples for Endpoint RegenerateKeys.
+ */
+public final class EndpointRegenerateKeysSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Endpoint/regenerateKey.json
+ */
+ /**
+ * Sample code: Regenerate Endpoint Keys.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ regenerateEndpointKeys(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.endpoints()
+ .regenerateKeysWithResponse("test-rg", "aml-workspace-name", "Azure.OpenAI",
+ new RegenerateServiceAccountKeyContent().withKeyName(ServiceAccountKeyName.KEY1),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EndpointDeployment_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.fluent.models.EndpointDeploymentResourcePropertiesBasicResourceInner;
+import com.azure.resourcemanager.machinelearning.models.DeploymentModelVersionUpgradeOption;
+import com.azure.resourcemanager.machinelearning.models.EndpointDeploymentModel;
+import com.azure.resourcemanager.machinelearning.models.OpenAIEndpointDeploymentResourceProperties;
+
+/**
+ * Samples for EndpointDeployment CreateOrUpdate.
+ */
+public final class EndpointDeploymentCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Endpoint/Deployment/create.json
+ */
+ /**
+ * Sample code: Create Endpoint Deployment.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ createEndpointDeployment(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.endpointDeployments()
+ .createOrUpdate("resourceGroup-1", "testworkspace", "Azure.OpenAI", "text-davinci-003",
+ new EndpointDeploymentResourcePropertiesBasicResourceInner()
+ .withProperties(new OpenAIEndpointDeploymentResourceProperties()
+ .withModel(new EndpointDeploymentModel().withFormat("OpenAI")
+ .withName("text-davinci-003")
+ .withVersion("1"))
+ .withVersionUpgradeOption(
+ DeploymentModelVersionUpgradeOption.ONCE_NEW_DEFAULT_VERSION_AVAILABLE)),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EndpointDeployment_Delete
+
+```java
+/**
+ * Samples for EndpointDeployment Delete.
+ */
+public final class EndpointDeploymentDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Endpoint/Deployment/delete.json
+ */
+ /**
+ * Sample code: Delete Endpoint Deployment.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ deleteEndpointDeployment(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.endpointDeployments()
+ .delete("test-rg", "aml-workspace-name", "Azure.OpenAI", "testDeploymentName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EndpointDeployment_Get
+
+```java
+/**
+ * Samples for EndpointDeployment Get.
+ */
+public final class EndpointDeploymentGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Endpoint/Deployment/get.json
+ */
+ /**
+ * Sample code: Get Endpoint Deployment.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getEndpointDeployment(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.endpointDeployments()
+ .getWithResponse("resourceGroup-1", "testworkspace", "Azure.OpenAI", "text-davinci-003",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EndpointDeployment_GetInWorkspace
+
+```java
+
+/**
+ * Samples for EndpointDeployment GetInWorkspace.
+ */
+public final class EndpointDeploymentGetInWorkspaceSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Endpoint/Deployment/getInWorkspace.json
+ */
+ /**
+ * Sample code: Get Endpoint Deployments In Workspace.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ getEndpointDeploymentsInWorkspace(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.endpointDeployments()
+ .getInWorkspace("resourceGroup-1", "testworkspace", null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EndpointDeployment_List
+
+```java
+/**
+ * Samples for EndpointDeployment List.
+ */
+public final class EndpointDeploymentListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Endpoint/Deployment/getDeployments.json
+ */
+ /**
+ * Sample code: Get Endpoint Deployments.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ getEndpointDeployments(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.endpointDeployments()
+ .list("resourceGroup-1", "testworkspace", "Azure.OpenAI", com.azure.core.util.Context.NONE);
}
}
```
@@ -2479,6 +3620,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,8 +3631,8 @@ import java.util.Map;
public final class EnvironmentContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/EnvironmentContainer/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/EnvironmentContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Environment Container.
@@ -2500,13 +3642,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,8 +3675,8 @@ public final class EnvironmentContainersCreateOrUpdateSamples {
public final class EnvironmentContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/EnvironmentContainer/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/EnvironmentContainer/delete.json
*/
/**
* Sample code: Delete Workspace Environment Container.
@@ -2557,8 +3700,8 @@ public final class EnvironmentContainersDeleteSamples {
public final class EnvironmentContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/EnvironmentContainer/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/EnvironmentContainer/get.json
*/
/**
* Sample code: Get Workspace Environment Container.
@@ -2583,8 +3726,8 @@ public final class EnvironmentContainersGetSamples {
public final class EnvironmentContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/EnvironmentContainer/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/EnvironmentContainer/list.json
*/
/**
* Sample code: List Workspace Environment Container.
@@ -2602,6 +3745,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,8 +3759,8 @@ import java.util.Map;
public final class EnvironmentVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/EnvironmentVersion/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/EnvironmentVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Environment Version.
@@ -2626,22 +3770,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,8 +3811,8 @@ public final class EnvironmentVersionsCreateOrUpdateSamples {
public final class EnvironmentVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/EnvironmentVersion/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/EnvironmentVersion/delete.json
*/
/**
* Sample code: Delete Workspace Environment Version.
@@ -2692,8 +3836,8 @@ public final class EnvironmentVersionsDeleteSamples {
public final class EnvironmentVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/EnvironmentVersion/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/EnvironmentVersion/get.json
*/
/**
* Sample code: Get Workspace Environment Version.
@@ -2718,8 +3862,8 @@ public final class EnvironmentVersionsGetSamples {
public final class EnvironmentVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/EnvironmentVersion/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/EnvironmentVersion/list.json
*/
/**
* Sample code: List Workspace Environment Version.
@@ -2745,8 +3889,8 @@ 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/
- * examples/Workspace/EnvironmentVersion/publish.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/EnvironmentVersion/publish.json
*/
/**
* Sample code: Publish Workspace Environment Version.
@@ -2757,9 +3901,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,8 +3918,8 @@ public final class EnvironmentVersionsPublishSamples {
public final class FeaturesGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Feature/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Feature/get.json
*/
/**
* Sample code: Get Feature.
@@ -2800,8 +3944,8 @@ public final class FeaturesGetSamples {
public final class FeaturesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Feature/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Feature/list.json
*/
/**
* Sample code: List Feature.
@@ -2829,8 +3973,8 @@ import java.util.Map;
public final class FeaturesetContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/FeaturesetContainer/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/FeaturesetContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Featureset Container.
@@ -2843,8 +3987,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,8 +4016,8 @@ public final class FeaturesetContainersCreateOrUpdateSamples {
public final class FeaturesetContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/FeaturesetContainer/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/FeaturesetContainer/delete.json
*/
/**
* Sample code: Delete Workspace Featureset Container.
@@ -2897,8 +4041,8 @@ public final class FeaturesetContainersDeleteSamples {
public final class FeaturesetContainersGetEntitySamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/FeaturesetContainer/getEntity.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/FeaturesetContainer/getEntity.json
*/
/**
* Sample code: GetEntity Workspace Featureset Container.
@@ -2924,8 +4068,8 @@ 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/
- * examples/Workspace/FeaturesetContainer/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/FeaturesetContainer/list.json
*/
/**
* Sample code: List Workspace Featureset Container.
@@ -2959,8 +4103,8 @@ import java.util.Map;
public final class FeaturesetVersionsBackfillSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/FeaturesetVersion/backfill.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/FeaturesetVersion/backfill.json
*/
/**
* Sample code: Backfill Workspace Featureset Version.
@@ -2971,16 +4115,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,8 +4167,8 @@ import java.util.Map;
public final class FeaturesetVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/FeaturesetVersion/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/FeaturesetVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Featureset Version.
@@ -3036,28 +4181,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,8 +4230,8 @@ public final class FeaturesetVersionsCreateOrUpdateSamples {
public final class FeaturesetVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/FeaturesetVersion/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/FeaturesetVersion/delete.json
*/
/**
* Sample code: Delete Workspace Featureset Version.
@@ -3109,8 +4255,8 @@ public final class FeaturesetVersionsDeleteSamples {
public final class FeaturesetVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/FeaturesetVersion/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/FeaturesetVersion/get.json
*/
/**
* Sample code: Get Workspace Featureset Version.
@@ -3136,8 +4282,8 @@ 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/
- * examples/Workspace/FeaturesetVersion/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/FeaturesetVersion/list.json
*/
/**
* Sample code: List Workspace Featureset Version.
@@ -3166,8 +4312,8 @@ import java.util.Map;
public final class FeaturestoreEntityContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/FeaturestoreEntityContainer/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/FeaturestoreEntityContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Featurestore Entity Container.
@@ -3180,8 +4326,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,8 +4355,8 @@ public final class FeaturestoreEntityContainersCreateOrUpdateSamples {
public final class FeaturestoreEntityContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/FeaturestoreEntityContainer/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/FeaturestoreEntityContainer/delete.json
*/
/**
* Sample code: Delete Workspace Featurestore Entity Container.
@@ -3234,8 +4380,8 @@ public final class FeaturestoreEntityContainersDeleteSamples {
public final class FeaturestoreEntityContainersGetEntitySamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/FeaturestoreEntityContainer/getEntity.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/FeaturestoreEntityContainer/getEntity.json
*/
/**
* Sample code: GetEntity Workspace Featurestore Entity Container.
@@ -3261,8 +4407,8 @@ 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/
- * examples/Workspace/FeaturestoreEntityContainer/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/FeaturestoreEntityContainer/list.json
*/
/**
* Sample code: List Workspace Featurestore Entity Container.
@@ -3294,8 +4440,8 @@ import java.util.Map;
public final class FeaturestoreEntityVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/FeaturestoreEntityVersion/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/FeaturestoreEntityVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Featurestore Entity Version.
@@ -3309,12 +4455,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,8 +4487,8 @@ public final class FeaturestoreEntityVersionsCreateOrUpdateSamples {
public final class FeaturestoreEntityVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/FeaturestoreEntityVersion/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/FeaturestoreEntityVersion/delete.json
*/
/**
* Sample code: Delete Workspace Featurestore Entity Version.
@@ -3366,8 +4512,8 @@ public final class FeaturestoreEntityVersionsDeleteSamples {
public final class FeaturestoreEntityVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/FeaturestoreEntityVersion/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/FeaturestoreEntityVersion/get.json
*/
/**
* Sample code: Get Workspace Featurestore Entity Version.
@@ -3393,8 +4539,8 @@ 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/
- * examples/Workspace/FeaturestoreEntityVersion/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/FeaturestoreEntityVersion/list.json
*/
/**
* Sample code: List Workspace Featurestore Entity Version.
@@ -3419,8 +4565,8 @@ public final class FeaturestoreEntityVersionsListSamples {
public final class JobsCancelSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Job/cancel.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Job/cancel.json
*/
/**
* Sample code: Cancel Job.
@@ -3442,16 +4588,22 @@ import com.azure.resourcemanager.machinelearning.models.AmlToken;
import com.azure.resourcemanager.machinelearning.models.AutoMLJob;
import com.azure.resourcemanager.machinelearning.models.CommandJob;
import com.azure.resourcemanager.machinelearning.models.CommandJobLimits;
+import com.azure.resourcemanager.machinelearning.models.CustomModelFineTuning;
+import com.azure.resourcemanager.machinelearning.models.FineTuningJob;
+import com.azure.resourcemanager.machinelearning.models.FineTuningTaskType;
import com.azure.resourcemanager.machinelearning.models.Goal;
import com.azure.resourcemanager.machinelearning.models.GridSamplingAlgorithm;
import com.azure.resourcemanager.machinelearning.models.ImageClassification;
import com.azure.resourcemanager.machinelearning.models.ImageLimitSettings;
import com.azure.resourcemanager.machinelearning.models.ImageModelDistributionSettingsClassification;
import com.azure.resourcemanager.machinelearning.models.ImageModelSettingsClassification;
+import com.azure.resourcemanager.machinelearning.models.InputDeliveryMode;
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.MLFlowModelJobInput;
+import com.azure.resourcemanager.machinelearning.models.MLFlowModelJobOutput;
import com.azure.resourcemanager.machinelearning.models.MLTableJobInput;
import com.azure.resourcemanager.machinelearning.models.Mpi;
import com.azure.resourcemanager.machinelearning.models.Objective;
@@ -3461,6 +4613,7 @@ import com.azure.resourcemanager.machinelearning.models.SweepJob;
import com.azure.resourcemanager.machinelearning.models.SweepJobLimits;
import com.azure.resourcemanager.machinelearning.models.TensorFlow;
import com.azure.resourcemanager.machinelearning.models.TrialComponent;
+import com.azure.resourcemanager.machinelearning.models.UriFileJobInput;
import com.azure.resourcemanager.machinelearning.models.UriFileJobOutput;
import java.io.IOException;
import java.time.Duration;
@@ -3474,8 +4627,8 @@ import java.util.Map;
public final class JobsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Job/AutoMLJob/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Job/AutoMLJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate AutoML Job.
@@ -3488,43 +4641,43 @@ 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/
- * examples/Job/SweepJob/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Job/SweepJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Sweep Job.
@@ -3537,29 +4690,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,8 +4724,8 @@ public final class JobsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Job/PipelineJob/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Job/PipelineJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Pipeline Job.
@@ -3585,30 +4738,58 @@ 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/preview/2024-10-01-
+ * preview/examples/Job/FineTuningJob/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate FineTuning Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ createOrUpdateFineTuningJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.jobs()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(new FineTuningJob().withExperimentName("llm-finetuning")
+ .withFineTuningDetails(new CustomModelFineTuning().withTaskType(FineTuningTaskType.TEXT_COMPLETION)
+ .withTrainingData(new UriFileJobInput().withMode(InputDeliveryMode.READ_ONLY_MOUNT)
+ .withUri("azureml://registries/azureml-meta/models/Llama-2-7b/versions/11"))
+ .withModel(new MLFlowModelJobInput().withMode(InputDeliveryMode.READ_ONLY_MOUNT)
+ .withUri("azureml://registries/azureml-meta/models/Llama-2-7b/versions/11")))
+ .withOutputs(mapOf("string",
+ new MLFlowModelJobOutput().withDescription("string")
+ .withMode(OutputDeliveryMode.READ_WRITE_MOUNT)
+ .withUri("string"))))
.create();
}
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Job/CommandJob/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Job/CommandJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Command Job.
@@ -3621,34 +4802,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,8 +4856,8 @@ public final class JobsCreateOrUpdateSamples {
public final class JobsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Job/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Job/delete.json
*/
/**
* Sample code: Delete Job.
@@ -3701,8 +4882,8 @@ public final class JobsDeleteSamples {
public final class JobsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Job/CommandJob/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Job/CommandJob/get.json
*/
/**
* Sample code: Get Command Job.
@@ -3715,8 +4896,8 @@ public final class JobsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Job/AutoMLJob/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Job/AutoMLJob/get.json
*/
/**
* Sample code: Get AutoML Job.
@@ -3729,8 +4910,8 @@ public final class JobsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Job/SweepJob/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Job/SweepJob/get.json
*/
/**
* Sample code: Get Sweep Job.
@@ -3743,8 +4924,8 @@ public final class JobsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Job/PipelineJob/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Job/PipelineJob/get.json
*/
/**
* Sample code: Get Pipeline Job.
@@ -3754,12 +4935,27 @@ public final class JobsGetSamples {
public static void getPipelineJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.jobs().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
}
+
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Job/FineTuningJob/get.json
+ */
+ /**
+ * Sample code: Get FineTuning Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getFineTuningJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.jobs().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
}
```
### Jobs_List
```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
/**
* Samples for Jobs List.
@@ -3767,8 +4963,8 @@ public final class JobsGetSamples {
public final class JobsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Job/CommandJob/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Job/CommandJob/list.json
*/
/**
* Sample code: List Command Job.
@@ -3783,8 +4979,8 @@ public final class JobsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Job/PipelineJob/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Job/PipelineJob/list.json
*/
/**
* Sample code: List Pipeline Job.
@@ -3799,8 +4995,24 @@ public final class JobsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Job/SweepJob/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Job/FineTuningJob/list.json
+ */
+ /**
+ * Sample code: List FineTuning Job.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listFineTuningJob(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.jobs()
+ .list("test-rg", "my-aml-workspace", null, "string", "string", ListViewType.ALL, null,
+ com.azure.core.util.Context.NONE);
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Job/SweepJob/list.json
*/
/**
* Sample code: List Sweep Job.
@@ -3815,8 +5027,8 @@ public final class JobsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Job/AutoMLJob/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Job/AutoMLJob/list.json
*/
/**
* Sample code: List AutoML Job.
@@ -3841,8 +5053,8 @@ 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/
- * examples/ManagedNetwork/provision.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/ManagedNetwork/provision.json
*/
/**
* Sample code: Provision ManagedNetwork.
@@ -3871,8 +5083,8 @@ 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/
- * examples/ManagedNetwork/createOrUpdateRule.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/ManagedNetwork/createOrUpdateRule.json
*/
/**
* Sample code: CreateOrUpdate ManagedNetworkSettingsRule.
@@ -3901,8 +5113,8 @@ public final class ManagedNetworkSettingsRuleCreateOrUpdateSamples {
public final class ManagedNetworkSettingsRuleDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/ManagedNetwork/deleteRule.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/ManagedNetwork/deleteRule.json
*/
/**
* Sample code: Delete ManagedNetworkSettingsRule.
@@ -3926,8 +5138,8 @@ public final class ManagedNetworkSettingsRuleDeleteSamples {
public final class ManagedNetworkSettingsRuleGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/ManagedNetwork/getRule.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/ManagedNetwork/getRule.json
*/
/**
* Sample code: Get ManagedNetworkSettingsRule.
@@ -3952,8 +5164,8 @@ public final class ManagedNetworkSettingsRuleGetSamples {
public final class ManagedNetworkSettingsRuleListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/ManagedNetwork/listRule.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/ManagedNetwork/listRule.json
*/
/**
* Sample code: List ManagedNetworkSettingsRule.
@@ -3978,8 +5190,8 @@ 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/
- * examples/Workspace/MarketplaceSubscription/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/MarketplaceSubscription/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Marketplace Subscription.
@@ -4006,8 +5218,8 @@ public final class MarketplaceSubscriptionsCreateOrUpdateSamples {
public final class MarketplaceSubscriptionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/MarketplaceSubscription/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/MarketplaceSubscription/delete.json
*/
/**
* Sample code: Delete Workspace Marketplace Subscription.
@@ -4031,8 +5243,8 @@ public final class MarketplaceSubscriptionsDeleteSamples {
public final class MarketplaceSubscriptionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/MarketplaceSubscription/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/MarketplaceSubscription/get.json
*/
/**
* Sample code: Get Workspace Marketplace Subscription.
@@ -4056,8 +5268,8 @@ public final class MarketplaceSubscriptionsGetSamples {
public final class MarketplaceSubscriptionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/MarketplaceSubscription/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/MarketplaceSubscription/list.json
*/
/**
* Sample code: List Workspace Marketplace Subscription.
@@ -4074,6 +5286,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,8 +5297,8 @@ import java.util.Map;
public final class ModelContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ModelContainer/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ModelContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Model Container.
@@ -4095,11 +5308,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,8 +5338,8 @@ public final class ModelContainersCreateOrUpdateSamples {
public final class ModelContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ModelContainer/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ModelContainer/delete.json
*/
/**
* Sample code: Delete Workspace Model Container.
@@ -4150,8 +5363,8 @@ public final class ModelContainersDeleteSamples {
public final class ModelContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ModelContainer/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ModelContainer/get.json
*/
/**
* Sample code: Get Workspace Model Container.
@@ -4176,8 +5389,8 @@ public final class ModelContainersGetSamples {
public final class ModelContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ModelContainer/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ModelContainer/list.json
*/
/**
* Sample code: List Workspace Model Container.
@@ -4194,6 +5407,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,8 +5419,8 @@ import java.util.Map;
public final class ModelVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ModelVersion/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ModelVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Model Version.
@@ -4216,16 +5430,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,8 +5464,8 @@ public final class ModelVersionsCreateOrUpdateSamples {
public final class ModelVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ModelVersion/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ModelVersion/delete.json
*/
/**
* Sample code: Delete Workspace Model Version.
@@ -4276,8 +5489,8 @@ public final class ModelVersionsDeleteSamples {
public final class ModelVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ModelVersion/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ModelVersion/get.json
*/
/**
* Sample code: Get Workspace Model Version.
@@ -4302,8 +5515,8 @@ public final class ModelVersionsGetSamples {
public final class ModelVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ModelVersion/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ModelVersion/list.json
*/
/**
* Sample code: List Workspace Model Version.
@@ -4330,8 +5543,8 @@ 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/
- * examples/Workspace/ModelVersion/publish.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ModelVersion/publish.json
*/
/**
* Sample code: Publish Workspace Model Version.
@@ -4342,9 +5555,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,8 +5589,8 @@ import java.util.Map;
public final class OnlineDeploymentsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Kubernetes Online Deployment.
@@ -4390,34 +5603,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,8 +5642,8 @@ public final class OnlineDeploymentsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Managed Online Deployment.
@@ -4442,34 +5656,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,8 +5716,8 @@ public final class OnlineDeploymentsCreateOrUpdateSamples {
public final class OnlineDeploymentsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/OnlineDeployment/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/OnlineDeployment/delete.json
*/
/**
* Sample code: Delete Workspace Online Deployment.
@@ -4526,8 +5741,8 @@ public final class OnlineDeploymentsDeleteSamples {
public final class OnlineDeploymentsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
*/
/**
* Sample code: Get Kubernetes Online Deployment.
@@ -4543,8 +5758,8 @@ public final class OnlineDeploymentsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/OnlineDeployment/ManagedOnlineDeployment/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
*/
/**
* Sample code: Get Managed Online Deployment.
@@ -4572,8 +5787,8 @@ 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/
- * examples/OnlineDeployment/getLogs.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/OnlineDeployment/getLogs.json
*/
/**
* Sample code: Get Online Deployment Logs.
@@ -4599,8 +5814,8 @@ public final class OnlineDeploymentsGetLogsSamples {
public final class OnlineDeploymentsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/OnlineDeployment/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/OnlineDeployment/list.json
*/
/**
* Sample code: List Online Deployments.
@@ -4624,8 +5839,8 @@ public final class OnlineDeploymentsListSamples {
public final class OnlineDeploymentsListSkusSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json
*/
/**
* Sample code: List Managed Online Deployment Skus.
@@ -4641,8 +5856,8 @@ public final class OnlineDeploymentsListSkusSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json
*/
/**
* Sample code: List Kubernetes Online Deployment Skus.
@@ -4673,8 +5888,8 @@ import java.util.Map;
public final class OnlineDeploymentsUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/OnlineDeployment/ManagedOnlineDeployment/update.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/OnlineDeployment/ManagedOnlineDeployment/update.json
*/
/**
* Sample code: Update Managed Online Deployment.
@@ -4689,18 +5904,18 @@ 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/
- * examples/OnlineDeployment/KubernetesOnlineDeployment/update.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/OnlineDeployment/KubernetesOnlineDeployment/update.json
*/
/**
* Sample code: Update Kubernetes Online Deployment.
@@ -4715,11 +5930,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,8 +5971,8 @@ import java.util.Map;
public final class OnlineEndpointsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/OnlineEndpoint/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/OnlineEndpoint/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Online Endpoint.
@@ -4770,15 +5985,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,8 +6025,8 @@ public final class OnlineEndpointsCreateOrUpdateSamples {
public final class OnlineEndpointsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/OnlineEndpoint/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/OnlineEndpoint/delete.json
*/
/**
* Sample code: Delete Workspace Online Endpoint.
@@ -4835,8 +6050,8 @@ public final class OnlineEndpointsDeleteSamples {
public final class OnlineEndpointsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/OnlineEndpoint/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/OnlineEndpoint/get.json
*/
/**
* Sample code: Get Workspace Online Endpoint.
@@ -4860,8 +6075,8 @@ public final class OnlineEndpointsGetSamples {
public final class OnlineEndpointsGetTokenSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/OnlineEndpoint/getToken.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/OnlineEndpoint/getToken.json
*/
/**
* Sample code: GetToken Workspace Online Endpoint.
@@ -4888,8 +6103,8 @@ 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/
- * examples/Workspace/OnlineEndpoint/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/OnlineEndpoint/list.json
*/
/**
* Sample code: List Workspace Online Endpoint.
@@ -4914,8 +6129,8 @@ public final class OnlineEndpointsListSamples {
public final class OnlineEndpointsListKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/OnlineEndpoint/listKeys.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/OnlineEndpoint/listKeys.json
*/
/**
* Sample code: ListKeys Workspace Online Endpoint.
@@ -4942,8 +6157,8 @@ 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/
- * examples/Workspace/OnlineEndpoint/regenerateKeys.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/OnlineEndpoint/regenerateKeys.json
*/
/**
* Sample code: RegenerateKeys Workspace Online Endpoint.
@@ -4978,8 +6193,8 @@ import java.util.Map;
public final class OnlineEndpointsUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/OnlineEndpoint/update.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/OnlineEndpoint/update.json
*/
/**
* Sample code: Update Workspace Online Endpoint.
@@ -5023,8 +6238,8 @@ public final class OnlineEndpointsUpdateSamples {
public final class OperationsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/operationsList.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/operationsList.json
*/
/**
* Sample code: OperationsList.
@@ -5040,7 +6255,7 @@ public final class OperationsListSamples {
### PrivateEndpointConnections_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.PrivateEndpointServiceConnectionStatus;
+import com.azure.resourcemanager.machinelearning.models.EndpointServiceConnectionStatus;
import com.azure.resourcemanager.machinelearning.models.PrivateLinkServiceConnectionState;
/**
@@ -5049,8 +6264,8 @@ 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/
- * examples/PrivateEndpointConnection/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/PrivateEndpointConnection/createOrUpdate.json
*/
/**
* Sample code: WorkspacePutPrivateEndpointConnection.
@@ -5063,8 +6278,8 @@ public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
.define("{privateEndpointConnectionName}")
.withExistingWorkspace("rg-1234", "testworkspace")
.withPrivateLinkServiceConnectionState(
- new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)
- .withDescription("Auto-Approved"))
+ new PrivateLinkServiceConnectionState().withDescription("Auto-Approved")
+ .withStatus(EndpointServiceConnectionStatus.APPROVED))
.create();
}
}
@@ -5079,15 +6294,15 @@ public final class PrivateEndpointConnectionsCreateOrUpdateSamples {
public final class PrivateEndpointConnectionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/PrivateEndpointConnection/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/PrivateEndpointConnection/delete.json
*/
/**
- * Sample code: WorkspaceDeletePrivateEndpointConnection.
+ * Sample code: WorkspacePutPrivateEndpointConnection.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void workspaceDeletePrivateEndpointConnection(
+ public static void workspacePutPrivateEndpointConnection(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.privateEndpointConnections()
.deleteWithResponse("rg-1234", "testworkspace", "{privateEndpointConnectionName}",
@@ -5105,8 +6320,8 @@ public final class PrivateEndpointConnectionsDeleteSamples {
public final class PrivateEndpointConnectionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/PrivateEndpointConnection/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/PrivateEndpointConnection/get.json
*/
/**
* Sample code: WorkspaceGetPrivateEndpointConnection.
@@ -5131,8 +6346,8 @@ public final class PrivateEndpointConnectionsGetSamples {
public final class PrivateEndpointConnectionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/PrivateEndpointConnection/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/PrivateEndpointConnection/list.json
*/
/**
* Sample code: StorageAccountListPrivateEndpointConnections.
@@ -5155,8 +6370,8 @@ public final class PrivateEndpointConnectionsListSamples {
public final class PrivateLinkResourcesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/PrivateLinkResource/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/PrivateLinkResource/list.json
*/
/**
* Sample code: WorkspaceListPrivateLinkResources.
@@ -5165,7 +6380,7 @@ public final class PrivateLinkResourcesListSamples {
*/
public static void
workspaceListPrivateLinkResources(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.privateLinkResources().listWithResponse("rg-1234", "testworkspace", com.azure.core.util.Context.NONE);
+ manager.privateLinkResources().list("rg-1234", "testworkspace", com.azure.core.util.Context.NONE);
}
}
```
@@ -5179,8 +6394,8 @@ public final class PrivateLinkResourcesListSamples {
public final class QuotasListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Quota/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Quota/list.json
*/
/**
* Sample code: List workspace quotas by VMFamily.
@@ -5203,32 +6418,153 @@ import com.azure.resourcemanager.machinelearning.models.QuotaUpdateParameters;
import java.util.Arrays;
/**
- * Samples for Quotas Update.
+ * Samples for Quotas Update.
+ */
+public final class QuotasUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Quota/update.json
+ */
+ /**
+ * Sample code: update quotas.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void updateQuotas(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.quotas()
+ .updateWithResponse("eastus", new QuotaUpdateParameters().withValue(Arrays.asList(
+ new QuotaBaseProperties().withId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs")
+ .withType("Microsoft.MachineLearningServices/workspaces/quotas")
+ .withLimit(100L)
+ .withUnit(QuotaUnit.COUNT),
+ new QuotaBaseProperties().withId(
+ "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs")
+ .withType("Microsoft.MachineLearningServices/workspaces/quotas")
+ .withLimit(200L)
+ .withUnit(QuotaUnit.COUNT))),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RaiPolicies_List
+
+```java
+/**
+ * Samples for RaiPolicies List.
+ */
+public final class RaiPoliciesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Endpoint/RaiPolicy/list.json
+ */
+ /**
+ * Sample code: List Rai policies.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listRaiPolicies(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.raiPolicies().list("test-rg", "aml-workspace-name", "Azure.OpenAI", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RaiPolicyOperation_Create
+
+```java
+import com.azure.resourcemanager.machinelearning.fluent.models.RaiPolicyPropertiesBasicResourceInner;
+import com.azure.resourcemanager.machinelearning.models.AllowedContentLevel;
+import com.azure.resourcemanager.machinelearning.models.RaiBlocklistConfig;
+import com.azure.resourcemanager.machinelearning.models.RaiPolicyContentFilter;
+import com.azure.resourcemanager.machinelearning.models.RaiPolicyContentSource;
+import com.azure.resourcemanager.machinelearning.models.RaiPolicyMode;
+import com.azure.resourcemanager.machinelearning.models.RaiPolicyProperties;
+import com.azure.resourcemanager.machinelearning.models.RaiPolicyType;
+import java.util.Arrays;
+
+/**
+ * Samples for RaiPolicyOperation Create.
+ */
+public final class RaiPolicyOperationCreateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Endpoint/RaiPolicy/create.json
+ */
+ /**
+ * Sample code: Create Rai policy.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createRaiPolicy(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.raiPolicyOperations()
+ .create("test-rg", "aml-workspace-name", "Azure.OpenAI", "raiPolicyName",
+ new RaiPolicyPropertiesBasicResourceInner().withProperties(new RaiPolicyProperties()
+ .withBasePolicyName("112")
+ .withCompletionBlocklists(
+ Arrays.asList(new RaiBlocklistConfig().withBlocking(false).withBlocklistName("blocklistName")))
+ .withContentFilters(
+ Arrays.asList(new RaiPolicyContentFilter().withAllowedContentLevel(AllowedContentLevel.LOW)
+ .withBlocking(false)
+ .withEnabled(false)
+ .withName("policyName")
+ .withSource(RaiPolicyContentSource.PROMPT)))
+ .withMode(RaiPolicyMode.BLOCKING)
+ .withPromptBlocklists(
+ Arrays.asList(new RaiBlocklistConfig().withBlocking(false).withBlocklistName("blocklistName")))
+ .withType(RaiPolicyType.SYSTEM_MANAGED)),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RaiPolicyOperation_Delete
+
+```java
+/**
+ * Samples for RaiPolicyOperation Delete.
+ */
+public final class RaiPolicyOperationDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Endpoint/RaiPolicy/delete.json
+ */
+ /**
+ * Sample code: Delete Rai policy.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteRaiPolicy(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.raiPolicyOperations()
+ .delete("test-rg", "aml-workspace-name", "Azure.OpenAI", "raiPolicyName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RaiPolicyOperation_Get
+
+```java
+/**
+ * Samples for RaiPolicyOperation Get.
*/
-public final class QuotasUpdateSamples {
+public final class RaiPolicyOperationGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Quota/update.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Endpoint/RaiPolicy/get.json
*/
/**
- * Sample code: update quotas.
+ * Sample code: Get Rai policy.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void updateQuotas(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.quotas()
- .updateWithResponse("eastus", new QuotaUpdateParameters().withValue(Arrays.asList(
- new QuotaBaseProperties().withId(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace1/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs")
- .withType("Microsoft.MachineLearningServices/workspaces/quotas")
- .withLimit(100L)
- .withUnit(QuotaUnit.COUNT),
- new QuotaBaseProperties().withId(
- "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.MachineLearningServices/workspaces/demo_workspace2/quotas/Standard_DSv2_Family_Cluster_Dedicated_vCPUs")
- .withType("Microsoft.MachineLearningServices/workspaces/quotas")
- .withLimit(200L)
- .withUnit(QuotaUnit.COUNT))),
+ public static void getRaiPolicy(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.raiPolicyOperations()
+ .getWithResponse("test-rg", "aml-workspace-name", "Azure.OpenAI", "raiPolicyName",
com.azure.core.util.Context.NONE);
}
}
@@ -5264,8 +6600,8 @@ import java.util.Map;
public final class RegistriesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registries/createOrUpdate-SystemCreated.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registries/createOrUpdate-SystemCreated.json
*/
/**
* Sample code: CreateOrUpdate Registry with system created accounts.
@@ -5319,8 +6655,8 @@ public final class RegistriesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registries/createOrUpdate-UserCreated.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registries/createOrUpdate-UserCreated.json
*/
/**
* Sample code: CreateOrUpdate Registry with user created accounts.
@@ -5389,8 +6725,8 @@ public final class RegistriesCreateOrUpdateSamples {
public final class RegistriesDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registries/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registries/delete.json
*/
/**
* Sample code: Delete Registry.
@@ -5412,8 +6748,8 @@ public final class RegistriesDeleteSamples {
public final class RegistriesGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registries/get-UserCreated.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registries/get-UserCreated.json
*/
/**
* Sample code: Get Registry with user created accounts.
@@ -5427,8 +6763,8 @@ public final class RegistriesGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registries/get-SystemCreated.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registries/get-SystemCreated.json
*/
/**
* Sample code: Get Registry with system created accounts.
@@ -5451,8 +6787,8 @@ public final class RegistriesGetByResourceGroupSamples {
public final class RegistriesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registries/listBySubscription.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registries/listBySubscription.json
*/
/**
* Sample code: List registries by subscription.
@@ -5475,8 +6811,8 @@ public final class RegistriesListSamples {
public final class RegistriesListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registries/list-UserCreated.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registries/list-UserCreated.json
*/
/**
* Sample code: List registries with user created accounts.
@@ -5490,8 +6826,8 @@ public final class RegistriesListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registries/list-SystemCreated.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registries/list-SystemCreated.json
*/
/**
* Sample code: List registries with system created accounts.
@@ -5536,8 +6872,8 @@ import java.util.Map;
public final class RegistriesRemoveRegionsSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registries/removeRegions.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registries/removeRegions.json
*/
/**
* Sample code: Remove regions from registry.
@@ -5625,8 +6961,8 @@ import java.util.Map;
public final class RegistriesUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registries/update-UserCreated.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registries/update-UserCreated.json
*/
/**
* Sample code: Update Registry with user created accounts.
@@ -5642,18 +6978,18 @@ 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/
- * examples/Registries/update-SystemCreated.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registries/update-SystemCreated.json
*/
/**
* Sample code: Update Registry with system created accounts.
@@ -5670,11 +7006,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 +7031,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,8 +7041,8 @@ import java.util.Map;
public final class RegistryCodeContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/CodeContainer/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/CodeContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Code Container.
@@ -5717,10 +7052,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,8 +7082,8 @@ public final class RegistryCodeContainersCreateOrUpdateSamples {
public final class RegistryCodeContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/CodeContainer/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/CodeContainer/delete.json
*/
/**
* Sample code: Delete Registry Code Container.
@@ -5771,8 +7107,8 @@ public final class RegistryCodeContainersDeleteSamples {
public final class RegistryCodeContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/CodeContainer/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/CodeContainer/get.json
*/
/**
* Sample code: Get Registry Code Container.
@@ -5796,8 +7132,8 @@ public final class RegistryCodeContainersGetSamples {
public final class RegistryCodeContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/CodeContainer/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/CodeContainer/list.json
*/
/**
* Sample code: List Registry Code Container.
@@ -5823,8 +7159,8 @@ 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/
- * examples/Registry/CodeVersion/createOrGetStartPendingUpload.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/CodeVersion/createOrGetStartPendingUpload.json
*/
/**
* Sample code: CreateOrGetStartPendingUpload Registry Code Version.
@@ -5845,7 +7181,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,8 +7191,8 @@ import java.util.Map;
public final class RegistryCodeVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/CodeVersion/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/CodeVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Code Version.
@@ -5867,13 +7202,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,8 +7235,8 @@ public final class RegistryCodeVersionsCreateOrUpdateSamples {
public final class RegistryCodeVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/CodeVersion/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/CodeVersion/delete.json
*/
/**
* Sample code: Delete Registry Code Version.
@@ -5924,8 +7260,8 @@ public final class RegistryCodeVersionsDeleteSamples {
public final class RegistryCodeVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/CodeVersion/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/CodeVersion/get.json
*/
/**
* Sample code: Get Registry Code Version.
@@ -5949,8 +7285,8 @@ public final class RegistryCodeVersionsGetSamples {
public final class RegistryCodeVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/CodeVersion/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/CodeVersion/list.json
*/
/**
* Sample code: List Registry Code Version.
@@ -5968,7 +7304,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,8 +7314,8 @@ import java.util.Map;
public final class RegistryComponentContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/ComponentContainer/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/ComponentContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Component Container.
@@ -5990,12 +7325,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,8 +7356,8 @@ public final class RegistryComponentContainersCreateOrUpdateSamples {
public final class RegistryComponentContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/ComponentContainer/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/ComponentContainer/delete.json
*/
/**
* Sample code: Delete Registry Component Container.
@@ -6046,8 +7381,8 @@ public final class RegistryComponentContainersDeleteSamples {
public final class RegistryComponentContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/ComponentContainer/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/ComponentContainer/get.json
*/
/**
* Sample code: Get Registry Component Container.
@@ -6071,8 +7406,8 @@ public final class RegistryComponentContainersGetSamples {
public final class RegistryComponentContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/ComponentContainer/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/ComponentContainer/list.json
*/
/**
* Sample code: List Registry Component Container.
@@ -6092,7 +7427,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,8 +7438,8 @@ import java.util.Map;
public final class RegistryComponentVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/ComponentVersion/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/ComponentVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Component Version.
@@ -6115,15 +7449,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,8 +7484,8 @@ public final class RegistryComponentVersionsCreateOrUpdateSamples {
public final class RegistryComponentVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/ComponentVersion/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/ComponentVersion/delete.json
*/
/**
* Sample code: Delete Registry Component Version.
@@ -6174,8 +7509,8 @@ public final class RegistryComponentVersionsDeleteSamples {
public final class RegistryComponentVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/ComponentVersion/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/ComponentVersion/get.json
*/
/**
* Sample code: Get Registry Component Version.
@@ -6199,8 +7534,8 @@ public final class RegistryComponentVersionsGetSamples {
public final class RegistryComponentVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/ComponentVersion/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/ComponentVersion/list.json
*/
/**
* Sample code: List Registry Component Version.
@@ -6218,7 +7553,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,8 +7564,8 @@ import java.util.Map;
public final class RegistryDataContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/DataContainer/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/DataContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Data Container.
@@ -6241,13 +7575,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,8 +7608,8 @@ public final class RegistryDataContainersCreateOrUpdateSamples {
public final class RegistryDataContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/DataContainer/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/DataContainer/delete.json
*/
/**
* Sample code: Delete Registry Data Container.
@@ -6297,8 +7632,8 @@ public final class RegistryDataContainersDeleteSamples {
public final class RegistryDataContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/DataContainer/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/DataContainer/get.json
*/
/**
* Sample code: Get Registry Data Container.
@@ -6324,8 +7659,8 @@ 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/
- * examples/Registry/DataContainer/registryList.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/DataContainer/registryList.json
*/
/**
* Sample code: RegistryList Registry Data Container.
@@ -6351,8 +7686,8 @@ 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/
- * examples/DataReference/getBlobReferenceSAS.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/DataReference/getBlobReferenceSAS.json
*/
/**
* Sample code: GetBlobReferenceSAS Data Reference.
@@ -6382,8 +7717,8 @@ 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/
- * examples/Registry/DataVersionBase/createOrGetStartPendingUpload.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/DataVersionBase/createOrGetStartPendingUpload.json
*/
/**
* Sample code: CreateOrGetStartPendingUpload Registry Data Version Base.
@@ -6404,7 +7739,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,8 +7750,8 @@ import java.util.Map;
public final class RegistryDataVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/DataVersionBase/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/DataVersionBase/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Data Version Base.
@@ -6427,15 +7761,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,8 +7796,8 @@ public final class RegistryDataVersionsCreateOrUpdateSamples {
public final class RegistryDataVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/DataVersionBase/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/DataVersionBase/delete.json
*/
/**
* Sample code: Delete Registry Data Version Base.
@@ -6486,8 +7821,8 @@ public final class RegistryDataVersionsDeleteSamples {
public final class RegistryDataVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/DataVersionBase/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/DataVersionBase/get.json
*/
/**
* Sample code: Get Registry Data Version Base.
@@ -6513,8 +7848,8 @@ 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/
- * examples/Registry/DataVersionBase/registryList.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/DataVersionBase/registryList.json
*/
/**
* Sample code: RegistryList Registry Data Version Base.
@@ -6533,7 +7868,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,8 +7878,8 @@ import java.util.Map;
public final class RegistryEnvironmentContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/EnvironmentContainer/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/EnvironmentContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Environment Container.
@@ -6555,14 +7889,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,8 +7921,8 @@ public final class RegistryEnvironmentContainersCreateOrUpdateSamples {
public final class RegistryEnvironmentContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/EnvironmentContainer/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/EnvironmentContainer/delete.json
*/
/**
* Sample code: Delete Registry Environment Container.
@@ -6613,8 +7946,8 @@ public final class RegistryEnvironmentContainersDeleteSamples {
public final class RegistryEnvironmentContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/EnvironmentContainer/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/EnvironmentContainer/get.json
*/
/**
* Sample code: Get Registry Environment Container.
@@ -6639,8 +7972,8 @@ public final class RegistryEnvironmentContainersGetSamples {
public final class RegistryEnvironmentContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/EnvironmentContainer/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/EnvironmentContainer/list.json
*/
/**
* Sample code: List Registry Environment Container.
@@ -6658,7 +7991,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,8 +8004,8 @@ import java.util.Map;
public final class RegistryEnvironmentVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/EnvironmentVersion/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/EnvironmentVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Environment Version.
@@ -6683,22 +8015,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,8 +8056,8 @@ public final class RegistryEnvironmentVersionsCreateOrUpdateSamples {
public final class RegistryEnvironmentVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/EnvironmentVersion/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/EnvironmentVersion/delete.json
*/
/**
* Sample code: Delete Registry Environment Version.
@@ -6749,8 +8081,8 @@ public final class RegistryEnvironmentVersionsDeleteSamples {
public final class RegistryEnvironmentVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/EnvironmentVersion/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/EnvironmentVersion/get.json
*/
/**
* Sample code: Get Registry Environment Version.
@@ -6775,8 +8107,8 @@ public final class RegistryEnvironmentVersionsGetSamples {
public final class RegistryEnvironmentVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/EnvironmentVersion/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/EnvironmentVersion/list.json
*/
/**
* Sample code: List Registry Environment Version.
@@ -6794,7 +8126,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,8 +8136,8 @@ import java.util.Map;
public final class RegistryModelContainersCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/ModelContainer/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/ModelContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Model Container.
@@ -6816,11 +8147,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,8 +8177,8 @@ public final class RegistryModelContainersCreateOrUpdateSamples {
public final class RegistryModelContainersDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/ModelContainer/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/ModelContainer/delete.json
*/
/**
* Sample code: Delete Registry Model Container.
@@ -6871,8 +8202,8 @@ public final class RegistryModelContainersDeleteSamples {
public final class RegistryModelContainersGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/ModelContainer/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/ModelContainer/get.json
*/
/**
* Sample code: Get Registry Model Container.
@@ -6897,8 +8228,8 @@ public final class RegistryModelContainersGetSamples {
public final class RegistryModelContainersListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/ModelContainer/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/ModelContainer/list.json
*/
/**
* Sample code: List Registry Model Container.
@@ -6925,8 +8256,8 @@ 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/
- * examples/Registry/ModelVersion/createOrGetStartPendingUpload.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/ModelVersion/createOrGetStartPendingUpload.json
*/
/**
* Sample code: CreateOrGetStartPendingUpload Registry Model Version.
@@ -6947,7 +8278,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,8 +8289,8 @@ import java.util.Map;
public final class RegistryModelVersionsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/ModelVersion/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/ModelVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Model Version.
@@ -6970,15 +8300,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,8 +8335,8 @@ public final class RegistryModelVersionsCreateOrUpdateSamples {
public final class RegistryModelVersionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/ModelVersion/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/ModelVersion/delete.json
*/
/**
* Sample code: Delete Registry Model Version.
@@ -7029,8 +8360,8 @@ public final class RegistryModelVersionsDeleteSamples {
public final class RegistryModelVersionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/ModelVersion/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/ModelVersion/get.json
*/
/**
* Sample code: Get Registry Model Version.
@@ -7055,8 +8386,8 @@ public final class RegistryModelVersionsGetSamples {
public final class RegistryModelVersionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Registry/ModelVersion/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Registry/ModelVersion/list.json
*/
/**
* Sample code: List Registry Model Version.
@@ -7090,8 +8421,8 @@ import java.util.Map;
public final class SchedulesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Schedule/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Schedule/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Schedule.
@@ -7104,18 +8435,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,8 +8473,8 @@ public final class SchedulesCreateOrUpdateSamples {
public final class SchedulesDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Schedule/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Schedule/delete.json
*/
/**
* Sample code: Delete Schedule.
@@ -7165,8 +8496,8 @@ public final class SchedulesDeleteSamples {
public final class SchedulesGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Schedule/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Schedule/get.json
*/
/**
* Sample code: Get Schedule.
@@ -7189,8 +8520,8 @@ public final class SchedulesGetSamples {
public final class SchedulesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Schedule/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Schedule/list.json
*/
/**
* Sample code: List Schedules.
@@ -7225,8 +8556,8 @@ import java.util.Map;
public final class ServerlessEndpointsCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ServerlessEndpoint/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ServerlessEndpoint/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Serverless Endpoint.
@@ -7239,14 +8570,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,8 +8608,8 @@ public final class ServerlessEndpointsCreateOrUpdateSamples {
public final class ServerlessEndpointsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ServerlessEndpoint/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ServerlessEndpoint/delete.json
*/
/**
* Sample code: Delete Workspace Serverless Endpoint.
@@ -7302,8 +8632,8 @@ public final class ServerlessEndpointsDeleteSamples {
public final class ServerlessEndpointsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ServerlessEndpoint/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ServerlessEndpoint/get.json
*/
/**
* Sample code: Get Workspace Serverless Endpoint.
@@ -7327,8 +8657,8 @@ public final class ServerlessEndpointsGetSamples {
public final class ServerlessEndpointsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ServerlessEndpoint/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ServerlessEndpoint/list.json
*/
/**
* Sample code: List Workspace Serverless Endpoint.
@@ -7351,8 +8681,8 @@ public final class ServerlessEndpointsListSamples {
public final class ServerlessEndpointsListKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ServerlessEndpoint/listKeys.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ServerlessEndpoint/listKeys.json
*/
/**
* Sample code: ListKeys Workspace Serverless Endpoint.
@@ -7379,8 +8709,8 @@ 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/
- * examples/Workspace/ServerlessEndpoint/regenerateKeys.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ServerlessEndpoint/regenerateKeys.json
*/
/**
* Sample code: RegenerateKeys Workspace Serverless Endpoint.
@@ -7417,8 +8747,8 @@ import java.util.Map;
public final class ServerlessEndpointsUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/ServerlessEndpoint/update.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/ServerlessEndpoint/update.json
*/
/**
* Sample code: Update Workspace Serverless Endpoint.
@@ -7432,15 +8762,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,8 +8797,8 @@ public final class ServerlessEndpointsUpdateSamples {
public final class UsagesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Usage/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Usage/list.json
*/
/**
* Sample code: List Usages.
@@ -7490,8 +8820,8 @@ public final class UsagesListSamples {
public final class VirtualMachineSizesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/VirtualMachineSize/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/VirtualMachineSize/list.json
*/
/**
* Sample code: List VM Sizes.
@@ -7509,6 +8839,7 @@ public final class VirtualMachineSizesListSamples {
```java
import com.azure.resourcemanager.machinelearning.models.ConnectionCategory;
import com.azure.resourcemanager.machinelearning.models.NoneAuthTypeWorkspaceConnectionProperties;
+import java.time.OffsetDateTime;
/**
* Samples for WorkspaceConnections Create.
@@ -7516,8 +8847,8 @@ 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/
- * examples/WorkspaceConnection/create.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/create.json
*/
/**
* Sample code: CreateWorkspaceConnection.
@@ -7531,6 +8862,7 @@ public final class WorkspaceConnectionsCreateSamples {
.withExistingWorkspace("resourceGroup-1", "workspace-1")
.withProperties(
new NoneAuthTypeWorkspaceConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY)
+ .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z"))
.withTarget("www.facebook.com"))
.create();
}
@@ -7546,8 +8878,8 @@ public final class WorkspaceConnectionsCreateSamples {
public final class WorkspaceConnectionsDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/WorkspaceConnection/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/delete.json
*/
/**
* Sample code: DeleteWorkspaceConnection.
@@ -7571,8 +8903,8 @@ public final class WorkspaceConnectionsDeleteSamples {
public final class WorkspaceConnectionsGetSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/WorkspaceConnection/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/get.json
*/
/**
* Sample code: GetWorkspaceConnection.
@@ -7596,8 +8928,8 @@ public final class WorkspaceConnectionsGetSamples {
public final class WorkspaceConnectionsListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/WorkspaceConnection/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/list.json
*/
/**
* Sample code: ListWorkspaceConnections.
@@ -7607,7 +8939,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,8 +8954,8 @@ public final class WorkspaceConnectionsListSamples {
public final class WorkspaceConnectionsListSecretsSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/WorkspaceConnection/listSecrets.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/listSecrets.json
*/
/**
* Sample code: GetWorkspaceConnection.
@@ -7638,6 +8970,96 @@ public final class WorkspaceConnectionsListSecretsSamples {
}
```
+### WorkspaceConnections_TestConnection
+
+```java
+import com.azure.resourcemanager.machinelearning.fluent.models.WorkspaceConnectionPropertiesV2BasicResourceInner;
+import com.azure.resourcemanager.machinelearning.models.ConnectionCategory;
+import com.azure.resourcemanager.machinelearning.models.NoneAuthTypeWorkspaceConnectionProperties;
+import java.time.OffsetDateTime;
+
+/**
+ * Samples for WorkspaceConnections TestConnection.
+ */
+public final class WorkspaceConnectionsTestConnectionSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceConnection/testConnection.json
+ */
+ /**
+ * Sample code: TestWorkspaceConnection.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ testWorkspaceConnection(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.workspaceConnections()
+ .testConnection("resourceGroup-1", "workspace-1", "connection-1",
+ new WorkspaceConnectionPropertiesV2BasicResourceInner().withProperties(
+ new NoneAuthTypeWorkspaceConnectionProperties().withCategory(ConnectionCategory.CONTAINER_REGISTRY)
+ .withExpiryTime(OffsetDateTime.parse("2024-03-15T14:30:00Z"))
+ .withTarget("target_url")),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### 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/preview/2024-10-01-
+ * preview/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"))
+ .withMetadata(mapOf())
+ .withTarget("some_string")
+ .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,8 +9069,8 @@ public final class WorkspaceConnectionsListSecretsSamples {
public final class WorkspaceFeaturesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/WorkspaceFeature/list.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/WorkspaceFeature/list.json
*/
/**
* Sample code: List Workspace features.
@@ -7664,13 +9086,13 @@ public final class WorkspaceFeaturesListSamples {
### Workspaces_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.EncryptionKeyVaultProperties;
import com.azure.resourcemanager.machinelearning.models.EncryptionProperty;
import com.azure.resourcemanager.machinelearning.models.EncryptionStatus;
+import com.azure.resourcemanager.machinelearning.models.EndpointServiceConnectionStatus;
import com.azure.resourcemanager.machinelearning.models.IdentityForCmk;
+import com.azure.resourcemanager.machinelearning.models.KeyVaultProperties;
import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
-import com.azure.resourcemanager.machinelearning.models.PrivateEndpointServiceConnectionStatus;
import com.azure.resourcemanager.machinelearning.models.SharedPrivateLinkResource;
import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
import java.util.Arrays;
@@ -7683,8 +9105,8 @@ import java.util.Map;
public final class WorkspacesCreateOrUpdateSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/create.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/create.json
*/
/**
* Sample code: Create Workspace.
@@ -7701,29 +9123,29 @@ public final class WorkspacesCreateOrUpdateSamples {
.withUserAssignedIdentities(mapOf(
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testuai",
new UserAssignedIdentity())))
- .withDescription("test description")
- .withFriendlyName("HelloName")
- .withKeyVault(
- "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv")
.withApplicationInsights(
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/microsoft.insights/components/testinsights")
.withContainerRegistry(
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ContainerRegistry/registries/testRegistry")
- .withStorageAccount(
- "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount")
- .withEncryption(new EncryptionProperty().withStatus(EncryptionStatus.ENABLED)
- .withIdentity(new IdentityForCmk().withUserAssignedIdentity(
- "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testuai"))
- .withKeyVaultProperties(new EncryptionKeyVaultProperties().withKeyVaultArmId("fakeTokenPlaceholder")
+ .withDescription("test description")
+ .withEncryption(new EncryptionProperty().withIdentity(new IdentityForCmk().withUserAssignedIdentity(
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.ManagedIdentity/userAssignedIdentities/testuai"))
+ .withKeyVaultProperties(new KeyVaultProperties().withIdentityClientId("")
.withKeyIdentifier("fakeTokenPlaceholder")
- .withIdentityClientId("")))
+ .withKeyVaultArmId("fakeTokenPlaceholder"))
+ .withStatus(EncryptionStatus.ENABLED))
+ .withFriendlyName("HelloName")
.withHbiWorkspace(false)
+ .withKeyVault(
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.KeyVault/vaults/testkv")
.withSharedPrivateLinkResources(Arrays.asList(new SharedPrivateLinkResource().withName("testdbresource")
+ .withGroupId("Sql")
.withPrivateLinkResourceId(
"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/workspace-1234/providers/Microsoft.DocumentDB/databaseAccounts/testdbresource/privateLinkResources/Sql")
- .withGroupId("Sql")
.withRequestMessage("Please approve")
- .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED)))
+ .withStatus(EndpointServiceConnectionStatus.APPROVED)))
+ .withStorageAccount(
+ "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/accountcrud-1234/providers/Microsoft.Storage/storageAccounts/testStorageAccount")
.create();
}
@@ -7750,8 +9172,8 @@ public final class WorkspacesCreateOrUpdateSamples {
public final class WorkspacesDeleteSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/delete.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/delete.json
*/
/**
* Sample code: Delete Workspace.
@@ -7778,8 +9200,8 @@ import java.util.Map;
public final class WorkspacesDiagnoseSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/diagnose.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/diagnose.json
*/
/**
* Sample code: Diagnose Workspace.
@@ -7789,15 +9211,16 @@ public final class WorkspacesDiagnoseSamples {
public static void diagnoseWorkspace(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
manager.workspaces()
.diagnose("workspace-1234", "testworkspace",
- new DiagnoseWorkspaceParameters().withValue(new DiagnoseRequestProperties().withUdr(mapOf())
- .withNsg(mapOf())
- .withResourceLock(mapOf())
- .withDnsResolution(mapOf())
- .withStorageAccount(mapOf())
- .withKeyVault(mapOf())
- .withContainerRegistry(mapOf())
- .withApplicationInsights(mapOf())
- .withOthers(mapOf())),
+ new DiagnoseWorkspaceParameters()
+ .withValue(new DiagnoseRequestProperties().withApplicationInsights(mapOf())
+ .withContainerRegistry(mapOf())
+ .withDnsResolution(mapOf())
+ .withKeyVault(mapOf())
+ .withNsg(mapOf())
+ .withOthers(mapOf())
+ .withResourceLock(mapOf())
+ .withStorageAccount(mapOf())
+ .withUdr(mapOf())),
com.azure.core.util.Context.NONE);
}
@@ -7824,8 +9247,8 @@ public final class WorkspacesDiagnoseSamples {
public final class WorkspacesGetByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/get.json
*/
/**
* Sample code: Get Workspace.
@@ -7848,8 +9271,8 @@ public final class WorkspacesGetByResourceGroupSamples {
public final class WorkspacesListSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/listBySubscription.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/listBySubscription.json
*/
/**
* Sample code: Get Workspaces by subscription.
@@ -7858,7 +9281,7 @@ public final class WorkspacesListSamples {
*/
public static void
getWorkspacesBySubscription(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.workspaces().list(null, com.azure.core.util.Context.NONE);
+ manager.workspaces().list(null, null, null, com.azure.core.util.Context.NONE);
}
}
```
@@ -7872,8 +9295,8 @@ public final class WorkspacesListSamples {
public final class WorkspacesListByResourceGroupSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/listByResourceGroup.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/listByResourceGroup.json
*/
/**
* Sample code: Get Workspaces by Resource Group.
@@ -7882,7 +9305,7 @@ public final class WorkspacesListByResourceGroupSamples {
*/
public static void
getWorkspacesByResourceGroup(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.workspaces().listByResourceGroup("workspace-1234", null, com.azure.core.util.Context.NONE);
+ manager.workspaces().listByResourceGroup("workspace-1234", null, null, null, com.azure.core.util.Context.NONE);
}
}
```
@@ -7896,8 +9319,8 @@ public final class WorkspacesListByResourceGroupSamples {
public final class WorkspacesListKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/listKeys.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/listKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -7919,8 +9342,8 @@ public final class WorkspacesListKeysSamples {
public final class WorkspacesListNotebookAccessTokenSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/listNotebookAccessToken.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/listNotebookAccessToken.json
*/
/**
* Sample code: List Workspace Keys.
@@ -7943,8 +9366,8 @@ public final class WorkspacesListNotebookAccessTokenSamples {
public final class WorkspacesListNotebookKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Notebook/listKeys.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Notebook/listKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -7967,8 +9390,8 @@ public final class WorkspacesListNotebookKeysSamples {
public final class WorkspacesListOutboundNetworkDependenciesEndpointsSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/ExternalFQDN/get.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/ExternalFQDN/get.json
*/
/**
* Sample code: ListOutboundNetworkDependenciesEndpoints.
@@ -7993,8 +9416,8 @@ public final class WorkspacesListOutboundNetworkDependenciesEndpointsSamples {
public final class WorkspacesListStorageAccountKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/listStorageAccountKeys.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/listStorageAccountKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -8017,8 +9440,8 @@ public final class WorkspacesListStorageAccountKeysSamples {
public final class WorkspacesPrepareNotebookSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Notebook/prepare.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Notebook/prepare.json
*/
/**
* Sample code: Prepare Notebook.
@@ -8040,8 +9463,8 @@ public final class WorkspacesPrepareNotebookSamples {
public final class WorkspacesResyncKeysSamples {
/*
* x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/resyncKeys.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/resyncKeys.json
*/
/**
* Sample code: Resync Workspace Keys.
@@ -8057,7 +9480,7 @@ public final class WorkspacesResyncKeysSamples {
### Workspaces_Update
```java
-import com.azure.resourcemanager.machinelearning.models.PublicNetworkAccess;
+import com.azure.resourcemanager.machinelearning.models.PublicNetworkAccessType;
import com.azure.resourcemanager.machinelearning.models.Workspace;
/**
@@ -8066,8 +9489,8 @@ 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/
- * examples/Workspace/update.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-10-01-
+ * preview/examples/Workspace/update.json
*/
/**
* Sample code: Update Workspace.
@@ -8081,7 +9504,7 @@ public final class WorkspacesUpdateSamples {
resource.update()
.withDescription("new description")
.withFriendlyName("New friendly name")
- .withPublicNetworkAccess(PublicNetworkAccess.DISABLED)
+ .withPublicNetworkAccess(PublicNetworkAccessType.DISABLED)
.apply();
}
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml b/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml
index d9944924e123..67f093fc2551 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-preview-2024-10.
https://github.com/Azure/azure-sdk-for-java
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 bb31e555c22f..ac98161dfc8e 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
@@ -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;
@@ -32,9 +32,18 @@
import com.azure.resourcemanager.machinelearning.implementation.ComponentContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.ComponentVersionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.ComputesImpl;
+import com.azure.resourcemanager.machinelearning.implementation.ConnectionRaiBlocklistItemsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.ConnectionRaiBlocklistItemsOperationsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.ConnectionRaiBlocklistOperationsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.ConnectionRaiBlocklistsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.ConnectionRaiPoliciesImpl;
+import com.azure.resourcemanager.machinelearning.implementation.ConnectionRaiPolicyOperationsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.ConnectionsImpl;
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.EndpointDeploymentsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.EndpointsImpl;
import com.azure.resourcemanager.machinelearning.implementation.EnvironmentContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.EnvironmentVersionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.FeaturesetContainersImpl;
@@ -54,6 +63,8 @@
import com.azure.resourcemanager.machinelearning.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.PrivateLinkResourcesImpl;
import com.azure.resourcemanager.machinelearning.implementation.QuotasImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RaiPoliciesImpl;
+import com.azure.resourcemanager.machinelearning.implementation.RaiPolicyOperationsImpl;
import com.azure.resourcemanager.machinelearning.implementation.RegistriesImpl;
import com.azure.resourcemanager.machinelearning.implementation.RegistryCodeContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.RegistryCodeVersionsImpl;
@@ -80,9 +91,18 @@
import com.azure.resourcemanager.machinelearning.models.ComponentContainers;
import com.azure.resourcemanager.machinelearning.models.ComponentVersions;
import com.azure.resourcemanager.machinelearning.models.Computes;
+import com.azure.resourcemanager.machinelearning.models.ConnectionRaiBlocklistItems;
+import com.azure.resourcemanager.machinelearning.models.ConnectionRaiBlocklistItemsOperations;
+import com.azure.resourcemanager.machinelearning.models.ConnectionRaiBlocklistOperations;
+import com.azure.resourcemanager.machinelearning.models.ConnectionRaiBlocklists;
+import com.azure.resourcemanager.machinelearning.models.ConnectionRaiPolicies;
+import com.azure.resourcemanager.machinelearning.models.ConnectionRaiPolicyOperations;
+import com.azure.resourcemanager.machinelearning.models.Connections;
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.EndpointDeployments;
+import com.azure.resourcemanager.machinelearning.models.Endpoints;
import com.azure.resourcemanager.machinelearning.models.EnvironmentContainers;
import com.azure.resourcemanager.machinelearning.models.EnvironmentVersions;
import com.azure.resourcemanager.machinelearning.models.Features;
@@ -102,6 +122,8 @@
import com.azure.resourcemanager.machinelearning.models.PrivateEndpointConnections;
import com.azure.resourcemanager.machinelearning.models.PrivateLinkResources;
import com.azure.resourcemanager.machinelearning.models.Quotas;
+import com.azure.resourcemanager.machinelearning.models.RaiPolicies;
+import com.azure.resourcemanager.machinelearning.models.RaiPolicyOperations;
import com.azure.resourcemanager.machinelearning.models.Registries;
import com.azure.resourcemanager.machinelearning.models.RegistryCodeContainers;
import com.azure.resourcemanager.machinelearning.models.RegistryCodeVersions;
@@ -133,10 +155,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 +163,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;
@@ -173,6 +181,8 @@ public final class MachineLearningManager {
private RegistryEnvironmentVersions registryEnvironmentVersions;
+ private MarketplaceSubscriptions marketplaceSubscriptions;
+
private RegistryModelContainers registryModelContainers;
private RegistryModelVersions registryModelVersions;
@@ -211,8 +221,6 @@ public final class MachineLearningManager {
private Jobs jobs;
- private MarketplaceSubscriptions marketplaceSubscriptions;
-
private ModelContainers modelContainers;
private ModelVersions modelVersions;
@@ -229,12 +237,48 @@ public final class MachineLearningManager {
private WorkspaceFeatures workspaceFeatures;
- private final AzureMachineLearningWorkspaces clientObject;
+ private Operations operations;
+
+ private Workspaces workspaces;
+
+ private WorkspaceConnections workspaceConnections;
+
+ private Connections connections;
+
+ private ConnectionRaiBlocklists connectionRaiBlocklists;
+
+ private ConnectionRaiBlocklistOperations connectionRaiBlocklistOperations;
+
+ private ConnectionRaiBlocklistItems connectionRaiBlocklistItems;
+
+ private ConnectionRaiBlocklistItemsOperations connectionRaiBlocklistItemsOperations;
+
+ private ConnectionRaiPolicies connectionRaiPolicies;
+
+ private ConnectionRaiPolicyOperations connectionRaiPolicyOperations;
+
+ private EndpointDeployments endpointDeployments;
+
+ private Endpoints endpoints;
+
+ private RaiPolicies raiPolicies;
+
+ private RaiPolicyOperations raiPolicyOperations;
+
+ private ManagedNetworkSettingsRules managedNetworkSettingsRules;
+
+ private PrivateEndpointConnections privateEndpointConnections;
+
+ private PrivateLinkResources privateLinkResources;
+
+ 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 +437,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 +483,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 +532,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 +545,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 +557,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 +570,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 +583,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 +596,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 +621,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 +634,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 +647,20 @@ public RegistryEnvironmentVersions registryEnvironmentVersions() {
}
/**
- * Gets the resource collection API of RegistryModelContainers.
+ * Gets the resource collection API of MarketplaceSubscriptions. It manages MarketplaceSubscription.
+ *
+ * @return Resource collection API of MarketplaceSubscriptions.
+ */
+ public MarketplaceSubscriptions marketplaceSubscriptions() {
+ if (this.marketplaceSubscriptions == null) {
+ this.marketplaceSubscriptions
+ = new MarketplaceSubscriptionsImpl(clientObject.getMarketplaceSubscriptions(), this);
+ }
+ return marketplaceSubscriptions;
+ }
+
+ /**
+ * Gets the resource collection API of RegistryModelContainers. It manages ModelContainer.
*
* @return Resource collection API of RegistryModelContainers.
*/
@@ -704,7 +673,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 +709,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 +721,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 +733,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 +745,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 +757,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 +769,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 +793,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 +805,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.
*/
@@ -922,20 +891,7 @@ public Jobs jobs() {
}
/**
- * Gets the resource collection API of MarketplaceSubscriptions. It manages MarketplaceSubscription.
- *
- * @return Resource collection API of MarketplaceSubscriptions.
- */
- public MarketplaceSubscriptions marketplaceSubscriptions() {
- if (this.marketplaceSubscriptions == null) {
- this.marketplaceSubscriptions
- = new MarketplaceSubscriptionsImpl(clientObject.getMarketplaceSubscriptions(), this);
- }
- return 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 +903,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 +987,239 @@ 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 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 Connections. It manages EndpointDeploymentResourcePropertiesBasicResource.
+ *
+ * @return Resource collection API of Connections.
+ */
+ public Connections connections() {
+ if (this.connections == null) {
+ this.connections = new ConnectionsImpl(clientObject.getConnections(), this);
+ }
+ return connections;
+ }
+
+ /**
+ * Gets the resource collection API of ConnectionRaiBlocklists.
+ *
+ * @return Resource collection API of ConnectionRaiBlocklists.
+ */
+ public ConnectionRaiBlocklists connectionRaiBlocklists() {
+ if (this.connectionRaiBlocklists == null) {
+ this.connectionRaiBlocklists
+ = new ConnectionRaiBlocklistsImpl(clientObject.getConnectionRaiBlocklists(), this);
+ }
+ return connectionRaiBlocklists;
+ }
+
+ /**
+ * Gets the resource collection API of ConnectionRaiBlocklistOperations. It manages
+ * RaiBlocklistPropertiesBasicResource.
+ *
+ * @return Resource collection API of ConnectionRaiBlocklistOperations.
+ */
+ public ConnectionRaiBlocklistOperations connectionRaiBlocklistOperations() {
+ if (this.connectionRaiBlocklistOperations == null) {
+ this.connectionRaiBlocklistOperations
+ = new ConnectionRaiBlocklistOperationsImpl(clientObject.getConnectionRaiBlocklistOperations(), this);
+ }
+ return connectionRaiBlocklistOperations;
+ }
+
+ /**
+ * Gets the resource collection API of ConnectionRaiBlocklistItems. It manages
+ * RaiBlocklistItemPropertiesBasicResource.
+ *
+ * @return Resource collection API of ConnectionRaiBlocklistItems.
+ */
+ public ConnectionRaiBlocklistItems connectionRaiBlocklistItems() {
+ if (this.connectionRaiBlocklistItems == null) {
+ this.connectionRaiBlocklistItems
+ = new ConnectionRaiBlocklistItemsImpl(clientObject.getConnectionRaiBlocklistItems(), this);
+ }
+ return connectionRaiBlocklistItems;
+ }
+
+ /**
+ * Gets the resource collection API of ConnectionRaiBlocklistItemsOperations.
+ *
+ * @return Resource collection API of ConnectionRaiBlocklistItemsOperations.
+ */
+ public ConnectionRaiBlocklistItemsOperations connectionRaiBlocklistItemsOperations() {
+ if (this.connectionRaiBlocklistItemsOperations == null) {
+ this.connectionRaiBlocklistItemsOperations = new ConnectionRaiBlocklistItemsOperationsImpl(
+ clientObject.getConnectionRaiBlocklistItemsOperations(), this);
+ }
+ return connectionRaiBlocklistItemsOperations;
+ }
+
+ /**
+ * Gets the resource collection API of ConnectionRaiPolicies.
+ *
+ * @return Resource collection API of ConnectionRaiPolicies.
+ */
+ public ConnectionRaiPolicies connectionRaiPolicies() {
+ if (this.connectionRaiPolicies == null) {
+ this.connectionRaiPolicies = new ConnectionRaiPoliciesImpl(clientObject.getConnectionRaiPolicies(), this);
+ }
+ return connectionRaiPolicies;
+ }
+
+ /**
+ * Gets the resource collection API of ConnectionRaiPolicyOperations. It manages RaiPolicyPropertiesBasicResource.
+ *
+ * @return Resource collection API of ConnectionRaiPolicyOperations.
+ */
+ public ConnectionRaiPolicyOperations connectionRaiPolicyOperations() {
+ if (this.connectionRaiPolicyOperations == null) {
+ this.connectionRaiPolicyOperations
+ = new ConnectionRaiPolicyOperationsImpl(clientObject.getConnectionRaiPolicyOperations(), this);
+ }
+ return connectionRaiPolicyOperations;
+ }
+
+ /**
+ * Gets the resource collection API of EndpointDeployments.
+ *
+ * @return Resource collection API of EndpointDeployments.
+ */
+ public EndpointDeployments endpointDeployments() {
+ if (this.endpointDeployments == null) {
+ this.endpointDeployments = new EndpointDeploymentsImpl(clientObject.getEndpointDeployments(), this);
+ }
+ return endpointDeployments;
+ }
+
+ /**
+ * Gets the resource collection API of Endpoints. It manages EndpointResourcePropertiesBasicResource.
+ *
+ * @return Resource collection API of Endpoints.
+ */
+ public Endpoints endpoints() {
+ if (this.endpoints == null) {
+ this.endpoints = new EndpointsImpl(clientObject.getEndpoints(), this);
+ }
+ return endpoints;
+ }
+
+ /**
+ * Gets the resource collection API of RaiPolicies.
+ *
+ * @return Resource collection API of RaiPolicies.
+ */
+ public RaiPolicies raiPolicies() {
+ if (this.raiPolicies == null) {
+ this.raiPolicies = new RaiPoliciesImpl(clientObject.getRaiPolicies(), this);
+ }
+ return raiPolicies;
+ }
+
+ /**
+ * Gets the resource collection API of RaiPolicyOperations.
+ *
+ * @return Resource collection API of RaiPolicyOperations.
+ */
+ public RaiPolicyOperations raiPolicyOperations() {
+ if (this.raiPolicyOperations == null) {
+ this.raiPolicyOperations = new RaiPolicyOperationsImpl(clientObject.getRaiPolicyOperations(), this);
+ }
+ return raiPolicyOperations;
+ }
+
+ /**
+ * 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 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 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 81%
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 f9ec50f298e5..b6763228f583 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.
*
@@ -186,6 +137,13 @@ public interface AzureMachineLearningWorkspaces {
*/
RegistryEnvironmentVersionsClient getRegistryEnvironmentVersions();
+ /**
+ * Gets the MarketplaceSubscriptionsClient object to access its operations.
+ *
+ * @return the MarketplaceSubscriptionsClient object.
+ */
+ MarketplaceSubscriptionsClient getMarketplaceSubscriptions();
+
/**
* Gets the RegistryModelContainersClient object to access its operations.
*
@@ -319,13 +277,6 @@ public interface AzureMachineLearningWorkspaces {
*/
JobsClient getJobs();
- /**
- * Gets the MarketplaceSubscriptionsClient object to access its operations.
- *
- * @return the MarketplaceSubscriptionsClient object.
- */
- MarketplaceSubscriptionsClient getMarketplaceSubscriptions();
-
/**
* Gets the ModelContainersClient object to access its operations.
*
@@ -381,4 +332,130 @@ 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 WorkspaceConnectionsClient object to access its operations.
+ *
+ * @return the WorkspaceConnectionsClient object.
+ */
+ WorkspaceConnectionsClient getWorkspaceConnections();
+
+ /**
+ * Gets the ConnectionsClient object to access its operations.
+ *
+ * @return the ConnectionsClient object.
+ */
+ ConnectionsClient getConnections();
+
+ /**
+ * Gets the ConnectionRaiBlocklistsClient object to access its operations.
+ *
+ * @return the ConnectionRaiBlocklistsClient object.
+ */
+ ConnectionRaiBlocklistsClient getConnectionRaiBlocklists();
+
+ /**
+ * Gets the ConnectionRaiBlocklistOperationsClient object to access its operations.
+ *
+ * @return the ConnectionRaiBlocklistOperationsClient object.
+ */
+ ConnectionRaiBlocklistOperationsClient getConnectionRaiBlocklistOperations();
+
+ /**
+ * Gets the ConnectionRaiBlocklistItemsClient object to access its operations.
+ *
+ * @return the ConnectionRaiBlocklistItemsClient object.
+ */
+ ConnectionRaiBlocklistItemsClient getConnectionRaiBlocklistItems();
+
+ /**
+ * Gets the ConnectionRaiBlocklistItemsOperationsClient object to access its operations.
+ *
+ * @return the ConnectionRaiBlocklistItemsOperationsClient object.
+ */
+ ConnectionRaiBlocklistItemsOperationsClient getConnectionRaiBlocklistItemsOperations();
+
+ /**
+ * Gets the ConnectionRaiPoliciesClient object to access its operations.
+ *
+ * @return the ConnectionRaiPoliciesClient object.
+ */
+ ConnectionRaiPoliciesClient getConnectionRaiPolicies();
+
+ /**
+ * Gets the ConnectionRaiPolicyOperationsClient object to access its operations.
+ *
+ * @return the ConnectionRaiPolicyOperationsClient object.
+ */
+ ConnectionRaiPolicyOperationsClient getConnectionRaiPolicyOperations();
+
+ /**
+ * Gets the EndpointDeploymentsClient object to access its operations.
+ *
+ * @return the EndpointDeploymentsClient object.
+ */
+ EndpointDeploymentsClient getEndpointDeployments();
+
+ /**
+ * Gets the EndpointsClient object to access its operations.
+ *
+ * @return the EndpointsClient object.
+ */
+ EndpointsClient getEndpoints();
+
+ /**
+ * Gets the RaiPoliciesClient object to access its operations.
+ *
+ * @return the RaiPoliciesClient object.
+ */
+ RaiPoliciesClient getRaiPolicies();
+
+ /**
+ * Gets the RaiPolicyOperationsClient object to access its operations.
+ *
+ * @return the RaiPolicyOperationsClient object.
+ */
+ RaiPolicyOperationsClient getRaiPolicyOperations();
+
+ /**
+ * Gets the ManagedNetworkSettingsRulesClient object to access its operations.
+ *
+ * @return the ManagedNetworkSettingsRulesClient object.
+ */
+ ManagedNetworkSettingsRulesClient getManagedNetworkSettingsRules();
+
+ /**
+ * 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 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/ComputesClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComputesClient.java
index 2acd533571d4..1709d438d51c 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComputesClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ComputesClient.java
@@ -13,9 +13,15 @@
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.machinelearning.fluent.models.ComputeResourceInner;
import com.azure.resourcemanager.machinelearning.fluent.models.ComputeSecretsInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.VirtualMachineSizeListResultInner;
import com.azure.resourcemanager.machinelearning.models.AmlComputeNodeInformation;
import com.azure.resourcemanager.machinelearning.models.ClusterUpdateParameters;
+import com.azure.resourcemanager.machinelearning.models.ComputeInstanceDataMount;
+import com.azure.resourcemanager.machinelearning.models.CustomService;
+import com.azure.resourcemanager.machinelearning.models.IdleShutdownSetting;
+import com.azure.resourcemanager.machinelearning.models.ResizeSchema;
import com.azure.resourcemanager.machinelearning.models.UnderlyingResourceAction;
+import java.util.List;
/**
* An instance of this class provides access to all the operations defined in ComputesClient.
@@ -290,6 +296,38 @@ void delete(String resourceGroupName, String workspaceName, String computeName,
void delete(String resourceGroupName, String workspaceName, String computeName,
UnderlyingResourceAction underlyingResourceAction, Context context);
+ /**
+ * Updates the custom services list. The list of custom services provided shall be overwritten.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param customServices New list of Custom Services.
+ * @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 {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateCustomServicesWithResponse(String resourceGroupName, String workspaceName, String computeName,
+ List customServices, Context context);
+
+ /**
+ * Updates the custom services list. The list of custom services provided shall be overwritten.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param customServices New list of Custom Services.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void updateCustomServices(String resourceGroupName, String workspaceName, String computeName,
+ List customServices);
+
/**
* Get the details (e.g IP address, port etc) of all the compute nodes in the compute.
*
@@ -354,6 +392,38 @@ Response listKeysWithResponse(String resourceGroupName, Str
@ServiceMethod(returns = ReturnType.SINGLE)
ComputeSecretsInner listKeys(String resourceGroupName, String workspaceName, String computeName);
+ /**
+ * Update Data Mounts of a Machine Learning compute.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param dataMounts The parameters for creating or updating a machine learning workspace.
+ * @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 {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateDataMountsWithResponse(String resourceGroupName, String workspaceName, String computeName,
+ List dataMounts, Context context);
+
+ /**
+ * Update Data Mounts of a Machine Learning compute.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param dataMounts The parameters for creating or updating a machine learning workspace.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void updateDataMounts(String resourceGroupName, String workspaceName, String computeName,
+ List dataMounts);
+
/**
* Posts a start action to a compute instance.
*
@@ -524,4 +594,130 @@ SyncPoller, Void> beginRestart(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.SINGLE)
void restart(String resourceGroupName, String workspaceName, String computeName, Context context);
+
+ /**
+ * Updates the idle shutdown setting of a compute instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating idle shutdown setting of specified ComputeInstance.
+ * @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 {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateIdleShutdownSettingWithResponse(String resourceGroupName, String workspaceName,
+ String computeName, IdleShutdownSetting parameters, Context context);
+
+ /**
+ * Updates the idle shutdown setting of a compute instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating idle shutdown setting of specified ComputeInstance.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void updateIdleShutdownSetting(String resourceGroupName, String workspaceName, String computeName,
+ IdleShutdownSetting parameters);
+
+ /**
+ * Returns supported virtual machine sizes for resize.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @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 List Virtual Machine size operation response along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAllowedResizeSizesWithResponse(String resourceGroupName,
+ String workspaceName, String computeName, Context context);
+
+ /**
+ * Returns supported virtual machine sizes for resize.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @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 List Virtual Machine size operation response.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ VirtualMachineSizeListResultInner getAllowedResizeSizes(String resourceGroupName, String workspaceName,
+ String computeName);
+
+ /**
+ * Updates the size of a Compute Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating VM size setting of specified Compute Instance.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginResize(String resourceGroupName, String workspaceName, String computeName,
+ ResizeSchema parameters);
+
+ /**
+ * Updates the size of a Compute Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating VM size setting of specified Compute Instance.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginResize(String resourceGroupName, String workspaceName, String computeName,
+ ResizeSchema parameters, Context context);
+
+ /**
+ * Updates the size of a Compute Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating VM size setting of specified Compute Instance.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void resize(String resourceGroupName, String workspaceName, String computeName, ResizeSchema parameters);
+
+ /**
+ * Updates the size of a Compute Instance.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param computeName Name of the Azure Machine Learning compute.
+ * @param parameters The object for updating VM size setting of specified Compute Instance.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void resize(String resourceGroupName, String workspaceName, String computeName, ResizeSchema parameters,
+ Context context);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiBlocklistItemsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiBlocklistItemsClient.java
new file mode 100644
index 000000000000..873dda153bdc
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiBlocklistItemsClient.java
@@ -0,0 +1,343 @@
+// 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.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.RaiBlocklistItemPropertiesBasicResourceInner;
+import com.azure.resourcemanager.machinelearning.models.RaiBlocklistItemBulkRequest;
+import java.util.List;
+
+/**
+ * An instance of this class provides access to all the operations defined in ConnectionRaiBlocklistItemsClient.
+ */
+public interface ConnectionRaiBlocklistItemsClient {
+ /**
+ * Add multiple blocklist items to the specified blocklist associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param body Properties describing the custom blocklist items.
+ * @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 {@link SyncPoller} for polling of array of RaiBlocklistItemPropertiesBasicResource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller>, List>
+ beginAddBulk(String resourceGroupName, String workspaceName, String connectionName, String raiBlocklistName,
+ List body);
+
+ /**
+ * Add multiple blocklist items to the specified blocklist associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param body Properties describing the custom blocklist items.
+ * @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 {@link SyncPoller} for polling of array of RaiBlocklistItemPropertiesBasicResource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller>, List>
+ beginAddBulk(String resourceGroupName, String workspaceName, String connectionName, String raiBlocklistName,
+ List body, Context context);
+
+ /**
+ * Add multiple blocklist items to the specified blocklist associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param body Properties describing the custom blocklist items.
+ * @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 array of RaiBlocklistItemPropertiesBasicResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ List addBulk(String resourceGroupName, String workspaceName,
+ String connectionName, String raiBlocklistName, List body);
+
+ /**
+ * Add multiple blocklist items to the specified blocklist associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param body Properties describing the custom blocklist items.
+ * @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 array of RaiBlocklistItemPropertiesBasicResource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ List addBulk(String resourceGroupName, String workspaceName,
+ String connectionName, String raiBlocklistName, List body, Context context);
+
+ /**
+ * Delete multiple blocklist items from the specified blocklist associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param body List of RAI Blocklist Items Names.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteBulk(String resourceGroupName, String workspaceName,
+ String connectionName, String raiBlocklistName, Object body);
+
+ /**
+ * Delete multiple blocklist items from the specified blocklist associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param body List of RAI Blocklist Items Names.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteBulk(String resourceGroupName, String workspaceName,
+ String connectionName, String raiBlocklistName, Object body, Context context);
+
+ /**
+ * Delete multiple blocklist items from the specified blocklist associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param body List of RAI Blocklist Items Names.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteBulk(String resourceGroupName, String workspaceName, String connectionName, String raiBlocklistName,
+ Object body);
+
+ /**
+ * Delete multiple blocklist items from the specified blocklist associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param body List of RAI Blocklist Items Names.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteBulk(String resourceGroupName, String workspaceName, String connectionName, String raiBlocklistName,
+ Object body, Context context);
+
+ /**
+ * Deletes the specified custom blocklist item associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param raiBlocklistItemName Name of the RaiBlocklist Item.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName,
+ String connectionName, String raiBlocklistName, String raiBlocklistItemName);
+
+ /**
+ * Deletes the specified custom blocklist item associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param raiBlocklistItemName Name of the RaiBlocklist Item.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName,
+ String connectionName, String raiBlocklistName, String raiBlocklistItemName, Context context);
+
+ /**
+ * Deletes the specified custom blocklist item associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param raiBlocklistItemName Name of the RaiBlocklist Item.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String connectionName, String raiBlocklistName,
+ String raiBlocklistItemName);
+
+ /**
+ * Deletes the specified custom blocklist item associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param raiBlocklistItemName Name of the RaiBlocklist Item.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String connectionName, String raiBlocklistName,
+ String raiBlocklistItemName, Context context);
+
+ /**
+ * Gets the specified custom blocklist item associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param raiBlocklistItemName Name of the RaiBlocklist Item.
+ * @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 specified custom blocklist item associated with the Azure OpenAI connection along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName,
+ String workspaceName, String connectionName, String raiBlocklistName, String raiBlocklistItemName,
+ Context context);
+
+ /**
+ * Gets the specified custom blocklist item associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param raiBlocklistItemName Name of the RaiBlocklist Item.
+ * @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 specified custom blocklist item associated with the Azure OpenAI connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RaiBlocklistItemPropertiesBasicResourceInner get(String resourceGroupName, String workspaceName,
+ String connectionName, String raiBlocklistName, String raiBlocklistItemName);
+
+ /**
+ * Update the state of specified blocklist item associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param raiBlocklistItemName Name of the RaiBlocklist Item.
+ * @param body The body parameter.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RaiBlocklistItemPropertiesBasicResourceInner>
+ beginCreate(String resourceGroupName, String workspaceName, String connectionName, String raiBlocklistName,
+ String raiBlocklistItemName, RaiBlocklistItemPropertiesBasicResourceInner body);
+
+ /**
+ * Update the state of specified blocklist item associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param raiBlocklistItemName Name of the RaiBlocklist Item.
+ * @param body The body parameter.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RaiBlocklistItemPropertiesBasicResourceInner>
+ beginCreate(String resourceGroupName, String workspaceName, String connectionName, String raiBlocklistName,
+ String raiBlocklistItemName, RaiBlocklistItemPropertiesBasicResourceInner body, Context context);
+
+ /**
+ * Update the state of specified blocklist item associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param raiBlocklistItemName Name of the RaiBlocklist Item.
+ * @param body The body parameter.
+ * @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)
+ RaiBlocklistItemPropertiesBasicResourceInner create(String resourceGroupName, String workspaceName,
+ String connectionName, String raiBlocklistName, String raiBlocklistItemName,
+ RaiBlocklistItemPropertiesBasicResourceInner body);
+
+ /**
+ * Update the state of specified blocklist item associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param raiBlocklistItemName Name of the RaiBlocklist Item.
+ * @param body The body parameter.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RaiBlocklistItemPropertiesBasicResourceInner create(String resourceGroupName, String workspaceName,
+ String connectionName, String raiBlocklistName, String raiBlocklistItemName,
+ RaiBlocklistItemPropertiesBasicResourceInner body, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiBlocklistItemsOperationsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiBlocklistItemsOperationsClient.java
new file mode 100644
index 000000000000..ca56639e4b4a
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiBlocklistItemsOperationsClient.java
@@ -0,0 +1,52 @@
+// 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.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.machinelearning.fluent.models.RaiBlocklistItemPropertiesBasicResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * ConnectionRaiBlocklistItemsOperationsClient.
+ */
+public interface ConnectionRaiBlocklistItemsOperationsClient {
+ /**
+ * Gets the custom blocklist items associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @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 custom blocklist items associated with the Azure OpenAI connection as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName,
+ String connectionName, String raiBlocklistName);
+
+ /**
+ * Gets the custom blocklist items associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @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 custom blocklist items associated with the Azure OpenAI connection as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName,
+ String connectionName, String raiBlocklistName, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiBlocklistOperationsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiBlocklistOperationsClient.java
new file mode 100644
index 000000000000..e2bc92b2901e
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiBlocklistOperationsClient.java
@@ -0,0 +1,186 @@
+// 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.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.RaiBlocklistPropertiesBasicResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ConnectionRaiBlocklistOperationsClient.
+ */
+public interface ConnectionRaiBlocklistOperationsClient {
+ /**
+ * Deletes the specified custom blocklist associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName,
+ String connectionName, String raiBlocklistName);
+
+ /**
+ * Deletes the specified custom blocklist associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName,
+ String connectionName, String raiBlocklistName, Context context);
+
+ /**
+ * Deletes the specified custom blocklist associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String connectionName, String raiBlocklistName);
+
+ /**
+ * Deletes the specified custom blocklist associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String connectionName, String raiBlocklistName,
+ Context context);
+
+ /**
+ * Gets the specified custom blocklist associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @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 specified custom blocklist associated with the Azure OpenAI connection along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String workspaceName,
+ String connectionName, String raiBlocklistName, Context context);
+
+ /**
+ * Gets the specified custom blocklist associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @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 specified custom blocklist associated with the Azure OpenAI connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RaiBlocklistPropertiesBasicResourceInner get(String resourceGroupName, String workspaceName, String connectionName,
+ String raiBlocklistName);
+
+ /**
+ * Update the state of specified blocklist associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param body The body parameter.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RaiBlocklistPropertiesBasicResourceInner>
+ beginCreate(String resourceGroupName, String workspaceName, String connectionName, String raiBlocklistName,
+ RaiBlocklistPropertiesBasicResourceInner body);
+
+ /**
+ * Update the state of specified blocklist associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param body The body parameter.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RaiBlocklistPropertiesBasicResourceInner>
+ beginCreate(String resourceGroupName, String workspaceName, String connectionName, String raiBlocklistName,
+ RaiBlocklistPropertiesBasicResourceInner body, Context context);
+
+ /**
+ * Update the state of specified blocklist associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param body The body parameter.
+ * @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)
+ RaiBlocklistPropertiesBasicResourceInner create(String resourceGroupName, String workspaceName,
+ String connectionName, String raiBlocklistName, RaiBlocklistPropertiesBasicResourceInner body);
+
+ /**
+ * Update the state of specified blocklist associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiBlocklistName The name of the RaiBlocklist.
+ * @param body The body parameter.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RaiBlocklistPropertiesBasicResourceInner create(String resourceGroupName, String workspaceName,
+ String connectionName, String raiBlocklistName, RaiBlocklistPropertiesBasicResourceInner body, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiBlocklistsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiBlocklistsClient.java
new file mode 100644
index 000000000000..ee77a7540c01
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiBlocklistsClient.java
@@ -0,0 +1,49 @@
+// 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.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.machinelearning.fluent.models.RaiBlocklistPropertiesBasicResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ConnectionRaiBlocklistsClient.
+ */
+public interface ConnectionRaiBlocklistsClient {
+ /**
+ * Gets the custom blocklists associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @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 custom blocklists associated with the Azure OpenAI connection as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName,
+ String connectionName);
+
+ /**
+ * Gets the custom blocklists associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @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 custom blocklists associated with the Azure OpenAI connection as paginated response with
+ * {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName,
+ String connectionName, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiPoliciesClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiPoliciesClient.java
new file mode 100644
index 000000000000..f45377d378d0
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiPoliciesClient.java
@@ -0,0 +1,47 @@
+// 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.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.machinelearning.fluent.models.RaiPolicyPropertiesBasicResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ConnectionRaiPoliciesClient.
+ */
+public interface ConnectionRaiPoliciesClient {
+ /**
+ * List the specified Content Filters associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @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 azure OpenAI Content Filters resource list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName,
+ String connectionName);
+
+ /**
+ * List the specified Content Filters associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @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 azure OpenAI Content Filters resource list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName,
+ String connectionName, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiPolicyOperationsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiPolicyOperationsClient.java
new file mode 100644
index 000000000000..65660063220d
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiPolicyOperationsClient.java
@@ -0,0 +1,186 @@
+// 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.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.RaiPolicyPropertiesBasicResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ConnectionRaiPolicyOperationsClient.
+ */
+public interface ConnectionRaiPolicyOperationsClient {
+ /**
+ * Deletes the specified Content Filters associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName,
+ String connectionName, String raiPolicyName);
+
+ /**
+ * Deletes the specified Content Filters associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName,
+ String connectionName, String raiPolicyName, Context context);
+
+ /**
+ * Deletes the specified Content Filters associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String connectionName, String raiPolicyName);
+
+ /**
+ * Deletes the specified Content Filters associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String connectionName, String raiPolicyName,
+ Context context);
+
+ /**
+ * Gets the specified Content Filters associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @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 specified Content Filters associated with the Azure OpenAI connection along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String workspaceName,
+ String connectionName, String raiPolicyName, Context context);
+
+ /**
+ * Gets the specified Content Filters associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @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 specified Content Filters associated with the Azure OpenAI connection.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RaiPolicyPropertiesBasicResourceInner get(String resourceGroupName, String workspaceName, String connectionName,
+ String raiPolicyName);
+
+ /**
+ * Update the state of specified Content Filters associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @param body The body parameter.
+ * @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 {@link SyncPoller} for polling of azure OpenAI Content Filters resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RaiPolicyPropertiesBasicResourceInner> beginCreate(
+ String resourceGroupName, String workspaceName, String connectionName, String raiPolicyName,
+ RaiPolicyPropertiesBasicResourceInner body);
+
+ /**
+ * Update the state of specified Content Filters associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @param body The body parameter.
+ * @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 {@link SyncPoller} for polling of azure OpenAI Content Filters resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RaiPolicyPropertiesBasicResourceInner> beginCreate(
+ String resourceGroupName, String workspaceName, String connectionName, String raiPolicyName,
+ RaiPolicyPropertiesBasicResourceInner body, Context context);
+
+ /**
+ * Update the state of specified Content Filters associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @param body The body parameter.
+ * @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 azure OpenAI Content Filters resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RaiPolicyPropertiesBasicResourceInner create(String resourceGroupName, String workspaceName, String connectionName,
+ String raiPolicyName, RaiPolicyPropertiesBasicResourceInner body);
+
+ /**
+ * Update the state of specified Content Filters associated with the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @param body The body parameter.
+ * @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 azure OpenAI Content Filters resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RaiPolicyPropertiesBasicResourceInner create(String resourceGroupName, String workspaceName, String connectionName,
+ String raiPolicyName, RaiPolicyPropertiesBasicResourceInner body, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionsClient.java
new file mode 100644
index 000000000000..ffaf223bef4b
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionsClient.java
@@ -0,0 +1,282 @@
+// 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.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.EndpointDeploymentResourcePropertiesBasicResourceInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.EndpointModelPropertiesInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.EndpointModelsInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in ConnectionsClient.
+ */
+public interface ConnectionsClient {
+ /**
+ * Get all the deployments under the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @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 all the deployments under the Azure OpenAI connection as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDeployments(String resourceGroupName,
+ String workspaceName, String connectionName);
+
+ /**
+ * Get all the deployments under the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @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 all the deployments under the Azure OpenAI connection as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDeployments(String resourceGroupName,
+ String workspaceName, String connectionName, Context context);
+
+ /**
+ * Delete Azure OpenAI connection deployment resource by name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param deploymentName Name of the deployment resource.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteDeployment(String resourceGroupName, String workspaceName,
+ String connectionName, String deploymentName);
+
+ /**
+ * Delete Azure OpenAI connection deployment resource by name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param deploymentName Name of the deployment resource.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDeleteDeployment(String resourceGroupName, String workspaceName,
+ String connectionName, String deploymentName, Context context);
+
+ /**
+ * Delete Azure OpenAI connection deployment resource by name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param deploymentName Name of the deployment resource.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteDeployment(String resourceGroupName, String workspaceName, String connectionName, String deploymentName);
+
+ /**
+ * Delete Azure OpenAI connection deployment resource by name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param deploymentName Name of the deployment resource.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void deleteDeployment(String resourceGroupName, String workspaceName, String connectionName, String deploymentName,
+ Context context);
+
+ /**
+ * Get deployments under the Azure OpenAI connection by name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param deploymentName Name of the deployment resource.
+ * @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 deployments under the Azure OpenAI connection by name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDeploymentWithResponse(String resourceGroupName,
+ String workspaceName, String connectionName, String deploymentName, Context context);
+
+ /**
+ * Get deployments under the Azure OpenAI connection by name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param deploymentName Name of the deployment resource.
+ * @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 deployments under the Azure OpenAI connection by name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EndpointDeploymentResourcePropertiesBasicResourceInner getDeployment(String resourceGroupName, String workspaceName,
+ String connectionName, String deploymentName);
+
+ /**
+ * Create or update Azure OpenAI connection deployment resource with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param deploymentName Name of the deployment resource.
+ * @param body deployment object.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EndpointDeploymentResourcePropertiesBasicResourceInner>
+ beginCreateOrUpdateDeployment(String resourceGroupName, String workspaceName, String connectionName,
+ String deploymentName, EndpointDeploymentResourcePropertiesBasicResourceInner body);
+
+ /**
+ * Create or update Azure OpenAI connection deployment resource with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param deploymentName Name of the deployment resource.
+ * @param body deployment object.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EndpointDeploymentResourcePropertiesBasicResourceInner>
+ beginCreateOrUpdateDeployment(String resourceGroupName, String workspaceName, String connectionName,
+ String deploymentName, EndpointDeploymentResourcePropertiesBasicResourceInner body, Context context);
+
+ /**
+ * Create or update Azure OpenAI connection deployment resource with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param deploymentName Name of the deployment resource.
+ * @param body deployment object.
+ * @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)
+ EndpointDeploymentResourcePropertiesBasicResourceInner createOrUpdateDeployment(String resourceGroupName,
+ String workspaceName, String connectionName, String deploymentName,
+ EndpointDeploymentResourcePropertiesBasicResourceInner body);
+
+ /**
+ * Create or update Azure OpenAI connection deployment resource with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param deploymentName Name of the deployment resource.
+ * @param body deployment object.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EndpointDeploymentResourcePropertiesBasicResourceInner createOrUpdateDeployment(String resourceGroupName,
+ String workspaceName, String connectionName, String deploymentName,
+ EndpointDeploymentResourcePropertiesBasicResourceInner body, Context context);
+
+ /**
+ * Get available models under the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @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 available models under the Azure OpenAI connection as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable getModels(String resourceGroupName, String workspaceName,
+ String connectionName);
+
+ /**
+ * Get available models under the Azure OpenAI connection.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @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 available models under the Azure OpenAI connection as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable getModels(String resourceGroupName, String workspaceName,
+ String connectionName, Context context);
+
+ /**
+ * Get models under the Azure ML workspace for all Azure OpenAI connections that the user can deploy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @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 models under the Azure ML workspace for all Azure OpenAI connections that the user can deploy along with
+ * {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listModelsWithResponse(String resourceGroupName, String workspaceName,
+ Context context);
+
+ /**
+ * Get models under the Azure ML workspace for all Azure OpenAI connections that the user can deploy.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @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 models under the Azure ML workspace for all Azure OpenAI connections that the user can deploy.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EndpointModelsInner listModels(String resourceGroupName, String workspaceName);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DatastoresClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DatastoresClient.java
index 4f1a49380464..4b27708c65d2 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DatastoresClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/DatastoresClient.java
@@ -11,6 +11,7 @@
import com.azure.core.util.Context;
import com.azure.resourcemanager.machinelearning.fluent.models.DatastoreInner;
import com.azure.resourcemanager.machinelearning.fluent.models.DatastoreSecretsInner;
+import com.azure.resourcemanager.machinelearning.models.SecretExpiry;
import java.util.List;
/**
@@ -149,6 +150,7 @@ Response createOrUpdateWithResponse(String resourceGroupName, St
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName Name of Azure Machine Learning workspace.
* @param name Datastore name.
+ * @param body Secret expiry information.
* @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.
@@ -157,7 +159,7 @@ Response createOrUpdateWithResponse(String resourceGroupName, St
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response listSecretsWithResponse(String resourceGroupName, String workspaceName, String name,
- Context context);
+ SecretExpiry body, Context context);
/**
* Get datastore secrets.
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EndpointDeploymentsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EndpointDeploymentsClient.java
new file mode 100644
index 000000000000..3a82e28c8702
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EndpointDeploymentsClient.java
@@ -0,0 +1,252 @@
+// 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.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.EndpointDeploymentResourcePropertiesBasicResourceInner;
+import com.azure.resourcemanager.machinelearning.models.EndpointType;
+
+/**
+ * An instance of this class provides access to all the operations defined in EndpointDeploymentsClient.
+ */
+public interface EndpointDeploymentsClient {
+ /**
+ * Get all the deployments under the workspace scope.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @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 all the deployments under the workspace scope as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable getInWorkspace(String resourceGroupName,
+ String workspaceName);
+
+ /**
+ * Get all the deployments under the workspace scope.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointType Endpoint type filter.
+ * @param skip Continuation token for pagination.
+ * @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 all the deployments under the workspace scope as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable getInWorkspace(String resourceGroupName,
+ String workspaceName, EndpointType endpointType, String skip, Context context);
+
+ /**
+ * Get all the deployments under the endpoint resource scope.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @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 all the deployments under the endpoint resource scope as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName,
+ String workspaceName, String endpointName);
+
+ /**
+ * Get all the deployments under the endpoint resource scope.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @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 all the deployments under the endpoint resource scope as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName,
+ String workspaceName, String endpointName, Context context);
+
+ /**
+ * Delete endpoint deployment resource by name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param deploymentName Name of the deployment resource.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String endpointName,
+ String deploymentName);
+
+ /**
+ * Delete endpoint deployment resource by name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param deploymentName Name of the deployment resource.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String endpointName,
+ String deploymentName, Context context);
+
+ /**
+ * Delete endpoint deployment resource by name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param deploymentName Name of the deployment resource.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String endpointName, String deploymentName);
+
+ /**
+ * Delete endpoint deployment resource by name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param deploymentName Name of the deployment resource.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String endpointName, String deploymentName,
+ Context context);
+
+ /**
+ * Get deployments under endpoint resource by name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param deploymentName Name of the deployment resource.
+ * @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 deployments under endpoint resource by name along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName,
+ String workspaceName, String endpointName, String deploymentName, Context context);
+
+ /**
+ * Get deployments under endpoint resource by name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param deploymentName Name of the deployment resource.
+ * @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 deployments under endpoint resource by name.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EndpointDeploymentResourcePropertiesBasicResourceInner get(String resourceGroupName, String workspaceName,
+ String endpointName, String deploymentName);
+
+ /**
+ * Create or update endpoint deployment resource with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param deploymentName Name of the deployment resource.
+ * @param body deployment object.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EndpointDeploymentResourcePropertiesBasicResourceInner>
+ beginCreateOrUpdate(String resourceGroupName, String workspaceName, String endpointName, String deploymentName,
+ EndpointDeploymentResourcePropertiesBasicResourceInner body);
+
+ /**
+ * Create or update endpoint deployment resource with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param deploymentName Name of the deployment resource.
+ * @param body deployment object.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EndpointDeploymentResourcePropertiesBasicResourceInner>
+ beginCreateOrUpdate(String resourceGroupName, String workspaceName, String endpointName, String deploymentName,
+ EndpointDeploymentResourcePropertiesBasicResourceInner body, Context context);
+
+ /**
+ * Create or update endpoint deployment resource with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param deploymentName Name of the deployment resource.
+ * @param body deployment object.
+ * @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)
+ EndpointDeploymentResourcePropertiesBasicResourceInner createOrUpdate(String resourceGroupName,
+ String workspaceName, String endpointName, String deploymentName,
+ EndpointDeploymentResourcePropertiesBasicResourceInner body);
+
+ /**
+ * Create or update endpoint deployment resource with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param deploymentName Name of the deployment resource.
+ * @param body deployment object.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EndpointDeploymentResourcePropertiesBasicResourceInner createOrUpdate(String resourceGroupName,
+ String workspaceName, String endpointName, String deploymentName,
+ EndpointDeploymentResourcePropertiesBasicResourceInner body, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EndpointsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EndpointsClient.java
new file mode 100644
index 000000000000..3d6ce38c5578
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EndpointsClient.java
@@ -0,0 +1,250 @@
+// 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.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.AccountApiKeysInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.EndpointKeysInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.EndpointModelPropertiesInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.EndpointResourcePropertiesBasicResourceInner;
+import com.azure.resourcemanager.machinelearning.models.EndpointType;
+import com.azure.resourcemanager.machinelearning.models.RegenerateServiceAccountKeyContent;
+
+/**
+ * An instance of this class provides access to all the operations defined in EndpointsClient.
+ */
+public interface EndpointsClient {
+ /**
+ * List All the endpoints under this workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @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 paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName);
+
+ /**
+ * List All the endpoints under this workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointType Endpoint type filter.
+ * @param includeInferenceEndpoints The includeInferenceEndpoints parameter.
+ * @param skip Continuation token for pagination.
+ * @param expand Whether the endpoint resource will be expand to include deployment information, e.g.
+ * $expand=deployments.
+ * @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 paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName,
+ EndpointType endpointType, Boolean includeInferenceEndpoints, String skip, String expand, Context context);
+
+ /**
+ * Gets endpoint resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @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 endpoint resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName,
+ String workspaceName, String endpointName, Context context);
+
+ /**
+ * Gets endpoint resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @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 endpoint resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EndpointResourcePropertiesBasicResourceInner get(String resourceGroupName, String workspaceName,
+ String endpointName);
+
+ /**
+ * Create or update endpoint resource with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param body Endpoint resource object.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EndpointResourcePropertiesBasicResourceInner>
+ beginCreateOrUpdate(String resourceGroupName, String workspaceName, String endpointName,
+ EndpointResourcePropertiesBasicResourceInner body);
+
+ /**
+ * Create or update endpoint resource with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param body Endpoint resource object.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, EndpointResourcePropertiesBasicResourceInner>
+ beginCreateOrUpdate(String resourceGroupName, String workspaceName, String endpointName,
+ EndpointResourcePropertiesBasicResourceInner body, Context context);
+
+ /**
+ * Create or update endpoint resource with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param body Endpoint resource object.
+ * @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)
+ EndpointResourcePropertiesBasicResourceInner createOrUpdate(String resourceGroupName, String workspaceName,
+ String endpointName, EndpointResourcePropertiesBasicResourceInner body);
+
+ /**
+ * Create or update endpoint resource with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param body Endpoint resource object.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ EndpointResourcePropertiesBasicResourceInner createOrUpdate(String resourceGroupName, String workspaceName,
+ String endpointName, EndpointResourcePropertiesBasicResourceInner body, Context context);
+
+ /**
+ * List keys for the endpoint resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @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 listKeysWithResponse(String resourceGroupName, String workspaceName,
+ String endpointName, Context context);
+
+ /**
+ * List keys for the endpoint resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @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)
+ EndpointKeysInner listKeys(String resourceGroupName, String workspaceName, String endpointName);
+
+ /**
+ * Get available models under the endpoint resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @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 available models under the endpoint resource as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable getModels(String resourceGroupName, String workspaceName,
+ String endpointName);
+
+ /**
+ * Get available models under the endpoint resource.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @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 available models under the endpoint resource as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable getModels(String resourceGroupName, String workspaceName,
+ String endpointName, Context context);
+
+ /**
+ * Regenerate account keys.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param body The body parameter.
+ * @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 regenerateKeysWithResponse(String resourceGroupName, String workspaceName,
+ String endpointName, RegenerateServiceAccountKeyContent body, Context context);
+
+ /**
+ * Regenerate account keys.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param body The body parameter.
+ * @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)
+ AccountApiKeysInner regenerateKeys(String resourceGroupName, String workspaceName, String endpointName,
+ RegenerateServiceAccountKeyContent body);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ManagedNetworkProvisionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ManagedNetworkProvisionsClient.java
index 1d352bc17141..d465c7a581e8 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ManagedNetworkProvisionsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ManagedNetworkProvisionsClient.java
@@ -20,7 +20,7 @@ public interface ManagedNetworkProvisionsClient {
* Provisions the managed network of a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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.
@@ -35,7 +35,7 @@ public interface ManagedNetworkProvisionsClient {
* Provisions the managed network of a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @param body Managed Network Provisioning Options for a machine learning workspace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -53,7 +53,7 @@ public interface ManagedNetworkProvisionsClient {
* Provisions the managed network of a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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.
@@ -66,7 +66,7 @@ public interface ManagedNetworkProvisionsClient {
* Provisions the managed network of a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @param body Managed Network Provisioning Options for a machine learning workspace.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ManagedNetworkSettingsRulesClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ManagedNetworkSettingsRulesClient.java
index e092cd4e3ab9..03336b3bbbb4 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ManagedNetworkSettingsRulesClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ManagedNetworkSettingsRulesClient.java
@@ -21,7 +21,7 @@ public interface ManagedNetworkSettingsRulesClient {
* Lists the managed network outbound rules for a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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.
@@ -35,7 +35,7 @@ public interface ManagedNetworkSettingsRulesClient {
* Lists the managed network outbound rules for a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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.
@@ -50,7 +50,7 @@ public interface ManagedNetworkSettingsRulesClient {
* Deletes an outbound rule from the managed network of a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @param ruleName Name of the workspace managed network outbound rule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -64,7 +64,7 @@ public interface ManagedNetworkSettingsRulesClient {
* Deletes an outbound rule from the managed network of a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @param ruleName Name of the workspace managed network outbound rule.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -80,7 +80,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* Deletes an outbound rule from the managed network of a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @param ruleName Name of the workspace managed network outbound rule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -93,7 +93,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* Deletes an outbound rule from the managed network of a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @param ruleName Name of the workspace managed network outbound rule.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -107,7 +107,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
* Gets an outbound rule from the managed network of a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @param ruleName Name of the workspace managed network outbound rule.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -123,7 +123,7 @@ Response getWithResponse(String resourceGroupNam
* Gets an outbound rule from the managed network of a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @param ruleName Name of the workspace managed network outbound rule.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
@@ -137,14 +137,13 @@ Response getWithResponse(String resourceGroupNam
* Creates or updates an outbound rule in the managed network of a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @param ruleName Name of the workspace managed network outbound rule.
* @param body Outbound Rule to be created or updated in the managed network of a machine learning workspace.
* @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 {@link SyncPoller} for polling of outbound Rule Basic Resource for the managed network of a machine
- * learning workspace.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OutboundRuleBasicResourceInner> beginCreateOrUpdate(
@@ -154,15 +153,14 @@ SyncPoller, OutboundRuleBasicResource
* Creates or updates an outbound rule in the managed network of a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @param ruleName Name of the workspace managed network outbound rule.
* @param body Outbound Rule to be created or updated in the managed network of a machine learning workspace.
* @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 {@link SyncPoller} for polling of outbound Rule Basic Resource for the managed network of a machine
- * learning workspace.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, OutboundRuleBasicResourceInner> beginCreateOrUpdate(
@@ -173,13 +171,13 @@ SyncPoller, OutboundRuleBasicResource
* Creates or updates an outbound rule in the managed network of a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @param ruleName Name of the workspace managed network outbound rule.
* @param body Outbound Rule to be created or updated in the managed network of a machine learning workspace.
* @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 outbound Rule Basic Resource for the managed network of a machine learning workspace.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OutboundRuleBasicResourceInner createOrUpdate(String resourceGroupName, String workspaceName, String ruleName,
@@ -189,14 +187,14 @@ OutboundRuleBasicResourceInner createOrUpdate(String resourceGroupName, String w
* Creates or updates an outbound rule in the managed network of a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @param ruleName Name of the workspace managed network outbound rule.
* @param body Outbound Rule to be created or updated in the managed network of a machine learning workspace.
* @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 outbound Rule Basic Resource for the managed network of a machine learning workspace.
+ * @return the response.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
OutboundRuleBasicResourceInner createOrUpdate(String resourceGroupName, String workspaceName, String ruleName,
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/PrivateEndpointConnectionsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/PrivateEndpointConnectionsClient.java
index b3867155b4b7..fa48b2a483c8 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/PrivateEndpointConnectionsClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/PrivateEndpointConnectionsClient.java
@@ -16,10 +16,10 @@
*/
public interface PrivateEndpointConnectionsClient {
/**
- * List all the private endpoint connections associated with the workspace.
+ * Called by end-users to get all PE connections.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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.
@@ -30,10 +30,10 @@ public interface PrivateEndpointConnectionsClient {
PagedIterable list(String resourceGroupName, String workspaceName);
/**
- * List all the private endpoint connections associated with the workspace.
+ * Called by end-users to get all PE connections.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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.
@@ -45,43 +45,40 @@ public interface PrivateEndpointConnectionsClient {
PagedIterable list(String resourceGroupName, String workspaceName, Context context);
/**
- * Gets the specified private endpoint connection associated with the workspace.
+ * Called by end-users to delete a PE connection.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param privateEndpointConnectionName NRP Private Endpoint Connection Name.
* @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 specified private endpoint connection associated with the workspace along with {@link Response}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response getWithResponse(String resourceGroupName, String workspaceName,
+ Response deleteWithResponse(String resourceGroupName, String workspaceName,
String privateEndpointConnectionName, Context context);
/**
- * Gets the specified private endpoint connection associated with the workspace.
+ * Called by end-users to delete a PE connection.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param privateEndpointConnectionName NRP Private Endpoint Connection Name.
* @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 specified private endpoint connection associated with the workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner get(String resourceGroupName, String workspaceName,
- String privateEndpointConnectionName);
+ void delete(String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
/**
- * Update the state of specified private endpoint connection associated with the workspace.
+ * Called by end-users to get a PE connection.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the workspace.
- * @param properties The private endpoint connection properties.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param privateEndpointConnectionName NRP Private Endpoint Connection Name.
* @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.
@@ -89,51 +86,56 @@ PrivateEndpointConnectionInner get(String resourceGroupName, String workspaceNam
* @return the Private Endpoint Connection resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName,
- String privateEndpointConnectionName, PrivateEndpointConnectionInner properties, Context context);
+ Response getWithResponse(String resourceGroupName, String workspaceName,
+ String privateEndpointConnectionName, Context context);
/**
- * Update the state of specified private endpoint connection associated with the workspace.
+ * Called by end-users to get a PE connection.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the workspace.
- * @param properties The private endpoint connection properties.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param privateEndpointConnectionName NRP Private Endpoint Connection Name.
* @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 Private Endpoint Connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- PrivateEndpointConnectionInner createOrUpdate(String resourceGroupName, String workspaceName,
- String privateEndpointConnectionName, PrivateEndpointConnectionInner properties);
+ PrivateEndpointConnectionInner get(String resourceGroupName, String workspaceName,
+ String privateEndpointConnectionName);
/**
- * Deletes the specified private endpoint connection associated with the workspace.
+ * Called by end-users to approve or reject a PE connection.
+ * This method must validate and forward the call to NRP.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param privateEndpointConnectionName NRP Private Endpoint Connection Name.
+ * @param body PrivateEndpointConnection object.
* @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 {@link Response}.
+ * @return the Private Endpoint Connection resource along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String workspaceName,
- String privateEndpointConnectionName, Context context);
+ Response createOrUpdateWithResponse(String resourceGroupName, String workspaceName,
+ String privateEndpointConnectionName, PrivateEndpointConnectionInner body, Context context);
/**
- * Deletes the specified private endpoint connection associated with the workspace.
+ * Called by end-users to approve or reject a PE connection.
+ * This method must validate and forward the call to NRP.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param privateEndpointConnectionName The name of the private endpoint connection associated with the workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param privateEndpointConnectionName NRP Private Endpoint Connection Name.
+ * @param body PrivateEndpointConnection object.
* @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 Private Endpoint Connection resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName, String privateEndpointConnectionName);
+ PrivateEndpointConnectionInner createOrUpdate(String resourceGroupName, String workspaceName,
+ String privateEndpointConnectionName, PrivateEndpointConnectionInner body);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/PrivateLinkResourcesClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/PrivateLinkResourcesClient.java
index c40a3ce213ae..d26cec617246 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/PrivateLinkResourcesClient.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/PrivateLinkResourcesClient.java
@@ -6,39 +6,46 @@
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
-import com.azure.core.http.rest.Response;
+import com.azure.core.http.rest.PagedIterable;
import com.azure.core.util.Context;
-import com.azure.resourcemanager.machinelearning.fluent.models.PrivateLinkResourceListResultInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.PrivateLinkResourceInner;
/**
* An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient.
*/
public interface PrivateLinkResourcesClient {
/**
- * Gets the private link resources that need to be created for a workspace.
+ * Called by Client (Portal, CLI, etc) to get available "private link resources" for the workspace.
+ * Each "private link resource" is a connection endpoint (IP address) to the resource.
+ * Pre single connection endpoint per workspace: the Data Plane IP address, returned by DNS resolution.
+ * Other RPs, such as Azure Storage, have multiple - one for Blobs, other for Queues, etc.
+ * Defined in the "[NRP] Private Endpoint Design" doc, topic "GET API for GroupIds".
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param context The context to associate with this operation.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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 private link resources that need to be created for a workspace along with {@link Response}.
+ * @return a list of private link resources as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listWithResponse(String resourceGroupName, String workspaceName,
- Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName);
/**
- * Gets the private link resources that need to be created for a workspace.
+ * Called by Client (Portal, CLI, etc) to get available "private link resources" for the workspace.
+ * Each "private link resource" is a connection endpoint (IP address) to the resource.
+ * Pre single connection endpoint per workspace: the Data Plane IP address, returned by DNS resolution.
+ * Other RPs, such as Azure Storage, have multiple - one for Blobs, other for Queues, etc.
+ * Defined in the "[NRP] Private Endpoint Design" doc, topic "GET API for GroupIds".
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @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 private link resources that need to be created for a workspace.
+ * @return a list of private link resources as paginated response with {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- PrivateLinkResourceListResultInner list(String resourceGroupName, String workspaceName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName, Context context);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RaiPoliciesClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RaiPoliciesClient.java
new file mode 100644
index 000000000000..316a1252758a
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RaiPoliciesClient.java
@@ -0,0 +1,47 @@
+// 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.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.machinelearning.fluent.models.RaiPolicyPropertiesBasicResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in RaiPoliciesClient.
+ */
+public interface RaiPoliciesClient {
+ /**
+ * List the specified Content Filters associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @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 azure OpenAI Content Filters resource list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName,
+ String endpointName);
+
+ /**
+ * List the specified Content Filters associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @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 azure OpenAI Content Filters resource list as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName,
+ String endpointName, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RaiPolicyOperationsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RaiPolicyOperationsClient.java
new file mode 100644
index 000000000000..e7c93ded5f9b
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RaiPolicyOperationsClient.java
@@ -0,0 +1,186 @@
+// 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.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.machinelearning.fluent.models.RaiPolicyPropertiesBasicResourceInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in RaiPolicyOperationsClient.
+ */
+public interface RaiPolicyOperationsClient {
+ /**
+ * Deletes the specified Content Filters associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String endpointName,
+ String raiPolicyName);
+
+ /**
+ * Deletes the specified Content Filters associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String endpointName,
+ String raiPolicyName, Context context);
+
+ /**
+ * Deletes the specified Content Filters associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String endpointName, String raiPolicyName);
+
+ /**
+ * Deletes the specified Content Filters associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String endpointName, String raiPolicyName,
+ Context context);
+
+ /**
+ * Gets the specified Content Filters associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @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 specified Content Filters associated with the Azure OpenAI account along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String workspaceName,
+ String endpointName, String raiPolicyName, Context context);
+
+ /**
+ * Gets the specified Content Filters associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @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 specified Content Filters associated with the Azure OpenAI account.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RaiPolicyPropertiesBasicResourceInner get(String resourceGroupName, String workspaceName, String endpointName,
+ String raiPolicyName);
+
+ /**
+ * Update the state of specified Content Filters associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @param body The body parameter.
+ * @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 {@link SyncPoller} for polling of azure OpenAI Content Filters resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RaiPolicyPropertiesBasicResourceInner> beginCreate(
+ String resourceGroupName, String workspaceName, String endpointName, String raiPolicyName,
+ RaiPolicyPropertiesBasicResourceInner body);
+
+ /**
+ * Update the state of specified Content Filters associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @param body The body parameter.
+ * @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 {@link SyncPoller} for polling of azure OpenAI Content Filters resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, RaiPolicyPropertiesBasicResourceInner> beginCreate(
+ String resourceGroupName, String workspaceName, String endpointName, String raiPolicyName,
+ RaiPolicyPropertiesBasicResourceInner body, Context context);
+
+ /**
+ * Update the state of specified Content Filters associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @param body The body parameter.
+ * @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 azure OpenAI Content Filters resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RaiPolicyPropertiesBasicResourceInner create(String resourceGroupName, String workspaceName, String endpointName,
+ String raiPolicyName, RaiPolicyPropertiesBasicResourceInner body);
+
+ /**
+ * Update the state of specified Content Filters associated with the Azure OpenAI account.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param endpointName Name of the endpoint resource.
+ * @param raiPolicyName Name of the Rai Policy.
+ * @param body The body parameter.
+ * @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 azure OpenAI Content Filters resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ RaiPolicyPropertiesBasicResourceInner create(String resourceGroupName, String workspaceName, String endpointName,
+ String raiPolicyName, RaiPolicyPropertiesBasicResourceInner body, Context context);
+}
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 eee87969a4a3..1fe59f400c6e 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
@@ -8,52 +8,83 @@
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
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.
*/
public interface WorkspaceConnectionsClient {
/**
- * The create operation.
+ * Lists all the available 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 workspaceName Azure Machine Learning Workspace Name.
+ * @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 paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName,
+ String workspaceName);
+
+ /**
+ * Lists all the available machine learning workspaces connections under the specified workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @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.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName,
+ String workspaceName, String target, String category, Boolean includeAll, Context context);
+
+ /**
+ * Delete machine learning workspaces connections by name.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @param connectionName Friendly name of the workspace connection.
- * @param parameters The object for creating or updating a new workspace connection.
* @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}.
+ * @return the {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response createWithResponse(String resourceGroupName,
- String workspaceName, String connectionName, WorkspaceConnectionPropertiesV2BasicResourceInner parameters,
+ Response deleteWithResponse(String resourceGroupName, String workspaceName, String connectionName,
Context context);
/**
- * The create operation.
+ * Delete machine learning workspaces connections by name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @param connectionName Friendly name of the workspace connection.
- * @param parameters The object for creating or updating a new 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 create(String resourceGroupName, String workspaceName,
- String connectionName, WorkspaceConnectionPropertiesV2BasicResourceInner parameters);
+ void delete(String resourceGroupName, String workspaceName, String connectionName);
/**
- * The get operation.
+ * Lists machine learning workspaces connections by name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @param connectionName Friendly name of the workspace connection.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -66,10 +97,10 @@ Response getWithResponse(Stri
String workspaceName, String connectionName, Context context);
/**
- * The get operation.
+ * Lists machine learning workspaces connections by name.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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.
@@ -81,70 +112,75 @@ WorkspaceConnectionPropertiesV2BasicResourceInner get(String resourceGroupName,
String connectionName);
/**
- * The delete operation.
+ * 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 workspaceName Azure Machine Learning Workspace Name.
* @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 {@link Response}.
+ * @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response deleteWithResponse(String resourceGroupName, String workspaceName, String connectionName,
- Context context);
+ Response updateWithResponse(String resourceGroupName,
+ String workspaceName, String connectionName, WorkspaceConnectionUpdateParameter body, Context context);
/**
- * The delete operation.
+ * 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 workspaceName Azure Machine Learning Workspace Name.
* @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)
- void delete(String resourceGroupName, String workspaceName, String connectionName);
+ WorkspaceConnectionPropertiesV2BasicResourceInner update(String resourceGroupName, String workspaceName,
+ String connectionName);
/**
- * The list operation.
+ * Create or 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 workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param body The object for creating or updating a new workspace connection.
+ * @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 paginated response with {@link PagedIterable}.
+ * @return the response body along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName,
- String workspaceName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response createWithResponse(String resourceGroupName,
+ String workspaceName, String connectionName, WorkspaceConnectionPropertiesV2BasicResourceInner body,
+ Context context);
/**
- * The list operation.
+ * Create or 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 target Target of the workspace connection.
- * @param category Category of the workspace connection.
- * @param context The context to associate with this operation.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @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 paginated response with {@link PagedIterable}.
+ * @return the response.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String resourceGroupName,
- String workspaceName, String target, String category, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkspaceConnectionPropertiesV2BasicResourceInner create(String resourceGroupName, String workspaceName,
+ String connectionName);
/**
* List all the secrets of a machine learning workspaces connections.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @param connectionName Friendly name of the workspace connection.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
@@ -160,7 +196,7 @@ Response listSecretsWithRespo
* List all the secrets of a machine learning workspaces connections.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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.
@@ -170,4 +206,65 @@ Response listSecretsWithRespo
@ServiceMethod(returns = ReturnType.SINGLE)
WorkspaceConnectionPropertiesV2BasicResourceInner listSecrets(String resourceGroupName, String workspaceName,
String connectionName);
+
+ /**
+ * Test machine learning workspaces connections under the specified workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginTestConnection(String resourceGroupName, String workspaceName,
+ String connectionName);
+
+ /**
+ * Test machine learning workspaces connections under the specified workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param body Workspace Connection object.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginTestConnection(String resourceGroupName, String workspaceName,
+ String connectionName, WorkspaceConnectionPropertiesV2BasicResourceInner body, Context context);
+
+ /**
+ * Test machine learning workspaces connections under the specified workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void testConnection(String resourceGroupName, String workspaceName, String connectionName);
+
+ /**
+ * Test machine learning workspaces connections under the specified workspace.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param connectionName Friendly name of the workspace connection.
+ * @param body Workspace Connection object.
+ * @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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void testConnection(String resourceGroupName, String workspaceName, String connectionName,
+ WorkspaceConnectionPropertiesV2BasicResourceInner body, Context context);
}
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 d3a6d397d5b9..f59e61833c08 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,163 +19,160 @@
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.
*/
public interface WorkspacesClient {
/**
- * Gets the properties of the specified machine learning workspace.
+ * Lists all the available machine learning workspaces under the specified subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @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 properties of the specified machine learning workspace along with {@link Response}.
+ * @return the result of a request to list machine learning workspaces as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response getByResourceGroupWithResponse(String resourceGroupName, String workspaceName,
- Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
/**
- * Gets the properties of the specified machine learning workspace.
+ * Lists all the available machine learning workspaces under the specified subscription.
*
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param kind Kind of workspace.
+ * @param skip Continuation token for pagination.
+ * @param aiCapabilities The aiCapabilities parameter.
+ * @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 properties of the specified machine learning workspace.
+ * @return the result of a request to list machine learning workspaces as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkspaceInner getByResourceGroup(String resourceGroupName, String workspaceName);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String kind, String skip, String aiCapabilities, Context context);
/**
- * Creates or updates a workspace with the specified parameters.
+ * Lists all the available machine learning workspaces under the specified resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param parameters The parameters for creating or updating a machine learning workspace.
* @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 {@link SyncPoller} for polling of an object that represents a machine learning workspace.
+ * @return the result of a request to list machine learning workspaces as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkspaceInner> beginCreateOrUpdate(String resourceGroupName,
- String workspaceName, WorkspaceInner parameters);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
/**
- * Creates or updates a workspace with the specified parameters.
+ * Lists all the available machine learning workspaces under the specified resource group.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param parameters The parameters for creating or updating a machine learning workspace.
+ * @param kind Kind of workspace.
+ * @param skip Continuation token for pagination.
+ * @param aiCapabilities The aiCapabilities parameter.
* @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 {@link SyncPoller} for polling of an object that represents a machine learning workspace.
+ * @return the result of a request to list machine learning workspaces as paginated response with
+ * {@link PagedIterable}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, WorkspaceInner> beginCreateOrUpdate(String resourceGroupName,
- String workspaceName, WorkspaceInner parameters, Context context);
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, String kind, String skip,
+ String aiCapabilities, Context context);
/**
- * Creates or updates a workspace with the specified parameters.
+ * Deletes a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param parameters The parameters for creating or updating a machine learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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 an object that represents a machine learning workspace.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceName, WorkspaceInner parameters);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName);
/**
- * Creates or updates a workspace with the specified parameters.
+ * Deletes a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param parameters The parameters for creating or updating a machine learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param forceToPurge Flag to indicate delete is a purge request.
* @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 an object that represents a machine learning workspace.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceName, WorkspaceInner parameters,
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, Boolean forceToPurge,
Context context);
/**
* Deletes a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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 {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName);
/**
* Deletes a machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @param forceToPurge Flag to indicate delete is a purge request.
* @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 {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, Boolean forceToPurge,
- Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, Boolean forceToPurge, Context context);
/**
- * Deletes a machine learning workspace.
+ * Gets the properties of the specified machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @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 properties of the specified machine learning workspace along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName);
+ Response getByResourceGroupWithResponse(String resourceGroupName, String workspaceName,
+ Context context);
/**
- * Deletes a machine learning workspace.
+ * Gets the properties of the specified machine learning workspace.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param forceToPurge Flag to indicate delete is a purge request.
- * @param context The context to associate with this operation.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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 properties of the specified machine learning workspace.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- void delete(String resourceGroupName, String workspaceName, Boolean forceToPurge, Context context);
+ WorkspaceInner getByResourceGroup(String resourceGroupName, String workspaceName);
/**
* Updates a machine learning workspace with the specified parameters.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param parameters The parameters for updating a machine learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param body The parameters for updating a machine learning workspace.
* @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.
@@ -183,14 +180,14 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkspaceInner> beginUpdate(String resourceGroupName, String workspaceName,
- WorkspaceUpdateParameters parameters);
+ WorkspaceUpdateParametersInner body);
/**
* Updates a machine learning workspace with the specified parameters.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param parameters The parameters for updating a machine learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param body The parameters for updating a machine learning workspace.
* @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.
@@ -199,28 +196,28 @@ SyncPoller, WorkspaceInner> beginUpdate(String resour
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, WorkspaceInner> beginUpdate(String resourceGroupName, String workspaceName,
- WorkspaceUpdateParameters parameters, Context context);
+ WorkspaceUpdateParametersInner body, Context context);
/**
* Updates a machine learning workspace with the specified parameters.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param parameters The parameters for updating a machine learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param body The parameters for updating a machine learning workspace.
* @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 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 body);
/**
* Updates a machine learning workspace with the specified parameters.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param parameters The parameters for updating a machine learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param body The parameters for updating a machine learning workspace.
* @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.
@@ -228,42 +225,74 @@ 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 body,
Context context);
/**
- * Lists all the available machine learning workspaces under the specified resource group.
+ * Creates or updates a workspace with the specified parameters.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param body The parameters for creating or updating a machine learning workspace.
* @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 result of a request to list machine learning workspaces as paginated response with
- * {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of an object that represents a machine learning workspace.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WorkspaceInner> beginCreateOrUpdate(String resourceGroupName,
+ String workspaceName, WorkspaceInner body);
/**
- * Lists all the available machine learning workspaces under the specified resource group.
+ * Creates or updates a workspace with the specified parameters.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param skip Continuation token for pagination.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param body The parameters for creating or updating a machine learning workspace.
* @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 result of a request to list machine learning workspaces as paginated response with
- * {@link PagedIterable}.
+ * @return the {@link SyncPoller} for polling of an object that represents a machine learning workspace.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable listByResourceGroup(String resourceGroupName, String skip, Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, WorkspaceInner> beginCreateOrUpdate(String resourceGroupName,
+ String workspaceName, WorkspaceInner body, Context context);
+
+ /**
+ * Creates or updates a workspace with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param body The parameters for creating or updating a machine learning workspace.
+ * @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 an object that represents a machine learning workspace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceName, WorkspaceInner body);
+
+ /**
+ * Creates or updates a workspace with the specified parameters.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param body The parameters for creating or updating a machine learning workspace.
+ * @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 an object that represents a machine learning workspace.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ WorkspaceInner createOrUpdate(String resourceGroupName, String workspaceName, WorkspaceInner body, Context context);
/**
* Diagnose workspace setup issue.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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.
@@ -277,8 +306,8 @@ WorkspaceInner update(String resourceGroupName, String workspaceName, WorkspaceU
* Diagnose workspace setup issue.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param parameters The parameter of diagnosing workspace health.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param body The parameter of diagnosing workspace health.
* @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.
@@ -287,13 +316,13 @@ WorkspaceInner update(String resourceGroupName, String workspaceName, WorkspaceU
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller, DiagnoseResponseResultInner> beginDiagnose(
- String resourceGroupName, String workspaceName, DiagnoseWorkspaceParameters parameters, Context context);
+ String resourceGroupName, String workspaceName, DiagnoseWorkspaceParameters body, Context context);
/**
* Diagnose workspace setup issue.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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.
@@ -306,8 +335,8 @@ SyncPoller, DiagnoseResponseResultInner>
* Diagnose workspace setup issue.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param parameters The parameter of diagnosing workspace health.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @param body The parameter of diagnosing workspace health.
* @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.
@@ -316,14 +345,14 @@ SyncPoller, DiagnoseResponseResultInner>
*/
@ServiceMethod(returns = ReturnType.SINGLE)
DiagnoseResponseResultInner diagnose(String resourceGroupName, String workspaceName,
- DiagnoseWorkspaceParameters parameters, Context context);
+ DiagnoseWorkspaceParameters body, Context context);
/**
* Lists all the keys associated with this workspace. This includes keys for the storage account, app insights and
* password for container registry.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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.
@@ -339,7 +368,7 @@ Response listKeysWithResponse(String resourceGroup
* password for container registry.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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.
@@ -349,91 +378,94 @@ Response listKeysWithResponse(String resourceGroup
ListWorkspaceKeysResultInner listKeys(String resourceGroupName, String workspaceName);
/**
- * Resync all the keys associated with this workspace. This includes keys for the storage account, app insights and
- * password for container registry.
+ * Get Azure Machine Learning Workspace notebook access token.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @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 {@link SyncPoller} for polling of long-running operation.
+ * @return azure Machine Learning Workspace notebook access token along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginResyncKeys(String resourceGroupName, String workspaceName);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listNotebookAccessTokenWithResponse(String resourceGroupName,
+ String workspaceName, Context context);
/**
- * Resync all the keys associated with this workspace. This includes keys for the storage account, app insights and
- * password for container registry.
+ * Get Azure Machine Learning Workspace notebook access token.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param context The context to associate with this operation.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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 {@link SyncPoller} for polling of long-running operation.
+ * @return azure Machine Learning Workspace notebook access token.
*/
- @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
- SyncPoller, Void> beginResyncKeys(String resourceGroupName, String workspaceName, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ NotebookAccessTokenResultInner listNotebookAccessToken(String resourceGroupName, String workspaceName);
/**
- * Resync all the keys associated with this workspace. This includes keys for the storage account, app insights and
- * password for container registry.
+ * Lists keys of Azure Machine Learning Workspaces notebook.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @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)
- void resyncKeys(String resourceGroupName, String workspaceName);
+ Response listNotebookKeysWithResponse(String resourceGroupName, String workspaceName,
+ Context context);
/**
- * Resync all the keys associated with this workspace. This includes keys for the storage account, app insights and
- * password for container registry.
+ * Lists keys of Azure Machine Learning Workspaces notebook.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @param context The context to associate with this operation.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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)
- void resyncKeys(String resourceGroupName, String workspaceName, Context context);
+ ListNotebookKeysResultInner listNotebookKeys(String resourceGroupName, String workspaceName);
/**
- * Lists all the available machine learning workspaces under the specified subscription.
+ * Lists keys of Azure Machine Learning Workspace's storage account.
*
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
+ * @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 result of a request to list machine learning workspaces as paginated response with
- * {@link PagedIterable}.
+ * @return the response body along with {@link Response}.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list();
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response listStorageAccountKeysWithResponse(String resourceGroupName,
+ String workspaceName, Context context);
/**
- * Lists all the available machine learning workspaces under the specified subscription.
+ * Lists keys of Azure Machine Learning Workspace's storage account.
*
- * @param skip Continuation token for pagination.
- * @param context The context to associate with this operation.
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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 result of a request to list machine learning workspaces as paginated response with
- * {@link PagedIterable}.
+ * @return the response.
*/
- @ServiceMethod(returns = ReturnType.COLLECTION)
- PagedIterable list(String skip, Context context);
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ ListStorageAccountKeysResultInner listStorageAccountKeys(String resourceGroupName, String workspaceName);
/**
- * return notebook access token and refresh token.
+ * Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) programmatically.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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.
@@ -441,27 +473,27 @@ Response listKeysWithResponse(String resourceGroup
* @return the response body along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
- Response listNotebookAccessTokenWithResponse(String resourceGroupName,
+ Response listOutboundNetworkDependenciesEndpointsWithResponse(String resourceGroupName,
String workspaceName, Context context);
/**
- * return notebook access token and refresh token.
+ * Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) programmatically.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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)
- NotebookAccessTokenResultInner listNotebookAccessToken(String resourceGroupName, String workspaceName);
+ ExternalFqdnResponseInner listOutboundNetworkDependenciesEndpoints(String resourceGroupName, String workspaceName);
/**
- * Prepare a notebook.
+ * Prepare Azure Machine Learning Workspace's notebook resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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.
@@ -472,10 +504,10 @@ Response listNotebookAccessTokenWithResponse(Str
beginPrepareNotebook(String resourceGroupName, String workspaceName);
/**
- * Prepare a notebook.
+ * Prepare Azure Machine Learning Workspace's notebook resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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.
@@ -487,10 +519,10 @@ Response listNotebookAccessTokenWithResponse(Str
beginPrepareNotebook(String resourceGroupName, String workspaceName, Context context);
/**
- * Prepare a notebook.
+ * Prepare Azure Machine Learning Workspace's notebook resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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.
@@ -500,10 +532,10 @@ Response listNotebookAccessTokenWithResponse(Str
NotebookResourceInfoInner prepareNotebook(String resourceGroupName, String workspaceName);
/**
- * Prepare a notebook.
+ * Prepare Azure Machine Learning Workspace's notebook resource.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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.
@@ -514,86 +546,58 @@ Response listNotebookAccessTokenWithResponse(Str
NotebookResourceInfoInner prepareNotebook(String resourceGroupName, String workspaceName, Context context);
/**
- * List storage account keys of a workspace.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @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 listStorageAccountKeysWithResponse(String resourceGroupName,
- String workspaceName, Context context);
-
- /**
- * List storage account keys of a workspace.
+ * Resync all the keys associated with this workspace.This includes keys for the storage account, app insights and
+ * password for container registry.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- ListStorageAccountKeysResultInner listStorageAccountKeys(String resourceGroupName, String workspaceName);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginResyncKeys(String resourceGroupName, String workspaceName);
/**
- * List keys of a notebook.
+ * Resync all the keys associated with this workspace.This includes keys for the storage account, app insights and
+ * password for container registry.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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}.
+ * @return the {@link SyncPoller} for polling of long-running operation.
*/
- @ServiceMethod(returns = ReturnType.SINGLE)
- Response listNotebookKeysWithResponse(String resourceGroupName, String workspaceName,
- Context context);
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginResyncKeys(String resourceGroupName, String workspaceName, Context context);
/**
- * List keys of a notebook.
+ * Resync all the keys associated with this workspace.This includes keys for the storage account, app insights and
+ * password for container registry.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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)
- ListNotebookKeysResultInner listNotebookKeys(String resourceGroupName, String workspaceName);
+ void resyncKeys(String resourceGroupName, String workspaceName);
/**
- * Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) programmatically.
+ * Resync all the keys associated with this workspace.This includes keys for the storage account, app insights and
+ * password for container registry.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param workspaceName Azure Machine Learning Workspace Name.
* @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 listOutboundNetworkDependenciesEndpointsWithResponse(String resourceGroupName,
- String workspaceName, Context context);
-
- /**
- * Called by Client (Portal, CLI, etc) to get a list of all external outbound dependencies (FQDNs) programmatically.
- *
- * @param resourceGroupName The name of the resource group. The name is case insensitive.
- * @param workspaceName Name of Azure Machine Learning workspace.
- * @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)
- ExternalFqdnResponseInner listOutboundNetworkDependenciesEndpoints(String resourceGroupName, String workspaceName);
+ void resyncKeys(String resourceGroupName, String workspaceName, Context context);
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/AccountApiKeysInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/AccountApiKeysInner.java
new file mode 100644
index 000000000000..4d89aafaf967
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/AccountApiKeysInner.java
@@ -0,0 +1,121 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The AccountApiKeys model.
+ */
+@Fluent
+public final class AccountApiKeysInner implements JsonSerializable {
+ /*
+ * The key1 property.
+ */
+ private String key1;
+
+ /*
+ * The key2 property.
+ */
+ private String key2;
+
+ /**
+ * Creates an instance of AccountApiKeysInner class.
+ */
+ public AccountApiKeysInner() {
+ }
+
+ /**
+ * Get the key1 property: The key1 property.
+ *
+ * @return the key1 value.
+ */
+ public String key1() {
+ return this.key1;
+ }
+
+ /**
+ * Set the key1 property: The key1 property.
+ *
+ * @param key1 the key1 value to set.
+ * @return the AccountApiKeysInner object itself.
+ */
+ public AccountApiKeysInner withKey1(String key1) {
+ this.key1 = key1;
+ return this;
+ }
+
+ /**
+ * Get the key2 property: The key2 property.
+ *
+ * @return the key2 value.
+ */
+ public String key2() {
+ return this.key2;
+ }
+
+ /**
+ * Set the key2 property: The key2 property.
+ *
+ * @param key2 the key2 value to set.
+ * @return the AccountApiKeysInner object itself.
+ */
+ public AccountApiKeysInner withKey2(String key2) {
+ this.key2 = key2;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("key1", this.key1);
+ jsonWriter.writeStringField("key2", this.key2);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of AccountApiKeysInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of AccountApiKeysInner 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 AccountApiKeysInner.
+ */
+ public static AccountApiKeysInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ AccountApiKeysInner deserializedAccountApiKeysInner = new AccountApiKeysInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("key1".equals(fieldName)) {
+ deserializedAccountApiKeysInner.key1 = reader.getString();
+ } else if ("key2".equals(fieldName)) {
+ deserializedAccountApiKeysInner.key2 = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedAccountApiKeysInner;
+ });
+ }
+}
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 d4ddade922d3..459580f505a7 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.
@@ -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;
}
@@ -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 a4494b6eabf1..2a3d4441d1bc 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.
@@ -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;
}
@@ -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/EndpointAuthTokenInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointAuthTokenInner.java
index ae60a3319a7b..f427b864474c 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 {
+ EndpointDeploymentResourcePropertiesBasicResourceInner deserializedEndpointDeploymentResourcePropertiesBasicResourceInner
+ = new EndpointDeploymentResourcePropertiesBasicResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedEndpointDeploymentResourcePropertiesBasicResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedEndpointDeploymentResourcePropertiesBasicResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedEndpointDeploymentResourcePropertiesBasicResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedEndpointDeploymentResourcePropertiesBasicResourceInner.properties
+ = EndpointDeploymentResourceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedEndpointDeploymentResourcePropertiesBasicResourceInner.systemData
+ = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEndpointDeploymentResourcePropertiesBasicResourceInner;
+ });
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointKeysInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointKeysInner.java
new file mode 100644
index 000000000000..339b15e5d4a1
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointKeysInner.java
@@ -0,0 +1,96 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+
+/**
+ * The EndpointKeys model.
+ */
+@Fluent
+public final class EndpointKeysInner implements JsonSerializable {
+ /*
+ * Dictionary of Keys for the endpoint.
+ */
+ private AccountApiKeysInner keys;
+
+ /**
+ * Creates an instance of EndpointKeysInner class.
+ */
+ public EndpointKeysInner() {
+ }
+
+ /**
+ * Get the keys property: Dictionary of Keys for the endpoint.
+ *
+ * @return the keys value.
+ */
+ public AccountApiKeysInner keys() {
+ return this.keys;
+ }
+
+ /**
+ * Set the keys property: Dictionary of Keys for the endpoint.
+ *
+ * @param keys the keys value to set.
+ * @return the EndpointKeysInner object itself.
+ */
+ public EndpointKeysInner withKeys(AccountApiKeysInner keys) {
+ this.keys = keys;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (keys() != null) {
+ keys().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("keys", this.keys);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of EndpointKeysInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EndpointKeysInner 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 EndpointKeysInner.
+ */
+ public static EndpointKeysInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EndpointKeysInner deserializedEndpointKeysInner = new EndpointKeysInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("keys".equals(fieldName)) {
+ deserializedEndpointKeysInner.keys = AccountApiKeysInner.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEndpointKeysInner;
+ });
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointModelPropertiesInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointModelPropertiesInner.java
new file mode 100644
index 000000000000..980339578336
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointModelPropertiesInner.java
@@ -0,0 +1,388 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.machinelearning.models.EndpointModelDeprecationProperties;
+import com.azure.resourcemanager.machinelearning.models.EndpointModelSkuProperties;
+import com.azure.resourcemanager.machinelearning.models.ModelLifecycleStatus;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * Endpoint Model properties.
+ */
+@Fluent
+public final class EndpointModelPropertiesInner implements JsonSerializable {
+ /*
+ * The capabilities.
+ */
+ private Map capabilities;
+
+ /*
+ * The deprecation property.
+ */
+ private EndpointModelDeprecationProperties deprecation;
+
+ /*
+ * The capabilities for finetune models.
+ */
+ private Map finetuneCapabilities;
+
+ /*
+ * Deployment model format.
+ */
+ private String format;
+
+ /*
+ * If the model is default version.
+ */
+ private Boolean isDefaultVersion;
+
+ /*
+ * Model lifecycle status.
+ */
+ private ModelLifecycleStatus lifecycleStatus;
+
+ /*
+ * The max capacity.
+ */
+ private Integer maxCapacity;
+
+ /*
+ * Deployment model name.
+ */
+ private String name;
+
+ /*
+ * The list of Model Sku.
+ */
+ private List skus;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ private SystemData systemData;
+
+ /*
+ * Optional. Deployment model version. If version is not specified, a default version will be assigned. The default
+ * version is different for different models and might change when there is new version available for a model.
+ * Default version for a model could be found from list models API.
+ */
+ private String version;
+
+ /**
+ * Creates an instance of EndpointModelPropertiesInner class.
+ */
+ public EndpointModelPropertiesInner() {
+ }
+
+ /**
+ * Get the capabilities property: The capabilities.
+ *
+ * @return the capabilities value.
+ */
+ public Map capabilities() {
+ return this.capabilities;
+ }
+
+ /**
+ * Set the capabilities property: The capabilities.
+ *
+ * @param capabilities the capabilities value to set.
+ * @return the EndpointModelPropertiesInner object itself.
+ */
+ public EndpointModelPropertiesInner withCapabilities(Map capabilities) {
+ this.capabilities = capabilities;
+ return this;
+ }
+
+ /**
+ * Get the deprecation property: The deprecation property.
+ *
+ * @return the deprecation value.
+ */
+ public EndpointModelDeprecationProperties deprecation() {
+ return this.deprecation;
+ }
+
+ /**
+ * Set the deprecation property: The deprecation property.
+ *
+ * @param deprecation the deprecation value to set.
+ * @return the EndpointModelPropertiesInner object itself.
+ */
+ public EndpointModelPropertiesInner withDeprecation(EndpointModelDeprecationProperties deprecation) {
+ this.deprecation = deprecation;
+ return this;
+ }
+
+ /**
+ * Get the finetuneCapabilities property: The capabilities for finetune models.
+ *
+ * @return the finetuneCapabilities value.
+ */
+ public Map finetuneCapabilities() {
+ return this.finetuneCapabilities;
+ }
+
+ /**
+ * Set the finetuneCapabilities property: The capabilities for finetune models.
+ *
+ * @param finetuneCapabilities the finetuneCapabilities value to set.
+ * @return the EndpointModelPropertiesInner object itself.
+ */
+ public EndpointModelPropertiesInner withFinetuneCapabilities(Map finetuneCapabilities) {
+ this.finetuneCapabilities = finetuneCapabilities;
+ return this;
+ }
+
+ /**
+ * Get the format property: Deployment model format.
+ *
+ * @return the format value.
+ */
+ public String format() {
+ return this.format;
+ }
+
+ /**
+ * Set the format property: Deployment model format.
+ *
+ * @param format the format value to set.
+ * @return the EndpointModelPropertiesInner object itself.
+ */
+ public EndpointModelPropertiesInner withFormat(String format) {
+ this.format = format;
+ return this;
+ }
+
+ /**
+ * Get the isDefaultVersion property: If the model is default version.
+ *
+ * @return the isDefaultVersion value.
+ */
+ public Boolean isDefaultVersion() {
+ return this.isDefaultVersion;
+ }
+
+ /**
+ * Set the isDefaultVersion property: If the model is default version.
+ *
+ * @param isDefaultVersion the isDefaultVersion value to set.
+ * @return the EndpointModelPropertiesInner object itself.
+ */
+ public EndpointModelPropertiesInner withIsDefaultVersion(Boolean isDefaultVersion) {
+ this.isDefaultVersion = isDefaultVersion;
+ return this;
+ }
+
+ /**
+ * Get the lifecycleStatus property: Model lifecycle status.
+ *
+ * @return the lifecycleStatus value.
+ */
+ public ModelLifecycleStatus lifecycleStatus() {
+ return this.lifecycleStatus;
+ }
+
+ /**
+ * Set the lifecycleStatus property: Model lifecycle status.
+ *
+ * @param lifecycleStatus the lifecycleStatus value to set.
+ * @return the EndpointModelPropertiesInner object itself.
+ */
+ public EndpointModelPropertiesInner withLifecycleStatus(ModelLifecycleStatus lifecycleStatus) {
+ this.lifecycleStatus = lifecycleStatus;
+ return this;
+ }
+
+ /**
+ * Get the maxCapacity property: The max capacity.
+ *
+ * @return the maxCapacity value.
+ */
+ public Integer maxCapacity() {
+ return this.maxCapacity;
+ }
+
+ /**
+ * Set the maxCapacity property: The max capacity.
+ *
+ * @param maxCapacity the maxCapacity value to set.
+ * @return the EndpointModelPropertiesInner object itself.
+ */
+ public EndpointModelPropertiesInner withMaxCapacity(Integer maxCapacity) {
+ this.maxCapacity = maxCapacity;
+ return this;
+ }
+
+ /**
+ * Get the name property: Deployment model name.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Deployment model name.
+ *
+ * @param name the name value to set.
+ * @return the EndpointModelPropertiesInner object itself.
+ */
+ public EndpointModelPropertiesInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the skus property: The list of Model Sku.
+ *
+ * @return the skus value.
+ */
+ public List skus() {
+ return this.skus;
+ }
+
+ /**
+ * Set the skus property: The list of Model Sku.
+ *
+ * @param skus the skus value to set.
+ * @return the EndpointModelPropertiesInner object itself.
+ */
+ public EndpointModelPropertiesInner withSkus(List skus) {
+ this.skus = skus;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the version property: Optional. Deployment model version. If version is not specified, a default version will
+ * be assigned. The default version is different for different models and might change when there is new version
+ * available for a model. Default version for a model could be found from list models API.
+ *
+ * @return the version value.
+ */
+ public String version() {
+ return this.version;
+ }
+
+ /**
+ * Set the version property: Optional. Deployment model version. If version is not specified, a default version will
+ * be assigned. The default version is different for different models and might change when there is new version
+ * available for a model. Default version for a model could be found from list models API.
+ *
+ * @param version the version value to set.
+ * @return the EndpointModelPropertiesInner object itself.
+ */
+ public EndpointModelPropertiesInner withVersion(String version) {
+ this.version = version;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (deprecation() != null) {
+ deprecation().validate();
+ }
+ if (skus() != null) {
+ skus().forEach(e -> e.validate());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeMapField("capabilities", this.capabilities, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("deprecation", this.deprecation);
+ jsonWriter.writeMapField("finetuneCapabilities", this.finetuneCapabilities,
+ (writer, element) -> writer.writeString(element));
+ jsonWriter.writeStringField("format", this.format);
+ jsonWriter.writeBooleanField("isDefaultVersion", this.isDefaultVersion);
+ jsonWriter.writeStringField("lifecycleStatus",
+ this.lifecycleStatus == null ? null : this.lifecycleStatus.toString());
+ jsonWriter.writeNumberField("maxCapacity", this.maxCapacity);
+ jsonWriter.writeStringField("name", this.name);
+ jsonWriter.writeArrayField("skus", this.skus, (writer, element) -> writer.writeJson(element));
+ jsonWriter.writeStringField("version", this.version);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of EndpointModelPropertiesInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EndpointModelPropertiesInner 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 EndpointModelPropertiesInner.
+ */
+ public static EndpointModelPropertiesInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EndpointModelPropertiesInner deserializedEndpointModelPropertiesInner = new EndpointModelPropertiesInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("capabilities".equals(fieldName)) {
+ Map capabilities = reader.readMap(reader1 -> reader1.getString());
+ deserializedEndpointModelPropertiesInner.capabilities = capabilities;
+ } else if ("deprecation".equals(fieldName)) {
+ deserializedEndpointModelPropertiesInner.deprecation
+ = EndpointModelDeprecationProperties.fromJson(reader);
+ } else if ("finetuneCapabilities".equals(fieldName)) {
+ Map finetuneCapabilities = reader.readMap(reader1 -> reader1.getString());
+ deserializedEndpointModelPropertiesInner.finetuneCapabilities = finetuneCapabilities;
+ } else if ("format".equals(fieldName)) {
+ deserializedEndpointModelPropertiesInner.format = reader.getString();
+ } else if ("isDefaultVersion".equals(fieldName)) {
+ deserializedEndpointModelPropertiesInner.isDefaultVersion
+ = reader.getNullable(JsonReader::getBoolean);
+ } else if ("lifecycleStatus".equals(fieldName)) {
+ deserializedEndpointModelPropertiesInner.lifecycleStatus
+ = ModelLifecycleStatus.fromString(reader.getString());
+ } else if ("maxCapacity".equals(fieldName)) {
+ deserializedEndpointModelPropertiesInner.maxCapacity = reader.getNullable(JsonReader::getInt);
+ } else if ("name".equals(fieldName)) {
+ deserializedEndpointModelPropertiesInner.name = reader.getString();
+ } else if ("skus".equals(fieldName)) {
+ List skus
+ = reader.readArray(reader1 -> EndpointModelSkuProperties.fromJson(reader1));
+ deserializedEndpointModelPropertiesInner.skus = skus;
+ } else if ("systemData".equals(fieldName)) {
+ deserializedEndpointModelPropertiesInner.systemData = SystemData.fromJson(reader);
+ } else if ("version".equals(fieldName)) {
+ deserializedEndpointModelPropertiesInner.version = reader.getString();
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEndpointModelPropertiesInner;
+ });
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointModelsInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointModelsInner.java
new file mode 100644
index 000000000000..fced054d394c
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointModelsInner.java
@@ -0,0 +1,129 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonSerializable;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import java.io.IOException;
+import java.util.List;
+
+/**
+ * The EndpointModels model.
+ */
+@Fluent
+public final class EndpointModelsInner implements JsonSerializable {
+ /*
+ * The link to the next page constructed using the continuationToken. If null, there are no additional pages.
+ */
+ private String nextLink;
+
+ /*
+ * List of models.
+ */
+ private List value;
+
+ /**
+ * Creates an instance of EndpointModelsInner class.
+ */
+ public EndpointModelsInner() {
+ }
+
+ /**
+ * Get the nextLink property: The link to the next page constructed using the continuationToken. If null, there are
+ * no additional pages.
+ *
+ * @return the nextLink value.
+ */
+ public String nextLink() {
+ return this.nextLink;
+ }
+
+ /**
+ * Set the nextLink property: The link to the next page constructed using the continuationToken. If null, there are
+ * no additional pages.
+ *
+ * @param nextLink the nextLink value to set.
+ * @return the EndpointModelsInner object itself.
+ */
+ public EndpointModelsInner withNextLink(String nextLink) {
+ this.nextLink = nextLink;
+ return this;
+ }
+
+ /**
+ * Get the value property: List of models.
+ *
+ * @return the value value.
+ */
+ public List value() {
+ return this.value;
+ }
+
+ /**
+ * Set the value property: List of models.
+ *
+ * @param value the value value to set.
+ * @return the EndpointModelsInner object itself.
+ */
+ public EndpointModelsInner withValue(List value) {
+ this.value = value;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (value() != null) {
+ value().forEach(e -> e.validate());
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("nextLink", this.nextLink);
+ jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of EndpointModelsInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EndpointModelsInner 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 EndpointModelsInner.
+ */
+ public static EndpointModelsInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EndpointModelsInner deserializedEndpointModelsInner = new EndpointModelsInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("nextLink".equals(fieldName)) {
+ deserializedEndpointModelsInner.nextLink = reader.getString();
+ } else if ("value".equals(fieldName)) {
+ List value
+ = reader.readArray(reader1 -> EndpointModelPropertiesInner.fromJson(reader1));
+ deserializedEndpointModelsInner.value = value;
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEndpointModelsInner;
+ });
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointPropertiesBaseInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointPropertiesBaseInner.java
index 3ed8cb7b4073..25bf585399b4 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointPropertiesBaseInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointPropertiesBaseInner.java
@@ -19,11 +19,23 @@
*/
@Fluent
public class EndpointPropertiesBaseInner 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/EndpointResourcePropertiesBasicResourceInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointResourcePropertiesBasicResourceInner.java
new file mode 100644
index 000000000000..49a562afc55d
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/EndpointResourcePropertiesBasicResourceInner.java
@@ -0,0 +1,175 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.machinelearning.models.EndpointResourceProperties;
+import java.io.IOException;
+
+/**
+ * The EndpointResourcePropertiesBasicResource model.
+ */
+@Fluent
+public final class EndpointResourcePropertiesBasicResourceInner extends ProxyResource {
+ /*
+ * The properties property.
+ */
+ private EndpointResourceProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /**
+ * Creates an instance of EndpointResourcePropertiesBasicResourceInner class.
+ */
+ public EndpointResourcePropertiesBasicResourceInner() {
+ }
+
+ /**
+ * Get the properties property: The properties property.
+ *
+ * @return the properties value.
+ */
+ public EndpointResourceProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: The properties property.
+ *
+ * @param properties the properties value to set.
+ * @return the EndpointResourcePropertiesBasicResourceInner object itself.
+ */
+ public EndpointResourcePropertiesBasicResourceInner withProperties(EndpointResourceProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property properties in model EndpointResourcePropertiesBasicResourceInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(EndpointResourcePropertiesBasicResourceInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of EndpointResourcePropertiesBasicResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of EndpointResourcePropertiesBasicResourceInner if the JsonReader was pointing to an instance
+ * of it, or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the EndpointResourcePropertiesBasicResourceInner.
+ */
+ public static EndpointResourcePropertiesBasicResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ EndpointResourcePropertiesBasicResourceInner deserializedEndpointResourcePropertiesBasicResourceInner
+ = new EndpointResourcePropertiesBasicResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedEndpointResourcePropertiesBasicResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedEndpointResourcePropertiesBasicResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedEndpointResourcePropertiesBasicResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedEndpointResourcePropertiesBasicResourceInner.properties
+ = EndpointResourceProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedEndpointResourcePropertiesBasicResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedEndpointResourcePropertiesBasicResourceInner;
+ });
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ExternalFqdnResponseInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ExternalFqdnResponseInner.java
index 1ddfcb011592..92fff8292ab3 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ExternalFqdnResponseInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ExternalFqdnResponseInner.java
@@ -9,7 +9,7 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.machinelearning.models.FqdnEndpoints;
+import com.azure.resourcemanager.machinelearning.models.FqdnEndpointsPropertyBag;
import java.io.IOException;
import java.util.List;
@@ -21,7 +21,7 @@ public final class ExternalFqdnResponseInner implements JsonSerializable value;
+ private List value;
/**
* Creates an instance of ExternalFqdnResponseInner class.
@@ -34,7 +34,7 @@ public ExternalFqdnResponseInner() {
*
* @return the value value.
*/
- public List value() {
+ public List value() {
return this.value;
}
@@ -44,7 +44,7 @@ public List value() {
* @param value the value value to set.
* @return the ExternalFqdnResponseInner object itself.
*/
- public ExternalFqdnResponseInner withValue(List value) {
+ public ExternalFqdnResponseInner withValue(List value) {
this.value = value;
return this;
}
@@ -86,7 +86,8 @@ public static ExternalFqdnResponseInner fromJson(JsonReader jsonReader) throws I
reader.nextToken();
if ("value".equals(fieldName)) {
- List value = reader.readArray(reader1 -> FqdnEndpoints.fromJson(reader1));
+ List value
+ = reader.readArray(reader1 -> FqdnEndpointsPropertyBag.fromJson(reader1));
deserializedExternalFqdnResponseInner.value = value;
} else {
reader.skipChildren();
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ListNotebookKeysResultInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ListNotebookKeysResultInner.java
index e6f115efc86a..3201eaf7c5ca 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ListNotebookKeysResultInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ListNotebookKeysResultInner.java
@@ -17,12 +17,12 @@
@Immutable
public final class ListNotebookKeysResultInner implements JsonSerializable {
/*
- * The primaryAccessKey property.
+ * The primary access key of the Notebook
*/
private String primaryAccessKey;
/*
- * The secondaryAccessKey property.
+ * The secondary access key of the Notebook
*/
private String secondaryAccessKey;
@@ -33,7 +33,7 @@ public ListNotebookKeysResultInner() {
}
/**
- * Get the primaryAccessKey property: The primaryAccessKey property.
+ * Get the primaryAccessKey property: The primary access key of the Notebook.
*
* @return the primaryAccessKey value.
*/
@@ -42,7 +42,7 @@ public String primaryAccessKey() {
}
/**
- * Get the secondaryAccessKey property: The secondaryAccessKey property.
+ * Get the secondaryAccessKey property: The secondary access key of the Notebook.
*
* @return the secondaryAccessKey value.
*/
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ListStorageAccountKeysResultInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ListStorageAccountKeysResultInner.java
index 6a4fbb94a968..449ae182b9b2 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ListStorageAccountKeysResultInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ListStorageAccountKeysResultInner.java
@@ -17,7 +17,7 @@
@Immutable
public final class ListStorageAccountKeysResultInner implements JsonSerializable {
/*
- * The userStorageKey property.
+ * The access key of the storage
*/
private String userStorageKey;
@@ -28,7 +28,7 @@ public ListStorageAccountKeysResultInner() {
}
/**
- * Get the userStorageKey property: The userStorageKey property.
+ * Get the userStorageKey property: The access key of the storage.
*
* @return the userStorageKey value.
*/
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ListWorkspaceKeysResultInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ListWorkspaceKeysResultInner.java
index ce6ca9d857d1..70176670ad4d 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ListWorkspaceKeysResultInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/ListWorkspaceKeysResultInner.java
@@ -4,7 +4,7 @@
package com.azure.resourcemanager.machinelearning.fluent.models;
-import com.azure.core.annotation.Immutable;
+import com.azure.core.annotation.Fluent;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
@@ -15,20 +15,10 @@
/**
* The ListWorkspaceKeysResult model.
*/
-@Immutable
+@Fluent
public final class ListWorkspaceKeysResultInner implements JsonSerializable {
/*
- * The userStorageKey property.
- */
- private String userStorageKey;
-
- /*
- * The userStorageResourceId property.
- */
- private String userStorageResourceId;
-
- /*
- * The appInsightsInstrumentationKey property.
+ * The access key of the workspace app insights
*/
private String appInsightsInstrumentationKey;
@@ -42,32 +32,24 @@ public final class ListWorkspaceKeysResultInner implements JsonSerializable changeableIsolationModes;
+
/**
* Creates an instance of ManagedNetworkSettingsInner class.
*/
@@ -114,6 +120,15 @@ public ManagedNetworkSettingsInner withStatus(ManagedNetworkProvisionStatusInner
return this;
}
+ /**
+ * Get the changeableIsolationModes property: The changeableIsolationModes property.
+ *
+ * @return the changeableIsolationModes value.
+ */
+ public List changeableIsolationModes() {
+ return this.changeableIsolationModes;
+ }
+
/**
* Validates the instance.
*
@@ -170,6 +185,10 @@ public static ManagedNetworkSettingsInner fromJson(JsonReader jsonReader) throws
} else if ("status".equals(fieldName)) {
deserializedManagedNetworkSettingsInner.status
= ManagedNetworkProvisionStatusInner.fromJson(reader);
+ } else if ("changeableIsolationModes".equals(fieldName)) {
+ List changeableIsolationModes
+ = reader.readArray(reader1 -> IsolationMode.fromString(reader1.getString()));
+ deserializedManagedNetworkSettingsInner.changeableIsolationModes = changeableIsolationModes;
} else {
reader.skipChildren();
}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/NotebookAccessTokenResultInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/NotebookAccessTokenResultInner.java
index 92e2d3d03636..28c35e68b8af 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/NotebookAccessTokenResultInner.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/NotebookAccessTokenResultInner.java
@@ -17,34 +17,29 @@
@Immutable
public final class NotebookAccessTokenResultInner implements JsonSerializable {
/*
- * The notebookResourceId property.
- */
- private String notebookResourceId;
-
- /*
- * The hostName property.
+ * The accessToken property.
*/
- private String hostname;
+ private String accessToken;
/*
- * The publicDns property.
+ * The expiresIn property.
*/
- private String publicDns;
+ private Integer expiresIn;
/*
- * The accessToken property.
+ * The hostName property.
*/
- private String accessToken;
+ private String hostname;
/*
- * The tokenType property.
+ * The notebookResourceId property.
*/
- private String tokenType;
+ private String notebookResourceId;
/*
- * The expiresIn property.
+ * The publicDns property.
*/
- private Integer expiresIn;
+ private String publicDns;
/*
* The refreshToken property.
@@ -56,64 +51,60 @@ public final class NotebookAccessTokenResultInner implements JsonSerializable 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 7170897d2235..79ac86bb7abb 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.
@@ -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;
}
@@ -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 6795602d33bb..b0e70a9bef92 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
@@ -15,7 +15,7 @@
import java.io.IOException;
/**
- * Outbound Rule Basic Resource for the managed network of a machine learning workspace.
+ * The OutboundRuleBasicResource model.
*/
@Fluent
public final class OutboundRuleBasicResourceInner extends ProxyResource {
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 a18d97bb627a..73a3ee0ece31 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
@@ -11,10 +11,10 @@
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
-import com.azure.resourcemanager.machinelearning.models.PrivateEndpoint;
import com.azure.resourcemanager.machinelearning.models.PrivateEndpointConnectionProvisioningState;
import com.azure.resourcemanager.machinelearning.models.PrivateLinkServiceConnectionState;
import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.WorkspacePrivateEndpointResource;
import java.io.IOException;
import java.util.Map;
@@ -24,30 +24,30 @@
@Fluent
public final class PrivateEndpointConnectionInner extends ProxyResource {
/*
- * Resource properties.
- */
- private PrivateEndpointConnectionProperties innerProperties;
-
- /*
- * The identity of the resource.
+ * Managed service identity (system assigned and/or user assigned identities)
*/
private ManagedServiceIdentity identity;
/*
- * Specifies the location of the resource.
+ * Same as workspace location.
*/
private String location;
/*
- * Contains resource tags defined as key/value pairs.
+ * Private endpoint connection properties.
*/
- private Map tags;
+ private PrivateEndpointConnectionProperties innerProperties;
/*
- * The sku of the workspace.
+ * Optional. This field is required to be implemented by the RP because AML is supporting more than one tier
*/
private Sku sku;
+ /*
+ * Dictionary of
+ */
+ private Map tags;
+
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@@ -75,16 +75,7 @@ public PrivateEndpointConnectionInner() {
}
/**
- * Get the innerProperties property: Resource properties.
- *
- * @return the innerProperties value.
- */
- private PrivateEndpointConnectionProperties innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the identity property: The identity of the resource.
+ * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
*
* @return the identity value.
*/
@@ -93,7 +84,7 @@ public ManagedServiceIdentity identity() {
}
/**
- * Set the identity property: The identity of the resource.
+ * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
*
* @param identity the identity value to set.
* @return the PrivateEndpointConnectionInner object itself.
@@ -104,7 +95,7 @@ public PrivateEndpointConnectionInner withIdentity(ManagedServiceIdentity identi
}
/**
- * Get the location property: Specifies the location of the resource.
+ * Get the location property: Same as workspace location.
*
* @return the location value.
*/
@@ -113,7 +104,7 @@ public String location() {
}
/**
- * Set the location property: Specifies the location of the resource.
+ * Set the location property: Same as workspace location.
*
* @param location the location value to set.
* @return the PrivateEndpointConnectionInner object itself.
@@ -124,42 +115,53 @@ public PrivateEndpointConnectionInner withLocation(String location) {
}
/**
- * Get the tags property: Contains resource tags defined as key/value pairs.
+ * Get the innerProperties property: Private endpoint connection properties.
*
- * @return the tags value.
+ * @return the innerProperties value.
*/
- public Map tags() {
- return this.tags;
+ private PrivateEndpointConnectionProperties innerProperties() {
+ return this.innerProperties;
}
/**
- * Set the tags property: Contains resource tags defined as key/value pairs.
+ * Get the sku property: Optional. This field is required to be implemented by the RP because AML is supporting more
+ * than one tier.
*
- * @param tags the tags value to set.
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: Optional. This field is required to be implemented by the RP because AML is supporting more
+ * than one tier.
+ *
+ * @param sku the sku value to set.
* @return the PrivateEndpointConnectionInner object itself.
*/
- public PrivateEndpointConnectionInner withTags(Map tags) {
- this.tags = tags;
+ public PrivateEndpointConnectionInner withSku(Sku sku) {
+ this.sku = sku;
return this;
}
/**
- * Get the sku property: The sku of the workspace.
+ * Get the tags property: Dictionary of <string>.
*
- * @return the sku value.
+ * @return the tags value.
*/
- public Sku sku() {
- return this.sku;
+ public Map tags() {
+ return this.tags;
}
/**
- * Set the sku property: The sku of the workspace.
+ * Set the tags property: Dictionary of <string>.
*
- * @param sku the sku value to set.
+ * @param tags the tags value to set.
* @return the PrivateEndpointConnectionInner object itself.
*/
- public PrivateEndpointConnectionInner withSku(Sku sku) {
- this.sku = sku;
+ public PrivateEndpointConnectionInner withTags(Map tags) {
+ this.tags = tags;
return this;
}
@@ -203,21 +205,21 @@ public String type() {
}
/**
- * Get the privateEndpoint property: The resource of private end point.
+ * Get the privateEndpoint property: The Private Endpoint resource.
*
* @return the privateEndpoint value.
*/
- public PrivateEndpoint privateEndpoint() {
+ public WorkspacePrivateEndpointResource privateEndpoint() {
return this.innerProperties() == null ? null : this.innerProperties().privateEndpoint();
}
/**
- * Set the privateEndpoint property: The resource of private end point.
+ * Set the privateEndpoint property: The Private Endpoint resource.
*
* @param privateEndpoint the privateEndpoint value to set.
* @return the PrivateEndpointConnectionInner object itself.
*/
- public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ public PrivateEndpointConnectionInner withPrivateEndpoint(WorkspacePrivateEndpointResource privateEndpoint) {
if (this.innerProperties() == null) {
this.innerProperties = new PrivateEndpointConnectionProperties();
}
@@ -226,8 +228,7 @@ public PrivateEndpointConnectionInner withPrivateEndpoint(PrivateEndpoint privat
}
/**
- * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
+ * Get the privateLinkServiceConnectionState property: The connection state.
*
* @return the privateLinkServiceConnectionState value.
*/
@@ -236,8 +237,7 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
}
/**
- * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
+ * Set the privateLinkServiceConnectionState property: The connection state.
*
* @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
* @return the PrivateEndpointConnectionInner object itself.
@@ -252,7 +252,7 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
}
/**
- * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
+ * Get the provisioningState property: The current provisioning state.
*
* @return the provisioningState value.
*/
@@ -260,18 +260,33 @@ public PrivateEndpointConnectionProvisioningState provisioningState() {
return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
}
+ /**
+ * Set the provisioningState property: The current provisioning state.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the PrivateEndpointConnectionInner object itself.
+ */
+ public PrivateEndpointConnectionInner
+ withProvisioningState(PrivateEndpointConnectionProvisioningState provisioningState) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateEndpointConnectionProperties();
+ }
+ this.innerProperties().withProvisioningState(provisioningState);
+ return this;
+ }
+
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
- if (innerProperties() != null) {
- innerProperties().validate();
- }
if (identity() != null) {
identity().validate();
}
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
if (sku() != null) {
sku().validate();
}
@@ -283,11 +298,11 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("properties", this.innerProperties);
jsonWriter.writeJsonField("identity", this.identity);
jsonWriter.writeStringField("location", this.location);
- jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ jsonWriter.writeJsonField("properties", this.innerProperties);
jsonWriter.writeJsonField("sku", this.sku);
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
return jsonWriter.writeEndObject();
}
@@ -314,18 +329,18 @@ public static PrivateEndpointConnectionInner fromJson(JsonReader jsonReader) thr
deserializedPrivateEndpointConnectionInner.name = reader.getString();
} else if ("type".equals(fieldName)) {
deserializedPrivateEndpointConnectionInner.type = reader.getString();
- } else if ("properties".equals(fieldName)) {
- deserializedPrivateEndpointConnectionInner.innerProperties
- = PrivateEndpointConnectionProperties.fromJson(reader);
} else if ("identity".equals(fieldName)) {
deserializedPrivateEndpointConnectionInner.identity = ManagedServiceIdentity.fromJson(reader);
} else if ("location".equals(fieldName)) {
deserializedPrivateEndpointConnectionInner.location = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.innerProperties
+ = PrivateEndpointConnectionProperties.fromJson(reader);
+ } else if ("sku".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionInner.sku = Sku.fromJson(reader);
} else if ("tags".equals(fieldName)) {
Map tags = reader.readMap(reader1 -> reader1.getString());
deserializedPrivateEndpointConnectionInner.tags = tags;
- } else if ("sku".equals(fieldName)) {
- deserializedPrivateEndpointConnectionInner.sku = Sku.fromJson(reader);
} else if ("systemData".equals(fieldName)) {
deserializedPrivateEndpointConnectionInner.systemData = SystemData.fromJson(reader);
} else {
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionProperties.java
index 73c00d781c1c..c35f5b4e2c90 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateEndpointConnectionProperties.java
@@ -5,34 +5,33 @@
package com.azure.resourcemanager.machinelearning.fluent.models;
import com.azure.core.annotation.Fluent;
-import com.azure.core.util.logging.ClientLogger;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.machinelearning.models.PrivateEndpoint;
import com.azure.resourcemanager.machinelearning.models.PrivateEndpointConnectionProvisioningState;
import com.azure.resourcemanager.machinelearning.models.PrivateLinkServiceConnectionState;
+import com.azure.resourcemanager.machinelearning.models.WorkspacePrivateEndpointResource;
import java.io.IOException;
/**
- * Properties of the PrivateEndpointConnectProperties.
+ * Private endpoint connection properties.
*/
@Fluent
public final class PrivateEndpointConnectionProperties
implements JsonSerializable {
/*
- * The resource of private end point.
+ * The Private Endpoint resource.
*/
- private PrivateEndpoint privateEndpoint;
+ private WorkspacePrivateEndpointResource privateEndpoint;
/*
- * A collection of information about the state of the connection between service consumer and provider.
+ * The connection state.
*/
private PrivateLinkServiceConnectionState privateLinkServiceConnectionState;
/*
- * The provisioning state of the private endpoint connection resource.
+ * The current provisioning state.
*/
private PrivateEndpointConnectionProvisioningState provisioningState;
@@ -43,28 +42,27 @@ public PrivateEndpointConnectionProperties() {
}
/**
- * Get the privateEndpoint property: The resource of private end point.
+ * Get the privateEndpoint property: The Private Endpoint resource.
*
* @return the privateEndpoint value.
*/
- public PrivateEndpoint privateEndpoint() {
+ public WorkspacePrivateEndpointResource privateEndpoint() {
return this.privateEndpoint;
}
/**
- * Set the privateEndpoint property: The resource of private end point.
+ * Set the privateEndpoint property: The Private Endpoint resource.
*
* @param privateEndpoint the privateEndpoint value to set.
* @return the PrivateEndpointConnectionProperties object itself.
*/
- public PrivateEndpointConnectionProperties withPrivateEndpoint(PrivateEndpoint privateEndpoint) {
+ public PrivateEndpointConnectionProperties withPrivateEndpoint(WorkspacePrivateEndpointResource privateEndpoint) {
this.privateEndpoint = privateEndpoint;
return this;
}
/**
- * Get the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
+ * Get the privateLinkServiceConnectionState property: The connection state.
*
* @return the privateLinkServiceConnectionState value.
*/
@@ -73,8 +71,7 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
}
/**
- * Set the privateLinkServiceConnectionState property: A collection of information about the state of the connection
- * between service consumer and provider.
+ * Set the privateLinkServiceConnectionState property: The connection state.
*
* @param privateLinkServiceConnectionState the privateLinkServiceConnectionState value to set.
* @return the PrivateEndpointConnectionProperties object itself.
@@ -86,7 +83,7 @@ public PrivateLinkServiceConnectionState privateLinkServiceConnectionState() {
}
/**
- * Get the provisioningState property: The provisioning state of the private endpoint connection resource.
+ * Get the provisioningState property: The current provisioning state.
*
* @return the provisioningState value.
*/
@@ -94,6 +91,18 @@ public PrivateEndpointConnectionProvisioningState provisioningState() {
return this.provisioningState;
}
+ /**
+ * Set the provisioningState property: The current provisioning state.
+ *
+ * @param provisioningState the provisioningState value to set.
+ * @return the PrivateEndpointConnectionProperties object itself.
+ */
+ public PrivateEndpointConnectionProperties
+ withProvisioningState(PrivateEndpointConnectionProvisioningState provisioningState) {
+ this.provisioningState = provisioningState;
+ return this;
+ }
+
/**
* Validates the instance.
*
@@ -103,25 +112,21 @@ public void validate() {
if (privateEndpoint() != null) {
privateEndpoint().validate();
}
- if (privateLinkServiceConnectionState() == null) {
- throw LOGGER.atError()
- .log(new IllegalArgumentException(
- "Missing required property privateLinkServiceConnectionState in model PrivateEndpointConnectionProperties"));
- } else {
+ if (privateLinkServiceConnectionState() != null) {
privateLinkServiceConnectionState().validate();
}
}
- private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionProperties.class);
-
/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeJsonField("privateLinkServiceConnectionState", this.privateLinkServiceConnectionState);
jsonWriter.writeJsonField("privateEndpoint", this.privateEndpoint);
+ jsonWriter.writeJsonField("privateLinkServiceConnectionState", this.privateLinkServiceConnectionState);
+ jsonWriter.writeStringField("provisioningState",
+ this.provisioningState == null ? null : this.provisioningState.toString());
return jsonWriter.writeEndObject();
}
@@ -131,7 +136,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
* @param jsonReader The JsonReader being read.
* @return An instance of PrivateEndpointConnectionProperties if the JsonReader was pointing to an instance of it,
* or null if it was pointing to JSON null.
- * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
* @throws IOException If an error occurs while reading the PrivateEndpointConnectionProperties.
*/
public static PrivateEndpointConnectionProperties fromJson(JsonReader jsonReader) throws IOException {
@@ -142,11 +146,12 @@ public static PrivateEndpointConnectionProperties fromJson(JsonReader jsonReader
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("privateLinkServiceConnectionState".equals(fieldName)) {
+ if ("privateEndpoint".equals(fieldName)) {
+ deserializedPrivateEndpointConnectionProperties.privateEndpoint
+ = WorkspacePrivateEndpointResource.fromJson(reader);
+ } else if ("privateLinkServiceConnectionState".equals(fieldName)) {
deserializedPrivateEndpointConnectionProperties.privateLinkServiceConnectionState
= PrivateLinkServiceConnectionState.fromJson(reader);
- } else if ("privateEndpoint".equals(fieldName)) {
- deserializedPrivateEndpointConnectionProperties.privateEndpoint = PrivateEndpoint.fromJson(reader);
} else if ("provisioningState".equals(fieldName)) {
deserializedPrivateEndpointConnectionProperties.provisioningState
= PrivateEndpointConnectionProvisioningState.fromString(reader.getString());
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateLinkResourceInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateLinkResourceInner.java
new file mode 100644
index 000000000000..c47a45553d02
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateLinkResourceInner.java
@@ -0,0 +1,349 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import java.io.IOException;
+import java.util.List;
+import java.util.Map;
+
+/**
+ * A private link resource.
+ */
+@Fluent
+public final class PrivateLinkResourceInner extends ProxyResource {
+ /*
+ * Managed service identity (system assigned and/or user assigned identities)
+ */
+ private ManagedServiceIdentity identity;
+
+ /*
+ * Same as workspace location.
+ */
+ private String location;
+
+ /*
+ * Properties of a private link resource.
+ */
+ private PrivateLinkResourceProperties innerProperties;
+
+ /*
+ * Optional. This field is required to be implemented by the RP because AML is supporting more than one tier
+ */
+ private Sku sku;
+
+ /*
+ * Dictionary of
+ */
+ private Map tags;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /**
+ * Creates an instance of PrivateLinkResourceInner class.
+ */
+ public PrivateLinkResourceInner() {
+ }
+
+ /**
+ * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
+ *
+ * @return the identity value.
+ */
+ public ManagedServiceIdentity identity() {
+ return this.identity;
+ }
+
+ /**
+ * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
+ *
+ * @param identity the identity value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withIdentity(ManagedServiceIdentity identity) {
+ this.identity = identity;
+ return this;
+ }
+
+ /**
+ * Get the location property: Same as workspace location.
+ *
+ * @return the location value.
+ */
+ public String location() {
+ return this.location;
+ }
+
+ /**
+ * Set the location property: Same as workspace location.
+ *
+ * @param location the location value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withLocation(String location) {
+ this.location = location;
+ return this;
+ }
+
+ /**
+ * Get the innerProperties property: Properties of a private link resource.
+ *
+ * @return the innerProperties value.
+ */
+ private PrivateLinkResourceProperties innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the sku property: Optional. This field is required to be implemented by the RP because AML is supporting more
+ * than one tier.
+ *
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: Optional. This field is required to be implemented by the RP because AML is supporting more
+ * than one tier.
+ *
+ * @param sku the sku value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withSku(Sku sku) {
+ this.sku = sku;
+ return this;
+ }
+
+ /**
+ * Get the tags property: Dictionary of <string>.
+ *
+ * @return the tags value.
+ */
+ public Map tags() {
+ return this.tags;
+ }
+
+ /**
+ * Set the tags property: Dictionary of <string>.
+ *
+ * @param tags the tags value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withTags(Map tags) {
+ this.tags = tags;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Get the groupId property: The private link resource group id.
+ *
+ * @return the groupId value.
+ */
+ public String groupId() {
+ return this.innerProperties() == null ? null : this.innerProperties().groupId();
+ }
+
+ /**
+ * Set the groupId property: The private link resource group id.
+ *
+ * @param groupId the groupId value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withGroupId(String groupId) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateLinkResourceProperties();
+ }
+ this.innerProperties().withGroupId(groupId);
+ return this;
+ }
+
+ /**
+ * Get the requiredMembers property: The private link resource required member names.
+ *
+ * @return the requiredMembers value.
+ */
+ public List requiredMembers() {
+ return this.innerProperties() == null ? null : this.innerProperties().requiredMembers();
+ }
+
+ /**
+ * Set the requiredMembers property: The private link resource required member names.
+ *
+ * @param requiredMembers the requiredMembers value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withRequiredMembers(List requiredMembers) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateLinkResourceProperties();
+ }
+ this.innerProperties().withRequiredMembers(requiredMembers);
+ return this;
+ }
+
+ /**
+ * Get the requiredZoneNames property: The private link resource Private link DNS zone name.
+ *
+ * @return the requiredZoneNames value.
+ */
+ public List requiredZoneNames() {
+ return this.innerProperties() == null ? null : this.innerProperties().requiredZoneNames();
+ }
+
+ /**
+ * Set the requiredZoneNames property: The private link resource Private link DNS zone name.
+ *
+ * @param requiredZoneNames the requiredZoneNames value to set.
+ * @return the PrivateLinkResourceInner object itself.
+ */
+ public PrivateLinkResourceInner withRequiredZoneNames(List requiredZoneNames) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new PrivateLinkResourceProperties();
+ }
+ this.innerProperties().withRequiredZoneNames(requiredZoneNames);
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (identity() != null) {
+ identity().validate();
+ }
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ if (sku() != null) {
+ sku().validate();
+ }
+ }
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("identity", this.identity);
+ jsonWriter.writeStringField("location", this.location);
+ jsonWriter.writeJsonField("properties", this.innerProperties);
+ jsonWriter.writeJsonField("sku", this.sku);
+ jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element));
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of PrivateLinkResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of PrivateLinkResourceInner if the JsonReader was pointing to an instance of it, or null if
+ * it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the PrivateLinkResourceInner.
+ */
+ public static PrivateLinkResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ PrivateLinkResourceInner deserializedPrivateLinkResourceInner = new PrivateLinkResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.type = reader.getString();
+ } else if ("identity".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.identity = ManagedServiceIdentity.fromJson(reader);
+ } else if ("location".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.location = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.innerProperties
+ = PrivateLinkResourceProperties.fromJson(reader);
+ } else if ("sku".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.sku = Sku.fromJson(reader);
+ } else if ("tags".equals(fieldName)) {
+ Map tags = reader.readMap(reader1 -> reader1.getString());
+ deserializedPrivateLinkResourceInner.tags = tags;
+ } else if ("systemData".equals(fieldName)) {
+ deserializedPrivateLinkResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedPrivateLinkResourceInner;
+ });
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateLinkResourceListResultInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateLinkResourceListResultInner.java
deleted file mode 100644
index 7c0b27237e55..000000000000
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateLinkResourceListResultInner.java
+++ /dev/null
@@ -1,101 +0,0 @@
-// 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.fluent.models;
-
-import com.azure.core.annotation.Fluent;
-import com.azure.json.JsonReader;
-import com.azure.json.JsonSerializable;
-import com.azure.json.JsonToken;
-import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.machinelearning.models.PrivateLinkResource;
-import java.io.IOException;
-import java.util.List;
-
-/**
- * A list of private link resources.
- */
-@Fluent
-public final class PrivateLinkResourceListResultInner implements JsonSerializable {
- /*
- * Array of private link resources
- */
- private List value;
-
- /**
- * Creates an instance of PrivateLinkResourceListResultInner class.
- */
- public PrivateLinkResourceListResultInner() {
- }
-
- /**
- * Get the value property: Array of private link resources.
- *
- * @return the value value.
- */
- public List value() {
- return this.value;
- }
-
- /**
- * Set the value property: Array of private link resources.
- *
- * @param value the value value to set.
- * @return the PrivateLinkResourceListResultInner object itself.
- */
- public PrivateLinkResourceListResultInner withValue(List value) {
- this.value = value;
- return this;
- }
-
- /**
- * Validates the instance.
- *
- * @throws IllegalArgumentException thrown if the instance is not valid.
- */
- public void validate() {
- if (value() != null) {
- value().forEach(e -> e.validate());
- }
- }
-
- /**
- * {@inheritDoc}
- */
- @Override
- public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
- jsonWriter.writeStartObject();
- jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element));
- return jsonWriter.writeEndObject();
- }
-
- /**
- * Reads an instance of PrivateLinkResourceListResultInner from the JsonReader.
- *
- * @param jsonReader The JsonReader being read.
- * @return An instance of PrivateLinkResourceListResultInner 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 PrivateLinkResourceListResultInner.
- */
- public static PrivateLinkResourceListResultInner fromJson(JsonReader jsonReader) throws IOException {
- return jsonReader.readObject(reader -> {
- PrivateLinkResourceListResultInner deserializedPrivateLinkResourceListResultInner
- = new PrivateLinkResourceListResultInner();
- while (reader.nextToken() != JsonToken.END_OBJECT) {
- String fieldName = reader.getFieldName();
- reader.nextToken();
-
- if ("value".equals(fieldName)) {
- List value
- = reader.readArray(reader1 -> PrivateLinkResource.fromJson(reader1));
- deserializedPrivateLinkResourceListResultInner.value = value;
- } else {
- reader.skipChildren();
- }
- }
-
- return deserializedPrivateLinkResourceListResultInner;
- });
- }
-}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateLinkResourceProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateLinkResourceProperties.java
index 856715b8d766..b5f629de578a 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateLinkResourceProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/PrivateLinkResourceProperties.java
@@ -47,6 +47,17 @@ public String groupId() {
return this.groupId;
}
+ /**
+ * Set the groupId property: The private link resource group id.
+ *
+ * @param groupId the groupId value to set.
+ * @return the PrivateLinkResourceProperties object itself.
+ */
+ public PrivateLinkResourceProperties withGroupId(String groupId) {
+ this.groupId = groupId;
+ return this;
+ }
+
/**
* Get the requiredMembers property: The private link resource required member names.
*
@@ -56,6 +67,17 @@ public List requiredMembers() {
return this.requiredMembers;
}
+ /**
+ * Set the requiredMembers property: The private link resource required member names.
+ *
+ * @param requiredMembers the requiredMembers value to set.
+ * @return the PrivateLinkResourceProperties object itself.
+ */
+ public PrivateLinkResourceProperties withRequiredMembers(List requiredMembers) {
+ this.requiredMembers = requiredMembers;
+ return this;
+ }
+
/**
* Get the requiredZoneNames property: The private link resource Private link DNS zone name.
*
@@ -90,6 +112,9 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
+ jsonWriter.writeStringField("groupId", this.groupId);
+ jsonWriter.writeArrayField("requiredMembers", this.requiredMembers,
+ (writer, element) -> writer.writeString(element));
jsonWriter.writeArrayField("requiredZoneNames", this.requiredZoneNames,
(writer, element) -> writer.writeString(element));
return jsonWriter.writeEndObject();
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RaiBlocklistItemPropertiesBasicResourceInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RaiBlocklistItemPropertiesBasicResourceInner.java
new file mode 100644
index 000000000000..1a379d71dac9
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RaiBlocklistItemPropertiesBasicResourceInner.java
@@ -0,0 +1,175 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.machinelearning.models.RaiBlocklistItemProperties;
+import java.io.IOException;
+
+/**
+ * The RaiBlocklistItemPropertiesBasicResource model.
+ */
+@Fluent
+public final class RaiBlocklistItemPropertiesBasicResourceInner extends ProxyResource {
+ /*
+ * RAI Custom Blocklist Item properties.
+ */
+ private RaiBlocklistItemProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /**
+ * Creates an instance of RaiBlocklistItemPropertiesBasicResourceInner class.
+ */
+ public RaiBlocklistItemPropertiesBasicResourceInner() {
+ }
+
+ /**
+ * Get the properties property: RAI Custom Blocklist Item properties.
+ *
+ * @return the properties value.
+ */
+ public RaiBlocklistItemProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: RAI Custom Blocklist Item properties.
+ *
+ * @param properties the properties value to set.
+ * @return the RaiBlocklistItemPropertiesBasicResourceInner object itself.
+ */
+ public RaiBlocklistItemPropertiesBasicResourceInner withProperties(RaiBlocklistItemProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property properties in model RaiBlocklistItemPropertiesBasicResourceInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(RaiBlocklistItemPropertiesBasicResourceInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RaiBlocklistItemPropertiesBasicResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RaiBlocklistItemPropertiesBasicResourceInner if the JsonReader was pointing to an instance
+ * of it, or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the RaiBlocklistItemPropertiesBasicResourceInner.
+ */
+ public static RaiBlocklistItemPropertiesBasicResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RaiBlocklistItemPropertiesBasicResourceInner deserializedRaiBlocklistItemPropertiesBasicResourceInner
+ = new RaiBlocklistItemPropertiesBasicResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedRaiBlocklistItemPropertiesBasicResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedRaiBlocklistItemPropertiesBasicResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedRaiBlocklistItemPropertiesBasicResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedRaiBlocklistItemPropertiesBasicResourceInner.properties
+ = RaiBlocklistItemProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedRaiBlocklistItemPropertiesBasicResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRaiBlocklistItemPropertiesBasicResourceInner;
+ });
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RaiBlocklistPropertiesBasicResourceInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RaiBlocklistPropertiesBasicResourceInner.java
new file mode 100644
index 000000000000..afb10b7b1f29
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RaiBlocklistPropertiesBasicResourceInner.java
@@ -0,0 +1,175 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.machinelearning.models.RaiBlocklistProperties;
+import java.io.IOException;
+
+/**
+ * The RaiBlocklistPropertiesBasicResource model.
+ */
+@Fluent
+public final class RaiBlocklistPropertiesBasicResourceInner extends ProxyResource {
+ /*
+ * RAI Custom Blocklist properties.
+ */
+ private RaiBlocklistProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /**
+ * Creates an instance of RaiBlocklistPropertiesBasicResourceInner class.
+ */
+ public RaiBlocklistPropertiesBasicResourceInner() {
+ }
+
+ /**
+ * Get the properties property: RAI Custom Blocklist properties.
+ *
+ * @return the properties value.
+ */
+ public RaiBlocklistProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: RAI Custom Blocklist properties.
+ *
+ * @param properties the properties value to set.
+ * @return the RaiBlocklistPropertiesBasicResourceInner object itself.
+ */
+ public RaiBlocklistPropertiesBasicResourceInner withProperties(RaiBlocklistProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property properties in model RaiBlocklistPropertiesBasicResourceInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(RaiBlocklistPropertiesBasicResourceInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RaiBlocklistPropertiesBasicResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RaiBlocklistPropertiesBasicResourceInner if the JsonReader was pointing to an instance of
+ * it, or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the RaiBlocklistPropertiesBasicResourceInner.
+ */
+ public static RaiBlocklistPropertiesBasicResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RaiBlocklistPropertiesBasicResourceInner deserializedRaiBlocklistPropertiesBasicResourceInner
+ = new RaiBlocklistPropertiesBasicResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedRaiBlocklistPropertiesBasicResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedRaiBlocklistPropertiesBasicResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedRaiBlocklistPropertiesBasicResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedRaiBlocklistPropertiesBasicResourceInner.properties
+ = RaiBlocklistProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedRaiBlocklistPropertiesBasicResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRaiBlocklistPropertiesBasicResourceInner;
+ });
+ }
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RaiPolicyPropertiesBasicResourceInner.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RaiPolicyPropertiesBasicResourceInner.java
new file mode 100644
index 000000000000..9f58102832a7
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RaiPolicyPropertiesBasicResourceInner.java
@@ -0,0 +1,174 @@
+// 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.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.json.JsonReader;
+import com.azure.json.JsonToken;
+import com.azure.json.JsonWriter;
+import com.azure.resourcemanager.machinelearning.models.RaiPolicyProperties;
+import java.io.IOException;
+
+/**
+ * Azure OpenAI Content Filters resource.
+ */
+@Fluent
+public final class RaiPolicyPropertiesBasicResourceInner extends ProxyResource {
+ /*
+ * Azure OpenAI Content Filters properties.
+ */
+ private RaiPolicyProperties properties;
+
+ /*
+ * Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ */
+ private SystemData systemData;
+
+ /*
+ * Fully qualified resource Id for the resource.
+ */
+ private String id;
+
+ /*
+ * The name of the resource.
+ */
+ private String name;
+
+ /*
+ * The type of the resource.
+ */
+ private String type;
+
+ /**
+ * Creates an instance of RaiPolicyPropertiesBasicResourceInner class.
+ */
+ public RaiPolicyPropertiesBasicResourceInner() {
+ }
+
+ /**
+ * Get the properties property: Azure OpenAI Content Filters properties.
+ *
+ * @return the properties value.
+ */
+ public RaiPolicyProperties properties() {
+ return this.properties;
+ }
+
+ /**
+ * Set the properties property: Azure OpenAI Content Filters properties.
+ *
+ * @param properties the properties value to set.
+ * @return the RaiPolicyPropertiesBasicResourceInner object itself.
+ */
+ public RaiPolicyPropertiesBasicResourceInner withProperties(RaiPolicyProperties properties) {
+ this.properties = properties;
+ return this;
+ }
+
+ /**
+ * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the id property: Fully qualified resource Id for the resource.
+ *
+ * @return the id value.
+ */
+ @Override
+ public String id() {
+ return this.id;
+ }
+
+ /**
+ * Get the name property: The name of the resource.
+ *
+ * @return the name value.
+ */
+ @Override
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Get the type property: The type of the resource.
+ *
+ * @return the type value.
+ */
+ @Override
+ public String type() {
+ return this.type;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (properties() == null) {
+ throw LOGGER.atError()
+ .log(new IllegalArgumentException(
+ "Missing required property properties in model RaiPolicyPropertiesBasicResourceInner"));
+ } else {
+ properties().validate();
+ }
+ }
+
+ private static final ClientLogger LOGGER = new ClientLogger(RaiPolicyPropertiesBasicResourceInner.class);
+
+ /**
+ * {@inheritDoc}
+ */
+ @Override
+ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
+ jsonWriter.writeStartObject();
+ jsonWriter.writeJsonField("properties", this.properties);
+ return jsonWriter.writeEndObject();
+ }
+
+ /**
+ * Reads an instance of RaiPolicyPropertiesBasicResourceInner from the JsonReader.
+ *
+ * @param jsonReader The JsonReader being read.
+ * @return An instance of RaiPolicyPropertiesBasicResourceInner if the JsonReader was pointing to an instance of it,
+ * or null if it was pointing to JSON null.
+ * @throws IllegalStateException If the deserialized JSON object was missing any required properties.
+ * @throws IOException If an error occurs while reading the RaiPolicyPropertiesBasicResourceInner.
+ */
+ public static RaiPolicyPropertiesBasicResourceInner fromJson(JsonReader jsonReader) throws IOException {
+ return jsonReader.readObject(reader -> {
+ RaiPolicyPropertiesBasicResourceInner deserializedRaiPolicyPropertiesBasicResourceInner
+ = new RaiPolicyPropertiesBasicResourceInner();
+ while (reader.nextToken() != JsonToken.END_OBJECT) {
+ String fieldName = reader.getFieldName();
+ reader.nextToken();
+
+ if ("id".equals(fieldName)) {
+ deserializedRaiPolicyPropertiesBasicResourceInner.id = reader.getString();
+ } else if ("name".equals(fieldName)) {
+ deserializedRaiPolicyPropertiesBasicResourceInner.name = reader.getString();
+ } else if ("type".equals(fieldName)) {
+ deserializedRaiPolicyPropertiesBasicResourceInner.type = reader.getString();
+ } else if ("properties".equals(fieldName)) {
+ deserializedRaiPolicyPropertiesBasicResourceInner.properties = RaiPolicyProperties.fromJson(reader);
+ } else if ("systemData".equals(fieldName)) {
+ deserializedRaiPolicyPropertiesBasicResourceInner.systemData = SystemData.fromJson(reader);
+ } else {
+ reader.skipChildren();
+ }
+ }
+
+ return deserializedRaiPolicyPropertiesBasicResourceInner;
+ });
+ }
+}
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 446a0a7f6dcf..333852dc754a 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
@@ -12,6 +12,7 @@
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.machinelearning.models.ArmResourceId;
+import com.azure.resourcemanager.machinelearning.models.ManagedResourceGroupSettings;
import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
import com.azure.resourcemanager.machinelearning.models.RegistryPrivateEndpointConnection;
import com.azure.resourcemanager.machinelearning.models.RegistryRegionArmDetails;
@@ -268,6 +269,29 @@ public RegistryInner withManagedResourceGroup(ArmResourceId managedResourceGroup
return this;
}
+ /**
+ * Get the managedResourceGroupSettings property: Managed resource group specific settings.
+ *
+ * @return the managedResourceGroupSettings value.
+ */
+ public ManagedResourceGroupSettings managedResourceGroupSettings() {
+ return this.innerProperties() == null ? null : this.innerProperties().managedResourceGroupSettings();
+ }
+
+ /**
+ * Set the managedResourceGroupSettings property: Managed resource group specific settings.
+ *
+ * @param managedResourceGroupSettings the managedResourceGroupSettings value to set.
+ * @return the RegistryInner object itself.
+ */
+ public RegistryInner withManagedResourceGroupSettings(ManagedResourceGroupSettings managedResourceGroupSettings) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new RegistryProperties();
+ }
+ this.innerProperties().withManagedResourceGroupSettings(managedResourceGroupSettings);
+ return this;
+ }
+
/**
* Get the mlFlowRegistryUri property: MLFlow Registry URI for the Registry.
*
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryProperties.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryProperties.java
index 6ddc52a4f052..715894b989fe 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryProperties.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/RegistryProperties.java
@@ -10,6 +10,7 @@
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import com.azure.resourcemanager.machinelearning.models.ArmResourceId;
+import com.azure.resourcemanager.machinelearning.models.ManagedResourceGroupSettings;
import com.azure.resourcemanager.machinelearning.models.RegistryPrivateEndpointConnection;
import com.azure.resourcemanager.machinelearning.models.RegistryRegionArmDetails;
import java.io.IOException;
@@ -35,6 +36,11 @@ public final class RegistryProperties implements JsonSerializable e.validate());
}
@@ -233,6 +263,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStringField("discoveryUrl", this.discoveryUrl);
jsonWriter.writeStringField("intellectualPropertyPublisher", this.intellectualPropertyPublisher);
jsonWriter.writeJsonField("managedResourceGroup", this.managedResourceGroup);
+ jsonWriter.writeJsonField("managedResourceGroupSettings", this.managedResourceGroupSettings);
jsonWriter.writeStringField("mlFlowRegistryUri", this.mlFlowRegistryUri);
jsonWriter.writeArrayField("registryPrivateEndpointConnections", this.registryPrivateEndpointConnections,
(writer, element) -> writer.writeJson(element));
@@ -262,6 +293,9 @@ public static RegistryProperties fromJson(JsonReader jsonReader) throws IOExcept
deserializedRegistryProperties.intellectualPropertyPublisher = reader.getString();
} else if ("managedResourceGroup".equals(fieldName)) {
deserializedRegistryProperties.managedResourceGroup = ArmResourceId.fromJson(reader);
+ } else if ("managedResourceGroupSettings".equals(fieldName)) {
+ deserializedRegistryProperties.managedResourceGroupSettings
+ = ManagedResourceGroupSettings.fromJson(reader);
} else if ("mlFlowRegistryUri".equals(fieldName)) {
deserializedRegistryProperties.mlFlowRegistryUri = reader.getString();
} else if ("registryPrivateEndpointConnections".equals(fieldName)) {
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 9c5eba632085..28a631019f71 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.
@@ -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;
}
@@ -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/SharedPrivateLinkResourceProperty.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/SharedPrivateLinkResourceProperty.java
index cb38303f4796..afaa4910510f 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/SharedPrivateLinkResourceProperty.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/models/SharedPrivateLinkResourceProperty.java
@@ -9,7 +9,7 @@
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
-import com.azure.resourcemanager.machinelearning.models.PrivateEndpointServiceConnectionStatus;
+import com.azure.resourcemanager.machinelearning.models.EndpointServiceConnectionStatus;
import java.io.IOException;
/**
@@ -18,24 +18,24 @@
@Fluent
public final class SharedPrivateLinkResourceProperty implements JsonSerializable {
/*
- * The resource id that private link links to.
+ * group id of the private link
*/
- private String privateLinkResourceId;
+ private String groupId;
/*
- * The private link resource group id.
+ * the resource id that private link links to
*/
- private String groupId;
+ private String privateLinkResourceId;
/*
- * Request message.
+ * Request message
*/
private String requestMessage;
/*
- * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
+ * Connection status of the service consumer with the service provider
*/
- private PrivateEndpointServiceConnectionStatus status;
+ private EndpointServiceConnectionStatus status;
/**
* Creates an instance of SharedPrivateLinkResourceProperty class.
@@ -44,42 +44,42 @@ public SharedPrivateLinkResourceProperty() {
}
/**
- * Get the privateLinkResourceId property: The resource id that private link links to.
+ * Get the groupId property: group id of the private link.
*
- * @return the privateLinkResourceId value.
+ * @return the groupId value.
*/
- public String privateLinkResourceId() {
- return this.privateLinkResourceId;
+ public String groupId() {
+ return this.groupId;
}
/**
- * Set the privateLinkResourceId property: The resource id that private link links to.
+ * Set the groupId property: group id of the private link.
*
- * @param privateLinkResourceId the privateLinkResourceId value to set.
+ * @param groupId the groupId value to set.
* @return the SharedPrivateLinkResourceProperty object itself.
*/
- public SharedPrivateLinkResourceProperty withPrivateLinkResourceId(String privateLinkResourceId) {
- this.privateLinkResourceId = privateLinkResourceId;
+ public SharedPrivateLinkResourceProperty withGroupId(String groupId) {
+ this.groupId = groupId;
return this;
}
/**
- * Get the groupId property: The private link resource group id.
+ * Get the privateLinkResourceId property: the resource id that private link links to.
*
- * @return the groupId value.
+ * @return the privateLinkResourceId value.
*/
- public String groupId() {
- return this.groupId;
+ public String privateLinkResourceId() {
+ return this.privateLinkResourceId;
}
/**
- * Set the groupId property: The private link resource group id.
+ * Set the privateLinkResourceId property: the resource id that private link links to.
*
- * @param groupId the groupId value to set.
+ * @param privateLinkResourceId the privateLinkResourceId value to set.
* @return the SharedPrivateLinkResourceProperty object itself.
*/
- public SharedPrivateLinkResourceProperty withGroupId(String groupId) {
- this.groupId = groupId;
+ public SharedPrivateLinkResourceProperty withPrivateLinkResourceId(String privateLinkResourceId) {
+ this.privateLinkResourceId = privateLinkResourceId;
return this;
}
@@ -104,23 +104,21 @@ public SharedPrivateLinkResourceProperty withRequestMessage(String requestMessag
}
/**
- * Get the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the
- * service.
+ * Get the status property: Connection status of the service consumer with the service provider.
*
* @return the status value.
*/
- public PrivateEndpointServiceConnectionStatus status() {
+ public EndpointServiceConnectionStatus status() {
return this.status;
}
/**
- * Set the status property: Indicates whether the connection has been Approved/Rejected/Removed by the owner of the
- * service.
+ * Set the status property: Connection status of the service consumer with the service provider.
*
* @param status the status value to set.
* @return the SharedPrivateLinkResourceProperty object itself.
*/
- public SharedPrivateLinkResourceProperty withStatus(PrivateEndpointServiceConnectionStatus status) {
+ public SharedPrivateLinkResourceProperty withStatus(EndpointServiceConnectionStatus status) {
this.status = status;
return this;
}
@@ -139,8 +137,8 @@ public void validate() {
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
- jsonWriter.writeStringField("privateLinkResourceId", this.privateLinkResourceId);
jsonWriter.writeStringField("groupId", this.groupId);
+ jsonWriter.writeStringField("privateLinkResourceId", this.privateLinkResourceId);
jsonWriter.writeStringField("requestMessage", this.requestMessage);
jsonWriter.writeStringField("status", this.status == null ? null : this.status.toString());
return jsonWriter.writeEndObject();
@@ -162,15 +160,15 @@ public static SharedPrivateLinkResourceProperty fromJson(JsonReader jsonReader)
String fieldName = reader.getFieldName();
reader.nextToken();
- if ("privateLinkResourceId".equals(fieldName)) {
- deserializedSharedPrivateLinkResourceProperty.privateLinkResourceId = reader.getString();
- } else if ("groupId".equals(fieldName)) {
+ if ("groupId".equals(fieldName)) {
deserializedSharedPrivateLinkResourceProperty.groupId = reader.getString();
+ } else if ("privateLinkResourceId".equals(fieldName)) {
+ deserializedSharedPrivateLinkResourceProperty.privateLinkResourceId = reader.getString();
} else if ("requestMessage".equals(fieldName)) {
deserializedSharedPrivateLinkResourceProperty.requestMessage = reader.getString();
} else if ("status".equals(fieldName)) {
deserializedSharedPrivateLinkResourceProperty.status
- = PrivateEndpointServiceConnectionStatus.fromString(reader.getString());
+ = EndpointServiceConnectionStatus.fromString(reader.getString());
} else {
reader.skipChildren();
}
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 e3de72408417..39e15b7bc7c7 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 tags;
+ private WorkspacePropertiesInner innerProperties = new WorkspacePropertiesInner();
/*
- * The sku of the workspace.
+ * Optional. This field is required to be implemented by the RP because AML is supporting more than one tier
*/
private Sku sku;
+ /*
+ * Dictionary of
+ */
+ private Map tags;
+
/*
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
@@ -86,16 +87,7 @@ public WorkspaceInner() {
}
/**
- * Get the innerProperties property: The properties of the machine learning workspace.
- *
- * @return the innerProperties value.
- */
- private WorkspacePropertiesInner innerProperties() {
- return this.innerProperties;
- }
-
- /**
- * Get the identity property: The identity of the resource.
+ * Get the identity property: Managed service identity (system assigned and/or user assigned identities).
*
* @return the identity value.
*/
@@ -104,7 +96,7 @@ public ManagedServiceIdentity identity() {
}
/**
- * Set the identity property: The identity of the resource.
+ * Set the identity property: Managed service identity (system assigned and/or user assigned identities).
*
* @param identity the identity value to set.
* @return the WorkspaceInner object itself.
@@ -135,7 +127,7 @@ public WorkspaceInner withKind(String kind) {
}
/**
- * Get the location property: Specifies the location of the resource.
+ * Get the location property: The location property.
*
* @return the location value.
*/
@@ -144,7 +136,7 @@ public String location() {
}
/**
- * Set the location property: Specifies the location of the resource.
+ * Set the location property: The location property.
*
* @param location the location value to set.
* @return the WorkspaceInner object itself.
@@ -155,42 +147,53 @@ public WorkspaceInner withLocation(String location) {
}
/**
- * Get the tags property: Contains resource tags defined as key/value pairs.
+ * Get the innerProperties property: Additional attributes of the entity.
*
- * @return the tags value.
+ * @return the innerProperties value.
*/
- public Map tags() {
- return this.tags;
+ private WorkspacePropertiesInner innerProperties() {
+ return this.innerProperties;
}
/**
- * Set the tags property: Contains resource tags defined as key/value pairs.
+ * Get the sku property: Optional. This field is required to be implemented by the RP because AML is supporting more
+ * than one tier.
*
- * @param tags the tags value to set.
+ * @return the sku value.
+ */
+ public Sku sku() {
+ return this.sku;
+ }
+
+ /**
+ * Set the sku property: Optional. This field is required to be implemented by the RP because AML is supporting more
+ * than one tier.
+ *
+ * @param sku the sku value to set.
* @return the WorkspaceInner object itself.
*/
- public WorkspaceInner withTags(Map tags) {
- this.tags = tags;
+ public WorkspaceInner withSku(Sku sku) {
+ this.sku = sku;
return this;
}
/**
- * Get the sku property: The sku of the workspace.
+ * Get the tags property: Dictionary of <string>.
*
- * @return the sku value.
+ * @return the tags value.
*/
- public Sku sku() {
- return this.sku;
+ public Map tags() {
+ return this.tags;
}
/**
- * Set the sku property: The sku of the workspace.
+ * Set the tags property: Dictionary of <string>.
*
- * @param sku the sku value to set.
+ * @param tags the tags value to set.
* @return the WorkspaceInner object itself.
*/
- public WorkspaceInner withSku(Sku sku) {
- this.sku = sku;
+ public WorkspaceInner withTags(Map