diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
index 66d924503f0c3..8bad8900af3aa 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/CHANGELOG.md
@@ -1,14 +1,1155 @@
# Release History
-## 1.2.0-beta.1 (Unreleased)
+## 1.0.0-beta.1 (2025-01-22)
-### 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-2025-01. 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.WorkspaceConnectionPropertiesV2` was modified
+
+* `withValueFormat(models.ValueFormat)` was removed
+* `withValue(java.lang.String)` was removed
+* `valueFormat()` was removed
+* `value()` was removed
+
+#### `models.ListWorkspaceKeysResult` was modified
+
+* `userStorageResourceId()` was removed
+
+#### `models.AzureBlobDatastore` was modified
+
+* `isDefault()` was removed
+
+#### `models.SynapseSpark` was modified
+
+* `provisioningErrors()` was removed
+* `createdOn()` was removed
+* `modifiedOn()` was removed
+* `provisioningState()` was removed
+* `isAttachedCompute()` was removed
+
+#### `models.FqdnEndpoints` was modified
+
+* `withProperties(models.FqdnEndpointsProperties)` was removed
+* `properties()` was removed
+
+#### `models.Aks` was modified
+
+* `modifiedOn()` was removed
+* `provisioningErrors()` was removed
+* `isAttachedCompute()` was removed
+* `createdOn()` was removed
+* `provisioningState()` was removed
+
+#### `models.DataLakeAnalytics` was modified
+
+* `createdOn()` was removed
+* `isAttachedCompute()` was removed
+* `modifiedOn()` was removed
+* `provisioningErrors()` was removed
+* `provisioningState()` was removed
+
+#### `models.Workspace$Update` was modified
+
+* `withPublicNetworkAccess(models.PublicNetworkAccess)` was removed
+
+#### `models.PrivateEndpointConnection$Definition` was modified
+
+* `withPrivateEndpoint(models.PrivateEndpoint)` was removed
+
+#### `models.OneLakeDatastore` was modified
+
+* `isDefault()` was removed
+
+#### `models.ServicePrincipalAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withValueFormat(models.ValueFormat)` was removed
+* `group()` was removed
+* `createdByWorkspaceArmId()` was removed
+* `withValue(java.lang.String)` was removed
+
+#### `models.AzureDataLakeGen1Datastore` was modified
+
+* `isDefault()` was removed
+
+#### `models.Workspaces` was modified
+
+* `list(java.lang.String,com.azure.core.util.Context)` was removed
+* `listByResourceGroup(java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
+
+#### `models.Kubernetes` was modified
+
+* `isAttachedCompute()` was removed
+* `provisioningErrors()` was removed
+* `modifiedOn()` was removed
+* `provisioningState()` was removed
+* `createdOn()` was removed
+
+#### `models.ManagedOnlineDeployment` was modified
+
+* `provisioningState()` was removed
+
+#### `models.PrivateLinkServiceConnectionState` was modified
+
+* `withStatus(models.PrivateEndpointServiceConnectionStatus)` was removed
+* `models.PrivateEndpointServiceConnectionStatus status()` -> `models.EndpointServiceConnectionStatus status()`
+
+#### `models.OAuth2AuthTypeWorkspaceConnectionProperties` was modified
+
+* `group()` was removed
+* `createdByWorkspaceArmId()` was removed
+* `withValueFormat(models.ValueFormat)` was removed
+* `withValue(java.lang.String)` was removed
+
+#### `models.Workspace$Definition` was modified
+
+* `withPublicNetworkAccess(models.PublicNetworkAccess)` 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.List requiredMembers()` -> `java.util.List requiredMembers()`
+* `fromJson(com.azure.json.JsonReader)` was removed
+* `models.ManagedServiceIdentity identity()` -> `models.ManagedServiceIdentity identity()`
+* `withRequiredZoneNames(java.util.List)` was removed
+* `java.lang.String location()` -> `java.lang.String location()`
+* `java.lang.String type()` -> `java.lang.String type()`
+* `java.lang.String groupId()` -> `java.lang.String groupId()`
+* `java.util.Map tags()` -> `java.util.Map tags()`
+* `validate()` was removed
+* `java.util.List requiredZoneNames()` -> `java.util.List requiredZoneNames()`
+* `java.lang.String name()` -> `java.lang.String name()`
+* `withIdentity(models.ManagedServiceIdentity)` was removed
+* `com.azure.core.management.SystemData systemData()` -> `com.azure.core.management.SystemData systemData()`
+* `toJson(com.azure.json.JsonWriter)` was removed
+* `withTags(java.util.Map)` was removed
+* `models.Sku sku()` -> `models.Sku sku()`
+* `java.lang.String id()` -> `java.lang.String id()`
+* `withSku(models.Sku)` was removed
+* `withLocation(java.lang.String)` was removed
+
+#### `models.PipelineJob` was modified
+
+* `status()` was removed
+
+#### `models.VirtualMachine` was modified
+
+* `isAttachedCompute()` was removed
+* `modifiedOn()` was removed
+* `provisioningState()` was removed
+* `createdOn()` was removed
+* `provisioningErrors()` was removed
+
+#### `models.AmlCompute` was modified
+
+* `createdOn()` was removed
+* `modifiedOn()` was removed
+* `isAttachedCompute()` was removed
+* `provisioningState()` was removed
+* `provisioningErrors()` was removed
+
+#### `models.AzureDataLakeGen2Datastore` was modified
+
+* `isDefault()` was removed
+
+#### `models.Databricks` was modified
+
+* `provisioningErrors()` was removed
+* `createdOn()` was removed
+* `isAttachedCompute()` was removed
+* `modifiedOn()` was removed
+* `provisioningState()` was removed
+
+#### `models.PrivateEndpointConnection$Update` was modified
+
+* `withPrivateEndpoint(models.PrivateEndpoint)` was removed
+
+#### `models.ApiKeyAuthWorkspaceConnectionProperties` was modified
+
+* `withValueFormat(models.ValueFormat)` was removed
+* `createdByWorkspaceArmId()` was removed
+* `group()` was removed
+* `withValue(java.lang.String)` was removed
+
+#### `models.ComputeInstance` was modified
+
+* `createdOn()` was removed
+* `provisioningErrors()` was removed
+* `provisioningState()` was removed
+* `isAttachedCompute()` was removed
+* `modifiedOn()` 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.Datastore` was modified
+
+* `listSecretsWithResponse(com.azure.core.util.Context)` was removed
+
+#### `models.NoneAuthTypeWorkspaceConnectionProperties` was modified
+
+* `createdByWorkspaceArmId()` was removed
+* `withValue(java.lang.String)` was removed
+* `withValueFormat(models.ValueFormat)` was removed
+* `group()` was removed
+
+#### `models.CustomKeysWorkspaceConnectionProperties` was modified
+
+* `withValue(java.lang.String)` was removed
+* `group()` was removed
+* `withValueFormat(models.ValueFormat)` was removed
+* `createdByWorkspaceArmId()` was removed
+
+#### `models.UsernamePasswordAuthTypeWorkspaceConnectionProperties` was modified
+
+* `createdByWorkspaceArmId()` was removed
+* `withValueFormat(models.ValueFormat)` was removed
+* `group()` was removed
+* `withValue(java.lang.String)` was removed
+
+#### `models.AccountKeyAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withValue(java.lang.String)` was removed
+* `withValueFormat(models.ValueFormat)` was removed
+* `group()` was removed
+* `createdByWorkspaceArmId()` was removed
+
+#### `models.AzureFileDatastore` was modified
+
+* `isDefault()` was removed
+
+#### `models.SparkJob` was modified
+
+* `status()` was removed
+
+#### `models.WorkspacePropertiesUpdateParameters` was modified
+
+* `models.PublicNetworkAccess publicNetworkAccess()` -> `models.PublicNetworkAccessType publicNetworkAccess()`
+
+#### `models.WorkspaceUpdateParameters` was modified
+
+* `withPublicNetworkAccess(models.PublicNetworkAccess)` was removed
+* `models.PublicNetworkAccess publicNetworkAccess()` -> `models.PublicNetworkAccessType publicNetworkAccess()`
+
+#### `models.AccessKeyAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withValueFormat(models.ValueFormat)` was removed
+* `createdByWorkspaceArmId()` was removed
+* `withValue(java.lang.String)` was removed
+* `group()` was removed
+
+#### `models.AadAuthTypeWorkspaceConnectionProperties` was modified
+
+* `createdByWorkspaceArmId()` was removed
+* `withValueFormat(models.ValueFormat)` was removed
+* `withValue(java.lang.String)` was removed
+* `group()` was removed
+
+#### `models.WorkspaceProperties` was modified
+
+* `models.PublicNetworkAccess publicNetworkAccess()` -> `models.PublicNetworkAccessType publicNetworkAccess()`
+
+#### `models.SharedPrivateLinkResource` was modified
+
+* `withStatus(models.PrivateEndpointServiceConnectionStatus)` was removed
+* `models.PrivateEndpointServiceConnectionStatus status()` -> `models.EndpointServiceConnectionStatus status()`
+
+#### `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
+* `createdByWorkspaceArmId()` was removed
+* `group()` was removed
+
+#### `models.EncryptionProperty` was modified
+
+* `withKeyVaultProperties(models.EncryptionKeyVaultProperties)` was removed
+* `models.EncryptionKeyVaultProperties keyVaultProperties()` -> `models.KeyVaultProperties keyVaultProperties()`
+
+#### `models.CommandJob` was modified
+
+* `status()` was removed
+
+#### `models.ManagedIdentityAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withValue(java.lang.String)` was removed
+* `withValueFormat(models.ValueFormat)` was removed
+* `group()` was removed
+* `createdByWorkspaceArmId()` was removed
+
+#### `models.DataFactory` was modified
+
+* `createdOn()` was removed
+* `modifiedOn()` was removed
+* `isAttachedCompute()` was removed
+* `provisioningState()` was removed
+* `provisioningErrors()` was removed
+
+#### `models.PrivateLinkResourceListResult` was modified
+
+* `java.util.List value()` -> `java.util.List value()`
+* `innerModel()` was removed
+
+#### `models.SweepJob` was modified
+
+* `status()` was removed
+
+#### `models.PrivateEndpointConnection` was modified
+
+* `models.PrivateEndpoint privateEndpoint()` -> `models.WorkspacePrivateEndpointResource privateEndpoint()`
+
+#### `models.AutoMLJob` was modified
+
+* `status()` was removed
+
+#### `models.HDInsight` was modified
+
+* `modifiedOn()` was removed
+* `provisioningErrors()` was removed
+* `provisioningState()` was removed
+* `isAttachedCompute()` was removed
+* `createdOn()` was removed
+
+#### `models.KubernetesOnlineDeployment` was modified
+
+* `provisioningState()` was removed
+
+#### `models.PatAuthTypeWorkspaceConnectionProperties` was modified
+
+* `createdByWorkspaceArmId()` was removed
+* `withValueFormat(models.ValueFormat)` was removed
+* `withValue(java.lang.String)` was removed
+* `group()` was removed
+
+### Features Added
+
+* `models.GroupEnvironmentConfiguration` was added
+
+* `models.ManagedOnlineEndpointResourceProperties` was added
+
+* `models.ManagedPERequirement` was added
+
+* `models.PackageDetails` was added
+
+* `models.DeltaModelStatusRequest` was added
+
+* `models.Endpoints` was added
+
+* `models.GroupStatus` 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.AvailableQuotaArmPaginatedResult` was added
+
+* `models.IpRule` was added
+
+* `models.CapabilityHost$Update` was added
+
+* `models.InferenceGroup$DefinitionStages` was added
+
+* `models.PtuDeploymentUsage` was added
+
+* `models.DeploymentModelVersionUpgradeOption` was added
+
+* `models.InferenceEndpointTrackedResourceArmPaginatedResult` was added
+
+* `models.InferencePoolTrackedResourceArmPaginatedResult` was added
+
+* `models.CapabilityHosts` was added
+
+* `models.InferenceEndpointProperties` was added
+
+* `models.ServiceAccountKeyName` was added
+
+* `models.EndpointDeploymentResourceProperties` was added
+
+* `models.UsageAndQuotaDetails` was added
+
+* `models.IdleShutdownSetting` was added
+
+* `models.InferencePool` was added
+
+* `models.RaiPolicyPropertiesBasicResource$Definition` was added
+
+* `models.RaiBlocklistProperties` was added
+
+* `models.ServerlessOffer` was added
+
+* `models.CapabilityHost$UpdateStages` was added
+
+* `models.ManagedResourceGroupSettings` was added
+
+* `models.ConnectionRaiPolicyOperations` was added
+
+* `models.StringKeyValuePair` was added
+
+* `models.CapabilityHost$DefinitionStages` was added
+
+* `models.EndpointResourcePropertiesBasicResource$Definition` was added
+
+* `models.EndpointDeploymentResourcePropertiesBasicResource$UpdateStages` was added
+
+* `models.EndpointModelSkuProperties` was added
+
+* `models.InferenceGroup` was added
+
+* `models.EndpointDeploymentResourcePropertiesBasicResourceArmPaginatedResult` was added
+
+* `models.EndpointResourcePropertiesBasicResource$UpdateStages` was added
+
+* `models.InferenceEndpoint$DefinitionStages` was added
+
+* `models.RequestConfiguration` was added
+
+* `models.EndpointDeploymentModel` was added
+
+* `models.EndpointResourcePropertiesBasicResource$DefinitionStages` was added
+
+* `models.ManagedResourceGroupAssignedIdentities` was added
+
+* `models.MountMode` was added
+
+* `models.EndpointKeys` was added
+
+* `models.ImageDetails` was added
+
+* `models.EndpointResourceProperties` was added
+
+* `models.InferencePool$DefinitionStages` was added
+
+* `models.RaiBlocklistPropertiesBasicResource$DefinitionStages` was added
+
+* `models.ActualCapacityInfo` was added
+
+* `models.ServerlessEndpointCapacityReservation` was added
+
+* `models.SpeechEndpointResourceProperties` was added
+
+* `models.InferenceGroupProperties` was added
+
+* `models.EndpointResourcePropertiesBasicResource$Update` was added
+
+* `models.AllowedContentLevel` was added
+
+* `models.EndpointDeploymentResourcePropertiesBasicResource$Update` was added
+
+* `models.CapabilityHost` was added
+
+* `models.CognitiveServiceEndpointDeploymentResourceProperties` was added
+
+* `models.FqdnEndpointsPropertyBag` was added
+
+* `models.InferencePool$Update` was added
+
+* `models.JobResources` was added
+
+* `models.ServerlessEndpointModelSettings` was added
+
+* `models.AuthMode` was added
+
+* `models.ServerlessEndpointResourceProperties` was added
+
+* `models.ConnectionRaiBlocklists` was added
+
+* `models.AccountApiKeys` was added
+
+* `models.EndpointType` was added
+
+* `models.DeltaModelListRequest` 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.VulnerabilityDetails` 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.GroupModelConfiguration` was added
+
+* `models.RaiBlocklistPropertiesBasicResource$Definition` was added
+
+* `models.DefaultActionType` was added
+
+* `models.CustomModelFineTuning` was added
+
+* `models.CapabilityHostKind` was added
+
+* `models.DeltaModelStatusResponse` was added
+
+* `models.ConnectionRaiBlocklistItemsOperations` was added
+
+* `models.WorkspaceConnectionUpdateParameter` was added
+
+* `models.ScaleUnitConfiguration` was added
+
+* `models.ConnectionRaiBlocklistOperations` was added
+
+* `models.OpenAIEndpointDeploymentResourceProperties` was added
+
+* `models.SystemDatastoresAuthMode` was added
+
+* `models.EndpointModelProperties` was added
+
+* `models.DeltaModelCurrentState` was added
+
+* `models.PoolProvisioningState` was added
+
+* `models.FirewallSku` was added
+
+* `models.InferenceGroup$Definition` was added
+
+* `models.RaiBlocklistItemBulkRequest` was added
+
+* `models.InferenceGroupTrackedResourceArmPaginatedResult` was added
+
+* `models.Connections` was added
+
+* `models.JupyterKernelConfig` was added
+
+* `models.InferenceEndpoint` was added
+
+* `models.ManagedOnlineEndpointDeploymentResourceProperties` was added
+
+* `models.RaiBlocklistItemPropertiesBasicResource` was added
+
+* `models.CapabilityHost$Definition` was added
+
+* `models.AzureOpenAiFineTuning` was added
+
+* `models.RaiBlocklistPropertiesBasicResource` was added
+
+* `models.PtuQuotas` was added
+
+* `models.InferenceGroup$Update` was added
+
+* `models.ImageInfo` was added
+
+* `models.ModelLifecycleStatus` was added
+
+* `models.AvailableQuotaProperties` was added
+
+* `models.RaiPolicyMode` was added
+
+* `models.RaiPolicyOperations` was added
+
+* `models.KeyVaultProperties` was added
+
+* `models.InferenceEndpoint$Update` was added
+
+* `models.EndpointModelSkuCapacityProperties` was added
+
+* `models.EndpointModelSkuRateLimitRulePatternProperties` was added
+
+* `models.OsPatchingStatus` was added
+
+* `models.InferenceEndpoint$Definition` was added
+
+* `models.PatchStatus` was added
+
+* `models.InferenceGroups` was added
+
+* `models.ServerlessEndpointInferenceEndpoint` was added
+
+* `models.EndpointResourcePropertiesBasicResourceArmPaginatedResult` was added
+
+* `models.ServerlessEndpointContentSafety` was added
+
+* `models.StringArmPaginatedResult` was added
+
+* `models.ContentSafetyEndpointDeploymentResourceProperties` was added
+
+* `models.EndpointDeploymentResourcePropertiesBasicResource$DefinitionStages` was added
+
+* `models.CapabilityHostProperties` was added
+
+* `models.WorkspacePrivateEndpointResource` was added
+
+* `models.NetworkAcls` was added
+
+* `models.SpeechEndpointDeploymentResourceProperties` was added
+
+* `models.InferencePoolProperties` was added
+
+* `models.RaiBlocklistPropertiesBasicResourceArmPaginatedResult` was added
+
+* `models.RaiPolicyPropertiesBasicResource` was added
+
+* `models.RaiPolicyContentSource` was added
+
+* `models.RaiBlocklistConfig` was added
+
+* `models.ContentSafetyEndpointResourceProperties` was added
+
+* `models.InferenceGroup$UpdateStages` was added
+
+* `models.AvailableQuota` was added
+
+* `models.InferenceEndpoints` was added
+
+* `models.VulnerabilityRisk` was added
+
+* `models.DeltaModelModifyRequest` was added
+
+* `models.InferencePool$UpdateStages` was added
+
+* `models.ManagedPEStatus` was added
+
+* `models.InferenceEndpoint$UpdateStages` was added
+
+* `models.EndpointDeploymentResourcePropertiesBasicResource$Definition` was added
+
+* `models.InferencePool$Definition` was added
+
+* `models.ContentSafetyLevel` was added
+
+* `models.UsageAndQuotaDetailsArmPaginatedResult` was added
+
+* `models.FineTuningVertical` was added
+
+* `models.DefaultResourceProvisioningState` was added
+
+* `models.PropertiesBase` was added
+
+* `models.SecretExpiry` was added
+
+* `models.InferencePools` was added
+
+* `models.RaiBlocklistItemPropertiesBasicResourceArmPaginatedResult` was added
+
+* `models.CapabilityHostProvisioningState` was added
+
+* `models.RaiPolicyPropertiesBasicResourceArmPaginatedResult` was added
+
+* `models.RegenerateServiceAccountKeyContent` was added
+
+* `models.EndpointModels` was added
+
+* `models.OpenAIEndpointResourceProperties` was added
+
+* `models.CognitiveServicesSku` was added
+
+* `models.RaiPolicyProperties` was added
+
+* `models.VulnerabilityFindings` 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
+
+* `withError(java.lang.String)` was added
+* `peStatus()` was added
+* `withPeStatus(models.ManagedPEStatus)` was added
+* `withPeRequirement(models.ManagedPERequirement)` was added
+* `peRequirement()` was added
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+* `useWorkspaceManagedIdentity()` was added
+* `error()` was added
+
+#### `models.JobResourceConfiguration` was modified
+
+* `withDockerArgsList(java.util.List)` was added
+* `dockerArgsList()` was added
+
+#### `models.ListWorkspaceKeysResult` was modified
+
+* `userStorageArmId()` was added
+
+#### `models.MLFlowModelJobOutput` was modified
+
+* `assetName()` was added
+* `withAssetName(java.lang.String)` was added
+
+#### `models.FqdnEndpoints` was modified
+
+* `endpoints()` was added
+* `category()` was added
+* `withEndpoints(java.util.List)` was added
+* `withCategory(java.lang.String)` was added
+
+#### `models.Registry` was modified
+
+* `managedResourceGroupSettings()` was added
+
+#### `models.WorkspaceConnectionPropertiesV2BasicResourceArmPaginatedResult` was modified
+
+* `withNextLink(java.lang.String)` was added
+
+#### `models.Workspace$Update` was modified
+
+* `withPublicNetworkAccess(models.PublicNetworkAccessType)` was added
+* `withNetworkAcls(models.NetworkAcls)` was added
+* `withAllowRoleAssignmentOnRG(java.lang.Boolean)` was added
+* `withSystemDatastoresAuthMode(models.SystemDatastoresAuthMode)` was added
+* `withEnableSoftwareBillOfMaterials(java.lang.Boolean)` was added
+* `withIpAllowlist(java.util.List)` 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
+
+* `withPrivateEndpoint(models.WorkspacePrivateEndpointResource)` was added
+* `withProvisioningState(models.PrivateEndpointConnectionProvisioningState)` was added
+
+#### `models.ServicePrincipalAuthTypeWorkspaceConnectionProperties` 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.PrivateEndpointOutboundRule` was modified
+
+* `fqdns()` was added
+* `withFqdns(java.util.List)` was added
+
+#### `models.Workspaces` was modified
+
+* `listByResourceGroup(java.lang.String,java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+* `list(java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.PrivateLinkServiceConnectionState` was modified
+
+* `withStatus(models.EndpointServiceConnectionStatus)` was added
+
+#### `models.EnvironmentVersionProperties` was modified
+
+* `withImageDetails(models.ImageDetails)` was added
+* `imageDetails()` was added
+
+#### `models.Computes` was modified
+
+* `getAllowedResizeSizesWithResponse(java.lang.String,java.lang.String,java.lang.String,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
+* `updateDataMountsWithResponse(java.lang.String,java.lang.String,java.lang.String,java.util.List,com.azure.core.util.Context)` was added
+* `updateIdleShutdownSettingWithResponse(java.lang.String,java.lang.String,java.lang.String,models.IdleShutdownSetting,com.azure.core.util.Context)` was added
+* `updateIdleShutdownSetting(java.lang.String,java.lang.String,java.lang.String,models.IdleShutdownSetting)` was added
+* `updateCustomServices(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
+* `resize(java.lang.String,java.lang.String,java.lang.String,models.ResizeSchema)` was added
+* `updateDataMounts(java.lang.String,java.lang.String,java.lang.String,java.util.List)` was added
+* `getAllowedResizeSizes(java.lang.String,java.lang.String,java.lang.String)` was added
+
+#### `models.AssetJobOutput` was modified
+
+* `withAssetName(java.lang.String)` was added
+* `assetName()` was added
+
+#### `models.OAuth2AuthTypeWorkspaceConnectionProperties` 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.Workspace$Definition` was modified
+
+* `withNetworkAcls(models.NetworkAcls)` was added
+* `withIpAllowlist(java.util.List)` was added
+* `withEnableSoftwareBillOfMaterials(java.lang.Boolean)` was added
+* `withContainerRegistries(java.util.List)` was added
+* `withSystemDatastoresAuthMode(models.SystemDatastoresAuthMode)` was added
+* `withAllowRoleAssignmentOnRG(java.lang.Boolean)` was added
+* `withEnableSimplifiedCmk(java.lang.Boolean)` was added
+* `withKeyVaults(java.util.List)` was added
+* `withPublicNetworkAccess(models.PublicNetworkAccessType)` was added
+* `withProvisionNetworkNow(java.lang.Boolean)` was added
+* `withExistingWorkspaces(java.util.List)` was added
+* `withStorageAccounts(java.util.List)` was added
+* `withEnableServiceSideCmkEncryption(java.lang.Boolean)` was added
+* `withSoftDeleteRetentionInDays(java.lang.Integer)` 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.PipelineJob` was modified
+
+* `withParentJobName(java.lang.String)` was added
+
+#### `models.PrivateEndpointConnection$Update` was modified
+
+* `withProvisioningState(models.PrivateEndpointConnectionProvisioningState)` was added
+* `withPrivateEndpoint(models.WorkspacePrivateEndpointResource)` was added
+
+#### `models.ApiKeyAuthWorkspaceConnectionProperties` was modified
+
+* `withPeRequirement(models.ManagedPERequirement)` was added
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+* `withPeStatus(models.ManagedPEStatus)` was added
+* `withError(java.lang.String)` was added
+
+#### `models.WorkspaceConnections` was modified
+
+* `list(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Boolean,com.azure.core.util.Context)` was added
+* `testConnection(java.lang.String,java.lang.String,java.lang.String,fluent.models.WorkspaceConnectionPropertiesV2BasicResourceInner,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
+* `firewallSku()` was added
+
+#### `models.Workspace` was modified
+
+* `softDeleteRetentionInDays()` was added
+* `networkAcls()` was added
+* `agentsEndpointUri()` was added
+* `enableServiceSideCmkEncryption()` was added
+* `allowRoleAssignmentOnRG()` was added
+* `systemDatastoresAuthMode()` was added
+* `provisionNetworkNow()` was added
+* `enableSoftwareBillOfMaterials()` was added
+* `keyVaults()` was added
+* `ipAllowlist()` was added
+* `containerRegistries()` was added
+* `enableSimplifiedCmk()` was added
+* `storageAccounts()` was added
+* `existingWorkspaces()` was added
+
+#### `models.UriFileJobOutput` was modified
+
+* `withAssetName(java.lang.String)` was added
+* `assetName()` was added
+
+#### `models.Datastore` was modified
+
+* `listSecretsWithResponse(models.SecretExpiry,com.azure.core.util.Context)` was added
+
+#### `models.NoneAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withPeStatus(models.ManagedPEStatus)` was added
+* `withPeRequirement(models.ManagedPERequirement)` was added
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+* `withError(java.lang.String)` was added
+
+#### `MachineLearningManager` was modified
+
+* `connectionRaiPolicies()` was added
+* `endpointDeployments()` was added
+* `connectionRaiBlocklistItemsOperations()` was added
+* `inferenceEndpoints()` was added
+* `ptuQuotas()` was added
+* `connectionRaiBlocklists()` was added
+* `connections()` was added
+* `endpoints()` was added
+* `connectionRaiBlocklistItems()` was added
+* `capabilityHosts()` was added
+* `raiPolicies()` was added
+* `connectionRaiBlocklistOperations()` was added
+* `connectionRaiPolicyOperations()` was added
+* `raiPolicyOperations()` was added
+* `inferenceGroups()` was added
+* `inferencePools()` was added
+
+#### `models.ImageMetadata` was modified
+
+* `osPatchingStatus()` was added
+
+#### `models.CustomKeysWorkspaceConnectionProperties` was modified
+
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+* `withError(java.lang.String)` was added
+* `withPeStatus(models.ManagedPEStatus)` was added
+* `withPeRequirement(models.ManagedPERequirement)` was added
+
+#### `models.UsernamePasswordAuthTypeWorkspaceConnectionProperties` 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.AccountKeyAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withError(java.lang.String)` was added
+* `withPeRequirement(models.ManagedPERequirement)` was added
+* `withPeStatus(models.ManagedPEStatus)` was added
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+
+#### `models.SparkJob` was modified
+
+* `withParentJobName(java.lang.String)` was added
+
+#### `models.WorkspacePropertiesUpdateParameters` was modified
+
+* `softDeleteRetentionInDays()` was added
+* `systemDatastoresAuthMode()` was added
+* `ipAllowlist()` was added
+* `networkAcls()` was added
+* `enableSoftwareBillOfMaterials()` was added
+* `allowRoleAssignmentOnRG()` was added
+
+#### `models.WorkspaceUpdateParameters` was modified
+
+* `withAllowRoleAssignmentOnRG(java.lang.Boolean)` was added
+* `withSystemDatastoresAuthMode(models.SystemDatastoresAuthMode)` was added
+* `withPublicNetworkAccess(models.PublicNetworkAccessType)` was added
+* `ipAllowlist()` was added
+* `withEnableSoftwareBillOfMaterials(java.lang.Boolean)` was added
+* `enableSoftwareBillOfMaterials()` was added
+* `withNetworkAcls(models.NetworkAcls)` was added
+* `systemDatastoresAuthMode()` was added
+* `withSoftDeleteRetentionInDays(java.lang.Integer)` was added
+* `allowRoleAssignmentOnRG()` was added
+* `withIpAllowlist(java.util.List)` was added
+* `softDeleteRetentionInDays()` was added
+* `networkAcls()` was added
+
+#### `models.UriFolderJobOutput` was modified
+
+* `withAssetName(java.lang.String)` was added
+* `assetName()` was added
+
+#### `models.MLTableJobOutput` was modified
+
+* `withAssetName(java.lang.String)` was added
+* `assetName()` was added
+
+#### `models.AccessKeyAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withError(java.lang.String)` was added
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+* `withPeStatus(models.ManagedPEStatus)` 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.TritonModelJobOutput` was modified
+
+* `assetName()` was added
+* `withAssetName(java.lang.String)` was added
+
+#### `models.WorkspaceConnectionPropertiesV2BasicResource` was modified
+
+* `testConnection(fluent.models.WorkspaceConnectionPropertiesV2BasicResourceInner,com.azure.core.util.Context)` was added
+* `update()` was added
+* `testConnection()` was added
+* `resourceGroupName()` was added
+
+#### `models.WorkspaceProperties` was modified
+
+* `systemDatastoresAuthMode()` was added
+* `enableServiceSideCmkEncryption()` was added
+* `allowRoleAssignmentOnRG()` was added
+* `ipAllowlist()` was added
+* `storageAccounts()` was added
+* `existingWorkspaces()` was added
+* `softDeleteRetentionInDays()` was added
+* `provisionNetworkNow()` was added
+* `networkAcls()` was added
+* `containerRegistries()` was added
+* `agentsEndpointUri()` was added
+* `enableSoftwareBillOfMaterials()` was added
+* `keyVaults()` was added
+* `enableSimplifiedCmk()` was added
+
+#### `models.OutboundRule` was modified
+
+* `parentRuleNames()` was added
+
+#### `models.SharedPrivateLinkResource` was modified
+
+* `withStatus(models.EndpointServiceConnectionStatus)` was added
+
+#### `models.ComputeResource` was modified
+
+* `updateDataMounts(java.util.List)` was added
+* `updateIdleShutdownSettingWithResponse(models.IdleShutdownSetting,com.azure.core.util.Context)` was added
+* `updateCustomServices(java.util.List)` was added
+* `getAllowedResizeSizes()` was added
+* `updateIdleShutdownSetting(models.IdleShutdownSetting)` was added
+* `resize(models.ResizeSchema,com.azure.core.util.Context)` was added
+* `updateDataMountsWithResponse(java.util.List,com.azure.core.util.Context)` was added
+* `updateCustomServicesWithResponse(java.util.List,com.azure.core.util.Context)` was added
+* `resize(models.ResizeSchema)` was added
+* `getAllowedResizeSizesWithResponse(com.azure.core.util.Context)` was added
+
+#### `models.CustomModelJobOutput` was modified
+
+* `assetName()` was added
+* `withAssetName(java.lang.String)` was added
+
+#### `models.PrivateLinkResources` was modified
+
+* `list(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
+
+#### `models.SasAuthTypeWorkspaceConnectionProperties` was modified
+
+* `withPeRequirement(models.ManagedPERequirement)` was added
+* `withPeStatus(models.ManagedPEStatus)` was added
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` was added
+* `withError(java.lang.String)` was added
+
+#### `models.EncryptionProperty` was modified
+
+* `withSearchAccountResourceId(java.lang.String)` was added
+* `storageAccountResourceId()` was added
+* `cosmosDbResourceId()` was added
+* `withStorageAccountResourceId(java.lang.String)` was added
+* `withKeyVaultProperties(models.KeyVaultProperties)` was added
+* `withCosmosDbResourceId(java.lang.String)` was added
+* `searchAccountResourceId()` was added
+
+#### `models.CommandJob` was modified
+
+* `withParentJobName(java.lang.String)` was added
+
+#### `models.ManagedIdentityAuthTypeWorkspaceConnectionProperties` 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.ServiceTagDestination` was modified
+
+* `withAddressPrefixes(java.util.List)` was added
+
+#### `models.NotebookResourceInfo` was modified
+
+* `isPrivateLinkEnabled()` was added
+
+#### `models.PrivateLinkResourceListResult` was modified
+
+* `fromJson(com.azure.json.JsonReader)` was added
+* `withValue(java.util.List)` was added
+* `validate()` was added
+* `toJson(com.azure.json.JsonWriter)` was added
+
+#### `models.ComputeInstanceProperties` was modified
+
+* `withAutologgerSettings(models.ComputeInstanceAutologgerSettings)` was added
+* `autologgerSettings()` was added
+* `idleTimeBeforeShutdown()` was added
+* `withReleaseQuotaOnStop(java.lang.Boolean)` was added
+* `withEnableRootAccess(java.lang.Boolean)` was added
+* `enableRootAccess()` was added
+* `withEnableSso(java.lang.Boolean)` was added
+* `releaseQuotaOnStop()` was added
+* `withEnableOSPatching(java.lang.Boolean)` was added
+* `enableSso()` was added
+* `enableOSPatching()` was added
+* `withIdleTimeBeforeShutdown(java.lang.String)` was added
+
+#### `models.SweepJob` was modified
+
+* `withParentJobName(java.lang.String)` was added
+
+#### `models.ComputeInstanceDataMount` was modified
+
+* `mountMode()` was added
+* `withMountMode(models.MountMode)` was added
+
+#### `models.AutoMLJob` was modified
+
+* `withParentJobName(java.lang.String)` was added
+
+#### `models.ContentSafety` was modified
+
+* `withContentSafetyLevel(models.ContentSafetyLevel)` was added
+* `contentSafetyLevel()` was added
+
+#### `models.JobBaseProperties` was modified
+
+* `parentJobName()` was added
+* `withParentJobName(java.lang.String)` was added
+
+#### `models.PatAuthTypeWorkspaceConnectionProperties` was modified
-### Other Changes
+* `withPeStatus(models.ManagedPEStatus)` was added
+* `withUseWorkspaceManagedIdentity(java.lang.Boolean)` 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 4184eaf56d90e..0bc248f53b678 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-2025-01. 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})
@@ -78,39 +78,37 @@ workspace = machineLearningManager.workspaces()
.withSku(new Sku().withName("Basic").withTier(SkuTier.BASIC))
.withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED))
.withFriendlyName(workspaceName)
- .withStorageAccount(
- storageManager.storageAccounts()
- .define(storageName)
- .withRegion(REGION)
- .withExistingResourceGroup(resourceGroupName)
- .withSku(StorageAccountSkuType.STANDARD_LRS)
- .withMinimumTlsVersion(MinimumTlsVersion.TLS1_0)
- .withHnsEnabled(false)
- .withAccessFromAzureServices()
- .withOnlyHttpsTraffic()
- .withBlobStorageAccountKind().withAccessTier(AccessTier.HOT)
- .create()
- .id())
- .withKeyVault(
- keyVaultManager.vaults()
- .define(keyVaultName)
- .withRegion(REGION)
- .withExistingResourceGroup(resourceGroupName)
- .withEmptyAccessPolicy()
- .withSku(SkuName.STANDARD)
- .withDeploymentDisabled()
- .withAccessFromAllNetworks()
- .create()
- .id())
- .withApplicationInsights(
- applicationInsightsManager.components()
- .define(insightName)
- .withRegion(REGION)
- .withExistingResourceGroup(resourceGroupName)
- .withKind("web")
- .withApplicationType(ApplicationType.WEB)
- .create()
- .id())
+ .withStorageAccount(storageManager.storageAccounts()
+ .define(storageName)
+ .withRegion(REGION)
+ .withExistingResourceGroup(resourceGroupName)
+ .withSku(StorageAccountSkuType.STANDARD_LRS)
+ .withMinimumTlsVersion(MinimumTlsVersion.TLS1_0)
+ .withHnsEnabled(false)
+ .withAccessFromAzureServices()
+ .withOnlyHttpsTraffic()
+ .withBlobStorageAccountKind()
+ .withAccessTier(AccessTier.HOT)
+ .create()
+ .id())
+ .withKeyVault(keyVaultManager.vaults()
+ .define(keyVaultName)
+ .withRegion(REGION)
+ .withExistingResourceGroup(resourceGroupName)
+ .withEmptyAccessPolicy()
+ .withSku(SkuName.STANDARD)
+ .withDeploymentDisabled()
+ .withAccessFromAllNetworks()
+ .create()
+ .id())
+ .withApplicationInsights(applicationInsightsManager.components()
+ .define(insightName)
+ .withRegion(REGION)
+ .withExistingResourceGroup(resourceGroupName)
+ .withKind("web")
+ .withApplicationType(ApplicationType.WEB)
+ .create()
+ .id())
.create();
```
[Code snippets and samples](https://github.com/Azure/azure-sdk-for-java/blob/main/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md)
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md b/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
index 0ef21ec43a9a0..e71f2045df062 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/SAMPLE.md
@@ -18,6 +18,12 @@
- [ListKeys](#batchendpoints_listkeys)
- [Update](#batchendpoints_update)
+## CapabilityHosts
+
+- [CreateOrUpdate](#capabilityhosts_createorupdate)
+- [Delete](#capabilityhosts_delete)
+- [Get](#capabilityhosts_get)
+
## CodeContainers
- [CreateOrUpdate](#codecontainers_createorupdate)
@@ -54,13 +60,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)
+- [GetAllModels](#connection_getallmodels)
+- [GetDeployment](#connection_getdeployment)
+- [GetModels](#connection_getmodels)
+- [ListDeployments](#connection_listdeployments)
+
+## 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 +137,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)
@@ -134,6 +203,35 @@
- [Get](#featurestoreentityversions_get)
- [List](#featurestoreentityversions_list)
+## InferenceEndpoints
+
+- [CreateOrUpdate](#inferenceendpoints_createorupdate)
+- [Delete](#inferenceendpoints_delete)
+- [Get](#inferenceendpoints_get)
+- [List](#inferenceendpoints_list)
+- [Update](#inferenceendpoints_update)
+
+## InferenceGroups
+
+- [CreateOrUpdate](#inferencegroups_createorupdate)
+- [Delete](#inferencegroups_delete)
+- [Get](#inferencegroups_get)
+- [GetDeltaModelsStatusAsync](#inferencegroups_getdeltamodelsstatusasync)
+- [GetStatus](#inferencegroups_getstatus)
+- [List](#inferencegroups_list)
+- [ListDeltaModelsAsync](#inferencegroups_listdeltamodelsasync)
+- [ListSkus](#inferencegroups_listskus)
+- [ModifyDeltaModelsAsync](#inferencegroups_modifydeltamodelsasync)
+- [Update](#inferencegroups_update)
+
+## InferencePools
+
+- [CreateOrUpdate](#inferencepools_createorupdate)
+- [Delete](#inferencepools_delete)
+- [Get](#inferencepools_get)
+- [List](#inferencepools_list)
+- [Update](#inferencepools_update)
+
## Jobs
- [Cancel](#jobs_cancel)
@@ -211,11 +309,27 @@
- [List](#privatelinkresources_list)
+## PtuQuota
+
+- [GetAvailable](#ptuquota_getavailable)
+- [List](#ptuquota_list)
+- [ListAvailable](#ptuquota_listavailable)
+
## Quotas
- [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 +449,8 @@
- [Get](#workspaceconnections_get)
- [List](#workspaceconnections_list)
- [ListSecrets](#workspaceconnections_listsecrets)
+- [TestConnection](#workspaceconnections_testconnection)
+- [Update](#workspaceconnections_update)
## WorkspaceFeatures
@@ -384,8 +500,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/2025-01-01-
+ * preview/examples/Workspace/BatchDeployment/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Batch Deployment.
@@ -398,19 +514,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 +534,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 +571,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/2025-01-01-
+ * preview/examples/Workspace/BatchDeployment/delete.json
*/
/**
* Sample code: Delete Workspace Batch Deployment.
@@ -480,8 +597,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/2025-01-01-
+ * preview/examples/Workspace/BatchDeployment/get.json
*/
/**
* Sample code: Get Workspace Batch Deployment.
@@ -506,8 +623,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/2025-01-01-
+ * preview/examples/Workspace/BatchDeployment/list.json
*/
/**
* Sample code: List Workspace Batch Deployment.
@@ -537,8 +654,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/2025-01-01-
+ * preview/examples/Workspace/BatchDeployment/update.json
*/
/**
* Sample code: Update Workspace Batch Deployment.
@@ -591,8 +708,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/2025-01-01-
+ * preview/examples/Workspace/BatchEndpoint/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Batch Endpoint.
@@ -605,14 +722,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 +761,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/2025-01-01-
+ * preview/examples/Workspace/BatchEndpoint/delete.json
*/
/**
* Sample code: Delete Workspace Batch Endpoint.
@@ -669,8 +786,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/2025-01-01-
+ * preview/examples/Workspace/BatchEndpoint/get.json
*/
/**
* Sample code: Get Workspace Batch Endpoint.
@@ -694,8 +811,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/2025-01-01-
+ * preview/examples/Workspace/BatchEndpoint/list.json
*/
/**
* Sample code: List Workspace Batch Endpoint.
@@ -718,8 +835,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/2025-01-01-
+ * preview/examples/Workspace/BatchEndpoint/listKeys.json
*/
/**
* Sample code: ListKeys Workspace Batch Endpoint.
@@ -752,8 +869,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/2025-01-01-
+ * preview/examples/Workspace/BatchEndpoint/update.json
*/
/**
* Sample code: Update Workspace Batch Endpoint.
@@ -788,6 +905,85 @@ public final class BatchEndpointsUpdateSamples {
}
```
+### CapabilityHosts_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.CapabilityHostProperties;
+
+/**
+ * Samples for CapabilityHosts CreateOrUpdate.
+ */
+public final class CapabilityHostsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/CapabilityHost/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate CapabilityHost.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ createOrUpdateCapabilityHost(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.capabilityHosts()
+ .define("capabilityHostName")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(new CapabilityHostProperties().withCustomerSubnet(
+ "subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/myResourceGroups/providers/Microsoft.Network/virtualNetworks/myVnet/subnets/mySubnet"))
+ .create();
+ }
+}
+```
+
+### CapabilityHosts_Delete
+
+```java
+/**
+ * Samples for CapabilityHosts Delete.
+ */
+public final class CapabilityHostsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/CapabilityHost/delete.json
+ */
+ /**
+ * Sample code: Delete CapabilityHost.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteCapabilityHost(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.capabilityHosts()
+ .delete("test-rg", "my-aml-workspace", "capabilityHostName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### CapabilityHosts_Get
+
+```java
+/**
+ * Samples for CapabilityHosts Get.
+ */
+public final class CapabilityHostsGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/CapabilityHost/get.json
+ */
+ /**
+ * Sample code: Get CapabilityHost.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getCapabilityHost(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.capabilityHosts()
+ .getWithResponse("test-rg", "my-aml-workspace", "capabilityHostName", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### CodeContainers_CreateOrUpdate
```java
@@ -801,8 +997,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/2025-01-01-
+ * preview/examples/Workspace/CodeContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Code Container.
@@ -842,8 +1038,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/2025-01-01-
+ * preview/examples/Workspace/CodeContainer/delete.json
*/
/**
* Sample code: Delete Workspace Code Container.
@@ -867,8 +1063,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/2025-01-01-
+ * preview/examples/Workspace/CodeContainer/get.json
*/
/**
* Sample code: Get Workspace Code Container.
@@ -892,8 +1088,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/2025-01-01-
+ * preview/examples/Workspace/CodeContainer/list.json
*/
/**
* Sample code: List Workspace Code Container.
@@ -919,8 +1115,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/2025-01-01-
+ * preview/examples/Workspace/CodeVersion/createOrGetStartPendingUpload.json
*/
/**
* Sample code: CreateOrGetStartPendingUpload Workspace Code Version.
@@ -951,8 +1147,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/2025-01-01-
+ * preview/examples/Workspace/CodeVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Code Version.
@@ -965,8 +1161,8 @@ public final class CodeVersionsCreateOrUpdateSamples {
.define("string")
.withExistingCode("test-rg", "my-aml-workspace", "string")
.withProperties(new CodeVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
.withCodeUri("fakeTokenPlaceholder"))
.create();
@@ -995,8 +1191,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/2025-01-01-
+ * preview/examples/Workspace/CodeVersion/delete.json
*/
/**
* Sample code: Delete Workspace Code Version.
@@ -1020,8 +1216,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/2025-01-01-
+ * preview/examples/Workspace/CodeVersion/get.json
*/
/**
* Sample code: Get Workspace Code Version.
@@ -1045,8 +1241,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/2025-01-01-
+ * preview/examples/Workspace/CodeVersion/list.json
*/
/**
* Sample code: List Workspace Code Version.
@@ -1073,8 +1269,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/2025-01-01-
+ * preview/examples/Workspace/CodeVersion/publish.json
*/
/**
* Sample code: Publish Workspace Code Version.
@@ -1085,9 +1281,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);
}
}
@@ -1106,8 +1302,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/2025-01-01-
+ * preview/examples/Workspace/ComponentContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Component Container.
@@ -1120,8 +1316,8 @@ public final class ComponentContainersCreateOrUpdateSamples {
.define("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
.withProperties(new ComponentContainerProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string")))
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string")))
.create();
}
@@ -1148,8 +1344,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/2025-01-01-
+ * preview/examples/Workspace/ComponentContainer/delete.json
*/
/**
* Sample code: Delete Workspace Component Container.
@@ -1173,8 +1369,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/2025-01-01-
+ * preview/examples/Workspace/ComponentContainer/get.json
*/
/**
* Sample code: Get Workspace Component Container.
@@ -1199,8 +1395,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/2025-01-01-
+ * preview/examples/Workspace/ComponentContainer/list.json
*/
/**
* Sample code: List Workspace Component Container.
@@ -1230,8 +1426,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/2025-01-01-
+ * preview/examples/Workspace/ComponentVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Component Version.
@@ -1244,8 +1440,8 @@ public final class ComponentVersionsCreateOrUpdateSamples {
.define("string")
.withExistingComponent("test-rg", "my-aml-workspace", "string")
.withProperties(new ComponentVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
.withComponentSpec(SerializerFactory.createDefaultManagementSerializerAdapter()
.deserialize("{\"8ced901b-d826-477d-bfef-329da9672513\":null}", Object.class,
@@ -1276,8 +1472,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/2025-01-01-
+ * preview/examples/Workspace/ComponentVersion/delete.json
*/
/**
* Sample code: Delete Workspace Component Version.
@@ -1301,8 +1497,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/2025-01-01-
+ * preview/examples/Workspace/ComponentVersion/get.json
*/
/**
* Sample code: Get Workspace Component Version.
@@ -1327,8 +1523,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/2025-01-01-
+ * preview/examples/Workspace/ComponentVersion/list.json
*/
/**
* Sample code: List Workspace Component Version.
@@ -1354,8 +1550,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/2025-01-01-
+ * preview/examples/Workspace/ComponentVersion/publish.json
*/
/**
* Sample code: Publish Workspace Component Version.
@@ -1366,9 +1562,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 +1581,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 +1599,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 +1626,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/2025-01-01-
+ * preview/examples/Compute/createOrUpdate/BasicAKSCompute.json
*/
/**
* Sample code: Create an AKS Compute.
@@ -1446,8 +1645,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/2025-01-01-
+ * preview/examples/Compute/createOrUpdate/AKSCompute.json
*/
/**
* Sample code: Update an AKS Compute.
@@ -1468,8 +1667,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/2025-01-01-
+ * preview/examples/Compute/createOrUpdate/KubernetesCompute.json
*/
/**
* Sample code: Attach a Kubernetes Compute.
@@ -1496,8 +1695,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/2025-01-01-
+ * preview/examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json
*/
/**
* Sample code: Create an ComputeInstance Compute with Schedules.
@@ -1530,8 +1729,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/2025-01-01-
+ * preview/examples/Compute/createOrUpdate/BasicAmlCompute.json
*/
/**
* Sample code: Create a AML Compute.
@@ -1559,8 +1758,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/2025-01-01-
+ * preview/examples/Compute/createOrUpdate/ComputeInstance.json
*/
/**
* Sample code: Create an ComputeInstance Compute.
@@ -1577,26 +1776,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 +1813,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/2025-01-01-
+ * preview/examples/Compute/createOrUpdate/ComputeInstanceMinimal.json
*/
/**
* Sample code: Create an ComputeInstance Compute with minimal inputs.
@@ -1626,8 +1834,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/2025-01-01-
+ * preview/examples/Compute/createOrUpdate/AmlCompute.json
*/
/**
* Sample code: Update a AML Compute.
@@ -1648,8 +1856,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/2025-01-01-
+ * preview/examples/Compute/createOrUpdate/BasicDataFactoryCompute.json
*/
/**
* Sample code: Create a DataFactory Compute.
@@ -1691,8 +1899,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/2025-01-01-
+ * preview/examples/Compute/delete.json
*/
/**
* Sample code: Delete Compute.
@@ -1716,8 +1924,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/2025-01-01-
+ * preview/examples/Compute/get/AKSCompute.json
*/
/**
* Sample code: Get a AKS Compute.
@@ -1731,8 +1939,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/2025-01-01-
+ * preview/examples/Compute/get/KubernetesCompute.json
*/
/**
* Sample code: Get a Kubernetes Compute.
@@ -1746,8 +1954,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/2025-01-01-
+ * preview/examples/Compute/get/ComputeInstance.json
*/
/**
* Sample code: Get an ComputeInstance.
@@ -1761,8 +1969,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/2025-01-01-
+ * preview/examples/Compute/get/AmlCompute.json
*/
/**
* Sample code: Get a AML Compute.
@@ -1776,6 +1984,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/2025-01-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 +2018,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/2025-01-01-
+ * preview/examples/Compute/list.json
*/
/**
* Sample code: Get Computes.
@@ -1808,8 +2041,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/2025-01-01-
+ * preview/examples/Compute/listKeys.json
*/
/**
* Sample code: List AKS Compute Keys.
@@ -1832,8 +2065,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/2025-01-01-
+ * preview/examples/Compute/listNodes.json
*/
/**
* Sample code: Get compute nodes information for a compute.
@@ -1847,6 +2080,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/2025-01-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 +2116,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/2025-01-01-
+ * preview/examples/Compute/restart.json
*/
/**
* Sample code: Restart ComputeInstance Compute.
@@ -1880,8 +2140,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/2025-01-01-
+ * preview/examples/Compute/start.json
*/
/**
* Sample code: Start ComputeInstance Compute.
@@ -1904,8 +2164,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/2025-01-01-
+ * preview/examples/Compute/stop.json
*/
/**
* Sample code: Stop ComputeInstance Compute.
@@ -1933,8 +2193,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/2025-01-01-
+ * preview/examples/Compute/patch.json
*/
/**
* Sample code: Update a AmlCompute Compute.
@@ -1955,38 +2215,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/2025-01-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,644 +2284,789 @@ 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/2025-01-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/2025-01-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/2025-01-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/2025-01-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();
- }
-
- // 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;
+ manager.connections()
+ .deleteDeployment("test-rg", "aml-workspace-name", "testConnection", "testDeploymentName", null,
+ com.azure.core.util.Context.NONE);
}
}
```
-### DataVersions_Delete
+### Connection_GetAllModels
```java
/**
- * Samples for DataVersions Delete.
+ * Samples for Connection GetAllModels.
*/
-public final class DataVersionsDeleteSamples {
+public final class ConnectionGetAllModelsSamples {
/*
* 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/2025-01-01-
+ * preview/examples/WorkspaceConnection/listConnectionModels.json
*/
/**
- * Sample code: Delete 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
- deleteWorkspaceDataVersionBase(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.dataVersions()
- .deleteWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ public static void getModelsUnderTheAzureMLWorkspaceForAllAzureOpenAIConnectionsThatTheUserCanDeploy(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connections()
+ .getAllModelsWithResponse("test-rg", "aml-workspace-name", com.azure.core.util.Context.NONE);
}
}
```
-### DataVersions_Get
+### Connection_GetDeployment
```java
/**
- * Samples for DataVersions Get.
+ * Samples for Connection GetDeployment.
*/
-public final class DataVersionsGetSamples {
+public final class ConnectionGetDeploymentSamples {
/*
* 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/2025-01-01-
+ * preview/examples/WorkspaceConnection/getDeployment.json
*/
/**
- * Sample code: Get Workspace Data Version Base.
+ * Sample code: Get Azure OpenAI Connection Deployment.
*
* @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);
+ getAzureOpenAIConnectionDeployment(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connections()
+ .getDeploymentWithResponse("resourceGroup-1", "testworkspace", "testConnection", "text-davinci-003",
+ com.azure.core.util.Context.NONE);
}
}
```
-### DataVersions_List
+### Connection_GetModels
```java
-
/**
- * Samples for DataVersions List.
+ * Samples for Connection GetModels.
*/
-public final class DataVersionsListSamples {
+public final class ConnectionGetModelsSamples {
/*
* 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/2025-01-01-
+ * preview/examples/WorkspaceConnection/getModels.json
*/
/**
- * Sample code: List Workspace Data Version Base.
+ * Sample code: Get Azure OpenAI Connection Models.
*
* @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);
+ getAzureOpenAIConnectionModels(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connections()
+ .getModels("test-rg", "aml-workspace-name", "testConnection", null, com.azure.core.util.Context.NONE);
}
}
```
-### DataVersions_Publish
+### Connection_ListDeployments
```java
-import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
-
/**
- * Samples for DataVersions Publish.
+ * Samples for Connection ListDeployments.
*/
-public final class DataVersionsPublishSamples {
+public final class ConnectionListDeploymentsSamples {
/*
* 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/2025-01-01-
+ * preview/examples/WorkspaceConnection/listDeployments.json
*/
/**
- * Sample code: Publish Workspace Data Version Base.
+ * Sample code: List Azure OpenAI Connection Deployments.
*
* @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"),
+ listAzureOpenAIConnectionDeployments(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connections()
+ .listDeployments("resourceGroup-1", "testworkspace", "testConnection", null,
com.azure.core.util.Context.NONE);
}
}
```
-### Datastores_CreateOrUpdate
+### ConnectionRaiBlocklistItem_AddBulk
```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;
-import com.azure.resourcemanager.machinelearning.models.AzureFileDatastore;
-import com.azure.resourcemanager.machinelearning.models.ServicePrincipalDatastoreCredentials;
-import com.azure.resourcemanager.machinelearning.models.ServicePrincipalDatastoreSecrets;
-import java.util.HashMap;
-import java.util.Map;
-import java.util.UUID;
+import com.azure.resourcemanager.machinelearning.models.RaiBlocklistItemBulkRequest;
+import com.azure.resourcemanager.machinelearning.models.RaiBlocklistItemProperties;
+import java.util.Arrays;
/**
- * Samples for Datastores CreateOrUpdate.
+ * Samples for ConnectionRaiBlocklistItem AddBulk.
*/
-public final class DatastoresCreateOrUpdateSamples {
+public final class ConnectionRaiBlocklistItemAddBulkSamples {
/*
* 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/2025-01-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklistItem/addBulk.json
*/
/**
- * Sample code: CreateOrUpdate datastore (Azure Data Lake Gen1 w/ ServicePrincipal).
+ * Sample code: Create Bulk Rai Blocklist Items.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateDatastoreAzureDataLakeGen1WServicePrincipal(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.datastores()
- .define("string")
- .withExistingWorkspace("test-rg", "my-aml-workspace")
- .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")))
- .withStoreName("string"))
- .withSkipValidation(false)
- .create();
+ public static void
+ 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);
}
+}
+```
+
+### ConnectionRaiBlocklistItem_Create
+
+```java
+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/stable/2024-04-01/
- * examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklistItem/create.json
*/
/**
- * Sample code: CreateOrUpdate datastore (Azure Data Lake Gen2 w/ Service Principal).
+ * Sample code: Create RaiBlocklist Item.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateDatastoreAzureDataLakeGen2WServicePrincipal(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.datastores()
- .define("string")
- .withExistingWorkspace("test-rg", "my-aml-workspace")
- .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")
- .withAccountName("string")
- .withEndpoint("string")
- .withProtocol("string"))
- .withSkipValidation(false)
+ 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/stable/2024-04-01/
- * examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklistItem/delete.json
*/
/**
- * Sample code: CreateOrUpdate datastore (AzureBlob w/ AccountKey).
+ * Sample code: Delete RaiBlocklist Item.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateDatastoreAzureBlobWAccountKey(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.datastores()
- .define("string")
- .withExistingWorkspace("test-rg", "my-aml-workspace")
- .withProperties(new AzureBlobDatastore().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withCredentials(new AccountKeyDatastoreCredentials()
- .withSecrets(new AccountKeyDatastoreSecrets().withKey("fakeTokenPlaceholder")))
- .withAccountName("string")
- .withContainerName("string")
- .withEndpoint("core.windows.net")
- .withProtocol("https"))
- .withSkipValidation(false)
- .create();
+ public static void
+ deleteRaiBlocklistItem(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connectionRaiBlocklistItems()
+ .delete("test-rg", "aml-workspace-name", "testConnection", "raiBlocklistName", "raiBlocklistItemName", null,
+ 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/stable/2024-04-01/
- * examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklistItem/deleteBulk.json
*/
/**
- * Sample code: CreateOrUpdate datastore (Azure File store w/ AccountKey).
+ * Sample code: Delete Bulk Rai Blocklist Items.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateDatastoreAzureFileStoreWAccountKey(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.datastores()
- .define("string")
- .withExistingWorkspace("test-rg", "my-aml-workspace")
- .withProperties(new AzureFileDatastore().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withCredentials(new AccountKeyDatastoreCredentials()
- .withSecrets(new AccountKeyDatastoreSecrets().withKey("fakeTokenPlaceholder")))
- .withAccountName("string")
- .withFileShareName("string")
- .withEndpoint("string")
- .withProtocol("string"))
- .withSkipValidation(false)
- .create();
+ 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);
}
+}
+```
- // 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;
+### ConnectionRaiBlocklistItem_Get
+
+```java
+/**
+ * Samples for ConnectionRaiBlocklistItem Get.
+ */
+public final class ConnectionRaiBlocklistItemGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-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);
}
}
```
-### Datastores_Delete
+### ConnectionRaiBlocklistItemsOperation_List
```java
/**
- * Samples for Datastores Delete.
+ * Samples for ConnectionRaiBlocklistItemsOperation List.
*/
-public final class DatastoresDeleteSamples {
+public final class ConnectionRaiBlocklistItemsOperationListSamples {
/*
* 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/2025-01-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklistItem/list.json
*/
/**
- * Sample code: Delete datastore.
+ * Sample code: List RaiBlocklist Items.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteDatastore(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.datastores()
- .deleteWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ public static void listRaiBlocklistItems(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connectionRaiBlocklistItemsOperations()
+ .list("test-rg", "aml-workspace-name", "testConnection", "raiBlocklistName", null,
+ com.azure.core.util.Context.NONE);
}
}
```
-### Datastores_Get
+### ConnectionRaiBlocklistOperation_Create
```java
+import com.azure.resourcemanager.machinelearning.models.RaiBlocklistProperties;
+
/**
- * Samples for Datastores Get.
+ * Samples for ConnectionRaiBlocklistOperation Create.
*/
-public final class DatastoresGetSamples {
+public final class ConnectionRaiBlocklistOperationCreateSamples {
/*
* 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/2025-01-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklist/create.json
*/
/**
- * Sample code: Get datastore.
+ * Sample code: Create Rai Blocklist.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getDatastore(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.datastores().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ 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();
}
}
```
-### Datastores_List
+### ConnectionRaiBlocklistOperation_Delete
```java
-import java.util.Arrays;
-
/**
- * Samples for Datastores List.
+ * Samples for ConnectionRaiBlocklistOperation Delete.
*/
-public final class DatastoresListSamples {
+public final class ConnectionRaiBlocklistOperationDeleteSamples {
/*
* 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/2025-01-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklist/delete.json
*/
/**
- * Sample code: List datastores.
+ * Sample code: Delete Rai Blocklist.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listDatastores(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.datastores()
- .list("test-rg", "my-aml-workspace", null, 1, false, Arrays.asList("string"), "string", "string", false,
+ public static void deleteRaiBlocklist(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connectionRaiBlocklistOperations()
+ .delete("test-rg", "aml-workspace-name", "testConnection", "raiBlocklistName", null,
com.azure.core.util.Context.NONE);
}
}
```
-### Datastores_ListSecrets
+### ConnectionRaiBlocklistOperation_Get
```java
/**
- * Samples for Datastores ListSecrets.
+ * Samples for ConnectionRaiBlocklistOperation Get.
*/
-public final class DatastoresListSecretsSamples {
+public final class ConnectionRaiBlocklistOperationGetSamples {
/*
* 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/2025-01-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklist/get.json
*/
/**
- * Sample code: Get datastore secrets.
+ * Sample code: Get Rai Blocklist.
*
* @param manager Entry point to MachineLearningManager.
*/
- 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);
+ 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);
}
}
```
-### EnvironmentContainers_CreateOrUpdate
+### ConnectionRaiBlocklists_List
```java
-import com.azure.resourcemanager.machinelearning.models.EnvironmentContainerProperties;
-import java.util.HashMap;
-import java.util.Map;
-
/**
- * Samples for EnvironmentContainers CreateOrUpdate.
+ * Samples for ConnectionRaiBlocklists List.
*/
-public final class EnvironmentContainersCreateOrUpdateSamples {
+public final class ConnectionRaiBlocklistsListSamples {
/*
* 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/2025-01-01-
+ * preview/examples/WorkspaceConnection/RaiBlocklist/list.json
*/
/**
- * Sample code: CreateOrUpdate Workspace Environment Container.
+ * Sample code: List Rai Blocklist.
*
* @param manager Entry point to MachineLearningManager.
*/
- 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();
+ public static void listRaiBlocklist(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connectionRaiBlocklists()
+ .list("test-rg", "aml-workspace-name", "testConnection", null, 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;
+### ConnectionRaiPolicies_List
+
+```java
+/**
+ * Samples for ConnectionRaiPolicies List.
+ */
+public final class ConnectionRaiPoliciesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-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", null, com.azure.core.util.Context.NONE);
}
}
```
-### EnvironmentContainers_Delete
+### 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 EnvironmentContainers Delete.
+ * Samples for ConnectionRaiPolicyOperation Create.
*/
-public final class EnvironmentContainersDeleteSamples {
+public final class ConnectionRaiPolicyOperationCreateSamples {
/*
* 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/2025-01-01-
+ * preview/examples/WorkspaceConnection/RaiPolicy/create.json
*/
/**
- * Sample code: Delete Workspace Environment Container.
+ * Sample code: Create Rai policy.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void
- deleteWorkspaceEnvironmentContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.environmentContainers()
- .deleteWithResponse("testrg123", "testworkspace", "testContainer", com.azure.core.util.Context.NONE);
+ 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();
}
}
```
-### EnvironmentContainers_Get
+### ConnectionRaiPolicyOperation_Delete
```java
/**
- * Samples for EnvironmentContainers Get.
+ * Samples for ConnectionRaiPolicyOperation Delete.
*/
-public final class EnvironmentContainersGetSamples {
+public final class ConnectionRaiPolicyOperationDeleteSamples {
/*
* 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/2025-01-01-
+ * preview/examples/WorkspaceConnection/RaiPolicy/delete.json
*/
/**
- * Sample code: Get Workspace Environment Container.
+ * Sample code: Delete Rai policy.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void
- getWorkspaceEnvironmentContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.environmentContainers()
- .getWithResponse("testrg123", "testworkspace", "testEnvironment", com.azure.core.util.Context.NONE);
+ public static void deleteRaiPolicy(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.connectionRaiPolicyOperations()
+ .delete("test-rg", "aml-workspace-name", "testConnection", "raiPolicyName", null,
+ com.azure.core.util.Context.NONE);
}
}
```
-### EnvironmentContainers_List
+### ConnectionRaiPolicyOperation_Get
```java
-
/**
- * Samples for EnvironmentContainers List.
+ * Samples for ConnectionRaiPolicyOperation Get.
*/
-public final class EnvironmentContainersListSamples {
+public final class ConnectionRaiPolicyOperationGetSamples {
/*
* 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/2025-01-01-
+ * preview/examples/WorkspaceConnection/RaiPolicy/get.json
*/
/**
- * Sample code: List Workspace Environment Container.
+ * Sample code: Get Rai policy.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void
- listWorkspaceEnvironmentContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.environmentContainers()
- .list("testrg123", "testworkspace", null, null, com.azure.core.util.Context.NONE);
+ 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);
}
}
```
-### EnvironmentVersions_CreateOrUpdate
+### DataContainers_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.BuildContext;
-import com.azure.resourcemanager.machinelearning.models.EnvironmentVersionProperties;
-import com.azure.resourcemanager.machinelearning.models.InferenceContainerProperties;
-import com.azure.resourcemanager.machinelearning.models.Route;
+import com.azure.resourcemanager.machinelearning.models.DataContainerProperties;
+import com.azure.resourcemanager.machinelearning.models.DataType;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for EnvironmentVersions CreateOrUpdate.
+ * Samples for DataContainers CreateOrUpdate.
*/
-public final class EnvironmentVersionsCreateOrUpdateSamples {
+public final class DataContainersCreateOrUpdateSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/DataContainer/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Workspace Environment Version.
+ * Sample code: CreateOrUpdate Workspace Data Container.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateWorkspaceEnvironmentVersion(
+ public static void
+ createOrUpdateWorkspaceDataContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.dataContainers()
+ .define("datacontainer123")
+ .withExistingWorkspace("testrg123", "workspace123")
+ .withProperties(new DataContainerProperties().withDescription("string")
+ .withProperties(mapOf("properties1", "value1", "properties2", "value2"))
+ .withTags(mapOf("tag1", "value1", "tag2", "value2"))
+ .withDataType(DataType.fromString("UriFile")))
+ .create();
+ }
+
+ // 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/2025-01-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/2025-01-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/2025-01-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.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/2025-01-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.environmentVersions()
+ manager.dataVersions()
.define("string")
- .withExistingEnvironment("test-rg", "my-aml-workspace", "string")
- .withProperties(new EnvironmentVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
+ .withExistingData("test-rg", "my-aml-workspace", "string")
+ .withProperties(new UriFileDataVersion().withDescription("string")
.withProperties(mapOf("string", "string"))
+ .withTags(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))))
+ .withDataUri("string"))
.create();
}
@@ -2658,194 +3084,1850 @@ public final class EnvironmentVersionsCreateOrUpdateSamples {
}
```
-### EnvironmentVersions_Delete
+### DataVersions_Delete
```java
/**
- * Samples for EnvironmentVersions Delete.
+ * Samples for DataVersions Delete.
*/
-public final class EnvironmentVersionsDeleteSamples {
+public final class DataVersionsDeleteSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/DataVersionBase/delete.json
*/
/**
- * Sample code: Delete Workspace Environment Version.
+ * Sample code: Delete Workspace Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
public static void
- deleteWorkspaceEnvironmentVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.environmentVersions()
+ deleteWorkspaceDataVersionBase(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.dataVersions()
.deleteWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### EnvironmentVersions_Get
+### DataVersions_Get
```java
/**
- * Samples for EnvironmentVersions Get.
+ * Samples for DataVersions Get.
*/
-public final class EnvironmentVersionsGetSamples {
+public final class DataVersionsGetSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/DataVersionBase/get.json
*/
/**
- * Sample code: Get Workspace Environment Version.
+ * Sample code: Get Workspace Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
public static void
- getWorkspaceEnvironmentVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.environmentVersions()
+ getWorkspaceDataVersionBase(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.dataVersions()
.getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### EnvironmentVersions_List
+### DataVersions_List
```java
/**
- * Samples for EnvironmentVersions List.
+ * Samples for DataVersions List.
*/
-public final class EnvironmentVersionsListSamples {
+public final class DataVersionsListSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/DataVersionBase/list.json
*/
/**
- * Sample code: List Workspace Environment Version.
+ * Sample code: List Workspace Data Version Base.
*
* @param manager Entry point to MachineLearningManager.
*/
public static void
- listWorkspaceEnvironmentVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.environmentVersions()
- .list("test-rg", "my-aml-workspace", "string", "string", 1, null, null, com.azure.core.util.Context.NONE);
+ 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/2025-01-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;
+import com.azure.resourcemanager.machinelearning.models.AzureFileDatastore;
+import com.azure.resourcemanager.machinelearning.models.ServicePrincipalDatastoreCredentials;
+import com.azure.resourcemanager.machinelearning.models.ServicePrincipalDatastoreSecrets;
+import java.util.HashMap;
+import java.util.Map;
+import java.util.UUID;
+
+/**
+ * Samples for Datastores CreateOrUpdate.
+ */
+public final class DatastoresCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate datastore (Azure Data Lake Gen1 w/ ServicePrincipal).
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateDatastoreAzureDataLakeGen1WServicePrincipal(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.datastores()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(new AzureDataLakeGen1Datastore().withDescription("string")
+ .withTags(mapOf("string", "string"))
+ .withCredentials(new ServicePrincipalDatastoreCredentials().withAuthorityUrl("string")
+ .withClientId(UUID.fromString("00000000-1111-2222-3333-444444444444"))
+ .withResourceUrl("string")
+ .withSecrets(new ServicePrincipalDatastoreSecrets().withClientSecret("fakeTokenPlaceholder"))
+ .withTenantId(UUID.fromString("00000000-1111-2222-3333-444444444444")))
+ .withStoreName("string"))
+ .withSkipValidation(false)
+ .create();
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate datastore (Azure Data Lake Gen2 w/ Service Principal).
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateDatastoreAzureDataLakeGen2WServicePrincipal(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.datastores()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(new AzureDataLakeGen2Datastore().withDescription("string")
+ .withTags(mapOf("string", "string"))
+ .withCredentials(new ServicePrincipalDatastoreCredentials().withAuthorityUrl("string")
+ .withClientId(UUID.fromString("00000000-1111-2222-3333-444444444444"))
+ .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();
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate datastore (AzureBlob w/ AccountKey).
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateDatastoreAzureBlobWAccountKey(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.datastores()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(new AzureBlobDatastore().withDescription("string")
+ .withTags(mapOf("string", "string"))
+ .withCredentials(new AccountKeyDatastoreCredentials()
+ .withSecrets(new AccountKeyDatastoreSecrets().withKey("fakeTokenPlaceholder")))
+ .withAccountName("string")
+ .withContainerName("string")
+ .withEndpoint("core.windows.net")
+ .withProtocol("https"))
+ .withSkipValidation(false)
+ .create();
+ }
+
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate datastore (Azure File store w/ AccountKey).
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateDatastoreAzureFileStoreWAccountKey(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.datastores()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(new AzureFileDatastore().withDescription("string")
+ .withTags(mapOf("string", "string"))
+ .withCredentials(new AccountKeyDatastoreCredentials()
+ .withSecrets(new AccountKeyDatastoreSecrets().withKey("fakeTokenPlaceholder")))
+ .withAccountName("string")
+ .withEndpoint("string")
+ .withFileShareName("string")
+ .withProtocol("string"))
+ .withSkipValidation(false)
+ .create();
+ }
+
+ // 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;
+ }
+}
+```
+
+### Datastores_Delete
+
+```java
+/**
+ * Samples for Datastores Delete.
+ */
+public final class DatastoresDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Datastore/delete.json
+ */
+ /**
+ * Sample code: Delete datastore.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteDatastore(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.datastores()
+ .deleteWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Datastores_Get
+
+```java
+/**
+ * Samples for Datastores Get.
+ */
+public final class DatastoresGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Datastore/get.json
+ */
+ /**
+ * Sample code: Get datastore.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getDatastore(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.datastores().getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Datastores_List
+
+```java
+import java.util.Arrays;
+
+/**
+ * Samples for Datastores List.
+ */
+public final class DatastoresListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Datastore/list.json
+ */
+ /**
+ * Sample code: List datastores.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listDatastores(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.datastores()
+ .list("test-rg", "my-aml-workspace", null, 1, false, Arrays.asList("string"), "string", "string", false,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### 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/preview/2025-01-01-
+ * preview/examples/Datastore/listSecrets.json
+ */
+ /**
+ * Sample code: Get datastore secrets.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getDatastoreSecrets(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.datastores()
+ .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/2025-01-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/2025-01-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/2025-01-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/2025-01-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, null, 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/2025-01-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/2025-01-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/2025-01-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/2025-01-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", null,
+ 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/2025-01-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/2025-01-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/2025-01-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);
+ }
+}
+```
+
+### EnvironmentContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.EnvironmentContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for EnvironmentContainers CreateOrUpdate.
+ */
+public final class EnvironmentContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/EnvironmentContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Environment Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceEnvironmentContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.environmentContainers()
+ .define("testEnvironment")
+ .withExistingWorkspace("testrg123", "testworkspace")
+ .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
+ @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;
+ }
+}
+```
+
+### EnvironmentContainers_Delete
+
+```java
+/**
+ * Samples for EnvironmentContainers Delete.
+ */
+public final class EnvironmentContainersDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/EnvironmentContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Environment Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ deleteWorkspaceEnvironmentContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.environmentContainers()
+ .deleteWithResponse("testrg123", "testworkspace", "testContainer", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EnvironmentContainers_Get
+
+```java
+/**
+ * Samples for EnvironmentContainers Get.
+ */
+public final class EnvironmentContainersGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/EnvironmentContainer/get.json
+ */
+ /**
+ * Sample code: Get Workspace Environment Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ getWorkspaceEnvironmentContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.environmentContainers()
+ .getWithResponse("testrg123", "testworkspace", "testEnvironment", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EnvironmentContainers_List
+
+```java
+
+/**
+ * Samples for EnvironmentContainers List.
+ */
+public final class EnvironmentContainersListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/EnvironmentContainer/list.json
+ */
+ /**
+ * Sample code: List Workspace Environment Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ listWorkspaceEnvironmentContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.environmentContainers()
+ .list("testrg123", "testworkspace", null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EnvironmentVersions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.BuildContext;
+import com.azure.resourcemanager.machinelearning.models.EnvironmentVersionProperties;
+import com.azure.resourcemanager.machinelearning.models.InferenceContainerProperties;
+import com.azure.resourcemanager.machinelearning.models.Route;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for EnvironmentVersions CreateOrUpdate.
+ */
+public final class EnvironmentVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/EnvironmentVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Environment Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ 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")
+ .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
+ @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;
+ }
+}
+```
+
+### EnvironmentVersions_Delete
+
+```java
+/**
+ * Samples for EnvironmentVersions Delete.
+ */
+public final class EnvironmentVersionsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/EnvironmentVersion/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Environment Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ deleteWorkspaceEnvironmentVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.environmentVersions()
+ .deleteWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EnvironmentVersions_Get
+
+```java
+/**
+ * Samples for EnvironmentVersions Get.
+ */
+public final class EnvironmentVersionsGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/EnvironmentVersion/get.json
+ */
+ /**
+ * Sample code: Get Workspace Environment Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ getWorkspaceEnvironmentVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.environmentVersions()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EnvironmentVersions_List
+
+```java
+
+/**
+ * Samples for EnvironmentVersions List.
+ */
+public final class EnvironmentVersionsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/EnvironmentVersion/list.json
+ */
+ /**
+ * Sample code: List Workspace Environment Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ listWorkspaceEnvironmentVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.environmentVersions()
+ .list("test-rg", "my-aml-workspace", "string", "string", 1, null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### EnvironmentVersions_Publish
+
+```java
+import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
+
+/**
+ * Samples for EnvironmentVersions Publish.
+ */
+public final class EnvironmentVersionsPublishSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/EnvironmentVersion/publish.json
+ */
+ /**
+ * Sample code: Publish Workspace Environment Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ publishWorkspaceEnvironmentVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.environmentVersions()
+ .publish("test-rg", "my-aml-workspace", "string", "string",
+ new DestinationAsset().withDestinationName("string")
+ .withDestinationVersion("string")
+ .withRegistryName("string"),
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Features_Get
+
+```java
+/**
+ * Samples for Features Get.
+ */
+public final class FeaturesGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Feature/get.json
+ */
+ /**
+ * Sample code: Get Feature.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getFeature(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.features()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", "string", "string",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### Features_List
+
+```java
+
+/**
+ * Samples for Features List.
+ */
+public final class FeaturesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Feature/list.json
+ */
+ /**
+ * Sample code: List Feature.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listFeature(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.features()
+ .list("test-rg", "my-aml-workspace", "string", "string", null, "string", "string", "string", null, null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturesetContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.FeaturesetContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for FeaturesetContainers CreateOrUpdate.
+ */
+public final class FeaturesetContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/FeaturesetContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Featureset Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceFeaturesetContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.featuresetContainers()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(new FeaturesetContainerProperties().withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsArchived(false))
+ .create();
+ }
+
+ // 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;
+ }
+}
+```
+
+### FeaturesetContainers_Delete
+
+```java
+/**
+ * Samples for FeaturesetContainers Delete.
+ */
+public final class FeaturesetContainersDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/FeaturesetContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Featureset Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ deleteWorkspaceFeaturesetContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.featuresetContainers()
+ .delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturesetContainers_GetEntity
+
+```java
+/**
+ * Samples for FeaturesetContainers GetEntity.
+ */
+public final class FeaturesetContainersGetEntitySamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/FeaturesetContainer/getEntity.json
+ */
+ /**
+ * Sample code: GetEntity Workspace Featureset Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getEntityWorkspaceFeaturesetContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.featuresetContainers()
+ .getEntityWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturesetContainers_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/**
+ * Samples for FeaturesetContainers List.
+ */
+public final class FeaturesetContainersListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/FeaturesetContainer/list.json
+ */
+ /**
+ * Sample code: List Workspace Featureset Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ listWorkspaceFeaturesetContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.featuresetContainers()
+ .list("test-rg", "my-aml-workspace", null, "string", ListViewType.ARCHIVED_ONLY, null, null, null, null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturesetVersions_Backfill
+
+```java
+import com.azure.resourcemanager.machinelearning.models.DataAvailabilityStatus;
+import com.azure.resourcemanager.machinelearning.models.FeatureWindow;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetVersionBackfillRequest;
+import com.azure.resourcemanager.machinelearning.models.MaterializationComputeResource;
+import java.time.OffsetDateTime;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for FeaturesetVersions Backfill.
+ */
+public final class FeaturesetVersionsBackfillSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/FeaturesetVersion/backfill.json
+ */
+ /**
+ * Sample code: Backfill Workspace Featureset Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ backfillWorkspaceFeaturesetVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.featuresetVersions()
+ .backfill("test-rg", "my-aml-workspace", "string", "string",
+ 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")
+ .withResource(new MaterializationComputeResource().withInstanceType("string"))
+ .withSparkConfiguration(mapOf("string", "string"))
+ .withTags(mapOf("string", "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;
+ }
+}
+```
+
+### FeaturesetVersions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.EmailNotificationEnableType;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetSpecification;
+import com.azure.resourcemanager.machinelearning.models.FeaturesetVersionProperties;
+import com.azure.resourcemanager.machinelearning.models.MaterializationComputeResource;
+import com.azure.resourcemanager.machinelearning.models.MaterializationSettings;
+import com.azure.resourcemanager.machinelearning.models.MaterializationStoreType;
+import com.azure.resourcemanager.machinelearning.models.NotificationSetting;
+import com.azure.resourcemanager.machinelearning.models.RecurrenceFrequency;
+import com.azure.resourcemanager.machinelearning.models.RecurrenceSchedule;
+import com.azure.resourcemanager.machinelearning.models.RecurrenceTrigger;
+import com.azure.resourcemanager.machinelearning.models.WeekDay;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for FeaturesetVersions CreateOrUpdate.
+ */
+public final class FeaturesetVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/FeaturesetVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Featureset Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceFeaturesetVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.featuresetVersions()
+ .define("string")
+ .withExistingFeatureset("test-rg", "my-aml-workspace", "string")
+ .withProperties(new FeaturesetVersionProperties().withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .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"))
+ .withStage("string"))
+ .create();
+ }
+
+ // 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;
+ }
+}
+```
+
+### FeaturesetVersions_Delete
+
+```java
+/**
+ * Samples for FeaturesetVersions Delete.
+ */
+public final class FeaturesetVersionsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/FeaturesetVersion/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Featureset Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ deleteWorkspaceFeaturesetVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.featuresetVersions()
+ .delete("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturesetVersions_Get
+
+```java
+/**
+ * Samples for FeaturesetVersions Get.
+ */
+public final class FeaturesetVersionsGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/FeaturesetVersion/get.json
+ */
+ /**
+ * Sample code: Get Workspace Featureset Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ getWorkspaceFeaturesetVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.featuresetVersions()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturesetVersions_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/**
+ * Samples for FeaturesetVersions List.
+ */
+public final class FeaturesetVersionsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/FeaturesetVersion/list.json
+ */
+ /**
+ * Sample code: List Workspace Featureset Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ listWorkspaceFeaturesetVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.featuresetVersions()
+ .list("test-rg", "my-aml-workspace", "string", null, "string", ListViewType.ALL, null, null, null, null,
+ null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturestoreEntityContainers_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.FeaturestoreEntityContainerProperties;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for FeaturestoreEntityContainers CreateOrUpdate.
+ */
+public final class FeaturestoreEntityContainersCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/FeaturestoreEntityContainer/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Featurestore Entity Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceFeaturestoreEntityContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.featurestoreEntityContainers()
+ .define("string")
+ .withExistingWorkspace("test-rg", "my-aml-workspace")
+ .withProperties(new FeaturestoreEntityContainerProperties().withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsArchived(false))
+ .create();
+ }
+
+ // 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;
+ }
+}
+```
+
+### FeaturestoreEntityContainers_Delete
+
+```java
+/**
+ * Samples for FeaturestoreEntityContainers Delete.
+ */
+public final class FeaturestoreEntityContainersDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/FeaturestoreEntityContainer/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Featurestore Entity Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceFeaturestoreEntityContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.featurestoreEntityContainers()
+ .delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturestoreEntityContainers_GetEntity
+
+```java
+/**
+ * Samples for FeaturestoreEntityContainers GetEntity.
+ */
+public final class FeaturestoreEntityContainersGetEntitySamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/FeaturestoreEntityContainer/getEntity.json
+ */
+ /**
+ * Sample code: GetEntity Workspace Featurestore Entity Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getEntityWorkspaceFeaturestoreEntityContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.featurestoreEntityContainers()
+ .getEntityWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturestoreEntityContainers_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/**
+ * Samples for FeaturestoreEntityContainers List.
+ */
+public final class FeaturestoreEntityContainersListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/FeaturestoreEntityContainer/list.json
+ */
+ /**
+ * Sample code: List Workspace Featurestore Entity Container.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceFeaturestoreEntityContainer(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.featurestoreEntityContainers()
+ .list("test-rg", "my-aml-workspace", null, "string", ListViewType.ALL, null, null, null, null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturestoreEntityVersions_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.FeatureDataType;
+import com.azure.resourcemanager.machinelearning.models.FeaturestoreEntityVersionProperties;
+import com.azure.resourcemanager.machinelearning.models.IndexColumn;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for FeaturestoreEntityVersions CreateOrUpdate.
+ */
+public final class FeaturestoreEntityVersionsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/FeaturestoreEntityVersion/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Featurestore Entity Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceFeaturestoreEntityVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.featurestoreEntityVersions()
+ .define("string")
+ .withExistingFeaturestoreEntity("test-rg", "my-aml-workspace", "string")
+ .withProperties(
+ new FeaturestoreEntityVersionProperties().withDescription("string")
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
+ .withIsAnonymous(false)
+ .withIsArchived(false)
+ .withIndexColumns(Arrays
+ .asList(new IndexColumn().withColumnName("string").withDataType(FeatureDataType.DATETIME))))
+ .create();
+ }
+
+ // 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;
+ }
+}
+```
+
+### FeaturestoreEntityVersions_Delete
+
+```java
+/**
+ * Samples for FeaturestoreEntityVersions Delete.
+ */
+public final class FeaturestoreEntityVersionsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/FeaturestoreEntityVersion/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Featurestore Entity Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void deleteWorkspaceFeaturestoreEntityVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.featurestoreEntityVersions()
+ .delete("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturestoreEntityVersions_Get
+
+```java
+/**
+ * Samples for FeaturestoreEntityVersions Get.
+ */
+public final class FeaturestoreEntityVersionsGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/FeaturestoreEntityVersion/get.json
+ */
+ /**
+ * Sample code: Get Workspace Featurestore Entity Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void getWorkspaceFeaturestoreEntityVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.featurestoreEntityVersions()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### FeaturestoreEntityVersions_List
+
+```java
+import com.azure.resourcemanager.machinelearning.models.ListViewType;
+
+/**
+ * Samples for FeaturestoreEntityVersions List.
+ */
+public final class FeaturestoreEntityVersionsListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/FeaturestoreEntityVersion/list.json
+ */
+ /**
+ * Sample code: List Workspace Featurestore Entity Version.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void listWorkspaceFeaturestoreEntityVersion(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.featurestoreEntityVersions()
+ .list("test-rg", "my-aml-workspace", "string", null, "string", ListViewType.ACTIVE_ONLY, null, null, null,
+ null, null, null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### InferenceEndpoints_CreateOrUpdate
+
+```java
+import com.azure.resourcemanager.machinelearning.models.AuthMode;
+import com.azure.resourcemanager.machinelearning.models.InferenceEndpointProperties;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.RequestConfiguration;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.StringKeyValuePair;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import java.time.Duration;
+import java.util.Arrays;
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Samples for InferenceEndpoints CreateOrUpdate.
+ */
+public final class InferenceEndpointsCreateOrUpdateSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/InferenceEndpoint/createOrUpdate.json
+ */
+ /**
+ * Sample code: CreateOrUpdate Workspace Inference Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void createOrUpdateWorkspaceInferenceEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.inferenceEndpoints()
+ .define("testEndpointName")
+ .withRegion("string")
+ .withExistingInferencePool("test-rg1", "my-aml-workspace", "string")
+ .withProperties(new InferenceEndpointProperties().withDescription("string")
+ .withProperties(
+ Arrays.asList(new StringKeyValuePair().withKey("fakeTokenPlaceholder").withValue("string")))
+ .withAuthMode(AuthMode.AAD)
+ .withGroupName("string")
+ .withRequestConfiguration(new RequestConfiguration().withMaxConcurrentRequestsPerInstance(1)
+ .withRequestTimeout(Duration.parse("PT5M"))))
+ .withTags(mapOf())
+ .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(new Sku().withName("string")
+ .withTier(SkuTier.STANDARD)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
+ .create();
+ }
+
+ // 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;
+ }
+}
+```
+
+### InferenceEndpoints_Delete
+
+```java
+/**
+ * Samples for InferenceEndpoints Delete.
+ */
+public final class InferenceEndpointsDeleteSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Workspace/InferenceEndpoint/delete.json
+ */
+ /**
+ * Sample code: Delete Workspace Inference Endpoint.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ deleteWorkspaceInferenceEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.inferenceEndpoints()
+ .delete("test-rg", "my-aml-workspace", "string", "testEndpointName", com.azure.core.util.Context.NONE);
}
}
```
-### EnvironmentVersions_Publish
+### InferenceEndpoints_Get
```java
-import com.azure.resourcemanager.machinelearning.models.DestinationAsset;
-
/**
- * Samples for EnvironmentVersions Publish.
+ * Samples for InferenceEndpoints Get.
*/
-public final class EnvironmentVersionsPublishSamples {
+public final class InferenceEndpointsGetSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/InferenceEndpoint/get.json
*/
/**
- * Sample code: Publish Workspace Environment Version.
+ * Sample code: Get Workspace Inference Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
public static void
- 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"),
+ getWorkspaceInferenceEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.inferenceEndpoints()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", "testEndpointName",
com.azure.core.util.Context.NONE);
}
}
```
-### Features_Get
+### InferenceEndpoints_List
```java
+import com.azure.resourcemanager.machinelearning.models.OrderString;
+
/**
- * Samples for Features Get.
+ * Samples for InferenceEndpoints List.
*/
-public final class FeaturesGetSamples {
+public final class InferenceEndpointsListSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/InferenceEndpoint/list.json
*/
/**
- * Sample code: Get Feature.
+ * Sample code: List Workspace Inference Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getFeature(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.features()
- .getWithResponse("test-rg", "my-aml-workspace", "string", "string", "string",
+ public static void
+ listWorkspaceInferenceEndpoint(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.inferenceEndpoints()
+ .list("test-rg", "my-aml-workspace", "string", 1, null, "string", "string", OrderString.CREATED_AT_ASC,
com.azure.core.util.Context.NONE);
}
}
```
-### Features_List
+### InferenceEndpoints_Update
```java
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import java.io.IOException;
/**
- * Samples for Features List.
+ * Samples for InferenceEndpoints Update.
*/
-public final class FeaturesListSamples {
+public final class InferenceEndpointsUpdateSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/InferenceEndpoint/update.json
*/
/**
- * Sample code: List Feature.
+ * Sample code: Update Workspace Inference Endpoint.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listFeature(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.features()
- .list("test-rg", "my-aml-workspace", "string", "string", null, "string", "string", "string", null, null,
+ public static void updateWorkspaceInferenceEndpoint(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ manager.inferenceEndpoints()
+ .update("test-rg", "my-aml-workspace", "string", "testEndpointName",
+ SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{\"tags\":{}}", Object.class, SerializerEncoding.JSON),
com.azure.core.util.Context.NONE);
}
}
```
-### FeaturesetContainers_CreateOrUpdate
+### InferenceGroups_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.FeaturesetContainerProperties;
+import com.azure.resourcemanager.machinelearning.models.GroupEnvironmentConfiguration;
+import com.azure.resourcemanager.machinelearning.models.GroupModelConfiguration;
+import com.azure.resourcemanager.machinelearning.models.InferenceGroupProperties;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.ProbeSettings;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.StringKeyValuePair;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import java.time.Duration;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for FeaturesetContainers CreateOrUpdate.
+ * Samples for InferenceGroups CreateOrUpdate.
*/
-public final class FeaturesetContainersCreateOrUpdateSamples {
+public final class InferenceGroupsCreateOrUpdateSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/InferenceGroup/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Workspace Featureset Container.
+ * Sample code: CreateOrUpdate Workspace Inference Group.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateWorkspaceFeaturesetContainer(
+ public static void createOrUpdateWorkspaceInferenceGroup(
com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.featuresetContainers()
+ manager.inferenceGroups()
.define("string")
- .withExistingWorkspace("test-rg", "my-aml-workspace")
- .withProperties(new FeaturesetContainerProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))
- .withIsArchived(false))
+ .withRegion("string")
+ .withExistingInferencePool("test-rg", "my-aml-workspace", "string")
+ .withProperties(new InferenceGroupProperties().withDescription("string")
+ .withProperties(
+ Arrays.asList(new StringKeyValuePair().withKey("fakeTokenPlaceholder").withValue("string")))
+ .withEnvironmentConfiguration(new GroupEnvironmentConfiguration()
+ .withEnvironmentId("azureml://registries/test-registry/models/enginefeed/versions/1")
+ .withEnvironmentVariables(
+ Arrays.asList(new StringKeyValuePair().withKey("fakeTokenPlaceholder").withValue("string")))
+ .withLivenessProbe(new ProbeSettings().withFailureThreshold(1)
+ .withInitialDelay(Duration.parse("PT5M"))
+ .withPeriod(Duration.parse("PT5M"))
+ .withSuccessThreshold(1)
+ .withTimeout(Duration.parse("PT5M")))
+ .withReadinessProbe(new ProbeSettings().withFailureThreshold(1)
+ .withInitialDelay(Duration.parse("PT5M"))
+ .withPeriod(Duration.parse("PT5M"))
+ .withSuccessThreshold(1)
+ .withTimeout(Duration.parse("PT5M")))
+ .withStartupProbe(new ProbeSettings().withFailureThreshold(1)
+ .withInitialDelay(Duration.parse("PT5M"))
+ .withPeriod(Duration.parse("PT5M"))
+ .withSuccessThreshold(1)
+ .withTimeout(Duration.parse("PT5M"))))
+ .withModelConfiguration(new GroupModelConfiguration()
+ .withModelId("azureml://registries/test-registry/models/modelabc/versions/1"))
+ .withNodeSkuType("string")
+ .withScaleUnitSize(1))
+ .withTags(mapOf())
+ .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(new Sku().withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
.create();
}
@@ -2863,326 +4945,329 @@ public final class FeaturesetContainersCreateOrUpdateSamples {
}
```
-### FeaturesetContainers_Delete
+### InferenceGroups_Delete
```java
/**
- * Samples for FeaturesetContainers Delete.
+ * Samples for InferenceGroups Delete.
*/
-public final class FeaturesetContainersDeleteSamples {
+public final class InferenceGroupsDeleteSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/InferenceGroup/delete.json
*/
/**
- * Sample code: Delete Workspace Featureset Container.
+ * Sample code: Delete Workspace Inference Group.
*
* @param manager Entry point to MachineLearningManager.
*/
public static void
- deleteWorkspaceFeaturesetContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.featuresetContainers()
- .delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ deleteWorkspaceInferenceGroup(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.inferenceGroups()
+ .delete("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### FeaturesetContainers_GetEntity
+### InferenceGroups_Get
```java
/**
- * Samples for FeaturesetContainers GetEntity.
+ * Samples for InferenceGroups Get.
*/
-public final class FeaturesetContainersGetEntitySamples {
+public final class InferenceGroupsGetSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/InferenceGroup/get.json
*/
/**
- * Sample code: GetEntity Workspace Featureset Container.
+ * Sample code: Get Workspace Inference Group.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getEntityWorkspaceFeaturesetContainer(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.featuresetContainers()
- .getEntityWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ public static void
+ getWorkspaceInferenceGroup(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.inferenceGroups()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### FeaturesetContainers_List
+### InferenceGroups_GetDeltaModelsStatusAsync
```java
-import com.azure.resourcemanager.machinelearning.models.ListViewType;
+import com.azure.resourcemanager.machinelearning.models.DeltaModelStatusRequest;
+import java.util.Arrays;
/**
- * Samples for FeaturesetContainers List.
+ * Samples for InferenceGroups GetDeltaModelsStatusAsync.
*/
-public final class FeaturesetContainersListSamples {
+public final class InferenceGroupsGetDeltaModelsStatusAsyncSamples {
/*
* 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/2025-01-01-
+ * preview/examples/InferenceGroup/getDeltaModelsStatusAsync.json
*/
/**
- * Sample code: List Workspace Featureset Container.
+ * Sample code: GetDeltaModelsStatusAsync Inference Group.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void
- listWorkspaceFeaturesetContainer(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.featuresetContainers()
- .list("test-rg", "my-aml-workspace", null, "string", ListViewType.ARCHIVED_ONLY, null, null, null, null,
+ public static void getDeltaModelsStatusAsyncInferenceGroup(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.inferenceGroups()
+ .getDeltaModelsStatusAsyncWithResponse("test-rg", "my-aml-workspace", "string", "string",
+ new DeltaModelStatusRequest().withDeltaModels(Arrays.asList("string"))
+ .withTargetBaseModel("azureml://registries/test-registry/models/modelabc/versions/1"),
com.azure.core.util.Context.NONE);
}
}
```
-### FeaturesetVersions_Backfill
+### InferenceGroups_GetStatus
```java
-import com.azure.resourcemanager.machinelearning.models.DataAvailabilityStatus;
-import com.azure.resourcemanager.machinelearning.models.FeaturesetVersionBackfillRequest;
-import com.azure.resourcemanager.machinelearning.models.FeatureWindow;
-import com.azure.resourcemanager.machinelearning.models.MaterializationComputeResource;
-import java.time.OffsetDateTime;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
-
/**
- * Samples for FeaturesetVersions Backfill.
+ * Samples for InferenceGroups GetStatus.
*/
-public final class FeaturesetVersionsBackfillSamples {
+public final class InferenceGroupsGetStatusSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/InferenceGroup/getStatus.json
*/
/**
- * Sample code: Backfill Workspace Featureset Version.
+ * Sample code: GetStatus Workspace Inference Group.
*
* @param manager Entry point to MachineLearningManager.
*/
public static void
- 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")))
- .withDataAvailabilityStatus(Arrays.asList(DataAvailabilityStatus.NONE))
- .withJobId("string")
- .withTags(mapOf("string", "string"))
- .withResource(new MaterializationComputeResource().withInstanceType("string"))
- .withSparkConfiguration(mapOf("string", "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;
+ getStatusWorkspaceInferenceGroup(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.inferenceGroups()
+ .getStatusWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
}
}
```
-### FeaturesetVersions_CreateOrUpdate
+### InferenceGroups_List
```java
-import com.azure.resourcemanager.machinelearning.models.EmailNotificationEnableType;
-import com.azure.resourcemanager.machinelearning.models.FeaturesetSpecification;
-import com.azure.resourcemanager.machinelearning.models.FeaturesetVersionProperties;
-import com.azure.resourcemanager.machinelearning.models.MaterializationComputeResource;
-import com.azure.resourcemanager.machinelearning.models.MaterializationSettings;
-import com.azure.resourcemanager.machinelearning.models.MaterializationStoreType;
-import com.azure.resourcemanager.machinelearning.models.NotificationSetting;
-import com.azure.resourcemanager.machinelearning.models.RecurrenceFrequency;
-import com.azure.resourcemanager.machinelearning.models.RecurrenceSchedule;
-import com.azure.resourcemanager.machinelearning.models.RecurrenceTrigger;
-import com.azure.resourcemanager.machinelearning.models.WeekDay;
-import java.util.Arrays;
-import java.util.HashMap;
-import java.util.Map;
+import com.azure.resourcemanager.machinelearning.models.OrderString;
/**
- * Samples for FeaturesetVersions CreateOrUpdate.
+ * Samples for InferenceGroups List.
*/
-public final class FeaturesetVersionsCreateOrUpdateSamples {
+public final class InferenceGroupsListSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/InferenceGroup/list.json
*/
/**
- * Sample code: CreateOrUpdate Workspace Featureset Version.
+ * Sample code: List Workspace Inference Group.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateWorkspaceFeaturesetVersion(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.featuresetVersions()
- .define("string")
- .withExistingFeatureset("test-rg", "my-aml-workspace", "string")
- .withProperties(new FeaturesetVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))
- .withIsArchived(false)
- .withIsAnonymous(false)
- .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")))
- .create();
+ public static void
+ listWorkspaceInferenceGroup(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.inferenceGroups()
+ .list("test-rg", "my-aml-workspace", "string", 1, null, "string", "string", OrderString.CREATED_AT_DESC,
+ 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;
+### InferenceGroups_ListDeltaModelsAsync
+
+```java
+import com.azure.resourcemanager.machinelearning.models.DeltaModelListRequest;
+
+/**
+ * Samples for InferenceGroups ListDeltaModelsAsync.
+ */
+public final class InferenceGroupsListDeltaModelsAsyncSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/InferenceGroup/listDeltaModelsAsync.json
+ */
+ /**
+ * Sample code: ListDeltaModelsAsync Inference Group.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ listDeltaModelsAsyncInferenceGroup(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.inferenceGroups()
+ .listDeltaModelsAsync("test-rg", "my-aml-workspace", "string", "string",
+ new DeltaModelListRequest().withCount(-1)
+ .withSkipToken("fakeTokenPlaceholder")
+ .withTargetBaseModel("azureml://registries/test-registry/models/modelabc/versions/1"),
+ com.azure.core.util.Context.NONE);
}
}
```
-### FeaturesetVersions_Delete
+### InferenceGroups_ListSkus
```java
/**
- * Samples for FeaturesetVersions Delete.
+ * Samples for InferenceGroups ListSkus.
*/
-public final class FeaturesetVersionsDeleteSamples {
+public final class InferenceGroupsListSkusSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/InferenceGroup/listSkus.json
*/
/**
- * Sample code: Delete Workspace Featureset Version.
+ * Sample code: ListSkus Workspace Inference Group.
*
* @param manager Entry point to MachineLearningManager.
*/
public static void
- deleteWorkspaceFeaturesetVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.featuresetVersions()
- .delete("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ listSkusWorkspaceInferenceGroup(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.inferenceGroups()
+ .listSkus("test-rg", "my-aml-workspace", "string", "string", 1, null, com.azure.core.util.Context.NONE);
}
}
```
-### FeaturesetVersions_Get
+### InferenceGroups_ModifyDeltaModelsAsync
```java
+import com.azure.resourcemanager.machinelearning.models.DeltaModelModifyRequest;
+import java.util.Arrays;
+
/**
- * Samples for FeaturesetVersions Get.
+ * Samples for InferenceGroups ModifyDeltaModelsAsync.
*/
-public final class FeaturesetVersionsGetSamples {
+public final class InferenceGroupsModifyDeltaModelsAsyncSamples {
/*
* 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/2025-01-01-
+ * preview/examples/InferenceGroup/modifyDeltaModelsAsync.json
*/
/**
- * Sample code: Get Workspace Featureset Version.
+ * Sample code: ModifyDeltaModelsAsync Inference Group.
*
* @param manager Entry point to MachineLearningManager.
*/
public static void
- getWorkspaceFeaturesetVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.featuresetVersions()
- .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
+ modifyDeltaModelsAsyncInferenceGroup(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.inferenceGroups()
+ .modifyDeltaModelsAsync("test-rg", "my-aml-workspace", "string", "string",
+ new DeltaModelModifyRequest().withAddDeltaModels(Arrays.asList("string"))
+ .withRemoveDeltaModels(Arrays.asList("string"))
+ .withTargetBaseModel("azureml://registries/test-registry/models/modelabc/versions/1"),
+ com.azure.core.util.Context.NONE);
}
}
```
-### FeaturesetVersions_List
+### InferenceGroups_Update
```java
-import com.azure.resourcemanager.machinelearning.models.ListViewType;
+import com.azure.resourcemanager.machinelearning.models.InferenceGroup;
+import com.azure.resourcemanager.machinelearning.models.PartialSku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import java.util.HashMap;
+import java.util.Map;
/**
- * Samples for FeaturesetVersions List.
+ * Samples for InferenceGroups Update.
*/
-public final class FeaturesetVersionsListSamples {
+public final class InferenceGroupsUpdateSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/InferenceGroup/update.json
*/
/**
- * Sample code: List Workspace Featureset Version.
+ * Sample code: Update Workspace Inference Group.
*
* @param manager Entry point to MachineLearningManager.
*/
public static void
- listWorkspaceFeaturesetVersion(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.featuresetVersions()
- .list("test-rg", "my-aml-workspace", "string", null, "string", ListViewType.ALL, null, null, null, null,
- null, null, com.azure.core.util.Context.NONE);
+ updateWorkspaceInferenceGroup(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ InferenceGroup resource = manager.inferenceGroups()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withTags(mapOf())
+ .withSku(new PartialSku().withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.STANDARD))
+ .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;
}
}
```
-### FeaturestoreEntityContainers_CreateOrUpdate
+### InferencePools_CreateOrUpdate
```java
-import com.azure.resourcemanager.machinelearning.models.FeaturestoreEntityContainerProperties;
+import com.azure.resourcemanager.machinelearning.models.InferencePoolProperties;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.ScaleUnitConfiguration;
+import com.azure.resourcemanager.machinelearning.models.Sku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import com.azure.resourcemanager.machinelearning.models.StringKeyValuePair;
+import com.azure.resourcemanager.machinelearning.models.UserAssignedIdentity;
+import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for FeaturestoreEntityContainers CreateOrUpdate.
+ * Samples for InferencePools CreateOrUpdate.
*/
-public final class FeaturestoreEntityContainersCreateOrUpdateSamples {
+public final class InferencePoolsCreateOrUpdateSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/InferencePool/createOrUpdate.json
*/
/**
- * Sample code: CreateOrUpdate Workspace Featurestore Entity Container.
+ * Sample code: CreateOrUpdate Workspace Inference Pool.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateWorkspaceFeaturestoreEntityContainer(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.featurestoreEntityContainers()
+ public static void
+ createOrUpdateWorkspaceInferencePool(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.inferencePools()
.define("string")
+ .withRegion("string")
.withExistingWorkspace("test-rg", "my-aml-workspace")
- .withProperties(new FeaturestoreEntityContainerProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))
- .withIsArchived(false))
+ .withProperties(new InferencePoolProperties().withDescription("string")
+ .withProperties(
+ Arrays.asList(new StringKeyValuePair().withKey("fakeTokenPlaceholder").withValue("string")))
+ .withScaleUnitConfiguration(new ScaleUnitConfiguration().withDisablePublicEgress(false)
+ .withRegistries(Arrays.asList("string", "registryName1"))))
+ .withTags(mapOf())
+ .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string", new UserAssignedIdentity())))
+ .withKind("string")
+ .withSku(new Sku().withName("string")
+ .withTier(SkuTier.FREE)
+ .withSize("string")
+ .withFamily("string")
+ .withCapacity(1))
.create();
}
@@ -3200,122 +5285,128 @@ public final class FeaturestoreEntityContainersCreateOrUpdateSamples {
}
```
-### FeaturestoreEntityContainers_Delete
+### InferencePools_Delete
```java
/**
- * Samples for FeaturestoreEntityContainers Delete.
+ * Samples for InferencePools Delete.
*/
-public final class FeaturestoreEntityContainersDeleteSamples {
+public final class InferencePoolsDeleteSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/InferencePool/delete.json
*/
/**
- * Sample code: Delete Workspace Featurestore Entity Container.
+ * Sample code: Delete Workspace Inference Pool.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void deleteWorkspaceFeaturestoreEntityContainer(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.featurestoreEntityContainers()
- .delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ public static void
+ deleteWorkspaceInferencePool(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.inferencePools().delete("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
}
}
```
-### FeaturestoreEntityContainers_GetEntity
+### InferencePools_Get
```java
/**
- * Samples for FeaturestoreEntityContainers GetEntity.
+ * Samples for InferencePools Get.
*/
-public final class FeaturestoreEntityContainersGetEntitySamples {
+public final class InferencePoolsGetSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/InferencePool/get.json
*/
/**
- * Sample code: GetEntity Workspace Featurestore Entity Container.
+ * Sample code: Get Workspace Inference Pool.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void getEntityWorkspaceFeaturestoreEntityContainer(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.featurestoreEntityContainers()
- .getEntityWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
+ public static void
+ getWorkspaceInferencePool(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.inferencePools()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE);
}
}
```
-### FeaturestoreEntityContainers_List
+### InferencePools_List
```java
-import com.azure.resourcemanager.machinelearning.models.ListViewType;
+import com.azure.resourcemanager.machinelearning.models.OrderString;
/**
- * Samples for FeaturestoreEntityContainers List.
+ * Samples for InferencePools List.
*/
-public final class FeaturestoreEntityContainersListSamples {
+public final class InferencePoolsListSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/InferencePool/list.json
*/
/**
- * Sample code: List Workspace Featurestore Entity Container.
+ * Sample code: List Workspace Inference Pool.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void listWorkspaceFeaturestoreEntityContainer(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.featurestoreEntityContainers()
- .list("test-rg", "my-aml-workspace", null, "string", ListViewType.ALL, null, null, null, null,
+ public static void
+ listWorkspaceInferencePool(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.inferencePools()
+ .list("test-rg", "my-aml-workspace", 1, null, "string", "string", OrderString.UPDATED_AT_ASC,
com.azure.core.util.Context.NONE);
}
}
```
-### FeaturestoreEntityVersions_CreateOrUpdate
+### InferencePools_Update
```java
-import com.azure.resourcemanager.machinelearning.models.FeatureDataType;
-import com.azure.resourcemanager.machinelearning.models.FeaturestoreEntityVersionProperties;
-import com.azure.resourcemanager.machinelearning.models.IndexColumn;
-import java.util.Arrays;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.machinelearning.models.InferencePool;
+import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
+import com.azure.resourcemanager.machinelearning.models.PartialManagedServiceIdentity;
+import com.azure.resourcemanager.machinelearning.models.PartialSku;
+import com.azure.resourcemanager.machinelearning.models.SkuTier;
+import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
/**
- * Samples for FeaturestoreEntityVersions CreateOrUpdate.
+ * Samples for InferencePools Update.
*/
-public final class FeaturestoreEntityVersionsCreateOrUpdateSamples {
+public final class InferencePoolsUpdateSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Workspace/InferencePool/update.json
*/
/**
- * Sample code: CreateOrUpdate Workspace Featurestore Entity Version.
+ * Sample code: Update Workspace Inference Pool.
*
* @param manager Entry point to MachineLearningManager.
*/
- public static void createOrUpdateWorkspaceFeaturestoreEntityVersion(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.featurestoreEntityVersions()
- .define("string")
- .withExistingFeaturestoreEntity("test-rg", "my-aml-workspace", "string")
- .withProperties(
- new FeaturestoreEntityVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))
- .withIsArchived(false)
- .withIsAnonymous(false)
- .withIndexColumns(Arrays
- .asList(new IndexColumn().withDataType(FeatureDataType.DATETIME).withColumnName("string"))))
- .create();
+ public static void updateWorkspaceInferencePool(
+ com.azure.resourcemanager.machinelearning.MachineLearningManager manager) throws IOException {
+ InferencePool resource = manager.inferencePools()
+ .getWithResponse("test-rg", "my-aml-workspace", "string", com.azure.core.util.Context.NONE)
+ .getValue();
+ resource.update()
+ .withTags(mapOf())
+ .withIdentity(new PartialManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED)
+ .withUserAssignedIdentities(mapOf("string",
+ SerializerFactory.createDefaultManagementSerializerAdapter()
+ .deserialize("{}", Object.class, SerializerEncoding.JSON))))
+ .withSku(new PartialSku().withCapacity(1)
+ .withFamily("string")
+ .withName("string")
+ .withSize("string")
+ .withTier(SkuTier.STANDARD))
+ .apply();
}
// Use "Map.of" if available
@@ -3332,84 +5423,6 @@ public final class FeaturestoreEntityVersionsCreateOrUpdateSamples {
}
```
-### FeaturestoreEntityVersions_Delete
-
-```java
-/**
- * Samples for FeaturestoreEntityVersions Delete.
- */
-public final class FeaturestoreEntityVersionsDeleteSamples {
- /*
- * x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/FeaturestoreEntityVersion/delete.json
- */
- /**
- * Sample code: Delete Workspace Featurestore Entity Version.
- *
- * @param manager Entry point to MachineLearningManager.
- */
- public static void deleteWorkspaceFeaturestoreEntityVersion(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.featurestoreEntityVersions()
- .delete("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### FeaturestoreEntityVersions_Get
-
-```java
-/**
- * Samples for FeaturestoreEntityVersions Get.
- */
-public final class FeaturestoreEntityVersionsGetSamples {
- /*
- * x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/FeaturestoreEntityVersion/get.json
- */
- /**
- * Sample code: Get Workspace Featurestore Entity Version.
- *
- * @param manager Entry point to MachineLearningManager.
- */
- public static void getWorkspaceFeaturestoreEntityVersion(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.featurestoreEntityVersions()
- .getWithResponse("test-rg", "my-aml-workspace", "string", "string", com.azure.core.util.Context.NONE);
- }
-}
-```
-
-### FeaturestoreEntityVersions_List
-
-```java
-import com.azure.resourcemanager.machinelearning.models.ListViewType;
-
-/**
- * Samples for FeaturestoreEntityVersions List.
- */
-public final class FeaturestoreEntityVersionsListSamples {
- /*
- * x-ms-original-file:
- * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/
- * examples/Workspace/FeaturestoreEntityVersion/list.json
- */
- /**
- * Sample code: List Workspace Featurestore Entity Version.
- *
- * @param manager Entry point to MachineLearningManager.
- */
- public static void listWorkspaceFeaturestoreEntityVersion(
- com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
- manager.featurestoreEntityVersions()
- .list("test-rg", "my-aml-workspace", "string", null, "string", ListViewType.ACTIVE_ONLY, null, null, null,
- null, null, null, com.azure.core.util.Context.NONE);
- }
-}
-```
-
### Jobs_Cancel
```java
@@ -3419,8 +5432,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/2025-01-01-
+ * preview/examples/Job/cancel.json
*/
/**
* Sample code: Cancel Job.
@@ -3442,25 +5455,35 @@ 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.JobResources;
import com.azure.resourcemanager.machinelearning.models.JobService;
+import com.azure.resourcemanager.machinelearning.models.JobTier;
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.MedianStoppingPolicy;
import com.azure.resourcemanager.machinelearning.models.Mpi;
import com.azure.resourcemanager.machinelearning.models.Objective;
import com.azure.resourcemanager.machinelearning.models.OutputDeliveryMode;
import com.azure.resourcemanager.machinelearning.models.PipelineJob;
+import com.azure.resourcemanager.machinelearning.models.QueueSettings;
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 +5497,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/2025-01-01-
+ * preview/examples/Job/AutoMLJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate AutoML Job.
@@ -3488,43 +5511,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/2025-01-01-
+ * preview/examples/Job/SweepJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Sweep Job.
@@ -3537,29 +5560,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 +5594,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/2025-01-01-
+ * preview/examples/Job/PipelineJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Pipeline Job.
@@ -3585,30 +5608,62 @@ 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/2025-01-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().withComputeId("gpu-compute")
+ .withExperimentName("llm-finetuning")
+ .withFineTuningDetails(new CustomModelFineTuning()
+ .withModel(new MLFlowModelJobInput().withMode(InputDeliveryMode.READ_ONLY_MOUNT)
+ .withUri("azureml://registries/azureml-meta/models/Llama-2-7b/versions/11"))
+ .withTaskType(FineTuningTaskType.TEXT_COMPLETION)
+ .withTrainingData(new UriFileJobInput().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")))
+ .withQueueSettings(new QueueSettings().withJobTier(JobTier.STANDARD))
+ .withResources(new JobResources().withInstanceTypes(Arrays.asList("Standard_NC6"))))
.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/2025-01-01-
+ * preview/examples/Job/CommandJob/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Command Job.
@@ -3621,34 +5676,35 @@ 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())
+ .withParentJobName("ParentRun")
.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 +5731,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/2025-01-01-
+ * preview/examples/Job/delete.json
*/
/**
* Sample code: Delete Job.
@@ -3701,8 +5757,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/2025-01-01-
+ * preview/examples/Job/CommandJob/get.json
*/
/**
* Sample code: Get Command Job.
@@ -3715,8 +5771,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/2025-01-01-
+ * preview/examples/Job/AutoMLJob/get.json
*/
/**
* Sample code: Get AutoML Job.
@@ -3729,8 +5785,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/2025-01-01-
+ * preview/examples/Job/SweepJob/get.json
*/
/**
* Sample code: Get Sweep Job.
@@ -3743,8 +5799,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/2025-01-01-
+ * preview/examples/Job/PipelineJob/get.json
*/
/**
* Sample code: Get Pipeline Job.
@@ -3754,12 +5810,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/2025-01-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 +5838,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/2025-01-01-
+ * preview/examples/Job/CommandJob/list.json
*/
/**
* Sample code: List Command Job.
@@ -3783,8 +5854,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/2025-01-01-
+ * preview/examples/Job/PipelineJob/list.json
*/
/**
* Sample code: List Pipeline Job.
@@ -3799,8 +5870,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/2025-01-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/2025-01-01-
+ * preview/examples/Job/SweepJob/list.json
*/
/**
* Sample code: List Sweep Job.
@@ -3815,8 +5902,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/2025-01-01-
+ * preview/examples/Job/AutoMLJob/list.json
*/
/**
* Sample code: List AutoML Job.
@@ -3841,8 +5928,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/2025-01-01-
+ * preview/examples/ManagedNetwork/provision.json
*/
/**
* Sample code: Provision ManagedNetwork.
@@ -3871,8 +5958,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/2025-01-01-
+ * preview/examples/ManagedNetwork/createOrUpdateRule.json
*/
/**
* Sample code: CreateOrUpdate ManagedNetworkSettingsRule.
@@ -3901,8 +5988,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/2025-01-01-
+ * preview/examples/ManagedNetwork/deleteRule.json
*/
/**
* Sample code: Delete ManagedNetworkSettingsRule.
@@ -3926,8 +6013,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/2025-01-01-
+ * preview/examples/ManagedNetwork/getRule.json
*/
/**
* Sample code: Get ManagedNetworkSettingsRule.
@@ -3952,8 +6039,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/2025-01-01-
+ * preview/examples/ManagedNetwork/listRule.json
*/
/**
* Sample code: List ManagedNetworkSettingsRule.
@@ -3978,8 +6065,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/2025-01-01-
+ * preview/examples/Workspace/MarketplaceSubscription/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Marketplace Subscription.
@@ -4006,8 +6093,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/2025-01-01-
+ * preview/examples/Workspace/MarketplaceSubscription/delete.json
*/
/**
* Sample code: Delete Workspace Marketplace Subscription.
@@ -4031,8 +6118,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/2025-01-01-
+ * preview/examples/Workspace/MarketplaceSubscription/get.json
*/
/**
* Sample code: Get Workspace Marketplace Subscription.
@@ -4056,8 +6143,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/2025-01-01-
+ * preview/examples/Workspace/MarketplaceSubscription/list.json
*/
/**
* Sample code: List Workspace Marketplace Subscription.
@@ -4084,8 +6171,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/2025-01-01-
+ * preview/examples/Workspace/ModelContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Model Container.
@@ -4125,8 +6212,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/2025-01-01-
+ * preview/examples/Workspace/ModelContainer/delete.json
*/
/**
* Sample code: Delete Workspace Model Container.
@@ -4150,8 +6237,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/2025-01-01-
+ * preview/examples/Workspace/ModelContainer/get.json
*/
/**
* Sample code: Get Workspace Model Container.
@@ -4176,8 +6263,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/2025-01-01-
+ * preview/examples/Workspace/ModelContainer/list.json
*/
/**
* Sample code: List Workspace Model Container.
@@ -4205,8 +6292,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/2025-01-01-
+ * preview/examples/Workspace/ModelVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Model Version.
@@ -4219,8 +6306,8 @@ public final class ModelVersionsCreateOrUpdateSamples {
.define("string")
.withExistingModel("test-rg", "my-aml-workspace", "string")
.withProperties(new ModelVersionProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
.withFlavors(mapOf("string", new FlavorData().withData(mapOf("string", "string"))))
.withModelType("CustomModel")
@@ -4251,8 +6338,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/2025-01-01-
+ * preview/examples/Workspace/ModelVersion/delete.json
*/
/**
* Sample code: Delete Workspace Model Version.
@@ -4276,8 +6363,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/2025-01-01-
+ * preview/examples/Workspace/ModelVersion/get.json
*/
/**
* Sample code: Get Workspace Model Version.
@@ -4302,8 +6389,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/2025-01-01-
+ * preview/examples/Workspace/ModelVersion/list.json
*/
/**
* Sample code: List Workspace Model Version.
@@ -4330,8 +6417,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/2025-01-01-
+ * preview/examples/Workspace/ModelVersion/publish.json
*/
/**
* Sample code: Publish Workspace Model Version.
@@ -4342,9 +6429,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 +6463,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/2025-01-01-
+ * preview/examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Kubernetes Online Deployment.
@@ -4390,34 +6477,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 +6516,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/2025-01-01-
+ * preview/examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Managed Online Deployment.
@@ -4442,34 +6530,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 +6590,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/2025-01-01-
+ * preview/examples/Workspace/OnlineDeployment/delete.json
*/
/**
* Sample code: Delete Workspace Online Deployment.
@@ -4526,8 +6615,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/2025-01-01-
+ * preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
*/
/**
* Sample code: Get Kubernetes Online Deployment.
@@ -4543,8 +6632,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/2025-01-01-
+ * preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
*/
/**
* Sample code: Get Managed Online Deployment.
@@ -4572,8 +6661,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/2025-01-01-
+ * preview/examples/OnlineDeployment/getLogs.json
*/
/**
* Sample code: Get Online Deployment Logs.
@@ -4599,8 +6688,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/2025-01-01-
+ * preview/examples/OnlineDeployment/list.json
*/
/**
* Sample code: List Online Deployments.
@@ -4624,8 +6713,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/2025-01-01-
+ * preview/examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json
*/
/**
* Sample code: List Managed Online Deployment Skus.
@@ -4641,8 +6730,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/2025-01-01-
+ * preview/examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json
*/
/**
* Sample code: List Kubernetes Online Deployment Skus.
@@ -4673,8 +6762,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/2025-01-01-
+ * preview/examples/OnlineDeployment/ManagedOnlineDeployment/update.json
*/
/**
* Sample code: Update Managed Online Deployment.
@@ -4689,18 +6778,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/2025-01-01-
+ * preview/examples/OnlineDeployment/KubernetesOnlineDeployment/update.json
*/
/**
* Sample code: Update Kubernetes Online Deployment.
@@ -4715,11 +6804,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 +6845,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/2025-01-01-
+ * preview/examples/Workspace/OnlineEndpoint/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Online Endpoint.
@@ -4770,15 +6859,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 +6899,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/2025-01-01-
+ * preview/examples/Workspace/OnlineEndpoint/delete.json
*/
/**
* Sample code: Delete Workspace Online Endpoint.
@@ -4835,8 +6924,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/2025-01-01-
+ * preview/examples/Workspace/OnlineEndpoint/get.json
*/
/**
* Sample code: Get Workspace Online Endpoint.
@@ -4860,8 +6949,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/2025-01-01-
+ * preview/examples/Workspace/OnlineEndpoint/getToken.json
*/
/**
* Sample code: GetToken Workspace Online Endpoint.
@@ -4888,8 +6977,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/2025-01-01-
+ * preview/examples/Workspace/OnlineEndpoint/list.json
*/
/**
* Sample code: List Workspace Online Endpoint.
@@ -4914,8 +7003,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/2025-01-01-
+ * preview/examples/Workspace/OnlineEndpoint/listKeys.json
*/
/**
* Sample code: ListKeys Workspace Online Endpoint.
@@ -4942,8 +7031,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/2025-01-01-
+ * preview/examples/Workspace/OnlineEndpoint/regenerateKeys.json
*/
/**
* Sample code: RegenerateKeys Workspace Online Endpoint.
@@ -4978,8 +7067,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/2025-01-01-
+ * preview/examples/Workspace/OnlineEndpoint/update.json
*/
/**
* Sample code: Update Workspace Online Endpoint.
@@ -5023,8 +7112,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/2025-01-01-
+ * preview/examples/Workspace/operationsList.json
*/
/**
* Sample code: OperationsList.
@@ -5040,7 +7129,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 +7138,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/2025-01-01-
+ * preview/examples/PrivateEndpointConnection/createOrUpdate.json
*/
/**
* Sample code: WorkspacePutPrivateEndpointConnection.
@@ -5063,8 +7152,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 +7168,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/2025-01-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 +7194,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/2025-01-01-
+ * preview/examples/PrivateEndpointConnection/get.json
*/
/**
* Sample code: WorkspaceGetPrivateEndpointConnection.
@@ -5131,8 +7220,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/2025-01-01-
+ * preview/examples/PrivateEndpointConnection/list.json
*/
/**
* Sample code: StorageAccountListPrivateEndpointConnections.
@@ -5155,8 +7244,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/2025-01-01-
+ * preview/examples/PrivateLinkResource/list.json
*/
/**
* Sample code: WorkspaceListPrivateLinkResources.
@@ -5165,7 +7254,79 @@ 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);
+ }
+}
+```
+
+### PtuQuota_GetAvailable
+
+```java
+/**
+ * Samples for PtuQuota GetAvailable.
+ */
+public final class PtuQuotaGetAvailableSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/PTUQuota/getAvailable.json
+ */
+ /**
+ * Sample code: Get available MaaS PTU quota.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ getAvailableMaaSPTUQuota(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.ptuQuotas().getAvailableWithResponse("location", com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### PtuQuota_List
+
+```java
+/**
+ * Samples for PtuQuota List.
+ */
+public final class PtuQuotaListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/PTUQuota/list.json
+ */
+ /**
+ * Sample code: List MaaS PTU usage and quota.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ listMaaSPTUUsageAndQuota(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.ptuQuotas().list("location", null, com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### PtuQuota_ListAvailable
+
+```java
+/**
+ * Samples for PtuQuota ListAvailable.
+ */
+public final class PtuQuotaListAvailableSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/PTUQuota/listAvailable.json
+ */
+ /**
+ * Sample code: List available MaaS PTU quota.
+ *
+ * @param manager Entry point to MachineLearningManager.
+ */
+ public static void
+ listAvailableMaaSPTUQuota(com.azure.resourcemanager.machinelearning.MachineLearningManager manager) {
+ manager.ptuQuotas().listAvailable("location", null, com.azure.core.util.Context.NONE);
}
}
```
@@ -5179,8 +7340,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/2025-01-01-
+ * preview/examples/Quota/list.json
*/
/**
* Sample code: List workspace quotas by VMFamily.
@@ -5208,8 +7369,8 @@ import java.util.Arrays;
public final class QuotasUpdateSamples {
/*
* 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/2025-01-01-
+ * preview/examples/Quota/update.json
*/
/**
* Sample code: update quotas.
@@ -5234,6 +7395,129 @@ public final class QuotasUpdateSamples {
}
```
+### RaiPolicies_List
+
+```java
+/**
+ * Samples for RaiPolicies List.
+ */
+public final class RaiPoliciesListSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-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", null, 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/2025-01-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)),
+ null, 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/2025-01-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", null,
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
+### RaiPolicyOperation_Get
+
+```java
+/**
+ * Samples for RaiPolicyOperation Get.
+ */
+public final class RaiPolicyOperationGetSamples {
+ /*
+ * x-ms-original-file:
+ * specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2025-01-01-
+ * preview/examples/Endpoint/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.raiPolicyOperations()
+ .getWithResponse("test-rg", "aml-workspace-name", "Azure.OpenAI", "raiPolicyName",
+ com.azure.core.util.Context.NONE);
+ }
+}
+```
+
### Registries_CreateOrUpdate
```java
@@ -5264,8 +7548,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/2025-01-01-
+ * preview/examples/Registries/createOrUpdate-SystemCreated.json
*/
/**
* Sample code: CreateOrUpdate Registry with system created accounts.
@@ -5319,8 +7603,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/2025-01-01-
+ * preview/examples/Registries/createOrUpdate-UserCreated.json
*/
/**
* Sample code: CreateOrUpdate Registry with user created accounts.
@@ -5389,8 +7673,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/2025-01-01-
+ * preview/examples/Registries/delete.json
*/
/**
* Sample code: Delete Registry.
@@ -5412,8 +7696,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/2025-01-01-
+ * preview/examples/Registries/get-UserCreated.json
*/
/**
* Sample code: Get Registry with user created accounts.
@@ -5427,8 +7711,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/2025-01-01-
+ * preview/examples/Registries/get-SystemCreated.json
*/
/**
* Sample code: Get Registry with system created accounts.
@@ -5451,8 +7735,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/2025-01-01-
+ * preview/examples/Registries/listBySubscription.json
*/
/**
* Sample code: List registries by subscription.
@@ -5475,8 +7759,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/2025-01-01-
+ * preview/examples/Registries/list-UserCreated.json
*/
/**
* Sample code: List registries with user created accounts.
@@ -5490,8 +7774,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/2025-01-01-
+ * preview/examples/Registries/list-SystemCreated.json
*/
/**
* Sample code: List registries with system created accounts.
@@ -5536,8 +7820,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/2025-01-01-
+ * preview/examples/Registries/removeRegions.json
*/
/**
* Sample code: Remove regions from registry.
@@ -5625,8 +7909,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/2025-01-01-
+ * preview/examples/Registries/update-UserCreated.json
*/
/**
* Sample code: Update Registry with user created accounts.
@@ -5642,18 +7926,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/2025-01-01-
+ * preview/examples/Registries/update-SystemCreated.json
*/
/**
* Sample code: Update Registry with system created accounts.
@@ -5670,11 +7954,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();
}
@@ -5706,8 +7990,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/2025-01-01-
+ * preview/examples/Registry/CodeContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Code Container.
@@ -5746,8 +8030,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/2025-01-01-
+ * preview/examples/Registry/CodeContainer/delete.json
*/
/**
* Sample code: Delete Registry Code Container.
@@ -5771,8 +8055,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/2025-01-01-
+ * preview/examples/Registry/CodeContainer/get.json
*/
/**
* Sample code: Get Registry Code Container.
@@ -5796,8 +8080,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/2025-01-01-
+ * preview/examples/Registry/CodeContainer/list.json
*/
/**
* Sample code: List Registry Code Container.
@@ -5823,8 +8107,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/2025-01-01-
+ * preview/examples/Registry/CodeVersion/createOrGetStartPendingUpload.json
*/
/**
* Sample code: CreateOrGetStartPendingUpload Registry Code Version.
@@ -5856,8 +8140,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/2025-01-01-
+ * preview/examples/Registry/CodeVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Code Version.
@@ -5869,8 +8153,8 @@ public final class RegistryCodeVersionsCreateOrUpdateSamples {
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"))
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
.withCodeUri("fakeTokenPlaceholder")),
com.azure.core.util.Context.NONE);
@@ -5899,8 +8183,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/2025-01-01-
+ * preview/examples/Registry/CodeVersion/delete.json
*/
/**
* Sample code: Delete Registry Code Version.
@@ -5924,8 +8208,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/2025-01-01-
+ * preview/examples/Registry/CodeVersion/get.json
*/
/**
* Sample code: Get Registry Code Version.
@@ -5949,8 +8233,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/2025-01-01-
+ * preview/examples/Registry/CodeVersion/list.json
*/
/**
* Sample code: List Registry Code Version.
@@ -5979,8 +8263,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/2025-01-01-
+ * preview/examples/Registry/ComponentContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Component Container.
@@ -5993,8 +8277,8 @@ public final class RegistryComponentContainersCreateOrUpdateSamples {
.createOrUpdate("test-rg", "my-aml-registry", "string",
new ComponentContainerInner()
.withProperties(new ComponentContainerProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
- .withProperties(mapOf("string", "string"))),
+ .withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))),
com.azure.core.util.Context.NONE);
}
@@ -6021,8 +8305,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/2025-01-01-
+ * preview/examples/Registry/ComponentContainer/delete.json
*/
/**
* Sample code: Delete Registry Component Container.
@@ -6046,8 +8330,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/2025-01-01-
+ * preview/examples/Registry/ComponentContainer/get.json
*/
/**
* Sample code: Get Registry Component Container.
@@ -6071,8 +8355,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/2025-01-01-
+ * preview/examples/Registry/ComponentContainer/list.json
*/
/**
* Sample code: List Registry Component Container.
@@ -6104,8 +8388,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/2025-01-01-
+ * preview/examples/Registry/ComponentVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Component Version.
@@ -6117,8 +8401,8 @@ public final class RegistryComponentVersionsCreateOrUpdateSamples {
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"))
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
.withComponentSpec(SerializerFactory.createDefaultManagementSerializerAdapter()
.deserialize("{\"8ced901b-d826-477d-bfef-329da9672513\":null}", Object.class,
@@ -6149,8 +8433,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/2025-01-01-
+ * preview/examples/Registry/ComponentVersion/delete.json
*/
/**
* Sample code: Delete Registry Component Version.
@@ -6174,8 +8458,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/2025-01-01-
+ * preview/examples/Registry/ComponentVersion/get.json
*/
/**
* Sample code: Get Registry Component Version.
@@ -6199,8 +8483,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/2025-01-01-
+ * preview/examples/Registry/ComponentVersion/list.json
*/
/**
* Sample code: List Registry Component Version.
@@ -6230,8 +8514,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/2025-01-01-
+ * preview/examples/Registry/DataContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Data Container.
@@ -6243,8 +8527,8 @@ public final class RegistryDataContainersCreateOrUpdateSamples {
manager.registryDataContainers()
.createOrUpdate("test-rg", "registryName", "string",
new DataContainerInner().withProperties(new DataContainerProperties().withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(mapOf("string", "string"))
.withIsArchived(false)
.withDataType(DataType.URI_FOLDER)),
com.azure.core.util.Context.NONE);
@@ -6273,8 +8557,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/2025-01-01-
+ * preview/examples/Registry/DataContainer/delete.json
*/
/**
* Sample code: Delete Registry Data Container.
@@ -6297,8 +8581,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/2025-01-01-
+ * preview/examples/Registry/DataContainer/get.json
*/
/**
* Sample code: Get Registry Data Container.
@@ -6324,8 +8608,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/2025-01-01-
+ * preview/examples/Registry/DataContainer/registryList.json
*/
/**
* Sample code: RegistryList Registry Data Container.
@@ -6351,8 +8635,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/2025-01-01-
+ * preview/examples/DataReference/getBlobReferenceSAS.json
*/
/**
* Sample code: GetBlobReferenceSAS Data Reference.
@@ -6382,8 +8666,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/2025-01-01-
+ * preview/examples/Registry/DataVersionBase/createOrGetStartPendingUpload.json
*/
/**
* Sample code: CreateOrGetStartPendingUpload Registry Data Version Base.
@@ -6416,8 +8700,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/2025-01-01-
+ * preview/examples/Registry/DataVersionBase/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Data Version Base.
@@ -6429,10 +8713,10 @@ public final class RegistryDataVersionsCreateOrUpdateSamples {
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)
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
+ .withIsArchived(false)
.withDataUri("string")
.withReferencedUris(Arrays.asList("string"))),
com.azure.core.util.Context.NONE);
@@ -6461,8 +8745,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/2025-01-01-
+ * preview/examples/Registry/DataVersionBase/delete.json
*/
/**
* Sample code: Delete Registry Data Version Base.
@@ -6486,8 +8770,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/2025-01-01-
+ * preview/examples/Registry/DataVersionBase/get.json
*/
/**
* Sample code: Get Registry Data Version Base.
@@ -6513,8 +8797,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/2025-01-01-
+ * preview/examples/Registry/DataVersionBase/registryList.json
*/
/**
* Sample code: RegistryList Registry Data Version Base.
@@ -6544,8 +8828,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/2025-01-01-
+ * preview/examples/Registry/EnvironmentContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Environment Container.
@@ -6558,9 +8842,9 @@ public final class RegistryEnvironmentContainersCreateOrUpdateSamples {
.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"))
+ .withTags(
mapOf("additionalProp1", "string", "additionalProp2", "string", "additionalProp3", "string"))),
com.azure.core.util.Context.NONE);
}
@@ -6588,8 +8872,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/2025-01-01-
+ * preview/examples/Registry/EnvironmentContainer/delete.json
*/
/**
* Sample code: Delete Registry Environment Container.
@@ -6613,8 +8897,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/2025-01-01-
+ * preview/examples/Registry/EnvironmentContainer/get.json
*/
/**
* Sample code: Get Registry Environment Container.
@@ -6639,8 +8923,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/2025-01-01-
+ * preview/examples/Registry/EnvironmentContainer/list.json
*/
/**
* Sample code: List Registry Environment Container.
@@ -6672,8 +8956,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/2025-01-01-
+ * preview/examples/Registry/EnvironmentVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Environment Version.
@@ -6686,14 +8970,14 @@ public final class RegistryEnvironmentVersionsCreateOrUpdateSamples {
.createOrUpdate("test-rg", "my-aml-registry", "string", "string",
new EnvironmentVersionInner().withProperties(new EnvironmentVersionProperties()
.withDescription("string")
- .withTags(mapOf("string", "string"))
.withProperties(mapOf("string", "string"))
+ .withTags(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"))
+ .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))
@@ -6724,8 +9008,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/2025-01-01-
+ * preview/examples/Registry/EnvironmentVersion/delete.json
*/
/**
* Sample code: Delete Registry Environment Version.
@@ -6749,8 +9033,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/2025-01-01-
+ * preview/examples/Registry/EnvironmentVersion/get.json
*/
/**
* Sample code: Get Registry Environment Version.
@@ -6775,8 +9059,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/2025-01-01-
+ * preview/examples/Registry/EnvironmentVersion/list.json
*/
/**
* Sample code: List Registry Environment Version.
@@ -6805,8 +9089,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/2025-01-01-
+ * preview/examples/Registry/ModelContainer/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Model Container.
@@ -6846,8 +9130,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/2025-01-01-
+ * preview/examples/Registry/ModelContainer/delete.json
*/
/**
* Sample code: Delete Registry Model Container.
@@ -6871,8 +9155,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/2025-01-01-
+ * preview/examples/Registry/ModelContainer/get.json
*/
/**
* Sample code: Get Registry Model Container.
@@ -6897,8 +9181,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/2025-01-01-
+ * preview/examples/Registry/ModelContainer/list.json
*/
/**
* Sample code: List Registry Model Container.
@@ -6925,8 +9209,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/2025-01-01-
+ * preview/examples/Registry/ModelVersion/createOrGetStartPendingUpload.json
*/
/**
* Sample code: CreateOrGetStartPendingUpload Registry Model Version.
@@ -6959,8 +9243,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/2025-01-01-
+ * preview/examples/Registry/ModelVersion/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Registry Model Version.
@@ -6972,8 +9256,8 @@ public final class RegistryModelVersionsCreateOrUpdateSamples {
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"))
+ .withTags(mapOf("string", "string"))
.withIsAnonymous(false)
.withFlavors(mapOf("string", new FlavorData().withData(mapOf("string", "string"))))
.withModelType("CustomModel")
@@ -7004,8 +9288,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/2025-01-01-
+ * preview/examples/Registry/ModelVersion/delete.json
*/
/**
* Sample code: Delete Registry Model Version.
@@ -7029,8 +9313,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/2025-01-01-
+ * preview/examples/Registry/ModelVersion/get.json
*/
/**
* Sample code: Get Registry Model Version.
@@ -7055,8 +9339,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/2025-01-01-
+ * preview/examples/Registry/ModelVersion/list.json
*/
/**
* Sample code: List Registry Model Version.
@@ -7090,8 +9374,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/2025-01-01-
+ * preview/examples/Schedule/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Schedule.
@@ -7104,18 +9388,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 +9426,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/2025-01-01-
+ * preview/examples/Schedule/delete.json
*/
/**
* Sample code: Delete Schedule.
@@ -7165,8 +9449,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/2025-01-01-
+ * preview/examples/Schedule/get.json
*/
/**
* Sample code: Get Schedule.
@@ -7189,8 +9473,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/2025-01-01-
+ * preview/examples/Schedule/list.json
*/
/**
* Sample code: List Schedules.
@@ -7207,6 +9491,7 @@ public final class SchedulesListSamples {
```java
import com.azure.resourcemanager.machinelearning.models.ContentSafety;
+import com.azure.resourcemanager.machinelearning.models.ContentSafetyLevel;
import com.azure.resourcemanager.machinelearning.models.ContentSafetyStatus;
import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentity;
import com.azure.resourcemanager.machinelearning.models.ManagedServiceIdentityType;
@@ -7225,8 +9510,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/2025-01-01-
+ * preview/examples/Workspace/ServerlessEndpoint/createOrUpdate.json
*/
/**
* Sample code: CreateOrUpdate Workspace Serverless Endpoint.
@@ -7239,14 +9524,14 @@ 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().withContentSafetyLevel(ContentSafetyLevel.BLOCKING)
+ .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 +9563,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/2025-01-01-
+ * preview/examples/Workspace/ServerlessEndpoint/delete.json
*/
/**
* Sample code: Delete Workspace Serverless Endpoint.
@@ -7302,8 +9587,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/2025-01-01-
+ * preview/examples/Workspace/ServerlessEndpoint/get.json
*/
/**
* Sample code: Get Workspace Serverless Endpoint.
@@ -7327,8 +9612,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/2025-01-01-
+ * preview/examples/Workspace/ServerlessEndpoint/list.json
*/
/**
* Sample code: List Workspace Serverless Endpoint.
@@ -7351,8 +9636,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/2025-01-01-
+ * preview/examples/Workspace/ServerlessEndpoint/listKeys.json
*/
/**
* Sample code: ListKeys Workspace Serverless Endpoint.
@@ -7379,8 +9664,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/2025-01-01-
+ * preview/examples/Workspace/ServerlessEndpoint/regenerateKeys.json
*/
/**
* Sample code: RegenerateKeys Workspace Serverless Endpoint.
@@ -7417,8 +9702,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/2025-01-01-
+ * preview/examples/Workspace/ServerlessEndpoint/update.json
*/
/**
* Sample code: Update Workspace Serverless Endpoint.
@@ -7432,15 +9717,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 +9752,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/2025-01-01-
+ * preview/examples/Usage/list.json
*/
/**
* Sample code: List Usages.
@@ -7490,8 +9775,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/2025-01-01-
+ * preview/examples/VirtualMachineSize/list.json
*/
/**
* Sample code: List VM Sizes.
@@ -7509,6 +9794,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 +9802,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/2025-01-01-
+ * preview/examples/WorkspaceConnection/create.json
*/
/**
* Sample code: CreateWorkspaceConnection.
@@ -7531,6 +9817,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 +9833,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/2025-01-01-
+ * preview/examples/WorkspaceConnection/delete.json
*/
/**
* Sample code: DeleteWorkspaceConnection.
@@ -7571,8 +9858,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/2025-01-01-
+ * preview/examples/WorkspaceConnection/get.json
*/
/**
* Sample code: GetWorkspaceConnection.
@@ -7596,8 +9883,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/2025-01-01-
+ * preview/examples/WorkspaceConnection/list.json
*/
/**
* Sample code: ListWorkspaceConnections.
@@ -7607,7 +9894,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 +9909,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/2025-01-01-
+ * preview/examples/WorkspaceConnection/listSecrets.json
*/
/**
* Sample code: GetWorkspaceConnection.
@@ -7638,6 +9925,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/2025-01-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/2025-01-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 +10024,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/2025-01-01-
+ * preview/examples/WorkspaceFeature/list.json
*/
/**
* Sample code: List Workspace features.
@@ -7664,13 +10041,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 +10060,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/2025-01-01-
+ * preview/examples/Workspace/create.json
*/
/**
* Sample code: Create Workspace.
@@ -7701,29 +10078,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 +10127,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/2025-01-01-
+ * preview/examples/Workspace/delete.json
*/
/**
* Sample code: Delete Workspace.
@@ -7778,8 +10155,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/2025-01-01-
+ * preview/examples/Workspace/diagnose.json
*/
/**
* Sample code: Diagnose Workspace.
@@ -7789,15 +10166,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 +10202,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/2025-01-01-
+ * preview/examples/Workspace/get.json
*/
/**
* Sample code: Get Workspace.
@@ -7848,8 +10226,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/2025-01-01-
+ * preview/examples/Workspace/listBySubscription.json
*/
/**
* Sample code: Get Workspaces by subscription.
@@ -7858,7 +10236,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 +10250,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/2025-01-01-
+ * preview/examples/Workspace/listByResourceGroup.json
*/
/**
* Sample code: Get Workspaces by Resource Group.
@@ -7882,7 +10260,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 +10274,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/2025-01-01-
+ * preview/examples/Workspace/listKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -7919,8 +10297,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/2025-01-01-
+ * preview/examples/Workspace/listNotebookAccessToken.json
*/
/**
* Sample code: List Workspace Keys.
@@ -7943,8 +10321,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/2025-01-01-
+ * preview/examples/Notebook/listKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -7967,8 +10345,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/2025-01-01-
+ * preview/examples/ExternalFQDN/get.json
*/
/**
* Sample code: ListOutboundNetworkDependenciesEndpoints.
@@ -7993,8 +10371,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/2025-01-01-
+ * preview/examples/Workspace/listStorageAccountKeys.json
*/
/**
* Sample code: List Workspace Keys.
@@ -8017,8 +10395,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/2025-01-01-
+ * preview/examples/Notebook/prepare.json
*/
/**
* Sample code: Prepare Notebook.
@@ -8040,8 +10418,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/2025-01-01-
+ * preview/examples/Workspace/resyncKeys.json
*/
/**
* Sample code: Resync Workspace Keys.
@@ -8057,7 +10435,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 +10444,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/2025-01-01-
+ * preview/examples/Workspace/update.json
*/
/**
* Sample code: Update Workspace.
@@ -8081,7 +10459,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 37f3d22af960b..f87951423f5d5 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-2025-01.
https://github.com/Azure/azure-sdk-for-java
@@ -46,13 +46,9 @@
0
0
true
+ false
-
- com.azure
- azure-json
- 1.3.0
-
com.azure
azure-core
@@ -63,6 +59,11 @@
azure-core-management
1.15.6
+
+ com.azure
+ azure-json
+ 1.3.0
+
com.azure
azure-core-test
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java
index bb31e555c22f5..16f0e98406775 100644
--- a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/MachineLearningManager.java
@@ -11,15 +11,15 @@
import com.azure.core.http.HttpPipelinePosition;
import com.azure.core.http.policy.AddDatePolicy;
import com.azure.core.http.policy.AddHeadersFromContextPolicy;
-import com.azure.core.http.policy.HttpLoggingPolicy;
+import com.azure.core.http.policy.BearerTokenAuthenticationPolicy;
import com.azure.core.http.policy.HttpLogOptions;
+import com.azure.core.http.policy.HttpLoggingPolicy;
import com.azure.core.http.policy.HttpPipelinePolicy;
import com.azure.core.http.policy.HttpPolicyProviders;
import com.azure.core.http.policy.RequestIdPolicy;
import com.azure.core.http.policy.RetryOptions;
import com.azure.core.http.policy.RetryPolicy;
import com.azure.core.http.policy.UserAgentPolicy;
-import com.azure.core.management.http.policy.ArmChallengeAuthenticationPolicy;
import com.azure.core.management.profile.AzureProfile;
import com.azure.core.util.Configuration;
import com.azure.core.util.logging.ClientLogger;
@@ -27,21 +27,34 @@
import com.azure.resourcemanager.machinelearning.implementation.AzureMachineLearningWorkspacesBuilder;
import com.azure.resourcemanager.machinelearning.implementation.BatchDeploymentsImpl;
import com.azure.resourcemanager.machinelearning.implementation.BatchEndpointsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.CapabilityHostsImpl;
import com.azure.resourcemanager.machinelearning.implementation.CodeContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.CodeVersionsImpl;
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.DatastoresImpl;
+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.FeaturesImpl;
import com.azure.resourcemanager.machinelearning.implementation.FeaturesetContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.FeaturesetVersionsImpl;
-import com.azure.resourcemanager.machinelearning.implementation.FeaturesImpl;
import com.azure.resourcemanager.machinelearning.implementation.FeaturestoreEntityContainersImpl;
import com.azure.resourcemanager.machinelearning.implementation.FeaturestoreEntityVersionsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.InferenceEndpointsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.InferenceGroupsImpl;
+import com.azure.resourcemanager.machinelearning.implementation.InferencePoolsImpl;
import com.azure.resourcemanager.machinelearning.implementation.JobsImpl;
import com.azure.resourcemanager.machinelearning.implementation.ManagedNetworkProvisionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.ManagedNetworkSettingsRulesImpl;
@@ -53,7 +66,10 @@
import com.azure.resourcemanager.machinelearning.implementation.OperationsImpl;
import com.azure.resourcemanager.machinelearning.implementation.PrivateEndpointConnectionsImpl;
import com.azure.resourcemanager.machinelearning.implementation.PrivateLinkResourcesImpl;
+import com.azure.resourcemanager.machinelearning.implementation.PtuQuotasImpl;
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;
@@ -75,14 +91,24 @@
import com.azure.resourcemanager.machinelearning.implementation.WorkspacesImpl;
import com.azure.resourcemanager.machinelearning.models.BatchDeployments;
import com.azure.resourcemanager.machinelearning.models.BatchEndpoints;
+import com.azure.resourcemanager.machinelearning.models.CapabilityHosts;
import com.azure.resourcemanager.machinelearning.models.CodeContainers;
import com.azure.resourcemanager.machinelearning.models.CodeVersions;
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.Datastores;
+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;
@@ -90,6 +116,9 @@
import com.azure.resourcemanager.machinelearning.models.FeaturesetVersions;
import com.azure.resourcemanager.machinelearning.models.FeaturestoreEntityContainers;
import com.azure.resourcemanager.machinelearning.models.FeaturestoreEntityVersions;
+import com.azure.resourcemanager.machinelearning.models.InferenceEndpoints;
+import com.azure.resourcemanager.machinelearning.models.InferenceGroups;
+import com.azure.resourcemanager.machinelearning.models.InferencePools;
import com.azure.resourcemanager.machinelearning.models.Jobs;
import com.azure.resourcemanager.machinelearning.models.ManagedNetworkProvisions;
import com.azure.resourcemanager.machinelearning.models.ManagedNetworkSettingsRules;
@@ -101,7 +130,10 @@
import com.azure.resourcemanager.machinelearning.models.Operations;
import com.azure.resourcemanager.machinelearning.models.PrivateEndpointConnections;
import com.azure.resourcemanager.machinelearning.models.PrivateLinkResources;
+import com.azure.resourcemanager.machinelearning.models.PtuQuotas;
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 +165,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,15 +173,7 @@ public final class MachineLearningManager {
private Computes computes;
- private PrivateEndpointConnections privateEndpointConnections;
-
- private PrivateLinkResources privateLinkResources;
-
- private WorkspaceConnections workspaceConnections;
-
- private ManagedNetworkSettingsRules managedNetworkSettingsRules;
-
- private ManagedNetworkProvisions managedNetworkProvisions;
+ private PtuQuotas ptuQuotas;
private RegistryCodeContainers registryCodeContainers;
@@ -181,6 +201,8 @@ public final class MachineLearningManager {
private BatchDeployments batchDeployments;
+ private CapabilityHosts capabilityHosts;
+
private CodeContainers codeContainers;
private CodeVersions codeVersions;
@@ -209,6 +231,12 @@ public final class MachineLearningManager {
private FeaturestoreEntityVersions featurestoreEntityVersions;
+ private InferencePools inferencePools;
+
+ private InferenceEndpoints inferenceEndpoints;
+
+ private InferenceGroups inferenceGroups;
+
private Jobs jobs;
private MarketplaceSubscriptions marketplaceSubscriptions;
@@ -229,6 +257,42 @@ public final class MachineLearningManager {
private WorkspaceFeatures workspaceFeatures;
+ 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 AzureMachineLearningWorkspaces clientObject;
private MachineLearningManager(HttpPipeline httpPipeline, AzureProfile profile, Duration defaultPollInterval) {
@@ -393,7 +457,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"))
@@ -426,7 +490,7 @@ public MachineLearningManager authenticate(TokenCredential credential, AzureProf
HttpPolicyProviders.addBeforeRetryPolicies(policies);
policies.add(retryPolicy);
policies.add(new AddDatePolicy());
- policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies.add(new BearerTokenAuthenticationPolicy(credential, scopes.toArray(new String[0])));
policies.addAll(this.policies.stream()
.filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
.collect(Collectors.toList()));
@@ -439,30 +503,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,67 +552,15 @@ public Computes computes() {
}
/**
- * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnection.
+ * Gets the resource collection API of PtuQuotas.
*
- * @return Resource collection API of PrivateEndpointConnections.
+ * @return Resource collection API of PtuQuotas.
*/
- 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);
+ public PtuQuotas ptuQuotas() {
+ if (this.ptuQuotas == null) {
+ this.ptuQuotas = new PtuQuotasImpl(clientObject.getPtuQuotas(), 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;
+ return ptuQuotas;
}
/**
@@ -739,6 +727,18 @@ public BatchDeployments batchDeployments() {
return batchDeployments;
}
+ /**
+ * Gets the resource collection API of CapabilityHosts. It manages CapabilityHost.
+ *
+ * @return Resource collection API of CapabilityHosts.
+ */
+ public CapabilityHosts capabilityHosts() {
+ if (this.capabilityHosts == null) {
+ this.capabilityHosts = new CapabilityHostsImpl(clientObject.getCapabilityHosts(), this);
+ }
+ return capabilityHosts;
+ }
+
/**
* Gets the resource collection API of CodeContainers. It manages CodeContainer.
*
@@ -909,6 +909,42 @@ public FeaturestoreEntityVersions featurestoreEntityVersions() {
return featurestoreEntityVersions;
}
+ /**
+ * Gets the resource collection API of InferencePools. It manages InferencePool.
+ *
+ * @return Resource collection API of InferencePools.
+ */
+ public InferencePools inferencePools() {
+ if (this.inferencePools == null) {
+ this.inferencePools = new InferencePoolsImpl(clientObject.getInferencePools(), this);
+ }
+ return inferencePools;
+ }
+
+ /**
+ * Gets the resource collection API of InferenceEndpoints. It manages InferenceEndpoint.
+ *
+ * @return Resource collection API of InferenceEndpoints.
+ */
+ public InferenceEndpoints inferenceEndpoints() {
+ if (this.inferenceEndpoints == null) {
+ this.inferenceEndpoints = new InferenceEndpointsImpl(clientObject.getInferenceEndpoints(), this);
+ }
+ return inferenceEndpoints;
+ }
+
+ /**
+ * Gets the resource collection API of InferenceGroups. It manages InferenceGroup.
+ *
+ * @return Resource collection API of InferenceGroups.
+ */
+ public InferenceGroups inferenceGroups() {
+ if (this.inferenceGroups == null) {
+ this.inferenceGroups = new InferenceGroupsImpl(clientObject.getInferenceGroups(), this);
+ }
+ return inferenceGroups;
+ }
+
/**
* Gets the resource collection API of Jobs. It manages JobBase.
*
@@ -1030,6 +1066,233 @@ public WorkspaceFeatures workspaceFeatures() {
return workspaceFeatures;
}
+ /**
+ * 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 AzureMachineLearningWorkspaces providing direct access to the underlying
* auto-generated API implementation, based on Azure REST API.
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/AzureMachineLearningWorkspaces.java
index f9ec50f298e52..25b6a63942f94 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/AzureMachineLearningWorkspaces.java
@@ -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.
*
@@ -89,39 +75,11 @@ public interface AzureMachineLearningWorkspaces {
ComputesClient getComputes();
/**
- * Gets the PrivateEndpointConnectionsClient object to access its operations.
+ * Gets the PtuQuotasClient object to access its operations.
*
- * @return the PrivateEndpointConnectionsClient object.
+ * @return the PtuQuotasClient 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();
+ PtuQuotasClient getPtuQuotas();
/**
* Gets the RegistryCodeContainersClient object to access its operations.
@@ -214,6 +172,13 @@ public interface AzureMachineLearningWorkspaces {
*/
BatchDeploymentsClient getBatchDeployments();
+ /**
+ * Gets the CapabilityHostsClient object to access its operations.
+ *
+ * @return the CapabilityHostsClient object.
+ */
+ CapabilityHostsClient getCapabilityHosts();
+
/**
* Gets the CodeContainersClient object to access its operations.
*
@@ -312,6 +277,27 @@ public interface AzureMachineLearningWorkspaces {
*/
FeaturestoreEntityVersionsClient getFeaturestoreEntityVersions();
+ /**
+ * Gets the InferencePoolsClient object to access its operations.
+ *
+ * @return the InferencePoolsClient object.
+ */
+ InferencePoolsClient getInferencePools();
+
+ /**
+ * Gets the InferenceEndpointsClient object to access its operations.
+ *
+ * @return the InferenceEndpointsClient object.
+ */
+ InferenceEndpointsClient getInferenceEndpoints();
+
+ /**
+ * Gets the InferenceGroupsClient object to access its operations.
+ *
+ * @return the InferenceGroupsClient object.
+ */
+ InferenceGroupsClient getInferenceGroups();
+
/**
* Gets the JobsClient object to access its operations.
*
@@ -381,4 +367,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/CapabilityHostsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CapabilityHostsClient.java
new file mode 100644
index 0000000000000..459ecb5228254
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/CapabilityHostsClient.java
@@ -0,0 +1,171 @@
+// 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.CapabilityHostInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in CapabilityHostsClient.
+ */
+public interface CapabilityHostsClient {
+ /**
+ * Delete capabilityHost.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name CapabilityHost 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, String name);
+
+ /**
+ * Delete capabilityHost.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name CapabilityHost 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.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String name,
+ Context context);
+
+ /**
+ * Delete capabilityHost.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name CapabilityHost 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * Delete capabilityHost.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name CapabilityHost 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String name, Context context);
+
+ /**
+ * Get capabilityHost.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name CapabilityHost 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 capabilityHost along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String workspaceName, String name,
+ Context context);
+
+ /**
+ * Get capabilityHost.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name CapabilityHost 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 capabilityHost.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CapabilityHostInner get(String resourceGroupName, String workspaceName, String name);
+
+ /**
+ * Create or update capabilityHost.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name CapabilityHost name.
+ * @param body CapabilityHost definition.
+ * @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 Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CapabilityHostInner> beginCreateOrUpdate(String resourceGroupName,
+ String workspaceName, String name, CapabilityHostInner body);
+
+ /**
+ * Create or update capabilityHost.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name CapabilityHost name.
+ * @param body CapabilityHost definition.
+ * @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 Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CapabilityHostInner> beginCreateOrUpdate(String resourceGroupName,
+ String workspaceName, String name, CapabilityHostInner body, Context context);
+
+ /**
+ * Create or update capabilityHost.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name CapabilityHost name.
+ * @param body CapabilityHost definition.
+ * @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 Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CapabilityHostInner createOrUpdate(String resourceGroupName, String workspaceName, String name,
+ CapabilityHostInner body);
+
+ /**
+ * Create or update capabilityHost.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param name CapabilityHost name.
+ * @param body CapabilityHost definition.
+ * @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 Resource Manager resource envelope.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CapabilityHostInner createOrUpdate(String resourceGroupName, String workspaceName, String name,
+ CapabilityHostInner body, Context context);
+}
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 2acd533571d4f..1709d438d51cf 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 0000000000000..1aed95e09c4bc
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiBlocklistItemsClient.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;
+
+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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion,
+ 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion, 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion,
+ 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion, 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 0000000000000..696b580bba1d3
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiBlocklistItemsOperationsClient.java
@@ -0,0 +1,53 @@
+// 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion, 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 0000000000000..916b58cb3885a
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiBlocklistOperationsClient.java
@@ -0,0 +1,191 @@
+// 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 proxyApiVersion Api version used by proxy call.
+ * @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 proxyApiVersion, 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 proxyApiVersion Api version used by proxy call.
+ * @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 proxyApiVersion, 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion, 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 proxyApiVersion Api version used by proxy call.
+ * @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,
+ String proxyApiVersion, 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 0000000000000..38075fc9f81a2
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiBlocklistsClient.java
@@ -0,0 +1,50 @@
+// 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion, 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 0000000000000..cc45b85aca813
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiPoliciesClient.java
@@ -0,0 +1,48 @@
+// 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion, 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 0000000000000..2cdcd613e7012
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionRaiPolicyOperationsClient.java
@@ -0,0 +1,190 @@
+// 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion, 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 proxyApiVersion Api version used by proxy call.
+ * @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,
+ String proxyApiVersion, 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion, 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion, 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 0000000000000..51102684efd05
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/ConnectionsClient.java
@@ -0,0 +1,289 @@
+// 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion, 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion, 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 proxyApiVersion Api version used by proxy call.
+ * @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,
+ String proxyApiVersion, 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion,
+ 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion, 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion, 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 getAllModelsWithResponse(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 getAllModels(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 4f1a49380464a..4b27708c65d20 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 0000000000000..4a06dc0967ec9
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EndpointDeploymentsClient.java
@@ -0,0 +1,254 @@
+// 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion, 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 proxyApiVersion Api version used by proxy call.
+ * @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,
+ String proxyApiVersion, 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 0000000000000..954f8a76f9ceb
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/EndpointsClient.java
@@ -0,0 +1,253 @@
+// 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 includeOnlineEndpoints The includeOnlineEndpoints parameter.
+ * @param includeServerlessEndpoints The includeServerlessEndpoints parameter.
+ * @param includeConnections The includeConnections 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 includeOnlineEndpoints, Boolean includeServerlessEndpoints,
+ Boolean includeConnections, 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/InferenceEndpointsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/InferenceEndpointsClient.java
new file mode 100644
index 0000000000000..5ff3e17a2091d
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/InferenceEndpointsClient.java
@@ -0,0 +1,291 @@
+// 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.InferenceEndpointInner;
+import com.azure.resourcemanager.machinelearning.models.OrderString;
+
+/**
+ * An instance of this class provides access to all the operations defined in InferenceEndpointsClient.
+ */
+public interface InferenceEndpointsClient {
+ /**
+ * List Inference Endpoints.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName Name of the InferencePool.
+ * @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 a paginated list of InferenceEndpoint entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName, String poolName);
+
+ /**
+ * List Inference Endpoints.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName Name of the InferencePool.
+ * @param count Number of InferenceEndpoint to be retrieved in a page of results.
+ * @param skip Continuation token for pagination.
+ * @param tags A set of tags with which to filter the returned models. It is a comma separated string of tags key or
+ * tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 .
+ * @param properties A set of properties with which to filter the returned models. It is a comma separated string of
+ * properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 .
+ * @param orderBy The option to order the response.
+ * @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 a paginated list of InferenceEndpoint entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName, String poolName,
+ Integer count, String skip, String tags, String properties, OrderString orderBy, Context context);
+
+ /**
+ * Delete InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint 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, String poolName,
+ String endpointName);
+
+ /**
+ * Delete InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint 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.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String poolName,
+ String endpointName, Context context);
+
+ /**
+ * Delete InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String poolName, String endpointName);
+
+ /**
+ * Delete InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String poolName, String endpointName, Context context);
+
+ /**
+ * Get InferenceEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint 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 inferenceEndpoint along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String workspaceName, String poolName,
+ String endpointName, Context context);
+
+ /**
+ * Get InferenceEndpoint.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint 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 inferenceEndpoint.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ InferenceEndpointInner get(String resourceGroupName, String workspaceName, String poolName, String endpointName);
+
+ /**
+ * Update InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint name.
+ * @param body Online Endpoint entity to apply during 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, InferenceEndpointInner> beginUpdate(String resourceGroupName,
+ String workspaceName, String poolName, String endpointName, Object body);
+
+ /**
+ * Update InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint name.
+ * @param body Online Endpoint entity to apply during operation.
+ * @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, InferenceEndpointInner> beginUpdate(String resourceGroupName,
+ String workspaceName, String poolName, String endpointName, Object body, Context context);
+
+ /**
+ * Update InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint name.
+ * @param body Online Endpoint entity to apply during 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)
+ InferenceEndpointInner update(String resourceGroupName, String workspaceName, String poolName, String endpointName,
+ Object body);
+
+ /**
+ * Update InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint name.
+ * @param body Online Endpoint entity to apply during operation.
+ * @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)
+ InferenceEndpointInner update(String resourceGroupName, String workspaceName, String poolName, String endpointName,
+ Object body, Context context);
+
+ /**
+ * Create or update InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint name.
+ * @param body InferenceEndpoint entity to apply during 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, InferenceEndpointInner> beginCreateOrUpdate(String resourceGroupName,
+ String workspaceName, String poolName, String endpointName, InferenceEndpointInner body);
+
+ /**
+ * Create or update InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint name.
+ * @param body InferenceEndpoint entity to apply during operation.
+ * @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, InferenceEndpointInner> beginCreateOrUpdate(String resourceGroupName,
+ String workspaceName, String poolName, String endpointName, InferenceEndpointInner body, Context context);
+
+ /**
+ * Create or update InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint name.
+ * @param body InferenceEndpoint entity to apply during 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)
+ InferenceEndpointInner createOrUpdate(String resourceGroupName, String workspaceName, String poolName,
+ String endpointName, InferenceEndpointInner body);
+
+ /**
+ * Create or update InferenceEndpoint (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param endpointName InferenceEndpoint name.
+ * @param body InferenceEndpoint entity to apply during operation.
+ * @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)
+ InferenceEndpointInner createOrUpdate(String resourceGroupName, String workspaceName, String poolName,
+ String endpointName, InferenceEndpointInner body, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/InferenceGroupsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/InferenceGroupsClient.java
new file mode 100644
index 0000000000000..8ef3c24a40f6b
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/InferenceGroupsClient.java
@@ -0,0 +1,504 @@
+// 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.DeltaModelStatusResponseInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.GroupStatusInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.InferenceGroupInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.SkuResourceInner;
+import com.azure.resourcemanager.machinelearning.models.DeltaModelListRequest;
+import com.azure.resourcemanager.machinelearning.models.DeltaModelModifyRequest;
+import com.azure.resourcemanager.machinelearning.models.DeltaModelStatusRequest;
+import com.azure.resourcemanager.machinelearning.models.OrderString;
+import com.azure.resourcemanager.machinelearning.models.PartialMinimalTrackedResourceWithSku;
+
+/**
+ * An instance of this class provides access to all the operations defined in InferenceGroupsClient.
+ */
+public interface InferenceGroupsClient {
+ /**
+ * List Inference Groups.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName Name of the InferencePool.
+ * @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 a paginated list of InferenceGroup entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName, String poolName);
+
+ /**
+ * List Inference Groups.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName Name of the InferencePool.
+ * @param count Number of InferenceGroup to be retrieved in a page of results.
+ * @param skip Continuation token for pagination.
+ * @param tags A set of tags with which to filter the returned models. It is a comma separated string of tags key or
+ * tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 .
+ * @param properties A set of properties with which to filter the returned models. It is a comma separated string of
+ * properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 .
+ * @param orderBy The option to order the response.
+ * @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 a paginated list of InferenceGroup entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName, String poolName,
+ Integer count, String skip, String tags, String properties, OrderString orderBy, Context context);
+
+ /**
+ * Delete InferenceGroup (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup 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, String poolName,
+ String groupName);
+
+ /**
+ * Delete InferenceGroup (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup 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.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String workspaceName, String poolName,
+ String groupName, Context context);
+
+ /**
+ * Delete InferenceGroup (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String poolName, String groupName);
+
+ /**
+ * Delete InferenceGroup (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup 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.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String workspaceName, String poolName, String groupName, Context context);
+
+ /**
+ * Get InferenceGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup 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 inferenceGroup along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String workspaceName, String poolName,
+ String groupName, Context context);
+
+ /**
+ * Get InferenceGroup.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup 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 inferenceGroup.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ InferenceGroupInner get(String resourceGroupName, String workspaceName, String poolName, String groupName);
+
+ /**
+ * Update InferenceGroup (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup name.
+ * @param body Online Endpoint entity to apply during 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, InferenceGroupInner> beginUpdate(String resourceGroupName,
+ String workspaceName, String poolName, String groupName, PartialMinimalTrackedResourceWithSku body);
+
+ /**
+ * Update InferenceGroup (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup name.
+ * @param body Online Endpoint entity to apply during operation.
+ * @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, InferenceGroupInner> beginUpdate(String resourceGroupName,
+ String workspaceName, String poolName, String groupName, PartialMinimalTrackedResourceWithSku body,
+ Context context);
+
+ /**
+ * Update InferenceGroup (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup name.
+ * @param body Online Endpoint entity to apply during 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)
+ InferenceGroupInner update(String resourceGroupName, String workspaceName, String poolName, String groupName,
+ PartialMinimalTrackedResourceWithSku body);
+
+ /**
+ * Update InferenceGroup (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup name.
+ * @param body Online Endpoint entity to apply during operation.
+ * @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)
+ InferenceGroupInner update(String resourceGroupName, String workspaceName, String poolName, String groupName,
+ PartialMinimalTrackedResourceWithSku body, Context context);
+
+ /**
+ * Create or update InferenceGroup (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup name.
+ * @param body InferenceGroup entity to apply during 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, InferenceGroupInner> beginCreateOrUpdate(String resourceGroupName,
+ String workspaceName, String poolName, String groupName, InferenceGroupInner body);
+
+ /**
+ * Create or update InferenceGroup (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup name.
+ * @param body InferenceGroup entity to apply during operation.
+ * @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, InferenceGroupInner> beginCreateOrUpdate(String resourceGroupName,
+ String workspaceName, String poolName, String groupName, InferenceGroupInner body, Context context);
+
+ /**
+ * Create or update InferenceGroup (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup name.
+ * @param body InferenceGroup entity to apply during 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)
+ InferenceGroupInner createOrUpdate(String resourceGroupName, String workspaceName, String poolName,
+ String groupName, InferenceGroupInner body);
+
+ /**
+ * Create or update InferenceGroup (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup name.
+ * @param body InferenceGroup entity to apply during operation.
+ * @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)
+ InferenceGroupInner createOrUpdate(String resourceGroupName, String workspaceName, String poolName,
+ String groupName, InferenceGroupInner body, Context context);
+
+ /**
+ * Retrieve status of delta models associated with the InferenceGroup and the target base model.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup name.
+ * @param body DeltaModelBaseRequest.
+ * @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 contract returning to user the delta models along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getDeltaModelsStatusAsyncWithResponse(String resourceGroupName,
+ String workspaceName, String poolName, String groupName, DeltaModelStatusRequest body, Context context);
+
+ /**
+ * Retrieve status of delta models associated with the InferenceGroup and the target base model.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup name.
+ * @param body DeltaModelBaseRequest.
+ * @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 contract returning to user the delta models.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ DeltaModelStatusResponseInner getDeltaModelsStatusAsync(String resourceGroupName, String workspaceName,
+ String poolName, String groupName, DeltaModelStatusRequest body);
+
+ /**
+ * List delta models associated with the InferenceGroup and the target base model.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup name.
+ * @param body DeltaModelBaseRequest.
+ * @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 a paginated list of String entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDeltaModelsAsync(String resourceGroupName, String workspaceName, String poolName,
+ String groupName, DeltaModelListRequest body);
+
+ /**
+ * List delta models associated with the InferenceGroup and the target base model.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup name.
+ * @param body DeltaModelBaseRequest.
+ * @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 a paginated list of String entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listDeltaModelsAsync(String resourceGroupName, String workspaceName, String poolName,
+ String groupName, DeltaModelListRequest body, Context context);
+
+ /**
+ * Modify delta models associated with the InferenceGroup and the target base model.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup name.
+ * @param body DeltaModelModifyRequest.
+ * @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> beginModifyDeltaModelsAsync(String resourceGroupName, String workspaceName,
+ String poolName, String groupName, DeltaModelModifyRequest body);
+
+ /**
+ * Modify delta models associated with the InferenceGroup and the target base model.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup name.
+ * @param body DeltaModelModifyRequest.
+ * @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> beginModifyDeltaModelsAsync(String resourceGroupName, String workspaceName,
+ String poolName, String groupName, DeltaModelModifyRequest body, Context context);
+
+ /**
+ * Modify delta models associated with the InferenceGroup and the target base model.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup name.
+ * @param body DeltaModelModifyRequest.
+ * @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 modifyDeltaModelsAsync(String resourceGroupName, String workspaceName, String poolName, String groupName,
+ DeltaModelModifyRequest body);
+
+ /**
+ * Modify delta models associated with the InferenceGroup and the target base model.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup name.
+ * @param body DeltaModelModifyRequest.
+ * @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 modifyDeltaModelsAsync(String resourceGroupName, String workspaceName, String poolName, String groupName,
+ DeltaModelModifyRequest body, Context context);
+
+ /**
+ * Retrieve inference group status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup 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 getStatusWithResponse(String resourceGroupName, String workspaceName, String poolName,
+ String groupName, Context context);
+
+ /**
+ * Retrieve inference group status.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName InferencePool name.
+ * @param groupName InferenceGroup 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)
+ GroupStatusInner getStatus(String resourceGroupName, String workspaceName, String poolName, String groupName);
+
+ /**
+ * List Inference Group Skus.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName Inference Pool name.
+ * @param groupName Inference Group 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 a paginated list of SkuResource entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listSkus(String resourceGroupName, String workspaceName, String poolName,
+ String groupName);
+
+ /**
+ * List Inference Group Skus.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param poolName Inference Pool name.
+ * @param groupName Inference Group name.
+ * @param count Number of Skus to be retrieved in a page of results.
+ * @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 a paginated list of SkuResource entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listSkus(String resourceGroupName, String workspaceName, String poolName,
+ String groupName, Integer count, String skip, Context context);
+}
diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/InferencePoolsClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/InferencePoolsClient.java
new file mode 100644
index 0000000000000..4c93202335e28
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/InferencePoolsClient.java
@@ -0,0 +1,277 @@
+// 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.InferencePoolInner;
+import com.azure.resourcemanager.machinelearning.models.OrderString;
+import com.azure.resourcemanager.machinelearning.models.PartialMinimalTrackedResourceWithSkuAndIdentity;
+
+/**
+ * An instance of this class provides access to all the operations defined in InferencePoolsClient.
+ */
+public interface InferencePoolsClient {
+ /**
+ * List InferencePools.
+ *
+ * @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 a paginated list of InferencePool entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName);
+
+ /**
+ * List InferencePools.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param count Number of inferencePools to be retrieved in a page of results.
+ * @param skip Continuation token for pagination.
+ * @param tags A set of tags with which to filter the returned models. It is a comma separated string of tags key or
+ * tags key=value. Example: tagKey1,tagKey2,tagKey3=value3 .
+ * @param properties A set of properties with which to filter the returned models. It is a comma separated string of
+ * properties key and/or properties key=value Example: propKey1,propKey2,propKey3=value3 .
+ * @param orderBy The option to order the response.
+ * @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 a paginated list of InferencePool entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String workspaceName, Integer count, String skip,
+ String tags, String properties, OrderString orderBy, Context context);
+
+ /**
+ * Delete InferencePool (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param inferencePoolName Name of InferencePool.
+ * @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 inferencePoolName);
+
+ /**
+ * Delete InferencePool (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param inferencePoolName Name of InferencePool.
+ * @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 inferencePoolName, Context context);
+
+ /**
+ * Delete InferencePool (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param inferencePoolName Name of InferencePool.
+ * @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 inferencePoolName);
+
+ /**
+ * Delete InferencePool (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param inferencePoolName Name of InferencePool.
+ * @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 inferencePoolName, Context context);
+
+ /**
+ * Get InferencePool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param inferencePoolName Name of InferencePool.
+ * @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 inferencePool along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(String resourceGroupName, String workspaceName,
+ String inferencePoolName, Context context);
+
+ /**
+ * Get InferencePool.
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param inferencePoolName Name of InferencePool.
+ * @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 inferencePool.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ InferencePoolInner get(String resourceGroupName, String workspaceName, String inferencePoolName);
+
+ /**
+ * Update InferencePool (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param inferencePoolName Name of InferencePool.
+ * @param body Inference Pool entity to apply during 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, InferencePoolInner> beginUpdate(String resourceGroupName,
+ String workspaceName, String inferencePoolName, PartialMinimalTrackedResourceWithSkuAndIdentity body);
+
+ /**
+ * Update InferencePool (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param inferencePoolName Name of InferencePool.
+ * @param body Inference Pool entity to apply during operation.
+ * @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, InferencePoolInner> beginUpdate(String resourceGroupName,
+ String workspaceName, String inferencePoolName, PartialMinimalTrackedResourceWithSkuAndIdentity body,
+ Context context);
+
+ /**
+ * Update InferencePool (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param inferencePoolName Name of InferencePool.
+ * @param body Inference Pool entity to apply during 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)
+ InferencePoolInner update(String resourceGroupName, String workspaceName, String inferencePoolName,
+ PartialMinimalTrackedResourceWithSkuAndIdentity body);
+
+ /**
+ * Update InferencePool (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param inferencePoolName Name of InferencePool.
+ * @param body Inference Pool entity to apply during operation.
+ * @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)
+ InferencePoolInner update(String resourceGroupName, String workspaceName, String inferencePoolName,
+ PartialMinimalTrackedResourceWithSkuAndIdentity body, Context context);
+
+ /**
+ * Create or update InferencePool (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param inferencePoolName Name of InferencePool.
+ * @param body InferencePool entity to apply during 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, InferencePoolInner> beginCreateOrUpdate(String resourceGroupName,
+ String workspaceName, String inferencePoolName, InferencePoolInner body);
+
+ /**
+ * Create or update InferencePool (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param inferencePoolName Name of InferencePool.
+ * @param body InferencePool entity to apply during operation.
+ * @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, InferencePoolInner> beginCreateOrUpdate(String resourceGroupName,
+ String workspaceName, String inferencePoolName, InferencePoolInner body, Context context);
+
+ /**
+ * Create or update InferencePool (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param inferencePoolName Name of InferencePool.
+ * @param body InferencePool entity to apply during 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)
+ InferencePoolInner createOrUpdate(String resourceGroupName, String workspaceName, String inferencePoolName,
+ InferencePoolInner body);
+
+ /**
+ * Create or update InferencePool (asynchronous).
+ *
+ * @param resourceGroupName The name of the resource group. The name is case insensitive.
+ * @param workspaceName Name of Azure Machine Learning workspace.
+ * @param inferencePoolName Name of InferencePool.
+ * @param body InferencePool entity to apply during operation.
+ * @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)
+ InferencePoolInner createOrUpdate(String resourceGroupName, String workspaceName, String inferencePoolName,
+ InferencePoolInner body, Context context);
+}
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 1d352bc171417..d465c7a581e86 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 e092cd4e3ab95..03336b3bbbb45 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 b3867155b4b7b..fa48b2a483c86 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 c40a3ce213ae6..d26cec6172460 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/PtuQuotasClient.java b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/PtuQuotasClient.java
new file mode 100644
index 0000000000000..103bfafe2861a
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/PtuQuotasClient.java
@@ -0,0 +1,95 @@
+// 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.util.Context;
+import com.azure.resourcemanager.machinelearning.fluent.models.AvailableQuotaInner;
+import com.azure.resourcemanager.machinelearning.fluent.models.UsageAndQuotaDetailsInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in PtuQuotasClient.
+ */
+public interface PtuQuotasClient {
+ /**
+ * List available MaaS PTU quota.
+ *
+ * @param location The name of Azure region.
+ * @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 a paginated list of AvailableQuota entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAvailable(String location);
+
+ /**
+ * List available MaaS PTU quota.
+ *
+ * @param location The name of Azure region.
+ * @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 a paginated list of AvailableQuota entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listAvailable(String location, String skip, Context context);
+
+ /**
+ * Get available MaaS PTU quota.
+ *
+ * @param location The name of Azure region.
+ * @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 MaaS PTU quota along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getAvailableWithResponse(String location, Context context);
+
+ /**
+ * Get available MaaS PTU quota.
+ *
+ * @param location The name of Azure region.
+ * @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 MaaS PTU quota.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AvailableQuotaInner getAvailable(String location);
+
+ /**
+ * List MaaS PTU usage and quota.
+ *
+ * @param location The name of Azure region.
+ * @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 a paginated list of UsageAndQuotaDetails entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String location);
+
+ /**
+ * List MaaS PTU usage and quota.
+ *
+ * @param location The name of Azure region.
+ * @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 a paginated list of UsageAndQuotaDetails entities as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String location, String skip, 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 0000000000000..c0e141b3045b9
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RaiPoliciesClient.java
@@ -0,0 +1,48 @@
+// 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion, 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 0000000000000..b6c141554b269
--- /dev/null
+++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/src/main/java/com/azure/resourcemanager/machinelearning/fluent/RaiPolicyOperationsClient.java
@@ -0,0 +1,190 @@
+// 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion, 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 proxyApiVersion Api version used by proxy call.
+ * @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,
+ String proxyApiVersion, 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion, 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 proxyApiVersion Api version used by proxy call.
+ * @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, String proxyApiVersion, 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 eee87969a4a32..1fe59f400c6e9 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 d3a6d397d5b90..601f99f3aa017 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
@@ -27,155 +27,152 @@
*/
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);
+ WorkspaceUpdateParameters 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);
+ WorkspaceUpdateParameters 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, WorkspaceUpdateParameters 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, WorkspaceUpdateParameters 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