diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/CHANGELOG.md b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/CHANGELOG.md
index a5c9cd9ed0302..83a6fbf46166d 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/CHANGELOG.md
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/CHANGELOG.md
@@ -1,5 +1,15 @@
# Release History
+## 1.2.0 (2024-08-30)
+
+### Features Added
+
+- Release 1.2.0
+
+### Breaking Changes
+
+### Bugs Fixed
+
## 1.2.0-beta.4 (Unreleased)
### Features Added
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_EndpointResourcePropertiesBasicResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_EndpointResourcePropertiesBasicResource.cs
new file mode 100644
index 0000000000000..b85a2edf37c27
--- /dev/null
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_EndpointResourcePropertiesBasicResource.cs
@@ -0,0 +1,179 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.MachineLearning.Models;
+
+namespace Azure.ResourceManager.MachineLearning.Samples
+{
+ public partial class Sample_EndpointResourcePropertiesBasicResource
+ {
+ // Get Endpoint
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetEndpoint()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/get.json
+ // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this EndpointResourcePropertiesBasicResource created on azure
+ // for more information of creating EndpointResourcePropertiesBasicResource, please refer to the document of EndpointResourcePropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string endpointName = "Azure.OpenAI";
+ ResourceIdentifier endpointResourcePropertiesBasicResourceId = EndpointResourcePropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName);
+ EndpointResourcePropertiesBasicResource endpointResourcePropertiesBasicResource = client.GetEndpointResourcePropertiesBasicResource(endpointResourcePropertiesBasicResourceId);
+
+ // invoke the operation
+ EndpointResourcePropertiesBasicResource result = await endpointResourcePropertiesBasicResource.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointResourcePropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Create Endpoint
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_CreateEndpoint()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/create.json
+ // this example is just showing the usage of "Endpoint_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this EndpointResourcePropertiesBasicResource created on azure
+ // for more information of creating EndpointResourcePropertiesBasicResource, please refer to the document of EndpointResourcePropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string endpointName = "Azure.OpenAI";
+ ResourceIdentifier endpointResourcePropertiesBasicResourceId = EndpointResourcePropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName);
+ EndpointResourcePropertiesBasicResource endpointResourcePropertiesBasicResource = client.GetEndpointResourcePropertiesBasicResource(endpointResourcePropertiesBasicResourceId);
+
+ // invoke the operation
+ EndpointResourcePropertiesBasicResourceData data = new EndpointResourcePropertiesBasicResourceData(new OpenAIEndpointResourceProperties()
+ {
+ AssociatedResourceId = new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveService/account/account-1"),
+ Name = "Azure.OpenAI",
+ });
+ ArmOperation lro = await endpointResourcePropertiesBasicResource.UpdateAsync(WaitUntil.Completed, data);
+ EndpointResourcePropertiesBasicResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointResourcePropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // List Endpoint Keys
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetKeys_ListEndpointKeys()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/listKeys.json
+ // this example is just showing the usage of "Endpoint_ListKeys" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this EndpointResourcePropertiesBasicResource created on azure
+ // for more information of creating EndpointResourcePropertiesBasicResource, please refer to the document of EndpointResourcePropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string endpointName = "Azure.OpenAI";
+ ResourceIdentifier endpointResourcePropertiesBasicResourceId = EndpointResourcePropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName);
+ EndpointResourcePropertiesBasicResource endpointResourcePropertiesBasicResource = client.GetEndpointResourcePropertiesBasicResource(endpointResourcePropertiesBasicResourceId);
+
+ // invoke the operation
+ EndpointKeys result = await endpointResourcePropertiesBasicResource.GetKeysAsync();
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // Get Endpoint Models
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetModels_GetEndpointModels()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/getModels.json
+ // this example is just showing the usage of "Endpoint_GetModels" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this EndpointResourcePropertiesBasicResource created on azure
+ // for more information of creating EndpointResourcePropertiesBasicResource, please refer to the document of EndpointResourcePropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string endpointName = "Azure.OpenAI";
+ ResourceIdentifier endpointResourcePropertiesBasicResourceId = EndpointResourcePropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName);
+ EndpointResourcePropertiesBasicResource endpointResourcePropertiesBasicResource = client.GetEndpointResourcePropertiesBasicResource(endpointResourcePropertiesBasicResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (EndpointModelProperties item in endpointResourcePropertiesBasicResource.GetModelsAsync())
+ {
+ Console.WriteLine($"Succeeded: {item}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Regenerate Endpoint Keys
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task RegenerateKeys_RegenerateEndpointKeys()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/regenerateKey.json
+ // this example is just showing the usage of "Endpoint_RegenerateKeys" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this EndpointResourcePropertiesBasicResource created on azure
+ // for more information of creating EndpointResourcePropertiesBasicResource, please refer to the document of EndpointResourcePropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string endpointName = "Azure.OpenAI";
+ ResourceIdentifier endpointResourcePropertiesBasicResourceId = EndpointResourcePropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName);
+ EndpointResourcePropertiesBasicResource endpointResourcePropertiesBasicResource = client.GetEndpointResourcePropertiesBasicResource(endpointResourcePropertiesBasicResourceId);
+
+ // invoke the operation
+ RegenerateServiceAccountKeyContent content = new RegenerateServiceAccountKeyContent()
+ {
+ KeyName = ServiceAccountKeyName.Key1,
+ };
+ AccountApiKeys result = await endpointResourcePropertiesBasicResource.RegenerateKeysAsync(content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_EndpointResourcePropertiesBasicResourceCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_EndpointResourcePropertiesBasicResourceCollection.cs
new file mode 100644
index 0000000000000..c87bb000906f4
--- /dev/null
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_EndpointResourcePropertiesBasicResourceCollection.cs
@@ -0,0 +1,207 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.MachineLearning.Models;
+
+namespace Azure.ResourceManager.MachineLearning.Samples
+{
+ public partial class Sample_EndpointResourcePropertiesBasicResourceCollection
+ {
+ // List Endpoint
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_ListEndpoint()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/list.json
+ // this example is just showing the usage of "Endpoint_List" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceResource created on azure
+ // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
+
+ // get the collection of this EndpointResourcePropertiesBasicResource
+ EndpointResourcePropertiesBasicResourceCollection collection = machineLearningWorkspace.GetEndpointResourcePropertiesBasicResources();
+
+ // invoke the operation and iterate over the result
+ EndpointType? endpointType = EndpointType.AzureOpenAI;
+ string skip = "skip_string";
+ await foreach (EndpointResourcePropertiesBasicResource item in collection.GetAllAsync(endpointType: endpointType, skip: skip))
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointResourcePropertiesBasicResourceData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get Endpoint
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetEndpoint()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/get.json
+ // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceResource created on azure
+ // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
+
+ // get the collection of this EndpointResourcePropertiesBasicResource
+ EndpointResourcePropertiesBasicResourceCollection collection = machineLearningWorkspace.GetEndpointResourcePropertiesBasicResources();
+
+ // invoke the operation
+ string endpointName = "Azure.OpenAI";
+ EndpointResourcePropertiesBasicResource result = await collection.GetAsync(endpointName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointResourcePropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Get Endpoint
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_GetEndpoint()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/get.json
+ // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceResource created on azure
+ // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
+
+ // get the collection of this EndpointResourcePropertiesBasicResource
+ EndpointResourcePropertiesBasicResourceCollection collection = machineLearningWorkspace.GetEndpointResourcePropertiesBasicResources();
+
+ // invoke the operation
+ string endpointName = "Azure.OpenAI";
+ bool result = await collection.ExistsAsync(endpointName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // Get Endpoint
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_GetEndpoint()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/get.json
+ // this example is just showing the usage of "Endpoint_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceResource created on azure
+ // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
+
+ // get the collection of this EndpointResourcePropertiesBasicResource
+ EndpointResourcePropertiesBasicResourceCollection collection = machineLearningWorkspace.GetEndpointResourcePropertiesBasicResources();
+
+ // invoke the operation
+ string endpointName = "Azure.OpenAI";
+ NullableResponse response = await collection.GetIfExistsAsync(endpointName);
+ EndpointResourcePropertiesBasicResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine($"Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointResourcePropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+
+ // Create Endpoint
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CreateOrUpdate_CreateEndpoint()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/create.json
+ // this example is just showing the usage of "Endpoint_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceResource created on azure
+ // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
+
+ // get the collection of this EndpointResourcePropertiesBasicResource
+ EndpointResourcePropertiesBasicResourceCollection collection = machineLearningWorkspace.GetEndpointResourcePropertiesBasicResources();
+
+ // invoke the operation
+ string endpointName = "Azure.OpenAI";
+ EndpointResourcePropertiesBasicResourceData data = new EndpointResourcePropertiesBasicResourceData(new OpenAIEndpointResourceProperties()
+ {
+ AssociatedResourceId = new ResourceIdentifier("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/test-rg/providers/Microsoft.CognitiveService/account/account-1"),
+ Name = "Azure.OpenAI",
+ });
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, endpointName, data);
+ EndpointResourcePropertiesBasicResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointResourcePropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentContainerCollection.cs
index 358b9768eef64..b037335159a1d 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentContainerCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentContainerCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearninRegistryComponentContainerCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListRegistryComponentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentContainer/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ComponentContainer/list.json
// this example is just showing the usage of "RegistryComponentContainers_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -57,7 +57,7 @@ public async Task GetAll_ListRegistryComponentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryComponentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ComponentContainer/get.json
// this example is just showing the usage of "RegistryComponentContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -92,7 +92,7 @@ public async Task Get_GetRegistryComponentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetRegistryComponentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ComponentContainer/get.json
// this example is just showing the usage of "RegistryComponentContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -123,7 +123,7 @@ public async Task Exists_GetRegistryComponentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetRegistryComponentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ComponentContainer/get.json
// this example is just showing the usage of "RegistryComponentContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -166,7 +166,7 @@ public async Task GetIfExists_GetRegistryComponentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateRegistryComponentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ComponentContainer/createOrUpdate.json
// this example is just showing the usage of "RegistryComponentContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentContainerResource.cs
index e313a64b2aa4b..31468d1db6a45 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentContainerResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentContainerResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearninRegistryComponentContainerResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteRegistryComponentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentContainer/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ComponentContainer/delete.json
// this example is just showing the usage of "RegistryComponentContainers_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -48,7 +48,7 @@ public async Task Delete_DeleteRegistryComponentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryComponentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ComponentContainer/get.json
// this example is just showing the usage of "RegistryComponentContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -80,7 +80,7 @@ public async Task Get_GetRegistryComponentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateRegistryComponentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ComponentContainer/createOrUpdate.json
// this example is just showing the usage of "RegistryComponentContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentVersionCollection.cs
index 805397cd3a9e5..a1abf8574e176 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentVersionCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentVersionCollection.cs
@@ -21,7 +21,7 @@ public partial class Sample_MachineLearninRegistryComponentVersionCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListRegistryComponentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentVersion/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ComponentVersion/list.json
// this example is just showing the usage of "RegistryComponentVersions_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -61,7 +61,7 @@ public async Task GetAll_ListRegistryComponentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryComponentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ComponentVersion/get.json
// this example is just showing the usage of "RegistryComponentVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -97,7 +97,7 @@ public async Task Get_GetRegistryComponentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetRegistryComponentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ComponentVersion/get.json
// this example is just showing the usage of "RegistryComponentVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -129,7 +129,7 @@ public async Task Exists_GetRegistryComponentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetRegistryComponentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ComponentVersion/get.json
// this example is just showing the usage of "RegistryComponentVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -173,7 +173,7 @@ public async Task GetIfExists_GetRegistryComponentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateRegistryComponentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ComponentVersion/createOrUpdate.json
// this example is just showing the usage of "RegistryComponentVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentVersionResource.cs
index 4f3ae02c632b0..13c4cf31e577e 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentVersionResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearninRegistryComponentVersionResource.cs
@@ -21,7 +21,7 @@ public partial class Sample_MachineLearninRegistryComponentVersionResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteRegistryComponentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentVersion/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ComponentVersion/delete.json
// this example is just showing the usage of "RegistryComponentVersions_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -50,7 +50,7 @@ public async Task Delete_DeleteRegistryComponentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryComponentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ComponentVersion/get.json
// this example is just showing the usage of "RegistryComponentVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -83,7 +83,7 @@ public async Task Get_GetRegistryComponentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateRegistryComponentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ComponentVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ComponentVersion/createOrUpdate.json
// this example is just showing the usage of "RegistryComponentVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentCollection.cs
index 2ed214013cd40..a410a3bd78b90 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentCollection.cs
@@ -23,7 +23,7 @@ public partial class Sample_MachineLearningBatchDeploymentCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListWorkspaceBatchDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchDeployment/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/BatchDeployment/list.json
// this example is just showing the usage of "BatchDeployments_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -63,7 +63,7 @@ public async Task GetAll_ListWorkspaceBatchDeployment()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceBatchDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchDeployment/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/BatchDeployment/get.json
// this example is just showing the usage of "BatchDeployments_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -99,7 +99,7 @@ public async Task Get_GetWorkspaceBatchDeployment()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetWorkspaceBatchDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchDeployment/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/BatchDeployment/get.json
// this example is just showing the usage of "BatchDeployments_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -131,7 +131,7 @@ public async Task Exists_GetWorkspaceBatchDeployment()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetWorkspaceBatchDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchDeployment/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/BatchDeployment/get.json
// this example is just showing the usage of "BatchDeployments_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -175,7 +175,7 @@ public async Task GetIfExists_GetWorkspaceBatchDeployment()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateWorkspaceBatchDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchDeployment/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/BatchDeployment/createOrUpdate.json
// this example is just showing the usage of "BatchDeployments_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentResource.cs
index 5d7c84a31476c..120915ad21fe4 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchDeploymentResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningBatchDeploymentResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceBatchDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchDeployment/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/BatchDeployment/delete.json
// this example is just showing the usage of "BatchDeployments_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -49,7 +49,7 @@ public async Task Delete_DeleteWorkspaceBatchDeployment()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceBatchDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchDeployment/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/BatchDeployment/get.json
// this example is just showing the usage of "BatchDeployments_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -82,7 +82,7 @@ public async Task Get_GetWorkspaceBatchDeployment()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_UpdateWorkspaceBatchDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchDeployment/update.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/BatchDeployment/update.json
// this example is just showing the usage of "BatchDeployments_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchEndpointCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchEndpointCollection.cs
index ad51d10f136f0..2a562c959df9e 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchEndpointCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchEndpointCollection.cs
@@ -21,7 +21,7 @@ public partial class Sample_MachineLearningBatchEndpointCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListWorkspaceBatchEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchEndpoint/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/BatchEndpoint/list.json
// this example is just showing the usage of "BatchEndpoints_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -59,7 +59,7 @@ public async Task GetAll_ListWorkspaceBatchEndpoint()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceBatchEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchEndpoint/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/BatchEndpoint/get.json
// this example is just showing the usage of "BatchEndpoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -94,7 +94,7 @@ public async Task Get_GetWorkspaceBatchEndpoint()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetWorkspaceBatchEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchEndpoint/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/BatchEndpoint/get.json
// this example is just showing the usage of "BatchEndpoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -125,7 +125,7 @@ public async Task Exists_GetWorkspaceBatchEndpoint()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetWorkspaceBatchEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchEndpoint/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/BatchEndpoint/get.json
// this example is just showing the usage of "BatchEndpoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -168,7 +168,7 @@ public async Task GetIfExists_GetWorkspaceBatchEndpoint()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateWorkspaceBatchEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchEndpoint/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/BatchEndpoint/createOrUpdate.json
// this example is just showing the usage of "BatchEndpoints_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchEndpointResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchEndpointResource.cs
index fa2b890474d5e..426ea064a7c90 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchEndpointResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningBatchEndpointResource.cs
@@ -21,7 +21,7 @@ public partial class Sample_MachineLearningBatchEndpointResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceBatchEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchEndpoint/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/BatchEndpoint/delete.json
// this example is just showing the usage of "BatchEndpoints_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -49,7 +49,7 @@ public async Task Delete_DeleteWorkspaceBatchEndpoint()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceBatchEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchEndpoint/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/BatchEndpoint/get.json
// this example is just showing the usage of "BatchEndpoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -81,7 +81,7 @@ public async Task Get_GetWorkspaceBatchEndpoint()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_UpdateWorkspaceBatchEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchEndpoint/update.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/BatchEndpoint/update.json
// this example is just showing the usage of "BatchEndpoints_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -130,7 +130,7 @@ public async Task Update_UpdateWorkspaceBatchEndpoint()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetKeys_ListKeysWorkspaceBatchEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/BatchEndpoint/listKeys.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/BatchEndpoint/listKeys.json
// this example is just showing the usage of "BatchEndpoints_ListKeys" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerCollection.cs
index 85fd962527603..fbc05457edd07 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningCodeContainerCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListWorkspaceCodeContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeContainer/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/CodeContainer/list.json
// this example is just showing the usage of "CodeContainers_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -57,7 +57,7 @@ public async Task GetAll_ListWorkspaceCodeContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceCodeContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/CodeContainer/get.json
// this example is just showing the usage of "CodeContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -92,7 +92,7 @@ public async Task Get_GetWorkspaceCodeContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetWorkspaceCodeContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/CodeContainer/get.json
// this example is just showing the usage of "CodeContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -123,7 +123,7 @@ public async Task Exists_GetWorkspaceCodeContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetWorkspaceCodeContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/CodeContainer/get.json
// this example is just showing the usage of "CodeContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -166,7 +166,7 @@ public async Task GetIfExists_GetWorkspaceCodeContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateWorkspaceCodeContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/CodeContainer/createOrUpdate.json
// this example is just showing the usage of "CodeContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerResource.cs
index ff117e0d7a303..e8f668094ce90 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeContainerResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningCodeContainerResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceCodeContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeContainer/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/CodeContainer/delete.json
// this example is just showing the usage of "CodeContainers_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -48,7 +48,7 @@ public async Task Delete_DeleteWorkspaceCodeContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceCodeContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/CodeContainer/get.json
// this example is just showing the usage of "CodeContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -80,7 +80,7 @@ public async Task Get_GetWorkspaceCodeContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateWorkspaceCodeContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/CodeContainer/createOrUpdate.json
// this example is just showing the usage of "CodeContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionCollection.cs
index 9ca9eb2efb7ed..58eca4e07e99d 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningCodeVersionCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListWorkspaceCodeVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeVersion/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/CodeVersion/list.json
// this example is just showing the usage of "CodeVersions_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -60,7 +60,7 @@ public async Task GetAll_ListWorkspaceCodeVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceCodeVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/CodeVersion/get.json
// this example is just showing the usage of "CodeVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -96,7 +96,7 @@ public async Task Get_GetWorkspaceCodeVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetWorkspaceCodeVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/CodeVersion/get.json
// this example is just showing the usage of "CodeVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -128,7 +128,7 @@ public async Task Exists_GetWorkspaceCodeVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetWorkspaceCodeVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/CodeVersion/get.json
// this example is just showing the usage of "CodeVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -172,7 +172,7 @@ public async Task GetIfExists_GetWorkspaceCodeVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateWorkspaceCodeVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/CodeVersion/createOrUpdate.json
// this example is just showing the usage of "CodeVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionResource.cs
index b6dd152dd3706..9c6db8418b8de 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningCodeVersionResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningCodeVersionResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceCodeVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeVersion/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/CodeVersion/delete.json
// this example is just showing the usage of "CodeVersions_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -49,7 +49,7 @@ public async Task Delete_DeleteWorkspaceCodeVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceCodeVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/CodeVersion/get.json
// this example is just showing the usage of "CodeVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -82,7 +82,7 @@ public async Task Get_GetWorkspaceCodeVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateWorkspaceCodeVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/CodeVersion/createOrUpdate.json
// this example is just showing the usage of "CodeVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -125,12 +125,47 @@ public async Task Update_CreateOrUpdateWorkspaceCodeVersion()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ // Publish Workspace Code Version.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Publish_PublishWorkspaceCodeVersion()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/CodeVersion/publish.json
+ // this example is just showing the usage of "CodeVersions_Publish" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningCodeVersionResource created on azure
+ // for more information of creating MachineLearningCodeVersionResource, please refer to the document of MachineLearningCodeVersionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ string name = "string";
+ string version = "string";
+ ResourceIdentifier machineLearningCodeVersionResourceId = MachineLearningCodeVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version);
+ MachineLearningCodeVersionResource machineLearningCodeVersion = client.GetMachineLearningCodeVersionResource(machineLearningCodeVersionResourceId);
+
+ // invoke the operation
+ DestinationAsset body = new DestinationAsset()
+ {
+ DestinationName = "string",
+ DestinationVersion = "string",
+ RegistryName = "string",
+ };
+ await machineLearningCodeVersion.PublishAsync(WaitUntil.Completed, body);
+
+ Console.WriteLine($"Succeeded");
+ }
+
// CreateOrGetStartPendingUpload Workspace Code Version.
[NUnit.Framework.Test]
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadWorkspaceCodeVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/CodeVersion/createOrGetStartPendingUpload.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/CodeVersion/createOrGetStartPendingUpload.json
// this example is just showing the usage of "CodeVersions_CreateOrGetStartPendingUpload" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -152,7 +187,7 @@ public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadWor
PendingUploadRequestDto body = new PendingUploadRequestDto()
{
PendingUploadId = "string",
- PendingUploadType = PendingUploadType.TemporaryBlobReference,
+ PendingUploadType = PendingUploadType.None,
};
PendingUploadResponseDto result = await machineLearningCodeVersion.CreateOrGetStartPendingUploadAsync(body);
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerCollection.cs
index b1674dc96de40..1f34c30936247 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningComponentContainerCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListWorkspaceComponentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentContainer/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ComponentContainer/list.json
// this example is just showing the usage of "ComponentContainers_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -57,7 +57,7 @@ public async Task GetAll_ListWorkspaceComponentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceComponentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ComponentContainer/get.json
// this example is just showing the usage of "ComponentContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -92,7 +92,7 @@ public async Task Get_GetWorkspaceComponentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetWorkspaceComponentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ComponentContainer/get.json
// this example is just showing the usage of "ComponentContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -123,7 +123,7 @@ public async Task Exists_GetWorkspaceComponentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetWorkspaceComponentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ComponentContainer/get.json
// this example is just showing the usage of "ComponentContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -166,7 +166,7 @@ public async Task GetIfExists_GetWorkspaceComponentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateWorkspaceComponentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ComponentContainer/createOrUpdate.json
// this example is just showing the usage of "ComponentContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerResource.cs
index 60097ab23f19a..d292981d4f427 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentContainerResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningComponentContainerResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceComponentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentContainer/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ComponentContainer/delete.json
// this example is just showing the usage of "ComponentContainers_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -48,7 +48,7 @@ public async Task Delete_DeleteWorkspaceComponentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceComponentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ComponentContainer/get.json
// this example is just showing the usage of "ComponentContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -80,7 +80,7 @@ public async Task Get_GetWorkspaceComponentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateWorkspaceComponentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ComponentContainer/createOrUpdate.json
// this example is just showing the usage of "ComponentContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionCollection.cs
index b9147859d58b9..0e269451ac340 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionCollection.cs
@@ -21,7 +21,7 @@ public partial class Sample_MachineLearningComponentVersionCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListWorkspaceComponentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentVersion/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ComponentVersion/list.json
// this example is just showing the usage of "ComponentVersions_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -61,7 +61,7 @@ public async Task GetAll_ListWorkspaceComponentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceComponentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ComponentVersion/get.json
// this example is just showing the usage of "ComponentVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -97,7 +97,7 @@ public async Task Get_GetWorkspaceComponentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetWorkspaceComponentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ComponentVersion/get.json
// this example is just showing the usage of "ComponentVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -129,7 +129,7 @@ public async Task Exists_GetWorkspaceComponentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetWorkspaceComponentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ComponentVersion/get.json
// this example is just showing the usage of "ComponentVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -173,7 +173,7 @@ public async Task GetIfExists_GetWorkspaceComponentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateWorkspaceComponentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ComponentVersion/createOrUpdate.json
// this example is just showing the usage of "ComponentVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionResource.cs
index 6768ffbba8889..957b44d9bcaeb 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComponentVersionResource.cs
@@ -21,7 +21,7 @@ public partial class Sample_MachineLearningComponentVersionResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceComponentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentVersion/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ComponentVersion/delete.json
// this example is just showing the usage of "ComponentVersions_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -50,7 +50,7 @@ public async Task Delete_DeleteWorkspaceComponentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceComponentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ComponentVersion/get.json
// this example is just showing the usage of "ComponentVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -83,7 +83,7 @@ public async Task Get_GetWorkspaceComponentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateWorkspaceComponentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ComponentVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ComponentVersion/createOrUpdate.json
// this example is just showing the usage of "ComponentVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -128,5 +128,40 @@ public async Task Update_CreateOrUpdateWorkspaceComponentVersion()
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+
+ // Publish Workspace Component Version.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Publish_PublishWorkspaceComponentVersion()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ComponentVersion/publish.json
+ // this example is just showing the usage of "ComponentVersions_Publish" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningComponentVersionResource created on azure
+ // for more information of creating MachineLearningComponentVersionResource, please refer to the document of MachineLearningComponentVersionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ string name = "string";
+ string version = "string";
+ ResourceIdentifier machineLearningComponentVersionResourceId = MachineLearningComponentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version);
+ MachineLearningComponentVersionResource machineLearningComponentVersion = client.GetMachineLearningComponentVersionResource(machineLearningComponentVersionResourceId);
+
+ // invoke the operation
+ DestinationAsset body = new DestinationAsset()
+ {
+ DestinationName = "string",
+ DestinationVersion = "string",
+ RegistryName = "string",
+ };
+ await machineLearningComponentVersion.PublishAsync(WaitUntil.Completed, body);
+
+ Console.WriteLine($"Succeeded");
+ }
}
}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs
index ce39b03be9fa4..941b234767a73 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeCollection.cs
@@ -21,7 +21,7 @@ public partial class Sample_MachineLearningComputeCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_GetComputes()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/list.json
// this example is just showing the usage of "Compute_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -58,7 +58,7 @@ public async Task GetAll_GetComputes()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetAAKSCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/AKSCompute.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/get/AKSCompute.json
// this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -93,7 +93,7 @@ public async Task Get_GetAAKSCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetAAKSCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/AKSCompute.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/get/AKSCompute.json
// this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -124,7 +124,7 @@ public async Task Exists_GetAAKSCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetAAKSCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/AKSCompute.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/get/AKSCompute.json
// this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -167,7 +167,7 @@ public async Task GetIfExists_GetAAKSCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetAAMLCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/AmlCompute.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/get/AmlCompute.json
// this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -202,7 +202,7 @@ public async Task Get_GetAAMLCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetAAMLCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/AmlCompute.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/get/AmlCompute.json
// this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -233,7 +233,7 @@ public async Task Exists_GetAAMLCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetAAMLCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/AmlCompute.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/get/AmlCompute.json
// this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -276,7 +276,7 @@ public async Task GetIfExists_GetAAMLCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetAKubernetesCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/KubernetesCompute.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/get/KubernetesCompute.json
// this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -311,7 +311,7 @@ public async Task Get_GetAKubernetesCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetAKubernetesCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/KubernetesCompute.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/get/KubernetesCompute.json
// this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -342,7 +342,7 @@ public async Task Exists_GetAKubernetesCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetAKubernetesCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/KubernetesCompute.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/get/KubernetesCompute.json
// this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -385,7 +385,7 @@ public async Task GetIfExists_GetAKubernetesCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetAnComputeInstance()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/ComputeInstance.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/get/ComputeInstance.json
// this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -420,7 +420,7 @@ public async Task Get_GetAnComputeInstance()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetAnComputeInstance()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/ComputeInstance.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/get/ComputeInstance.json
// this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -451,7 +451,7 @@ public async Task Exists_GetAnComputeInstance()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetAnComputeInstance()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/ComputeInstance.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/get/ComputeInstance.json
// this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -494,7 +494,7 @@ public async Task GetIfExists_GetAnComputeInstance()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_AttachAKubernetesCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/createOrUpdate/KubernetesCompute.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/createOrUpdate/KubernetesCompute.json
// this example is just showing the usage of "Compute_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -567,7 +567,7 @@ public async Task CreateOrUpdate_AttachAKubernetesCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateAAMLCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/createOrUpdate/BasicAmlCompute.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/createOrUpdate/BasicAmlCompute.json
// this example is just showing the usage of "Compute_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -624,7 +624,7 @@ public async Task CreateOrUpdate_CreateAAMLCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateADataFactoryCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/createOrUpdate/BasicDataFactoryCompute.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/createOrUpdate/BasicDataFactoryCompute.json
// this example is just showing the usage of "Compute_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -664,7 +664,7 @@ public async Task CreateOrUpdate_CreateADataFactoryCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateAnAKSCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/createOrUpdate/BasicAKSCompute.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/createOrUpdate/BasicAKSCompute.json
// this example is just showing the usage of "Compute_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -704,7 +704,7 @@ public async Task CreateOrUpdate_CreateAnAKSCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateAnComputeInstanceCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/createOrUpdate/ComputeInstance.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/createOrUpdate/ComputeInstance.json
// this example is just showing the usage of "Compute_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -782,9 +782,22 @@ public async Task CreateOrUpdate_CreateAnComputeInstanceCompute()
Target = "/home/testuser/",
}
},
+Kernel = new JupyterKernelConfig()
+{
+Argv =
+{
+"option1","option2","option3"
+},
+DisplayName = "TestKernel",
+Language = "python",
+},
}
},
ComputeInstanceAuthorizationType = MachineLearningComputeInstanceAuthorizationType.Personal,
+ EnableOSPatching = true,
+ EnableRootAccess = true,
+ EnableSso = true,
+ ReleaseQuotaOnStop = true,
PersonalComputeInstanceAssignedUser = new MachineLearningComputeInstanceAssignedUser("00000000-0000-0000-0000-000000000000", Guid.Parse("00000000-0000-0000-0000-000000000000")),
},
},
@@ -804,7 +817,7 @@ public async Task CreateOrUpdate_CreateAnComputeInstanceCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateAnComputeInstanceComputeWithSchedules()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/createOrUpdate/ComputeInstanceWithSchedules.json
// this example is just showing the usage of "Compute_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -857,7 +870,7 @@ public async Task CreateOrUpdate_CreateAnComputeInstanceComputeWithSchedules()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateAnComputeInstanceComputeWithMinimalInputs()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/createOrUpdate/ComputeInstanceMinimal.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/createOrUpdate/ComputeInstanceMinimal.json
// this example is just showing the usage of "Compute_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -903,7 +916,7 @@ public async Task CreateOrUpdate_CreateAnComputeInstanceComputeWithMinimalInputs
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_UpdateAAMLCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/createOrUpdate/AmlCompute.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/createOrUpdate/AmlCompute.json
// this example is just showing the usage of "Compute_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -954,7 +967,7 @@ public async Task CreateOrUpdate_UpdateAAMLCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_UpdateAnAKSCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/createOrUpdate/AKSCompute.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/createOrUpdate/AKSCompute.json
// this example is just showing the usage of "Compute_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeResource.cs
index 1b877c7c410bd..31e2e2a57a790 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningComputeResource.cs
@@ -22,7 +22,7 @@ public partial class Sample_MachineLearningComputeResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetAAKSCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/AKSCompute.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/get/AKSCompute.json
// this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -54,7 +54,7 @@ public async Task Get_GetAAKSCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetAAMLCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/AmlCompute.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/get/AmlCompute.json
// this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -86,7 +86,7 @@ public async Task Get_GetAAMLCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetAKubernetesCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/KubernetesCompute.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/get/KubernetesCompute.json
// this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -118,7 +118,7 @@ public async Task Get_GetAKubernetesCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetAnComputeInstance()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/get/ComputeInstance.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/get/ComputeInstance.json
// this example is just showing the usage of "Compute_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -150,7 +150,7 @@ public async Task Get_GetAnComputeInstance()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_UpdateAAmlComputeCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/patch.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/patch.json
// this example is just showing the usage of "Compute_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -191,7 +191,7 @@ public async Task Update_UpdateAAmlComputeCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/delete.json
// this example is just showing the usage of "Compute_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -220,7 +220,7 @@ public async Task Delete_DeleteCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task UpdateCustomServices_UpdateCustomServices()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/updateCustomServices.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/updateCustomServices.json
// this example is just showing the usage of "Compute_UpdateCustomServices" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -293,7 +293,7 @@ public async Task UpdateCustomServices_UpdateCustomServices()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetNodes_GetComputeNodesInformationForACompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/listNodes.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/listNodes.json
// this example is just showing the usage of "Compute_ListNodes" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -324,7 +324,7 @@ public async Task GetNodes_GetComputeNodesInformationForACompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetKeys_ListAKSComputeKeys()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/listKeys.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/listKeys.json
// this example is just showing the usage of "Compute_ListKeys" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -347,12 +347,52 @@ public async Task GetKeys_ListAKSComputeKeys()
Console.WriteLine($"Succeeded: {result}");
}
+ // Update Data Mounts
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task UpdateDataMounts_UpdateDataMounts()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/updateDataMounts.json
+ // this example is just showing the usage of "Compute_UpdateDataMounts" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningComputeResource created on azure
+ // for more information of creating MachineLearningComputeResource, please refer to the document of MachineLearningComputeResource
+ string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
+ string resourceGroupName = "testrg123";
+ string workspaceName = "workspaces123";
+ string computeName = "compute123";
+ ResourceIdentifier machineLearningComputeResourceId = MachineLearningComputeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, computeName);
+ MachineLearningComputeResource machineLearningCompute = client.GetMachineLearningComputeResource(machineLearningComputeResourceId);
+
+ // invoke the operation
+ IEnumerable dataMounts = new MachineLearningComputeInstanceDataMount[]
+ {
+new MachineLearningComputeInstanceDataMount()
+{
+Source = "azureml://subscriptions/some-sub/resourcegroups/some-rg/workspaces/some-ws/data/some-data-asset-name/versions/some-data-asset-version",
+SourceType = MachineLearningSourceType.Uri,
+MountName = "hello",
+MountAction = MachineLearningMountAction.Mount,
+MountMode = MountMode.ReadOnly,
+MountPath = "/some/random/path/on/host",
+}
+ };
+ await machineLearningCompute.UpdateDataMountsAsync(dataMounts);
+
+ Console.WriteLine($"Succeeded");
+ }
+
// Start ComputeInstance Compute
[NUnit.Framework.Test]
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Start_StartComputeInstanceCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/start.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/start.json
// this example is just showing the usage of "Compute_Start" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -380,7 +420,7 @@ public async Task Start_StartComputeInstanceCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Stop_StopComputeInstanceCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/stop.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/stop.json
// this example is just showing the usage of "Compute_Stop" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -408,7 +448,7 @@ public async Task Stop_StopComputeInstanceCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Restart_RestartComputeInstanceCompute()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/restart.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/restart.json
// this example is just showing the usage of "Compute_Restart" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -436,7 +476,7 @@ public async Task Restart_RestartComputeInstanceCompute()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task UpdateIdleShutdownSetting_UpdateIdleShutdownSettingOfComputeInstance()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Compute/updateIdleShutdownSetting.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/updateIdleShutdownSetting.json
// this example is just showing the usage of "Compute_UpdateIdleShutdownSetting" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -462,5 +502,68 @@ public async Task UpdateIdleShutdownSetting_UpdateIdleShutdownSettingOfComputeIn
Console.WriteLine($"Succeeded");
}
+
+ // List VM Sizes
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAllowedResizeSizes_ListVMSizes()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/getAllowedVMSizesForResize.json
+ // this example is just showing the usage of "Compute_GetAllowedResizeSizes" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningComputeResource created on azure
+ // for more information of creating MachineLearningComputeResource, please refer to the document of MachineLearningComputeResource
+ string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
+ string resourceGroupName = "testrg123";
+ string workspaceName = "workspaces123";
+ string computeName = "compute123";
+ ResourceIdentifier machineLearningComputeResourceId = MachineLearningComputeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, computeName);
+ MachineLearningComputeResource machineLearningCompute = client.GetMachineLearningComputeResource(machineLearningComputeResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (MachineLearningVmSize item in machineLearningCompute.GetAllowedResizeSizesAsync())
+ {
+ Console.WriteLine($"Succeeded: {item}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // List VM Sizes
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Resize_ListVMSizes()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Compute/resize.json
+ // this example is just showing the usage of "Compute_Resize" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningComputeResource created on azure
+ // for more information of creating MachineLearningComputeResource, please refer to the document of MachineLearningComputeResource
+ string subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
+ string resourceGroupName = "testrg123";
+ string workspaceName = "workspaces123";
+ string computeName = "compute123";
+ ResourceIdentifier machineLearningComputeResourceId = MachineLearningComputeResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, computeName);
+ MachineLearningComputeResource machineLearningCompute = client.GetMachineLearningComputeResource(machineLearningComputeResourceId);
+
+ // invoke the operation
+ ResizeSchema resizeSchema = new ResizeSchema()
+ {
+ TargetVmSize = "Standard_DS11_v2",
+ };
+ await machineLearningCompute.ResizeAsync(WaitUntil.Completed, resizeSchema);
+
+ Console.WriteLine($"Succeeded");
+ }
}
}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerCollection.cs
index 44231630d0c08..3937c29f1adbf 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningDataContainerCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListWorkspaceDataContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataContainer/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/DataContainer/list.json
// this example is just showing the usage of "DataContainers_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -57,7 +57,7 @@ public async Task GetAll_ListWorkspaceDataContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceDataContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/DataContainer/get.json
// this example is just showing the usage of "DataContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -92,7 +92,7 @@ public async Task Get_GetWorkspaceDataContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetWorkspaceDataContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/DataContainer/get.json
// this example is just showing the usage of "DataContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -123,7 +123,7 @@ public async Task Exists_GetWorkspaceDataContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetWorkspaceDataContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/DataContainer/get.json
// this example is just showing the usage of "DataContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -166,7 +166,7 @@ public async Task GetIfExists_GetWorkspaceDataContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateWorkspaceDataContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/DataContainer/createOrUpdate.json
// this example is just showing the usage of "DataContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerResource.cs
index 866afb33a81d8..492a2a6af754b 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataContainerResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningDataContainerResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceDataContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataContainer/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/DataContainer/delete.json
// this example is just showing the usage of "DataContainers_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -48,7 +48,7 @@ public async Task Delete_DeleteWorkspaceDataContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceDataContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/DataContainer/get.json
// this example is just showing the usage of "DataContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -80,7 +80,7 @@ public async Task Get_GetWorkspaceDataContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateWorkspaceDataContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/DataContainer/createOrUpdate.json
// this example is just showing the usage of "DataContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionCollection.cs
index 279f665d7943a..c3539c21473c0 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningDataVersionCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListWorkspaceDataVersionBase()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataVersionBase/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/DataVersionBase/list.json
// this example is just showing the usage of "DataVersions_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -41,8 +41,10 @@ public async Task GetAll_ListWorkspaceDataVersionBase()
MachineLearningDataVersionCollection collection = machineLearningDataContainer.GetMachineLearningDataVersions();
// invoke the operation and iterate over the result
- MachineLearningDataVersionCollectionGetAllOptions options = new MachineLearningDataVersionCollectionGetAllOptions() { OrderBy = "string", Top = 1, Tags = "string" };
- await foreach (MachineLearningDataVersionResource item in collection.GetAllAsync(options))
+ string orderBy = "string";
+ int? top = 1;
+ string tags = "string";
+ await foreach (MachineLearningDataVersionResource item in collection.GetAllAsync(orderBy: orderBy, top: top, tags: tags))
{
// the variable item is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
@@ -59,7 +61,7 @@ public async Task GetAll_ListWorkspaceDataVersionBase()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceDataVersionBase()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataVersionBase/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/DataVersionBase/get.json
// this example is just showing the usage of "DataVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -95,7 +97,7 @@ public async Task Get_GetWorkspaceDataVersionBase()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetWorkspaceDataVersionBase()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataVersionBase/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/DataVersionBase/get.json
// this example is just showing the usage of "DataVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -127,7 +129,7 @@ public async Task Exists_GetWorkspaceDataVersionBase()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetWorkspaceDataVersionBase()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataVersionBase/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/DataVersionBase/get.json
// this example is just showing the usage of "DataVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -171,7 +173,7 @@ public async Task GetIfExists_GetWorkspaceDataVersionBase()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateWorkspaceDataVersionBase()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataVersionBase/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/DataVersionBase/createOrUpdate.json
// this example is just showing the usage of "DataVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionResource.cs
index 7d8a7d6ade0d3..b7d2f6e815957 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDataVersionResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningDataVersionResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceDataVersionBase()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataVersionBase/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/DataVersionBase/delete.json
// this example is just showing the usage of "DataVersions_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -49,7 +49,7 @@ public async Task Delete_DeleteWorkspaceDataVersionBase()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceDataVersionBase()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataVersionBase/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/DataVersionBase/get.json
// this example is just showing the usage of "DataVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -82,7 +82,7 @@ public async Task Get_GetWorkspaceDataVersionBase()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateWorkspaceDataVersionBase()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/DataVersionBase/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/DataVersionBase/createOrUpdate.json
// this example is just showing the usage of "DataVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -123,5 +123,40 @@ public async Task Update_CreateOrUpdateWorkspaceDataVersionBase()
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+
+ // Publish Workspace Data Version Base.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Publish_PublishWorkspaceDataVersionBase()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/DataVersionBase/publish.json
+ // this example is just showing the usage of "DataVersions_Publish" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningDataVersionResource created on azure
+ // for more information of creating MachineLearningDataVersionResource, please refer to the document of MachineLearningDataVersionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ string name = "string";
+ string version = "string";
+ ResourceIdentifier machineLearningDataVersionResourceId = MachineLearningDataVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version);
+ MachineLearningDataVersionResource machineLearningDataVersion = client.GetMachineLearningDataVersionResource(machineLearningDataVersionResourceId);
+
+ // invoke the operation
+ DestinationAsset body = new DestinationAsset()
+ {
+ DestinationName = "string",
+ DestinationVersion = "string",
+ RegistryName = "string",
+ };
+ await machineLearningDataVersion.PublishAsync(WaitUntil.Completed, body);
+
+ Console.WriteLine($"Succeeded");
+ }
}
}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDatastoreCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDatastoreCollection.cs
index 03c06dfd3d4bd..7af753635dc01 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDatastoreCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDatastoreCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningDatastoreCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetDatastore()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Datastore/get.json
// this example is just showing the usage of "Datastores_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -55,7 +55,7 @@ public async Task Get_GetDatastore()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetDatastore()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Datastore/get.json
// this example is just showing the usage of "Datastores_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -86,7 +86,7 @@ public async Task Exists_GetDatastore()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetDatastore()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Datastore/get.json
// this example is just showing the usage of "Datastores_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -129,7 +129,7 @@ public async Task GetIfExists_GetDatastore()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateDatastoreAzureDataLakeGen1WServicePrincipal()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
// this example is just showing the usage of "Datastores_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -184,7 +184,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDatastoreAzureDataLakeGen1WServic
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateDatastoreAzureDataLakeGen2WServicePrincipal()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
// this example is just showing the usage of "Datastores_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -241,7 +241,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDatastoreAzureDataLakeGen2WServic
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateDatastoreAzureFileStoreWAccountKey()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
// this example is just showing the usage of "Datastores_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -294,7 +294,7 @@ public async Task CreateOrUpdate_CreateOrUpdateDatastoreAzureFileStoreWAccountKe
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateDatastoreAzureBlobWAccountKey()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
// this example is just showing the usage of "Datastores_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDatastoreResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDatastoreResource.cs
index 13fdf9376fbd3..fdd397e1bbb22 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDatastoreResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningDatastoreResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningDatastoreResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteDatastore()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Datastore/delete.json
// this example is just showing the usage of "Datastores_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -48,7 +48,7 @@ public async Task Delete_DeleteDatastore()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetDatastore()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Datastore/get.json
// this example is just showing the usage of "Datastores_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -80,7 +80,7 @@ public async Task Get_GetDatastore()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateDatastoreAzureDataLakeGen1WServicePrincipal()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Datastore/AzureDataLakeGen1WServicePrincipal/createOrUpdate.json
// this example is just showing the usage of "Datastores_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -132,7 +132,7 @@ public async Task Update_CreateOrUpdateDatastoreAzureDataLakeGen1WServicePrincip
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateDatastoreAzureDataLakeGen2WServicePrincipal()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Datastore/AzureDataLakeGen2WServicePrincipal/createOrUpdate.json
// this example is just showing the usage of "Datastores_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -186,7 +186,7 @@ public async Task Update_CreateOrUpdateDatastoreAzureDataLakeGen2WServicePrincip
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateDatastoreAzureFileStoreWAccountKey()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Datastore/AzureFileWAccountKey/createOrUpdate.json
// this example is just showing the usage of "Datastores_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -236,7 +236,7 @@ public async Task Update_CreateOrUpdateDatastoreAzureFileStoreWAccountKey()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateDatastoreAzureBlobWAccountKey()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Datastore/AzureBlobWAccountKey/createOrUpdate.json
// this example is just showing the usage of "Datastores_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -288,7 +288,7 @@ public async Task Update_CreateOrUpdateDatastoreAzureBlobWAccountKey()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetSecrets_GetDatastoreSecrets()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Datastore/listSecrets.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Datastore/listSecrets.json
// this example is just showing the usage of "Datastores_ListSecrets" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -306,7 +306,12 @@ public async Task GetSecrets_GetDatastoreSecrets()
MachineLearningDatastoreResource machineLearningDatastore = client.GetMachineLearningDatastoreResource(machineLearningDatastoreResourceId);
// invoke the operation
- MachineLearningDatastoreSecrets result = await machineLearningDatastore.GetSecretsAsync();
+ SecretExpiry body = new SecretExpiry()
+ {
+ ExpirableSecret = false,
+ ExpireAfterHours = 1,
+ };
+ MachineLearningDatastoreSecrets result = await machineLearningDatastore.GetSecretsAsync(body: body);
Console.WriteLine($"Succeeded: {result}");
}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerCollection.cs
index 054896ffd3680..210023b977225 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningEnvironmentContainerCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListWorkspaceEnvironmentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentContainer/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/EnvironmentContainer/list.json
// this example is just showing the usage of "EnvironmentContainers_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -57,7 +57,7 @@ public async Task GetAll_ListWorkspaceEnvironmentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceEnvironmentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/EnvironmentContainer/get.json
// this example is just showing the usage of "EnvironmentContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -92,7 +92,7 @@ public async Task Get_GetWorkspaceEnvironmentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetWorkspaceEnvironmentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/EnvironmentContainer/get.json
// this example is just showing the usage of "EnvironmentContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -123,7 +123,7 @@ public async Task Exists_GetWorkspaceEnvironmentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetWorkspaceEnvironmentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/EnvironmentContainer/get.json
// this example is just showing the usage of "EnvironmentContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -166,7 +166,7 @@ public async Task GetIfExists_GetWorkspaceEnvironmentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateWorkspaceEnvironmentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/EnvironmentContainer/createOrUpdate.json
// this example is just showing the usage of "EnvironmentContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerResource.cs
index b1a518198faaf..3b19437c84b96 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentContainerResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningEnvironmentContainerResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceEnvironmentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentContainer/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/EnvironmentContainer/delete.json
// this example is just showing the usage of "EnvironmentContainers_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -48,7 +48,7 @@ public async Task Delete_DeleteWorkspaceEnvironmentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceEnvironmentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/EnvironmentContainer/get.json
// this example is just showing the usage of "EnvironmentContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -80,7 +80,7 @@ public async Task Get_GetWorkspaceEnvironmentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateWorkspaceEnvironmentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/EnvironmentContainer/createOrUpdate.json
// this example is just showing the usage of "EnvironmentContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionCollection.cs
index aa45f79c4bc35..240f5fc7f67fa 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningEnvironmentVersionCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListWorkspaceEnvironmentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentVersion/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/EnvironmentVersion/list.json
// this example is just showing the usage of "EnvironmentVersions_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -60,7 +60,7 @@ public async Task GetAll_ListWorkspaceEnvironmentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceEnvironmentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/EnvironmentVersion/get.json
// this example is just showing the usage of "EnvironmentVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -96,7 +96,7 @@ public async Task Get_GetWorkspaceEnvironmentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetWorkspaceEnvironmentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/EnvironmentVersion/get.json
// this example is just showing the usage of "EnvironmentVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -128,7 +128,7 @@ public async Task Exists_GetWorkspaceEnvironmentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetWorkspaceEnvironmentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/EnvironmentVersion/get.json
// this example is just showing the usage of "EnvironmentVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -172,7 +172,7 @@ public async Task GetIfExists_GetWorkspaceEnvironmentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateWorkspaceEnvironmentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/EnvironmentVersion/createOrUpdate.json
// this example is just showing the usage of "EnvironmentVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionResource.cs
index 3fbcb0eac6307..e27a0544fdb0a 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningEnvironmentVersionResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningEnvironmentVersionResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceEnvironmentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentVersion/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/EnvironmentVersion/delete.json
// this example is just showing the usage of "EnvironmentVersions_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -49,7 +49,7 @@ public async Task Delete_DeleteWorkspaceEnvironmentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceEnvironmentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/EnvironmentVersion/get.json
// this example is just showing the usage of "EnvironmentVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -82,7 +82,7 @@ public async Task Get_GetWorkspaceEnvironmentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateWorkspaceEnvironmentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/EnvironmentVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/EnvironmentVersion/createOrUpdate.json
// this example is just showing the usage of "EnvironmentVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -135,5 +135,40 @@ public async Task Update_CreateOrUpdateWorkspaceEnvironmentVersion()
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+
+ // Publish Workspace Environment Version.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Publish_PublishWorkspaceEnvironmentVersion()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/EnvironmentVersion/publish.json
+ // this example is just showing the usage of "EnvironmentVersions_Publish" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningEnvironmentVersionResource created on azure
+ // for more information of creating MachineLearningEnvironmentVersionResource, please refer to the document of MachineLearningEnvironmentVersionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ string name = "string";
+ string version = "string";
+ ResourceIdentifier machineLearningEnvironmentVersionResourceId = MachineLearningEnvironmentVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version);
+ MachineLearningEnvironmentVersionResource machineLearningEnvironmentVersion = client.GetMachineLearningEnvironmentVersionResource(machineLearningEnvironmentVersionResourceId);
+
+ // invoke the operation
+ DestinationAsset body = new DestinationAsset()
+ {
+ DestinationName = "string",
+ DestinationVersion = "string",
+ RegistryName = "string",
+ };
+ await machineLearningEnvironmentVersion.PublishAsync(WaitUntil.Completed, body);
+
+ Console.WriteLine($"Succeeded");
+ }
}
}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureCollection.cs
index 71451ff7433c3..cb63f4b174632 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureCollection.cs
@@ -9,6 +9,7 @@
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
+using Azure.ResourceManager.MachineLearning.Models;
namespace Azure.ResourceManager.MachineLearning.Samples
{
@@ -19,7 +20,7 @@ public partial class Sample_MachineLearningFeatureCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListFeature()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Feature/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Feature/list.json
// this example is just showing the usage of "Features_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -41,10 +42,8 @@ public async Task GetAll_ListFeature()
MachineLearningFeatureCollection collection = machineLearningFeatureSetVersion.GetMachineLearningFeatures();
// invoke the operation and iterate over the result
- string tags = "string";
- string featureName = "string";
- string description = "string";
- await foreach (MachineLearningFeatureResource item in collection.GetAllAsync(tags: tags, featureName: featureName, description: description))
+ MachineLearningFeatureCollectionGetAllOptions options = new MachineLearningFeatureCollectionGetAllOptions() { Tags = "string", FeatureName = "string", Description = "string" };
+ await foreach (MachineLearningFeatureResource item in collection.GetAllAsync(options))
{
// the variable item is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
@@ -61,7 +60,7 @@ public async Task GetAll_ListFeature()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetFeature()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Feature/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Feature/get.json
// this example is just showing the usage of "Features_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -98,7 +97,7 @@ public async Task Get_GetFeature()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetFeature()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Feature/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Feature/get.json
// this example is just showing the usage of "Features_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -131,7 +130,7 @@ public async Task Exists_GetFeature()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetFeature()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Feature/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Feature/get.json
// this example is just showing the usage of "Features_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureResource.cs
index 31d43d88a4f59..345ad94183b7b 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureResource.cs
@@ -19,7 +19,7 @@ public partial class Sample_MachineLearningFeatureResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetFeature()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Feature/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Feature/get.json
// this example is just showing the usage of "Features_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerCollection.cs
index de134c2fed8c3..4910280ac2ab7 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningFeatureSetContainerCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListWorkspaceFeaturesetContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetContainer/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturesetContainer/list.json
// this example is just showing the usage of "FeaturesetContainers_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -58,7 +58,7 @@ public async Task GetAll_ListWorkspaceFeaturesetContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetEntityWorkspaceFeaturesetContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetContainer/getEntity.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturesetContainer/getEntity.json
// this example is just showing the usage of "FeaturesetContainers_GetEntity" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -93,7 +93,7 @@ public async Task Get_GetEntityWorkspaceFeaturesetContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetEntityWorkspaceFeaturesetContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetContainer/getEntity.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturesetContainer/getEntity.json
// this example is just showing the usage of "FeaturesetContainers_GetEntity" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -124,7 +124,7 @@ public async Task Exists_GetEntityWorkspaceFeaturesetContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetEntityWorkspaceFeaturesetContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetContainer/getEntity.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturesetContainer/getEntity.json
// this example is just showing the usage of "FeaturesetContainers_GetEntity" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -167,7 +167,7 @@ public async Task GetIfExists_GetEntityWorkspaceFeaturesetContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturesetContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturesetContainer/createOrUpdate.json
// this example is just showing the usage of "FeaturesetContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerResource.cs
index 90fa83d23d450..c98876f53bd37 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetContainerResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningFeatureSetContainerResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceFeaturesetContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetContainer/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturesetContainer/delete.json
// this example is just showing the usage of "FeaturesetContainers_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -48,7 +48,7 @@ public async Task Delete_DeleteWorkspaceFeaturesetContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetEntityWorkspaceFeaturesetContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetContainer/getEntity.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturesetContainer/getEntity.json
// this example is just showing the usage of "FeaturesetContainers_GetEntity" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -80,7 +80,7 @@ public async Task Get_GetEntityWorkspaceFeaturesetContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateWorkspaceFeaturesetContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturesetContainer/createOrUpdate.json
// this example is just showing the usage of "FeaturesetContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionCollection.cs
index 328edb827c948..017cf5f9f64f7 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningFeatureSetVersionCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListWorkspaceFeaturesetVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturesetVersion/list.json
// this example is just showing the usage of "FeaturesetVersions_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -59,7 +59,7 @@ public async Task GetAll_ListWorkspaceFeaturesetVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceFeaturesetVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturesetVersion/get.json
// this example is just showing the usage of "FeaturesetVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -95,7 +95,7 @@ public async Task Get_GetWorkspaceFeaturesetVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetWorkspaceFeaturesetVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturesetVersion/get.json
// this example is just showing the usage of "FeaturesetVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -127,7 +127,7 @@ public async Task Exists_GetWorkspaceFeaturesetVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetWorkspaceFeaturesetVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturesetVersion/get.json
// this example is just showing the usage of "FeaturesetVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -171,7 +171,7 @@ public async Task GetIfExists_GetWorkspaceFeaturesetVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturesetVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturesetVersion/createOrUpdate.json
// this example is just showing the usage of "FeaturesetVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionResource.cs
index 5ed2a6230139d..0322fbecb1c2d 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureSetVersionResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningFeatureSetVersionResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceFeaturesetVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturesetVersion/delete.json
// this example is just showing the usage of "FeaturesetVersions_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -49,7 +49,7 @@ public async Task Delete_DeleteWorkspaceFeaturesetVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceFeaturesetVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturesetVersion/get.json
// this example is just showing the usage of "FeaturesetVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -82,7 +82,7 @@ public async Task Get_GetWorkspaceFeaturesetVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateWorkspaceFeaturesetVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturesetVersion/createOrUpdate.json
// this example is just showing the usage of "FeaturesetVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -179,7 +179,7 @@ public async Task Update_CreateOrUpdateWorkspaceFeaturesetVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Backfill_BackfillWorkspaceFeaturesetVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/backfill.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturesetVersion/backfill.json
// this example is just showing the usage of "FeaturesetVersions_Backfill" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -200,6 +200,10 @@ public async Task Backfill_BackfillWorkspaceFeaturesetVersion()
// invoke the operation
FeatureSetVersionBackfillContent content = new FeatureSetVersionBackfillContent()
{
+ DataAvailabilityStatus =
+{
+DataAvailabilityStatus.None
+},
Description = "string",
DisplayName = "string",
FeatureWindow = new FeatureWindow()
@@ -207,6 +211,7 @@ public async Task Backfill_BackfillWorkspaceFeaturesetVersion()
FeatureWindowEnd = DateTimeOffset.Parse("2020-01-01T12:34:56.999+00:51"),
FeatureWindowStart = DateTimeOffset.Parse("2020-01-01T12:34:56.999+00:51"),
},
+ JobId = "string",
ResourceInstanceType = "string",
SparkConfiguration =
{
@@ -217,45 +222,10 @@ public async Task Backfill_BackfillWorkspaceFeaturesetVersion()
["string"] = "string",
},
};
- ArmOperation lro = await machineLearningFeatureSetVersion.BackfillAsync(WaitUntil.Completed, content);
- MachineLearningFeatureSetJob result = lro.Value;
+ ArmOperation lro = await machineLearningFeatureSetVersion.BackfillAsync(WaitUntil.Completed, content);
+ FeaturesetVersionBackfillResponse result = lro.Value;
Console.WriteLine($"Succeeded: {result}");
}
-
- // ListMaterializationJobs Workspace Featureset Version.
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task GetMaterializationJobs_ListMaterializationJobsWorkspaceFeaturesetVersion()
- {
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturesetVersion/listMaterializationJobs.json
- // this example is just showing the usage of "FeaturesetVersions_ListMaterializationJobs" operation, for the dependent resources, they will have to be created separately.
-
- // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
- TokenCredential cred = new DefaultAzureCredential();
- // authenticate your client
- ArmClient client = new ArmClient(cred);
-
- // this example assumes you already have this MachineLearningFeatureSetVersionResource created on azure
- // for more information of creating MachineLearningFeatureSetVersionResource, please refer to the document of MachineLearningFeatureSetVersionResource
- string subscriptionId = "00000000-1111-2222-3333-444444444444";
- string resourceGroupName = "test-rg";
- string workspaceName = "my-aml-workspace";
- string name = "string";
- string version = "string";
- ResourceIdentifier machineLearningFeatureSetVersionResourceId = MachineLearningFeatureSetVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name, version);
- MachineLearningFeatureSetVersionResource machineLearningFeatureSetVersion = client.GetMachineLearningFeatureSetVersionResource(machineLearningFeatureSetVersionResourceId);
-
- // invoke the operation and iterate over the result
- string filters = "string";
- string featureWindowStart = "string";
- string featureWindowEnd = "string";
- await foreach (MachineLearningFeatureSetJob item in machineLearningFeatureSetVersion.GetMaterializationJobsAsync(filters: filters, featureWindowStart: featureWindowStart, featureWindowEnd: featureWindowEnd))
- {
- Console.WriteLine($"Succeeded: {item}");
- }
-
- Console.WriteLine($"Succeeded");
- }
}
}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerCollection.cs
index 5f0f4bcfabeea..5703389d9baf8 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningFeatureStoreEntityContainerCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListWorkspaceFeaturestoreEntityContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityContainer/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturestoreEntityContainer/list.json
// this example is just showing the usage of "FeaturestoreEntityContainers_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -58,7 +58,7 @@ public async Task GetAll_ListWorkspaceFeaturestoreEntityContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetEntityWorkspaceFeaturestoreEntityContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityContainer/getEntity.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturestoreEntityContainer/getEntity.json
// this example is just showing the usage of "FeaturestoreEntityContainers_GetEntity" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -93,7 +93,7 @@ public async Task Get_GetEntityWorkspaceFeaturestoreEntityContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetEntityWorkspaceFeaturestoreEntityContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityContainer/getEntity.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturestoreEntityContainer/getEntity.json
// this example is just showing the usage of "FeaturestoreEntityContainers_GetEntity" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -124,7 +124,7 @@ public async Task Exists_GetEntityWorkspaceFeaturestoreEntityContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetEntityWorkspaceFeaturestoreEntityContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityContainer/getEntity.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturestoreEntityContainer/getEntity.json
// this example is just showing the usage of "FeaturestoreEntityContainers_GetEntity" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -167,7 +167,7 @@ public async Task GetIfExists_GetEntityWorkspaceFeaturestoreEntityContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturestoreEntityContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturestoreEntityContainer/createOrUpdate.json
// this example is just showing the usage of "FeaturestoreEntityContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerResource.cs
index 43d6f30770ef6..29a8f77229aaf 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeatureStoreEntityContainerResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningFeatureStoreEntityContainerResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceFeaturestoreEntityContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityContainer/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturestoreEntityContainer/delete.json
// this example is just showing the usage of "FeaturestoreEntityContainers_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -48,7 +48,7 @@ public async Task Delete_DeleteWorkspaceFeaturestoreEntityContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetEntityWorkspaceFeaturestoreEntityContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityContainer/getEntity.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturestoreEntityContainer/getEntity.json
// this example is just showing the usage of "FeaturestoreEntityContainers_GetEntity" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -80,7 +80,7 @@ public async Task Get_GetEntityWorkspaceFeaturestoreEntityContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateWorkspaceFeaturestoreEntityContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturestoreEntityContainer/createOrUpdate.json
// this example is just showing the usage of "FeaturestoreEntityContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionCollection.cs
index 474c9532cdc9e..0c243903be494 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningFeaturestoreEntityVersionCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListWorkspaceFeaturestoreEntityVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityVersion/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturestoreEntityVersion/list.json
// this example is just showing the usage of "FeaturestoreEntityVersions_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -59,7 +59,7 @@ public async Task GetAll_ListWorkspaceFeaturestoreEntityVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceFeaturestoreEntityVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturestoreEntityVersion/get.json
// this example is just showing the usage of "FeaturestoreEntityVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -95,7 +95,7 @@ public async Task Get_GetWorkspaceFeaturestoreEntityVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetWorkspaceFeaturestoreEntityVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturestoreEntityVersion/get.json
// this example is just showing the usage of "FeaturestoreEntityVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -127,7 +127,7 @@ public async Task Exists_GetWorkspaceFeaturestoreEntityVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetWorkspaceFeaturestoreEntityVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturestoreEntityVersion/get.json
// this example is just showing the usage of "FeaturestoreEntityVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -171,7 +171,7 @@ public async Task GetIfExists_GetWorkspaceFeaturestoreEntityVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateWorkspaceFeaturestoreEntityVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturestoreEntityVersion/createOrUpdate.json
// this example is just showing the usage of "FeaturestoreEntityVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionResource.cs
index deb9ac3799a0c..9adb6dc0282e5 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningFeaturestoreEntityVersionResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningFeaturestoreEntityVersionResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceFeaturestoreEntityVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityVersion/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturestoreEntityVersion/delete.json
// this example is just showing the usage of "FeaturestoreEntityVersions_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -49,7 +49,7 @@ public async Task Delete_DeleteWorkspaceFeaturestoreEntityVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceFeaturestoreEntityVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturestoreEntityVersion/get.json
// this example is just showing the usage of "FeaturestoreEntityVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -82,7 +82,7 @@ public async Task Get_GetWorkspaceFeaturestoreEntityVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateWorkspaceFeaturestoreEntityVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/FeaturestoreEntityVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/FeaturestoreEntityVersion/createOrUpdate.json
// this example is just showing the usage of "FeaturestoreEntityVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobCollection.cs
index 73e6c7d1de477..6552673667bc1 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobCollection.cs
@@ -22,7 +22,7 @@ public partial class Sample_MachineLearningJobCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListAutoMLJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/AutoMLJob/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/AutoMLJob/list.json
// this example is just showing the usage of "Jobs_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -42,8 +42,7 @@ public async Task GetAll_ListAutoMLJob()
MachineLearningJobCollection collection = machineLearningWorkspace.GetMachineLearningJobs();
// invoke the operation and iterate over the result
- MachineLearningJobCollectionGetAllOptions options = new MachineLearningJobCollectionGetAllOptions() { JobType = "string", Tag = "string", ListViewType = MachineLearningListViewType.All, AssetName = "string", Scheduled = false, ScheduleId = "string" };
- await foreach (MachineLearningJobResource item in collection.GetAllAsync(options))
+ await foreach (MachineLearningJobResource item in collection.GetAllAsync())
{
// the variable item is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
@@ -60,7 +59,7 @@ public async Task GetAll_ListAutoMLJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListCommandJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/CommandJob/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/CommandJob/list.json
// this example is just showing the usage of "Jobs_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -80,8 +79,49 @@ public async Task GetAll_ListCommandJob()
MachineLearningJobCollection collection = machineLearningWorkspace.GetMachineLearningJobs();
// invoke the operation and iterate over the result
- MachineLearningJobCollectionGetAllOptions options = new MachineLearningJobCollectionGetAllOptions() { JobType = "string", Tag = "string", ListViewType = MachineLearningListViewType.ActiveOnly, AssetName = "string", Scheduled = false, ScheduleId = "string" };
- await foreach (MachineLearningJobResource item in collection.GetAllAsync(options))
+ string jobType = "string";
+ string tag = "string";
+ await foreach (MachineLearningJobResource item in collection.GetAllAsync(jobType: jobType, tag: tag))
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MachineLearningJobData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // List FineTuning Job.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_ListFineTuningJob()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/FineTuningJob/list.json
+ // this example is just showing the usage of "Jobs_List" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceResource created on azure
+ // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
+
+ // get the collection of this MachineLearningJobResource
+ MachineLearningJobCollection collection = machineLearningWorkspace.GetMachineLearningJobs();
+
+ // invoke the operation and iterate over the result
+ string jobType = "string";
+ string tag = "string";
+ MachineLearningListViewType? listViewType = MachineLearningListViewType.All;
+ await foreach (MachineLearningJobResource item in collection.GetAllAsync(jobType: jobType, tag: tag, listViewType: listViewType))
{
// the variable item is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
@@ -98,7 +138,7 @@ public async Task GetAll_ListCommandJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListPipelineJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/PipelineJob/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/PipelineJob/list.json
// this example is just showing the usage of "Jobs_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -118,8 +158,9 @@ public async Task GetAll_ListPipelineJob()
MachineLearningJobCollection collection = machineLearningWorkspace.GetMachineLearningJobs();
// invoke the operation and iterate over the result
- MachineLearningJobCollectionGetAllOptions options = new MachineLearningJobCollectionGetAllOptions() { JobType = "string", Tag = "string" };
- await foreach (MachineLearningJobResource item in collection.GetAllAsync(options))
+ string jobType = "string";
+ string tag = "string";
+ await foreach (MachineLearningJobResource item in collection.GetAllAsync(jobType: jobType, tag: tag))
{
// the variable item is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
@@ -136,7 +177,7 @@ public async Task GetAll_ListPipelineJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListSweepJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/SweepJob/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/SweepJob/list.json
// this example is just showing the usage of "Jobs_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -156,8 +197,9 @@ public async Task GetAll_ListSweepJob()
MachineLearningJobCollection collection = machineLearningWorkspace.GetMachineLearningJobs();
// invoke the operation and iterate over the result
- MachineLearningJobCollectionGetAllOptions options = new MachineLearningJobCollectionGetAllOptions() { JobType = "string", Tag = "string", ListViewType = MachineLearningListViewType.ActiveOnly, AssetName = "string", Scheduled = false, ScheduleId = "string" };
- await foreach (MachineLearningJobResource item in collection.GetAllAsync(options))
+ string jobType = "string";
+ string tag = "string";
+ await foreach (MachineLearningJobResource item in collection.GetAllAsync(jobType: jobType, tag: tag))
{
// the variable item is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
@@ -174,7 +216,7 @@ public async Task GetAll_ListSweepJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetAutoMLJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/AutoMLJob/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/AutoMLJob/get.json
// this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -209,7 +251,7 @@ public async Task Get_GetAutoMLJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetAutoMLJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/AutoMLJob/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/AutoMLJob/get.json
// this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -240,7 +282,7 @@ public async Task Exists_GetAutoMLJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetAutoMLJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/AutoMLJob/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/AutoMLJob/get.json
// this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -283,7 +325,7 @@ public async Task GetIfExists_GetAutoMLJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetCommandJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/CommandJob/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/CommandJob/get.json
// this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -318,7 +360,7 @@ public async Task Get_GetCommandJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetCommandJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/CommandJob/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/CommandJob/get.json
// this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -349,7 +391,116 @@ public async Task Exists_GetCommandJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetCommandJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/CommandJob/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/CommandJob/get.json
+ // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceResource created on azure
+ // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
+
+ // get the collection of this MachineLearningJobResource
+ MachineLearningJobCollection collection = machineLearningWorkspace.GetMachineLearningJobs();
+
+ // invoke the operation
+ string id = "string";
+ NullableResponse response = await collection.GetIfExistsAsync(id);
+ MachineLearningJobResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine($"Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MachineLearningJobData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+
+ // Get FineTuning Job.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetFineTuningJob()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/FineTuningJob/get.json
+ // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceResource created on azure
+ // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
+
+ // get the collection of this MachineLearningJobResource
+ MachineLearningJobCollection collection = machineLearningWorkspace.GetMachineLearningJobs();
+
+ // invoke the operation
+ string id = "string";
+ MachineLearningJobResource result = await collection.GetAsync(id);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MachineLearningJobData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Get FineTuning Job.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_GetFineTuningJob()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/FineTuningJob/get.json
+ // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceResource created on azure
+ // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
+
+ // get the collection of this MachineLearningJobResource
+ MachineLearningJobCollection collection = machineLearningWorkspace.GetMachineLearningJobs();
+
+ // invoke the operation
+ string id = "string";
+ bool result = await collection.ExistsAsync(id);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // Get FineTuning Job.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_GetFineTuningJob()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/FineTuningJob/get.json
// this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -392,7 +543,7 @@ public async Task GetIfExists_GetCommandJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetPipelineJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/PipelineJob/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/PipelineJob/get.json
// this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -427,7 +578,7 @@ public async Task Get_GetPipelineJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetPipelineJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/PipelineJob/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/PipelineJob/get.json
// this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -458,7 +609,7 @@ public async Task Exists_GetPipelineJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetPipelineJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/PipelineJob/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/PipelineJob/get.json
// this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -501,7 +652,7 @@ public async Task GetIfExists_GetPipelineJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetSweepJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/SweepJob/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/SweepJob/get.json
// this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -536,7 +687,7 @@ public async Task Get_GetSweepJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetSweepJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/SweepJob/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/SweepJob/get.json
// this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -567,7 +718,7 @@ public async Task Exists_GetSweepJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetSweepJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/SweepJob/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/SweepJob/get.json
// this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -610,7 +761,7 @@ public async Task GetIfExists_GetSweepJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateAutoMLJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/AutoMLJob/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/AutoMLJob/createOrUpdate.json
// this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -631,87 +782,61 @@ public async Task CreateOrUpdate_CreateOrUpdateAutoMLJob()
// invoke the operation
string id = "string";
- MachineLearningJobData data = new MachineLearningJobData(new MachineLearningCommandJob("string", new ResourceIdentifier("string"))
+ MachineLearningJobData data = new MachineLearningJobData(new AutoMLJob(new ImageClassification(new MachineLearningTableJobInput(new Uri("string")), new ImageLimitSettings()
{
- MlflowAutologger = MachineLearningFlowAutoLoggerState.Disabled,
- CodeId = new ResourceIdentifier("string"),
- Distribution = new TensorFlowDistributionConfiguration()
+ MaxTrials = 2,
+ })
+ {
+ ModelSettings = new ImageModelSettingsClassification()
{
- ParameterServerCount = 1,
- WorkerCount = 1,
+ ValidationCropSize = 2,
},
- EnvironmentVariables =
+ SearchSpace =
{
-["string"] = "string",
-},
- Inputs =
-{
-["string"] = new MachineLearningLiteralJobInput("string")
+new ImageModelDistributionSettingsClassification()
{
-Description = "string",
+ValidationCropSize = "choice(2, 360)",
+}
},
+ TargetColumnName = "string",
+ })
+ {
+ EnvironmentId = "string",
+ EnvironmentVariables =
+{
+["string"] = "string",
},
- Limits = new MachineLearningCommandJobLimits()
- {
- Timeout = XmlConvert.ToTimeSpan("PT5M"),
- },
Outputs =
{
["string"] = new MachineLearningUriFileJobOutput()
{
-AssetName = "string",
-AssetVersion = "string",
-Mode = MachineLearningOutputDeliveryMode.Direct,
+Mode = MachineLearningOutputDeliveryMode.ReadWriteMount,
Uri = new Uri("string"),
Description = "string",
},
},
- QueueSettings = new JobQueueSettings()
- {
- JobTier = JobTier.Premium,
- Priority = 1,
- },
Resources = new MachineLearningJobResourceConfiguration()
{
- DockerArgs = "string",
- ShmSize = "2g",
InstanceCount = 1,
InstanceType = "string",
- Locations =
-{
-"string"
-},
Properties =
{
["string"] = BinaryData.FromObjectAsJson(new Dictionary()
{
-["f69c8d5a-9b39-4183-92d3-a2b18944cf95"] = null}),
+["9bec0ab0-c62f-4fa9-a97c-7b24bbcc90ad"] = null}),
},
},
- ComponentId = new ResourceIdentifier("string"),
ComputeId = new ResourceIdentifier("string"),
DisplayName = "string",
ExperimentName = "string",
Identity = new AmlToken(),
IsArchived = false,
- NotificationSetting = new NotificationSetting()
- {
- EmailOn =
-{
-EmailNotificationEnableType.JobCompleted
-},
- Emails =
-{
-"string"
-},
- },
Services =
{
["string"] = new MachineLearningJobService()
{
Endpoint = "string",
JobServiceType = "string",
-Nodes = new JobAllNodes(),
Port = 1,
Properties =
{
@@ -744,7 +869,7 @@ public async Task CreateOrUpdate_CreateOrUpdateAutoMLJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateCommandJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/CommandJob/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/CommandJob/createOrUpdate.json
// this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -767,7 +892,6 @@ public async Task CreateOrUpdate_CreateOrUpdateCommandJob()
string id = "string";
MachineLearningJobData data = new MachineLearningJobData(new MachineLearningCommandJob("string", new ResourceIdentifier("string"))
{
- MlflowAutologger = MachineLearningFlowAutoLoggerState.Disabled,
CodeId = new ResourceIdentifier("string"),
Distribution = new TensorFlowDistributionConfiguration()
{
@@ -793,59 +917,32 @@ public async Task CreateOrUpdate_CreateOrUpdateCommandJob()
{
["string"] = new MachineLearningUriFileJobOutput()
{
-AssetName = "string",
-AssetVersion = "string",
-Mode = MachineLearningOutputDeliveryMode.Upload,
+Mode = MachineLearningOutputDeliveryMode.ReadWriteMount,
Uri = new Uri("string"),
Description = "string",
},
},
- QueueSettings = new JobQueueSettings()
- {
- JobTier = JobTier.Basic,
- Priority = 1,
- },
Resources = new MachineLearningJobResourceConfiguration()
{
- DockerArgs = "string",
- ShmSize = "2g",
InstanceCount = 1,
InstanceType = "string",
- Locations =
-{
-"string"
-},
Properties =
{
["string"] = BinaryData.FromObjectAsJson(new Dictionary()
{
-["c9ac10d0-915b-4de5-afe8-a4c78a37a558"] = null}),
+["e6b6493e-7d5e-4db3-be1e-306ec641327e"] = null}),
},
},
- ComponentId = new ResourceIdentifier("string"),
ComputeId = new ResourceIdentifier("string"),
DisplayName = "string",
ExperimentName = "string",
Identity = new AmlToken(),
- IsArchived = false,
- NotificationSetting = new NotificationSetting()
- {
- EmailOn =
-{
-EmailNotificationEnableType.JobCancelled
-},
- Emails =
-{
-"string"
-},
- },
Services =
{
["string"] = new MachineLearningJobService()
{
Endpoint = "string",
JobServiceType = "string",
-Nodes = new JobAllNodes(),
Port = 1,
Properties =
{
@@ -873,12 +970,68 @@ public async Task CreateOrUpdate_CreateOrUpdateCommandJob()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ // CreateOrUpdate FineTuning Job.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CreateOrUpdate_CreateOrUpdateFineTuningJob()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/FineTuningJob/createOrUpdate.json
+ // this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceResource created on azure
+ // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
+
+ // get the collection of this MachineLearningJobResource
+ MachineLearningJobCollection collection = machineLearningWorkspace.GetMachineLearningJobs();
+
+ // invoke the operation
+ string id = "string";
+ MachineLearningJobData data = new MachineLearningJobData(new FineTuningJob(new CustomModelFineTuning(FineTuningTaskType.TextCompletion, new MachineLearningUriFileJobInput(new Uri("azureml://registries/azureml-meta/models/Llama-2-7b/versions/11"))
+ {
+ Mode = MachineLearningInputDeliveryMode.ReadOnlyMount,
+ Description = null,
+ }, new MachineLearningFlowModelJobInput(new Uri("azureml://registries/azureml-meta/models/Llama-2-7b/versions/11"))
+ {
+ Mode = MachineLearningInputDeliveryMode.ReadOnlyMount,
+ Description = null,
+ }), new Dictionary()
+ {
+ ["string"] = new MachineLearningFlowModelJobOutput()
+ {
+ Mode = MachineLearningOutputDeliveryMode.ReadWriteMount,
+ Uri = new Uri("string"),
+ Description = "string",
+ },
+ })
+ {
+ ExperimentName = "llm-finetuning",
+ });
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, id, data);
+ MachineLearningJobResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MachineLearningJobData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
// CreateOrUpdate Pipeline Job.
[NUnit.Framework.Test]
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdatePipelineJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/PipelineJob/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/PipelineJob/createOrUpdate.json
// this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -961,7 +1114,7 @@ public async Task CreateOrUpdate_CreateOrUpdatePipelineJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateSweepJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/SweepJob/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/SweepJob/createOrUpdate.json
// this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -982,87 +1135,55 @@ public async Task CreateOrUpdate_CreateOrUpdateSweepJob()
// invoke the operation
string id = "string";
- MachineLearningJobData data = new MachineLearningJobData(new MachineLearningCommandJob("string", new ResourceIdentifier("string"))
+ MachineLearningJobData data = new MachineLearningJobData(new MachineLearningSweepJob(new MachineLearningObjective(MachineLearningGoal.Minimize, "string"), new GridSamplingAlgorithm(), BinaryData.FromObjectAsJson(new Dictionary()
+ {
+ ["string"] = new Dictionary()
+ {
+ }
+ }), new MachineLearningTrialComponent("string", new ResourceIdentifier("string"))
{
- MlflowAutologger = MachineLearningFlowAutoLoggerState.Disabled,
CodeId = new ResourceIdentifier("string"),
- Distribution = new TensorFlowDistributionConfiguration()
+ Distribution = new MpiDistributionConfiguration()
{
- ParameterServerCount = 1,
- WorkerCount = 1,
+ ProcessCountPerInstance = 1,
},
EnvironmentVariables =
{
["string"] = "string",
},
- Inputs =
-{
-["string"] = new MachineLearningLiteralJobInput("string")
-{
-Description = "string",
-},
-},
- Limits = new MachineLearningCommandJobLimits()
- {
- Timeout = XmlConvert.ToTimeSpan("PT5M"),
- },
- Outputs =
-{
-["string"] = new MachineLearningUriFileJobOutput()
-{
-AssetName = "string",
-AssetVersion = "string",
-Mode = MachineLearningOutputDeliveryMode.ReadWriteMount,
-Uri = new Uri("string"),
-Description = "string",
-},
-},
- QueueSettings = new JobQueueSettings()
- {
- JobTier = JobTier.Basic,
- Priority = 1,
- },
Resources = new MachineLearningJobResourceConfiguration()
{
- DockerArgs = "string",
- ShmSize = "2g",
InstanceCount = 1,
InstanceType = "string",
- Locations =
-{
-"string"
-},
Properties =
{
["string"] = BinaryData.FromObjectAsJson(new Dictionary()
{
-["5fc1f627-491e-45a0-a6a2-f5b4be884911"] = null}),
+["e6b6493e-7d5e-4db3-be1e-306ec641327e"] = null}),
},
},
- ComponentId = new ResourceIdentifier("string"),
+ })
+ {
+ EarlyTermination = new MedianStoppingPolicy()
+ {
+ DelayEvaluation = 1,
+ EvaluationInterval = 1,
+ },
+ Limits = new MachineLearningSweepJobLimits()
+ {
+ MaxConcurrentTrials = 1,
+ MaxTotalTrials = 1,
+ TrialTimeout = XmlConvert.ToTimeSpan("PT1S"),
+ },
ComputeId = new ResourceIdentifier("string"),
DisplayName = "string",
ExperimentName = "string",
- Identity = new AmlToken(),
- IsArchived = false,
- NotificationSetting = new NotificationSetting()
- {
- EmailOn =
-{
-EmailNotificationEnableType.JobCompleted
-},
- Emails =
-{
-"string"
-},
- },
Services =
{
["string"] = new MachineLearningJobService()
{
Endpoint = "string",
JobServiceType = "string",
-Nodes = new JobAllNodes(),
Port = 1,
Properties =
{
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobResource.cs
index 4e7991dd89b8f..4c1dd15df8746 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningJobResource.cs
@@ -6,7 +6,9 @@
#nullable disable
using System;
+using System.Collections.Generic;
using System.Threading.Tasks;
+using System.Xml;
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.MachineLearning.Models;
@@ -20,7 +22,7 @@ public partial class Sample_MachineLearningJobResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/delete.json
// this example is just showing the usage of "Jobs_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -33,7 +35,7 @@ public async Task Delete_DeleteJob()
string subscriptionId = "00000000-1111-2222-3333-444444444444";
string resourceGroupName = "test-rg";
string workspaceName = "my-aml-workspace";
- string id = "string";
+ string id = "http://subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.MachineLearningServices/workspaces/{workspaceName}/jobs/my-favorite-aml-job";
ResourceIdentifier machineLearningJobResourceId = MachineLearningJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId);
@@ -48,7 +50,7 @@ public async Task Delete_DeleteJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetAutoMLJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/AutoMLJob/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/AutoMLJob/get.json
// this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -80,7 +82,39 @@ public async Task Get_GetAutoMLJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetCommandJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/CommandJob/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/CommandJob/get.json
+ // this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningJobResource created on azure
+ // for more information of creating MachineLearningJobResource, please refer to the document of MachineLearningJobResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ string id = "string";
+ ResourceIdentifier machineLearningJobResourceId = MachineLearningJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
+ MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId);
+
+ // invoke the operation
+ MachineLearningJobResource result = await machineLearningJob.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MachineLearningJobData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Get FineTuning Job.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetFineTuningJob()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/FineTuningJob/get.json
// this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -112,7 +146,7 @@ public async Task Get_GetCommandJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetPipelineJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/PipelineJob/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/PipelineJob/get.json
// this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -144,7 +178,7 @@ public async Task Get_GetPipelineJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetSweepJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/SweepJob/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/SweepJob/get.json
// this example is just showing the usage of "Jobs_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -171,13 +205,354 @@ public async Task Get_GetSweepJob()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
- // Update Job.
+ // CreateOrUpdate AutoML Job.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_CreateOrUpdateAutoMLJob()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/AutoMLJob/createOrUpdate.json
+ // this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningJobResource created on azure
+ // for more information of creating MachineLearningJobResource, please refer to the document of MachineLearningJobResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ string id = "string";
+ ResourceIdentifier machineLearningJobResourceId = MachineLearningJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
+ MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId);
+
+ // invoke the operation
+ MachineLearningJobData data = new MachineLearningJobData(new AutoMLJob(new ImageClassification(new MachineLearningTableJobInput(new Uri("string")), new ImageLimitSettings()
+ {
+ MaxTrials = 2,
+ })
+ {
+ ModelSettings = new ImageModelSettingsClassification()
+ {
+ ValidationCropSize = 2,
+ },
+ SearchSpace =
+{
+new ImageModelDistributionSettingsClassification()
+{
+ValidationCropSize = "choice(2, 360)",
+}
+},
+ TargetColumnName = "string",
+ })
+ {
+ EnvironmentId = "string",
+ EnvironmentVariables =
+{
+["string"] = "string",
+},
+ Outputs =
+{
+["string"] = new MachineLearningUriFileJobOutput()
+{
+Mode = MachineLearningOutputDeliveryMode.ReadWriteMount,
+Uri = new Uri("string"),
+Description = "string",
+},
+},
+ Resources = new MachineLearningJobResourceConfiguration()
+ {
+ InstanceCount = 1,
+ InstanceType = "string",
+ Properties =
+{
+["string"] = BinaryData.FromObjectAsJson(new Dictionary()
+{
+["9bec0ab0-c62f-4fa9-a97c-7b24bbcc90ad"] = null}),
+},
+ },
+ ComputeId = new ResourceIdentifier("string"),
+ DisplayName = "string",
+ ExperimentName = "string",
+ Identity = new AmlToken(),
+ IsArchived = false,
+ Services =
+{
+["string"] = new MachineLearningJobService()
+{
+Endpoint = "string",
+JobServiceType = "string",
+Port = 1,
+Properties =
+{
+["string"] = "string",
+},
+},
+},
+ Description = "string",
+ Properties =
+{
+["string"] = "string",
+},
+ Tags =
+{
+["string"] = "string",
+},
+ });
+ ArmOperation lro = await machineLearningJob.UpdateAsync(WaitUntil.Completed, data);
+ MachineLearningJobResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MachineLearningJobData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // CreateOrUpdate Command Job.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_CreateOrUpdateCommandJob()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/CommandJob/createOrUpdate.json
+ // this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningJobResource created on azure
+ // for more information of creating MachineLearningJobResource, please refer to the document of MachineLearningJobResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ string id = "string";
+ ResourceIdentifier machineLearningJobResourceId = MachineLearningJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
+ MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId);
+
+ // invoke the operation
+ MachineLearningJobData data = new MachineLearningJobData(new MachineLearningCommandJob("string", new ResourceIdentifier("string"))
+ {
+ CodeId = new ResourceIdentifier("string"),
+ Distribution = new TensorFlowDistributionConfiguration()
+ {
+ ParameterServerCount = 1,
+ WorkerCount = 1,
+ },
+ EnvironmentVariables =
+{
+["string"] = "string",
+},
+ Inputs =
+{
+["string"] = new MachineLearningLiteralJobInput("string")
+{
+Description = "string",
+},
+},
+ Limits = new MachineLearningCommandJobLimits()
+ {
+ Timeout = XmlConvert.ToTimeSpan("PT5M"),
+ },
+ Outputs =
+{
+["string"] = new MachineLearningUriFileJobOutput()
+{
+Mode = MachineLearningOutputDeliveryMode.ReadWriteMount,
+Uri = new Uri("string"),
+Description = "string",
+},
+},
+ Resources = new MachineLearningJobResourceConfiguration()
+ {
+ InstanceCount = 1,
+ InstanceType = "string",
+ Properties =
+{
+["string"] = BinaryData.FromObjectAsJson(new Dictionary()
+{
+["e6b6493e-7d5e-4db3-be1e-306ec641327e"] = null}),
+},
+ },
+ ComputeId = new ResourceIdentifier("string"),
+ DisplayName = "string",
+ ExperimentName = "string",
+ Identity = new AmlToken(),
+ Services =
+{
+["string"] = new MachineLearningJobService()
+{
+Endpoint = "string",
+JobServiceType = "string",
+Port = 1,
+Properties =
+{
+["string"] = "string",
+},
+},
+},
+ Description = "string",
+ Properties =
+{
+["string"] = "string",
+},
+ Tags =
+{
+["string"] = "string",
+},
+ });
+ ArmOperation lro = await machineLearningJob.UpdateAsync(WaitUntil.Completed, data);
+ MachineLearningJobResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MachineLearningJobData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // CreateOrUpdate FineTuning Job.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_CreateOrUpdateFineTuningJob()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/FineTuningJob/createOrUpdate.json
+ // this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningJobResource created on azure
+ // for more information of creating MachineLearningJobResource, please refer to the document of MachineLearningJobResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ string id = "string";
+ ResourceIdentifier machineLearningJobResourceId = MachineLearningJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
+ MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId);
+
+ // invoke the operation
+ MachineLearningJobData data = new MachineLearningJobData(new FineTuningJob(new CustomModelFineTuning(FineTuningTaskType.TextCompletion, new MachineLearningUriFileJobInput(new Uri("azureml://registries/azureml-meta/models/Llama-2-7b/versions/11"))
+ {
+ Mode = MachineLearningInputDeliveryMode.ReadOnlyMount,
+ Description = null,
+ }, new MachineLearningFlowModelJobInput(new Uri("azureml://registries/azureml-meta/models/Llama-2-7b/versions/11"))
+ {
+ Mode = MachineLearningInputDeliveryMode.ReadOnlyMount,
+ Description = null,
+ }), new Dictionary()
+ {
+ ["string"] = new MachineLearningFlowModelJobOutput()
+ {
+ Mode = MachineLearningOutputDeliveryMode.ReadWriteMount,
+ Uri = new Uri("string"),
+ Description = "string",
+ },
+ })
+ {
+ ExperimentName = "llm-finetuning",
+ });
+ ArmOperation lro = await machineLearningJob.UpdateAsync(WaitUntil.Completed, data);
+ MachineLearningJobResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MachineLearningJobData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // CreateOrUpdate Pipeline Job.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_CreateOrUpdatePipelineJob()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/PipelineJob/createOrUpdate.json
+ // this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningJobResource created on azure
+ // for more information of creating MachineLearningJobResource, please refer to the document of MachineLearningJobResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ string id = "string";
+ ResourceIdentifier machineLearningJobResourceId = MachineLearningJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
+ MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId);
+
+ // invoke the operation
+ MachineLearningJobData data = new MachineLearningJobData(new MachineLearningPipelineJob()
+ {
+ Inputs =
+{
+["string"] = new MachineLearningLiteralJobInput("string")
+{
+Description = "string",
+},
+},
+ Outputs =
+{
+["string"] = new MachineLearningUriFileJobOutput()
+{
+Mode = MachineLearningOutputDeliveryMode.Upload,
+Uri = new Uri("string"),
+Description = "string",
+},
+},
+ Settings = BinaryData.FromObjectAsJson(new Dictionary()
+ {
+ }),
+ ComputeId = new ResourceIdentifier("string"),
+ DisplayName = "string",
+ ExperimentName = "string",
+ Services =
+{
+["string"] = new MachineLearningJobService()
+{
+Endpoint = "string",
+JobServiceType = "string",
+Port = 1,
+Properties =
+{
+["string"] = "string",
+},
+},
+},
+ Description = "string",
+ Properties =
+{
+["string"] = "string",
+},
+ Tags =
+{
+["string"] = "string",
+},
+ });
+ ArmOperation lro = await machineLearningJob.UpdateAsync(WaitUntil.Completed, data);
+ MachineLearningJobResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MachineLearningJobData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // CreateOrUpdate Sweep Job.
[NUnit.Framework.Test]
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Update_UpdateJob()
+ public async Task Update_CreateOrUpdateSweepJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/update.json
- // this example is just showing the usage of "Jobs_Update" operation, for the dependent resources, they will have to be created separately.
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/SweepJob/createOrUpdate.json
+ // this example is just showing the usage of "Jobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
@@ -194,17 +569,74 @@ public async Task Update_UpdateJob()
MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId);
// invoke the operation
- MachineLearningJobPatch patch = new MachineLearningJobPatch()
+ MachineLearningJobData data = new MachineLearningJobData(new MachineLearningSweepJob(new MachineLearningObjective(MachineLearningGoal.Minimize, "string"), new GridSamplingAlgorithm(), BinaryData.FromObjectAsJson(new Dictionary()
+ {
+ ["string"] = new Dictionary()
+ {
+ }
+ }), new MachineLearningTrialComponent("string", new ResourceIdentifier("string"))
+ {
+ CodeId = new ResourceIdentifier("string"),
+ Distribution = new MpiDistributionConfiguration()
+ {
+ ProcessCountPerInstance = 1,
+ },
+ EnvironmentVariables =
+{
+["string"] = "string",
+},
+ Resources = new MachineLearningJobResourceConfiguration()
+ {
+ InstanceCount = 1,
+ InstanceType = "string",
+ Properties =
+{
+["string"] = BinaryData.FromObjectAsJson(new Dictionary()
+{
+["e6b6493e-7d5e-4db3-be1e-306ec641327e"] = null}),
+},
+ },
+ })
{
- NotificationSettingWebhooks =
+ EarlyTermination = new MedianStoppingPolicy()
+ {
+ DelayEvaluation = 1,
+ EvaluationInterval = 1,
+ },
+ Limits = new MachineLearningSweepJobLimits()
+ {
+ MaxConcurrentTrials = 1,
+ MaxTotalTrials = 1,
+ TrialTimeout = XmlConvert.ToTimeSpan("PT1S"),
+ },
+ ComputeId = new ResourceIdentifier("string"),
+ DisplayName = "string",
+ ExperimentName = "string",
+ Services =
+{
+["string"] = new MachineLearningJobService()
{
-["string"] = new AzureDevOpsWebhook()
+Endpoint = "string",
+JobServiceType = "string",
+Port = 1,
+Properties =
{
-EventType = "string",
+["string"] = "string",
+},
+},
},
+ Description = "string",
+ Properties =
+{
+["string"] = "string",
+},
+ Tags =
+{
+["string"] = "string",
},
- };
- MachineLearningJobResource result = await machineLearningJob.UpdateAsync(patch);
+ });
+ ArmOperation lro = await machineLearningJob.UpdateAsync(WaitUntil.Completed, data);
+ MachineLearningJobResource result = lro.Value;
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
@@ -218,7 +650,7 @@ public async Task Update_UpdateJob()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Cancel_CancelJob()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Job/cancel.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Job/cancel.json
// this example is just showing the usage of "Jobs_Cancel" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobResource.cs
deleted file mode 100644
index 28fcb669725e5..0000000000000
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobResource.cs
+++ /dev/null
@@ -1,265 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.Threading.Tasks;
-using Azure.Core;
-using Azure.Identity;
-using Azure.ResourceManager.MachineLearning.Models;
-
-namespace Azure.ResourceManager.MachineLearning.Samples
-{
- public partial class Sample_MachineLearningLabelingJobResource
- {
- // Delete Labeling Job.
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Delete_DeleteLabelingJob()
- {
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/delete.json
- // this example is just showing the usage of "LabelingJobs_Delete" operation, for the dependent resources, they will have to be created separately.
-
- // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
- TokenCredential cred = new DefaultAzureCredential();
- // authenticate your client
- ArmClient client = new ArmClient(cred);
-
- // this example assumes you already have this MachineLearningLabelingJobResource created on azure
- // for more information of creating MachineLearningLabelingJobResource, please refer to the document of MachineLearningLabelingJobResource
- string subscriptionId = "00000000-1111-2222-3333-444444444444";
- string resourceGroupName = "workspace-1234";
- string workspaceName = "testworkspace";
- string id = "testLabelingJob";
- ResourceIdentifier machineLearningLabelingJobResourceId = MachineLearningLabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
- MachineLearningLabelingJobResource machineLearningLabelingJob = client.GetMachineLearningLabelingJobResource(machineLearningLabelingJobResourceId);
-
- // invoke the operation
- await machineLearningLabelingJob.DeleteAsync(WaitUntil.Completed);
-
- Console.WriteLine($"Succeeded");
- }
-
- // Get Labeling Job.
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_GetLabelingJob()
- {
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/get.json
- // this example is just showing the usage of "LabelingJobs_Get" operation, for the dependent resources, they will have to be created separately.
-
- // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
- TokenCredential cred = new DefaultAzureCredential();
- // authenticate your client
- ArmClient client = new ArmClient(cred);
-
- // this example assumes you already have this MachineLearningLabelingJobResource created on azure
- // for more information of creating MachineLearningLabelingJobResource, please refer to the document of MachineLearningLabelingJobResource
- string subscriptionId = "00000000-1111-2222-3333-444444444444";
- string resourceGroupName = "workspace-1234";
- string workspaceName = "testworkspace";
- string id = "testLabelingJob";
- ResourceIdentifier machineLearningLabelingJobResourceId = MachineLearningLabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
- MachineLearningLabelingJobResource machineLearningLabelingJob = client.GetMachineLearningLabelingJobResource(machineLearningLabelingJobResourceId);
-
- // invoke the operation
- bool? includeJobInstructions = true;
- bool? includeLabelCategories = true;
- MachineLearningLabelingJobResource result = await machineLearningLabelingJob.GetAsync(includeJobInstructions: includeJobInstructions, includeLabelCategories: includeLabelCategories);
-
- // the variable result is a resource, you could call other operations on this instance as well
- // but just for demo, we get its data from this resource instance
- MachineLearningLabelingJobData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // CreateOrUpdate Labeling Job.
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Update_CreateOrUpdateLabelingJob()
- {
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/createOrUpdate.json
- // this example is just showing the usage of "LabelingJobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
-
- // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
- TokenCredential cred = new DefaultAzureCredential();
- // authenticate your client
- ArmClient client = new ArmClient(cred);
-
- // this example assumes you already have this MachineLearningLabelingJobResource created on azure
- // for more information of creating MachineLearningLabelingJobResource, please refer to the document of MachineLearningLabelingJobResource
- string subscriptionId = "00000000-1111-2222-3333-444444444444";
- string resourceGroupName = "workspace-1234";
- string workspaceName = "testworkspace";
- string id = "testLabelingJob";
- ResourceIdentifier machineLearningLabelingJobResourceId = MachineLearningLabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
- MachineLearningLabelingJobResource machineLearningLabelingJob = client.GetMachineLearningLabelingJobResource(machineLearningLabelingJobResourceId);
-
- // invoke the operation
- MachineLearningLabelingJobData data = new MachineLearningLabelingJobData(new LabelingJobProperties()
- {
- JobInstructionsUri = new Uri("link/to/instructions"),
- LabelCategories =
-{
-["myCategory1"] = new LabelCategory()
-{
-Classes =
-{
-["myLabelClass1"] = new LabelClass()
-{
-DisplayName = "myLabelClass1",
-Subclasses =
-{
-},
-},
-["myLabelClass2"] = new LabelClass()
-{
-DisplayName = "myLabelClass2",
-Subclasses =
-{
-},
-},
-},
-DisplayName = "myCategory1Title",
-MultiSelect = LabelCategoryMultiSelect.Disabled,
-},
-["myCategory2"] = new LabelCategory()
-{
-Classes =
-{
-["myLabelClass1"] = new LabelClass()
-{
-DisplayName = "myLabelClass1",
-Subclasses =
-{
-},
-},
-["myLabelClass2"] = new LabelClass()
-{
-DisplayName = "myLabelClass2",
-Subclasses =
-{
-},
-},
-},
-DisplayName = "myCategory2Title",
-MultiSelect = LabelCategoryMultiSelect.Disabled,
-},
-},
- LabelingJobMediaProperties = new LabelingJobImageProperties(),
- MlAssistConfiguration = new MachineLearningAssistEnabledConfiguration("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/myscoringcompute", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/mytrainingompute"),
- Description = "string",
- Properties =
-{
-["additionalProp1"] = "string",
-["additionalProp2"] = "string",
-["additionalProp3"] = "string",
-},
- Tags =
-{
-["additionalProp1"] = "string",
-["additionalProp2"] = "string",
-["additionalProp3"] = "string",
-},
- });
- ArmOperation lro = await machineLearningLabelingJob.UpdateAsync(WaitUntil.Completed, data);
- MachineLearningLabelingJobResource result = lro.Value;
-
- // the variable result is a resource, you could call other operations on this instance as well
- // but just for demo, we get its data from this resource instance
- MachineLearningLabelingJobData resourceData = result.Data;
- // for demo we just print out the id
- Console.WriteLine($"Succeeded on id: {resourceData.Id}");
- }
-
- // ExportLabels Labeling Job.
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task ExportLabels_ExportLabelsLabelingJob()
- {
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/exportLabels.json
- // this example is just showing the usage of "LabelingJobs_ExportLabels" operation, for the dependent resources, they will have to be created separately.
-
- // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
- TokenCredential cred = new DefaultAzureCredential();
- // authenticate your client
- ArmClient client = new ArmClient(cred);
-
- // this example assumes you already have this MachineLearningLabelingJobResource created on azure
- // for more information of creating MachineLearningLabelingJobResource, please refer to the document of MachineLearningLabelingJobResource
- string subscriptionId = "00000000-1111-2222-3333-444444444444";
- string resourceGroupName = "workspace-1234";
- string workspaceName = "testworkspace";
- string id = "testLabelingJob";
- ResourceIdentifier machineLearningLabelingJobResourceId = MachineLearningLabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
- MachineLearningLabelingJobResource machineLearningLabelingJob = client.GetMachineLearningLabelingJobResource(machineLearningLabelingJobResourceId);
-
- // invoke the operation
- ExportSummary body = new DatasetExportSummary();
- ArmOperation lro = await machineLearningLabelingJob.ExportLabelsAsync(WaitUntil.Completed, body);
- ExportSummary result = lro.Value;
-
- Console.WriteLine($"Succeeded: {result}");
- }
-
- // Pause Labeling Job.
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Pause_PauseLabelingJob()
- {
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/pause.json
- // this example is just showing the usage of "LabelingJobs_Pause" operation, for the dependent resources, they will have to be created separately.
-
- // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
- TokenCredential cred = new DefaultAzureCredential();
- // authenticate your client
- ArmClient client = new ArmClient(cred);
-
- // this example assumes you already have this MachineLearningLabelingJobResource created on azure
- // for more information of creating MachineLearningLabelingJobResource, please refer to the document of MachineLearningLabelingJobResource
- string subscriptionId = "00000000-1111-2222-3333-444444444444";
- string resourceGroupName = "workspace-1234";
- string workspaceName = "testworkspace";
- string id = "testLabelingJob";
- ResourceIdentifier machineLearningLabelingJobResourceId = MachineLearningLabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
- MachineLearningLabelingJobResource machineLearningLabelingJob = client.GetMachineLearningLabelingJobResource(machineLearningLabelingJobResourceId);
-
- // invoke the operation
- await machineLearningLabelingJob.PauseAsync();
-
- Console.WriteLine($"Succeeded");
- }
-
- // Resume Labeling Job.
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Resume_ResumeLabelingJob()
- {
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/resume.json
- // this example is just showing the usage of "LabelingJobs_Resume" operation, for the dependent resources, they will have to be created separately.
-
- // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
- TokenCredential cred = new DefaultAzureCredential();
- // authenticate your client
- ArmClient client = new ArmClient(cred);
-
- // this example assumes you already have this MachineLearningLabelingJobResource created on azure
- // for more information of creating MachineLearningLabelingJobResource, please refer to the document of MachineLearningLabelingJobResource
- string subscriptionId = "00000000-1111-2222-3333-444444444444";
- string resourceGroupName = "workspace-1234";
- string workspaceName = "testworkspace";
- string id = "testLabelingJob";
- ResourceIdentifier machineLearningLabelingJobResourceId = MachineLearningLabelingJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
- MachineLearningLabelingJobResource machineLearningLabelingJob = client.GetMachineLearningLabelingJobResource(machineLearningLabelingJobResourceId);
-
- // invoke the operation
- await machineLearningLabelingJob.ResumeAsync(WaitUntil.Completed);
-
- Console.WriteLine($"Succeeded");
- }
- }
-}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerCollection.cs
index 6da1cbff6ef8f..5211c70c4aafb 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningModelContainerCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListWorkspaceModelContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelContainer/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ModelContainer/list.json
// this example is just showing the usage of "ModelContainers_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -57,7 +57,7 @@ public async Task GetAll_ListWorkspaceModelContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceModelContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ModelContainer/get.json
// this example is just showing the usage of "ModelContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -92,7 +92,7 @@ public async Task Get_GetWorkspaceModelContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetWorkspaceModelContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ModelContainer/get.json
// this example is just showing the usage of "ModelContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -123,7 +123,7 @@ public async Task Exists_GetWorkspaceModelContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetWorkspaceModelContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ModelContainer/get.json
// this example is just showing the usage of "ModelContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -166,7 +166,7 @@ public async Task GetIfExists_GetWorkspaceModelContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateWorkspaceModelContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ModelContainer/createOrUpdate.json
// this example is just showing the usage of "ModelContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerResource.cs
index 2a483ce425a40..e1a7547a3caca 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelContainerResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningModelContainerResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceModelContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelContainer/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ModelContainer/delete.json
// this example is just showing the usage of "ModelContainers_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -48,7 +48,7 @@ public async Task Delete_DeleteWorkspaceModelContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceModelContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ModelContainer/get.json
// this example is just showing the usage of "ModelContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -80,7 +80,7 @@ public async Task Get_GetWorkspaceModelContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateWorkspaceModelContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ModelContainer/createOrUpdate.json
// this example is just showing the usage of "ModelContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionCollection.cs
index b7c9685636eed..0ca1db3a38611 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningModelVersionCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListWorkspaceModelVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelVersion/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ModelVersion/list.json
// this example is just showing the usage of "ModelVersions_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -59,7 +59,7 @@ public async Task GetAll_ListWorkspaceModelVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceModelVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ModelVersion/get.json
// this example is just showing the usage of "ModelVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -95,7 +95,7 @@ public async Task Get_GetWorkspaceModelVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetWorkspaceModelVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ModelVersion/get.json
// this example is just showing the usage of "ModelVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -127,7 +127,7 @@ public async Task Exists_GetWorkspaceModelVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetWorkspaceModelVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ModelVersion/get.json
// this example is just showing the usage of "ModelVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -171,7 +171,7 @@ public async Task GetIfExists_GetWorkspaceModelVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateWorkspaceModelVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ModelVersion/createOrUpdate.json
// this example is just showing the usage of "ModelVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionResource.cs
index 49f745854eb38..9211e26060e1c 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningModelVersionResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningModelVersionResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceModelVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelVersion/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ModelVersion/delete.json
// this example is just showing the usage of "ModelVersions_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -49,7 +49,7 @@ public async Task Delete_DeleteWorkspaceModelVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceModelVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ModelVersion/get.json
// this example is just showing the usage of "ModelVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -82,7 +82,7 @@ public async Task Get_GetWorkspaceModelVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateWorkspaceModelVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ModelVersion/createOrUpdate.json
// this example is just showing the usage of "ModelVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -136,13 +136,13 @@ public async Task Update_CreateOrUpdateWorkspaceModelVersion()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
- // Package Workspace Model Version.
+ // Publish Workspace Model Version.
[NUnit.Framework.Test]
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Package_PackageWorkspaceModelVersion()
+ public async Task Publish_PublishWorkspaceModelVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/ModelVersion/package.json
- // this example is just showing the usage of "ModelVersions_Package" operation, for the dependent resources, they will have to be created separately.
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ModelVersion/publish.json
+ // this example is just showing the usage of "ModelVersions_Publish" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
@@ -160,44 +160,15 @@ public async Task Package_PackageWorkspaceModelVersion()
MachineLearningModelVersionResource machineLearningModelVersion = client.GetMachineLearningModelVersionResource(machineLearningModelVersionResourceId);
// invoke the operation
- ModelPackageContent content = new ModelPackageContent(new AzureMLBatchInferencingServer()
+ DestinationAsset body = new DestinationAsset()
{
- CodeConfiguration = new MachineLearningCodeConfiguration("string")
- {
- CodeId = new ResourceIdentifier("string"),
- },
- }, "string")
- {
- BaseEnvironmentSource = new BaseEnvironmentType(new ResourceIdentifier("string")),
- EnvironmentVariables =
-{
-["string"] = "string",
-},
- Inputs =
-{
-new ModelPackageInput(PackageInputType.UriFile,new PackageInputPathUri()
-{
-Uri = new Uri("string"),
-})
-{
-Mode = PackageInputDeliveryMode.Download,
-MountPath = "string",
-}
-},
- ModelConfiguration = new ModelConfiguration()
- {
- Mode = new PackageInputDeliveryMode("ReadOnlyMount"),
- MountPath = "string",
- },
- Tags =
-{
-["string"] = "string",
-},
+ DestinationName = "string",
+ DestinationVersion = "string",
+ RegistryName = "string",
};
- ArmOperation lro = await machineLearningModelVersion.PackageAsync(WaitUntil.Completed, content);
- ModelPackageResult result = lro.Value;
+ await machineLearningModelVersion.PublishAsync(WaitUntil.Completed, body);
- Console.WriteLine($"Succeeded: {result}");
+ Console.WriteLine($"Succeeded");
}
}
}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineDeploymentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineDeploymentCollection.cs
index 88af0ad0df629..b70d5c39543ca 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineDeploymentCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineDeploymentCollection.cs
@@ -22,7 +22,7 @@ public partial class Sample_MachineLearningOnlineDeploymentCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListOnlineDeployments()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/OnlineDeployment/list.json
// this example is just showing the usage of "OnlineDeployments_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -62,7 +62,7 @@ public async Task GetAll_ListOnlineDeployments()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetKubernetesOnlineDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
// this example is just showing the usage of "OnlineDeployments_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -98,7 +98,7 @@ public async Task Get_GetKubernetesOnlineDeployment()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetKubernetesOnlineDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
// this example is just showing the usage of "OnlineDeployments_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -130,7 +130,7 @@ public async Task Exists_GetKubernetesOnlineDeployment()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetKubernetesOnlineDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
// this example is just showing the usage of "OnlineDeployments_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -174,7 +174,7 @@ public async Task GetIfExists_GetKubernetesOnlineDeployment()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetManagedOnlineDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
// this example is just showing the usage of "OnlineDeployments_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -210,7 +210,7 @@ public async Task Get_GetManagedOnlineDeployment()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetManagedOnlineDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
// this example is just showing the usage of "OnlineDeployments_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -242,7 +242,7 @@ public async Task Exists_GetManagedOnlineDeployment()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetManagedOnlineDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
// this example is just showing the usage of "OnlineDeployments_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -286,7 +286,7 @@ public async Task GetIfExists_GetManagedOnlineDeployment()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateKubernetesOnlineDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/createOrUpdate.json
// this example is just showing the usage of "OnlineDeployments_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -394,7 +394,7 @@ public async Task CreateOrUpdate_CreateOrUpdateKubernetesOnlineDeployment()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateManagedOnlineDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/createOrUpdate.json
// this example is just showing the usage of "OnlineDeployments_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineDeploymentResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineDeploymentResource.cs
index f7e6269331dfb..23dd7bfff8559 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineDeploymentResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineDeploymentResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningOnlineDeploymentResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceOnlineDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineDeployment/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/OnlineDeployment/delete.json
// this example is just showing the usage of "OnlineDeployments_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -49,7 +49,7 @@ public async Task Delete_DeleteWorkspaceOnlineDeployment()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetKubernetesOnlineDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
// this example is just showing the usage of "OnlineDeployments_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -82,7 +82,7 @@ public async Task Get_GetKubernetesOnlineDeployment()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetManagedOnlineDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
// this example is just showing the usage of "OnlineDeployments_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -115,7 +115,7 @@ public async Task Get_GetManagedOnlineDeployment()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_UpdateKubernetesOnlineDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/update.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/update.json
// this example is just showing the usage of "OnlineDeployments_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -163,7 +163,7 @@ public async Task Update_UpdateKubernetesOnlineDeployment()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_UpdateManagedOnlineDeployment()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/update.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/update.json
// this example is just showing the usage of "OnlineDeployments_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -211,7 +211,7 @@ public async Task Update_UpdateManagedOnlineDeployment()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetLogs_GetOnlineDeploymentLogs()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/getLogs.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/OnlineDeployment/getLogs.json
// this example is just showing the usage of "OnlineDeployments_GetLogs" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -245,7 +245,7 @@ public async Task GetLogs_GetOnlineDeploymentLogs()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetSkus_ListKubernetesOnlineDeploymentSkus()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/OnlineDeployment/KubernetesOnlineDeployment/listSkus.json
// this example is just showing the usage of "OnlineDeployments_ListSkus" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -278,7 +278,7 @@ public async Task GetSkus_ListKubernetesOnlineDeploymentSkus()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetSkus_ListManagedOnlineDeploymentSkus()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/OnlineDeployment/ManagedOnlineDeployment/listSkus.json
// this example is just showing the usage of "OnlineDeployments_ListSkus" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineEndpointCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineEndpointCollection.cs
index 41c03690cce17..7a891d4721a73 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineEndpointCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineEndpointCollection.cs
@@ -21,7 +21,7 @@ public partial class Sample_MachineLearningOnlineEndpointCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListWorkspaceOnlineEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/OnlineEndpoint/list.json
// this example is just showing the usage of "OnlineEndpoints_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -59,7 +59,7 @@ public async Task GetAll_ListWorkspaceOnlineEndpoint()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceOnlineEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/OnlineEndpoint/get.json
// this example is just showing the usage of "OnlineEndpoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -94,7 +94,7 @@ public async Task Get_GetWorkspaceOnlineEndpoint()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetWorkspaceOnlineEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/OnlineEndpoint/get.json
// this example is just showing the usage of "OnlineEndpoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -125,7 +125,7 @@ public async Task Exists_GetWorkspaceOnlineEndpoint()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetWorkspaceOnlineEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/OnlineEndpoint/get.json
// this example is just showing the usage of "OnlineEndpoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -168,7 +168,7 @@ public async Task GetIfExists_GetWorkspaceOnlineEndpoint()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateWorkspaceOnlineEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/OnlineEndpoint/createOrUpdate.json
// this example is just showing the usage of "OnlineEndpoints_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineEndpointResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineEndpointResource.cs
index 55d647bfb4f1a..715ec18d2608d 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineEndpointResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOnlineEndpointResource.cs
@@ -21,7 +21,7 @@ public partial class Sample_MachineLearningOnlineEndpointResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceOnlineEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/OnlineEndpoint/delete.json
// this example is just showing the usage of "OnlineEndpoints_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -49,7 +49,7 @@ public async Task Delete_DeleteWorkspaceOnlineEndpoint()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceOnlineEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/OnlineEndpoint/get.json
// this example is just showing the usage of "OnlineEndpoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -81,7 +81,7 @@ public async Task Get_GetWorkspaceOnlineEndpoint()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_UpdateWorkspaceOnlineEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/update.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/OnlineEndpoint/update.json
// this example is just showing the usage of "OnlineEndpoints_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -130,7 +130,7 @@ public async Task Update_UpdateWorkspaceOnlineEndpoint()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetKeys_ListKeysWorkspaceOnlineEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/listKeys.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/OnlineEndpoint/listKeys.json
// this example is just showing the usage of "OnlineEndpoints_ListKeys" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -158,7 +158,7 @@ public async Task GetKeys_ListKeysWorkspaceOnlineEndpoint()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task RegenerateKeys_RegenerateKeysWorkspaceOnlineEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/regenerateKeys.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/OnlineEndpoint/regenerateKeys.json
// this example is just showing the usage of "OnlineEndpoints_RegenerateKeys" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -190,7 +190,7 @@ public async Task RegenerateKeys_RegenerateKeysWorkspaceOnlineEndpoint()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetToken_GetTokenWorkspaceOnlineEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/OnlineEndpoint/getToken.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/OnlineEndpoint/getToken.json
// this example is just showing the usage of "OnlineEndpoints_GetToken" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOutboundRuleBasicCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOutboundRuleBasicCollection.cs
index cd22304e5fbf9..6d8dfac3695ba 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOutboundRuleBasicCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOutboundRuleBasicCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningOutboundRuleBasicCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListManagedNetworkSettingsRule()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ManagedNetwork/listRule.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/ManagedNetwork/listRule.json
// this example is just showing the usage of "ManagedNetworkSettingsRule_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -57,7 +57,7 @@ public async Task GetAll_ListManagedNetworkSettingsRule()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetManagedNetworkSettingsRule()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ManagedNetwork/getRule.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/ManagedNetwork/getRule.json
// this example is just showing the usage of "ManagedNetworkSettingsRule_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -77,7 +77,7 @@ public async Task Get_GetManagedNetworkSettingsRule()
MachineLearningOutboundRuleBasicCollection collection = machineLearningWorkspace.GetMachineLearningOutboundRuleBasics();
// invoke the operation
- string ruleName = "some_string";
+ string ruleName = "name_of_the_fqdn_rule";
MachineLearningOutboundRuleBasicResource result = await collection.GetAsync(ruleName);
// the variable result is a resource, you could call other operations on this instance as well
@@ -92,7 +92,7 @@ public async Task Get_GetManagedNetworkSettingsRule()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetManagedNetworkSettingsRule()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ManagedNetwork/getRule.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/ManagedNetwork/getRule.json
// this example is just showing the usage of "ManagedNetworkSettingsRule_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -112,7 +112,7 @@ public async Task Exists_GetManagedNetworkSettingsRule()
MachineLearningOutboundRuleBasicCollection collection = machineLearningWorkspace.GetMachineLearningOutboundRuleBasics();
// invoke the operation
- string ruleName = "some_string";
+ string ruleName = "name_of_the_fqdn_rule";
bool result = await collection.ExistsAsync(ruleName);
Console.WriteLine($"Succeeded: {result}");
@@ -123,7 +123,7 @@ public async Task Exists_GetManagedNetworkSettingsRule()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetManagedNetworkSettingsRule()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ManagedNetwork/getRule.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/ManagedNetwork/getRule.json
// this example is just showing the usage of "ManagedNetworkSettingsRule_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -143,7 +143,7 @@ public async Task GetIfExists_GetManagedNetworkSettingsRule()
MachineLearningOutboundRuleBasicCollection collection = machineLearningWorkspace.GetMachineLearningOutboundRuleBasics();
// invoke the operation
- string ruleName = "some_string";
+ string ruleName = "name_of_the_fqdn_rule";
NullableResponse response = await collection.GetIfExistsAsync(ruleName);
MachineLearningOutboundRuleBasicResource result = response.HasValue ? response.Value : null;
@@ -166,7 +166,7 @@ public async Task GetIfExists_GetManagedNetworkSettingsRule()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateManagedNetworkSettingsRule()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ManagedNetwork/createOrUpdateRule.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/ManagedNetwork/createOrUpdateRule.json
// this example is just showing the usage of "ManagedNetworkSettingsRule_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -186,10 +186,10 @@ public async Task CreateOrUpdate_CreateOrUpdateManagedNetworkSettingsRule()
MachineLearningOutboundRuleBasicCollection collection = machineLearningWorkspace.GetMachineLearningOutboundRuleBasics();
// invoke the operation
- string ruleName = "some_string";
+ string ruleName = "rule_name_1";
MachineLearningOutboundRuleBasicData data = new MachineLearningOutboundRuleBasicData(new FqdnOutboundRule()
{
- Destination = "some_string",
+ Destination = "destination_endpoint",
Category = OutboundRuleCategory.UserDefined,
Status = OutboundRuleStatus.Active,
});
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOutboundRuleBasicResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOutboundRuleBasicResource.cs
index bbca1b772066e..1f110f29783e9 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOutboundRuleBasicResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningOutboundRuleBasicResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningOutboundRuleBasicResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteManagedNetworkSettingsRule()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ManagedNetwork/deleteRule.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/ManagedNetwork/deleteRule.json
// this example is just showing the usage of "ManagedNetworkSettingsRule_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -33,7 +33,7 @@ public async Task Delete_DeleteManagedNetworkSettingsRule()
string subscriptionId = "00000000-1111-2222-3333-444444444444";
string resourceGroupName = "test-rg";
string workspaceName = "aml-workspace-name";
- string ruleName = "some_string";
+ string ruleName = "rule-name";
ResourceIdentifier machineLearningOutboundRuleBasicResourceId = MachineLearningOutboundRuleBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName);
MachineLearningOutboundRuleBasicResource machineLearningOutboundRuleBasic = client.GetMachineLearningOutboundRuleBasicResource(machineLearningOutboundRuleBasicResourceId);
@@ -48,7 +48,7 @@ public async Task Delete_DeleteManagedNetworkSettingsRule()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetManagedNetworkSettingsRule()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ManagedNetwork/getRule.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/ManagedNetwork/getRule.json
// this example is just showing the usage of "ManagedNetworkSettingsRule_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -61,7 +61,7 @@ public async Task Get_GetManagedNetworkSettingsRule()
string subscriptionId = "00000000-1111-2222-3333-444444444444";
string resourceGroupName = "test-rg";
string workspaceName = "aml-workspace-name";
- string ruleName = "some_string";
+ string ruleName = "name_of_the_fqdn_rule";
ResourceIdentifier machineLearningOutboundRuleBasicResourceId = MachineLearningOutboundRuleBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName);
MachineLearningOutboundRuleBasicResource machineLearningOutboundRuleBasic = client.GetMachineLearningOutboundRuleBasicResource(machineLearningOutboundRuleBasicResourceId);
@@ -80,7 +80,7 @@ public async Task Get_GetManagedNetworkSettingsRule()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateManagedNetworkSettingsRule()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ManagedNetwork/createOrUpdateRule.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/ManagedNetwork/createOrUpdateRule.json
// this example is just showing the usage of "ManagedNetworkSettingsRule_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -93,14 +93,14 @@ public async Task Update_CreateOrUpdateManagedNetworkSettingsRule()
string subscriptionId = "00000000-1111-2222-3333-444444444444";
string resourceGroupName = "test-rg";
string workspaceName = "aml-workspace-name";
- string ruleName = "some_string";
+ string ruleName = "rule_name_1";
ResourceIdentifier machineLearningOutboundRuleBasicResourceId = MachineLearningOutboundRuleBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName);
MachineLearningOutboundRuleBasicResource machineLearningOutboundRuleBasic = client.GetMachineLearningOutboundRuleBasicResource(machineLearningOutboundRuleBasicResourceId);
// invoke the operation
MachineLearningOutboundRuleBasicData data = new MachineLearningOutboundRuleBasicData(new FqdnOutboundRule()
{
- Destination = "some_string",
+ Destination = "destination_endpoint",
Category = OutboundRuleCategory.UserDefined,
Status = OutboundRuleStatus.Active,
});
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionCollection.cs
index 38c1a533a69af..11ec149a08014 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningPrivateEndpointConnectionCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_StorageAccountListPrivateEndpointConnections()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/PrivateEndpointConnection/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/PrivateEndpointConnection/list.json
// this example is just showing the usage of "PrivateEndpointConnections_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -57,7 +57,7 @@ public async Task GetAll_StorageAccountListPrivateEndpointConnections()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_WorkspaceGetPrivateEndpointConnection()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/PrivateEndpointConnection/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/PrivateEndpointConnection/get.json
// this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -92,7 +92,7 @@ public async Task Get_WorkspaceGetPrivateEndpointConnection()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_WorkspaceGetPrivateEndpointConnection()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/PrivateEndpointConnection/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/PrivateEndpointConnection/get.json
// this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -123,7 +123,7 @@ public async Task Exists_WorkspaceGetPrivateEndpointConnection()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_WorkspaceGetPrivateEndpointConnection()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/PrivateEndpointConnection/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/PrivateEndpointConnection/get.json
// this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -166,7 +166,7 @@ public async Task GetIfExists_WorkspaceGetPrivateEndpointConnection()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_WorkspacePutPrivateEndpointConnection()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/PrivateEndpointConnection/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/PrivateEndpointConnection/createOrUpdate.json
// this example is just showing the usage of "PrivateEndpointConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionResource.cs
index 77866f8276800..947195048b750 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningPrivateEndpointConnectionResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningPrivateEndpointConnectionResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_WorkspacePutPrivateEndpointConnection()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/PrivateEndpointConnection/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/PrivateEndpointConnection/delete.json
// this example is just showing the usage of "PrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -48,7 +48,7 @@ public async Task Delete_WorkspacePutPrivateEndpointConnection()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_WorkspaceGetPrivateEndpointConnection()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/PrivateEndpointConnection/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/PrivateEndpointConnection/get.json
// this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -80,7 +80,7 @@ public async Task Get_WorkspaceGetPrivateEndpointConnection()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_WorkspacePutPrivateEndpointConnection()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/PrivateEndpointConnection/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/PrivateEndpointConnection/createOrUpdate.json
// this example is just showing the usage of "PrivateEndpointConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeContainerCollection.cs
index dd4bfcdca63d1..eb071ebcb0084 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeContainerCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeContainerCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningRegistryCodeContainerCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListRegistryCodeContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeContainer/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/CodeContainer/list.json
// this example is just showing the usage of "RegistryCodeContainers_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -57,7 +57,7 @@ public async Task GetAll_ListRegistryCodeContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryCodeContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/CodeContainer/get.json
// this example is just showing the usage of "RegistryCodeContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -92,7 +92,7 @@ public async Task Get_GetRegistryCodeContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetRegistryCodeContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/CodeContainer/get.json
// this example is just showing the usage of "RegistryCodeContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -123,7 +123,7 @@ public async Task Exists_GetRegistryCodeContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetRegistryCodeContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/CodeContainer/get.json
// this example is just showing the usage of "RegistryCodeContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -166,7 +166,7 @@ public async Task GetIfExists_GetRegistryCodeContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateRegistryCodeContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/CodeContainer/createOrUpdate.json
// this example is just showing the usage of "RegistryCodeContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeContainerResource.cs
index 7246a78a7c2da..1c255d1b17587 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeContainerResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeContainerResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningRegistryCodeContainerResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteRegistryCodeContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeContainer/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/CodeContainer/delete.json
// this example is just showing the usage of "RegistryCodeContainers_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -48,7 +48,7 @@ public async Task Delete_DeleteRegistryCodeContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryCodeContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/CodeContainer/get.json
// this example is just showing the usage of "RegistryCodeContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -80,7 +80,7 @@ public async Task Get_GetRegistryCodeContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateRegistryCodeContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/CodeContainer/createOrUpdate.json
// this example is just showing the usage of "RegistryCodeContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeVersionCollection.cs
index f9f11d1d4d2f8..0c00637f99ed9 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeVersionCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeVersionCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningRegistryCodeVersionCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListRegistryCodeVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeVersion/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/CodeVersion/list.json
// this example is just showing the usage of "RegistryCodeVersions_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -60,7 +60,7 @@ public async Task GetAll_ListRegistryCodeVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryCodeVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/CodeVersion/get.json
// this example is just showing the usage of "RegistryCodeVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -96,7 +96,7 @@ public async Task Get_GetRegistryCodeVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetRegistryCodeVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/CodeVersion/get.json
// this example is just showing the usage of "RegistryCodeVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -128,7 +128,7 @@ public async Task Exists_GetRegistryCodeVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetRegistryCodeVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/CodeVersion/get.json
// this example is just showing the usage of "RegistryCodeVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -172,7 +172,7 @@ public async Task GetIfExists_GetRegistryCodeVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateRegistryCodeVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/CodeVersion/createOrUpdate.json
// this example is just showing the usage of "RegistryCodeVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeVersionResource.cs
index 34797a31321fa..478f35ea7b9a2 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeVersionResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCodeVersionResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningRegistryCodeVersionResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteRegistryCodeVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeVersion/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/CodeVersion/delete.json
// this example is just showing the usage of "RegistryCodeVersions_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -49,7 +49,7 @@ public async Task Delete_DeleteRegistryCodeVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryCodeVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/CodeVersion/get.json
// this example is just showing the usage of "RegistryCodeVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -82,7 +82,7 @@ public async Task Get_GetRegistryCodeVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateRegistryCodeVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/CodeVersion/createOrUpdate.json
// this example is just showing the usage of "RegistryCodeVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -130,7 +130,7 @@ public async Task Update_CreateOrUpdateRegistryCodeVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadRegistryCodeVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/CodeVersion/createOrGetStartPendingUpload.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/CodeVersion/createOrGetStartPendingUpload.json
// this example is just showing the usage of "RegistryCodeVersions_CreateOrGetStartPendingUpload" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -152,7 +152,7 @@ public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadReg
PendingUploadRequestDto body = new PendingUploadRequestDto()
{
PendingUploadId = "string",
- PendingUploadType = PendingUploadType.None,
+ PendingUploadType = PendingUploadType.TemporaryBlobReference,
};
PendingUploadResponseDto result = await machineLearningRegistryCodeVersion.CreateOrGetStartPendingUploadAsync(body);
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCollection.cs
index 4fdb6d2fc1089..601f95a319cd5 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryCollection.cs
@@ -22,7 +22,43 @@ public partial class Sample_MachineLearningRegistryCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListRegistriesWithSystemCreatedAccounts()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registries/list-SystemCreated.json
+ // this example is just showing the usage of "Registries_List" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this MachineLearningRegistryResource
+ MachineLearningRegistryCollection collection = resourceGroupResource.GetMachineLearningRegistries();
+
+ // invoke the operation and iterate over the result
+ await foreach (MachineLearningRegistryResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MachineLearningRegistryData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // List registries with user created accounts.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_ListRegistriesWithUserCreatedAccounts()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registries/list-UserCreated.json
// this example is just showing the usage of "Registries_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -58,7 +94,7 @@ public async Task GetAll_ListRegistriesWithSystemCreatedAccounts()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryWithSystemCreatedAccounts()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registries/get-SystemCreated.json
// this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -92,7 +128,7 @@ public async Task Get_GetRegistryWithSystemCreatedAccounts()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetRegistryWithSystemCreatedAccounts()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registries/get-SystemCreated.json
// this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -122,7 +158,113 @@ public async Task Exists_GetRegistryWithSystemCreatedAccounts()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetRegistryWithSystemCreatedAccounts()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registries/get-SystemCreated.json
+ // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this MachineLearningRegistryResource
+ MachineLearningRegistryCollection collection = resourceGroupResource.GetMachineLearningRegistries();
+
+ // invoke the operation
+ string registryName = "string";
+ NullableResponse response = await collection.GetIfExistsAsync(registryName);
+ MachineLearningRegistryResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine($"Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MachineLearningRegistryData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+
+ // Get Registry with user created accounts.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetRegistryWithUserCreatedAccounts()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registries/get-UserCreated.json
+ // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this MachineLearningRegistryResource
+ MachineLearningRegistryCollection collection = resourceGroupResource.GetMachineLearningRegistries();
+
+ // invoke the operation
+ string registryName = "string";
+ MachineLearningRegistryResource result = await collection.GetAsync(registryName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MachineLearningRegistryData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Get Registry with user created accounts.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_GetRegistryWithUserCreatedAccounts()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registries/get-UserCreated.json
+ // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this MachineLearningRegistryResource
+ MachineLearningRegistryCollection collection = resourceGroupResource.GetMachineLearningRegistries();
+
+ // invoke the operation
+ string registryName = "string";
+ bool result = await collection.ExistsAsync(registryName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // Get Registry with user created accounts.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_GetRegistryWithUserCreatedAccounts()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registries/get-UserCreated.json
// this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -164,7 +306,7 @@ public async Task GetIfExists_GetRegistryWithSystemCreatedAccounts()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateRegistryWithSystemCreatedAccounts()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registries/createOrUpdate-SystemCreated.json
// this example is just showing the usage of "Registries_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -205,7 +347,7 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryWithSystemCreatedAccounts
IntellectualPropertyPublisher = "string",
ManagedResourceId = new ResourceIdentifier("string"),
MlFlowRegistryUri = new Uri("string"),
- PrivateEndpointConnections =
+ RegistryPrivateEndpointConnections =
{
new RegistryPrivateEndpointConnection()
{
@@ -219,7 +361,7 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryWithSystemCreatedAccounts
{
SubnetArmId = new ResourceIdentifier("string"),
},
-PrivateLinkServiceConnectionState = new RegistryPrivateLinkServiceConnectionState()
+RegistryPrivateLinkServiceConnectionState = new RegistryPrivateLinkServiceConnectionState()
{
ActionsRequired = "string",
Description = "string",
@@ -275,5 +417,110 @@ public async Task CreateOrUpdate_CreateOrUpdateRegistryWithSystemCreatedAccounts
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+
+ // CreateOrUpdate Registry with user created accounts.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CreateOrUpdate_CreateOrUpdateRegistryWithUserCreatedAccounts()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registries/createOrUpdate-UserCreated.json
+ // this example is just showing the usage of "Registries_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ResourceGroupResource created on azure
+ // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
+ ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
+
+ // get the collection of this MachineLearningRegistryResource
+ MachineLearningRegistryCollection collection = resourceGroupResource.GetMachineLearningRegistries();
+
+ // invoke the operation
+ string registryName = "string";
+ MachineLearningRegistryData data = new MachineLearningRegistryData(new AzureLocation("string"))
+ {
+ Identity = new ManagedServiceIdentity("None")
+ {
+ UserAssignedIdentities =
+{
+[new ResourceIdentifier("string")] = new UserAssignedIdentity(),
+},
+ },
+ Kind = "string",
+ Sku = new MachineLearningSku("string")
+ {
+ Tier = MachineLearningSkuTier.Free,
+ Size = "string",
+ Family = "string",
+ Capacity = 1,
+ },
+ DiscoveryUri = new Uri("string"),
+ IntellectualPropertyPublisher = "string",
+ ManagedResourceId = new ResourceIdentifier("string"),
+ MlFlowRegistryUri = new Uri("string"),
+ RegistryPrivateEndpointConnections =
+{
+new RegistryPrivateEndpointConnection()
+{
+Id = new ResourceIdentifier("string"),
+Location = new AzureLocation("string"),
+GroupIds =
+{
+"string"
+},
+PrivateEndpoint = new RegistryPrivateEndpoint()
+{
+SubnetArmId = new ResourceIdentifier("string"),
+},
+RegistryPrivateLinkServiceConnectionState = new RegistryPrivateLinkServiceConnectionState()
+{
+ActionsRequired = "string",
+Description = "string",
+Status = MachineLearningPrivateEndpointServiceConnectionStatus.Approved,
+},
+ProvisioningState = "string",
+}
+},
+ PublicNetworkAccess = "string",
+ RegionDetails =
+{
+new RegistryRegionArmDetails()
+{
+AcrDetails =
+{
+new RegistryAcrDetails()
+{
+ArmResourceId = new ResourceIdentifier("string"),
+}
+},
+Location = new AzureLocation("string"),
+StorageAccountDetails =
+{
+new StorageAccountDetails()
+{
+ArmResourceId = new ResourceIdentifier("string"),
+}
+},
+}
+},
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, registryName, data);
+ MachineLearningRegistryResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MachineLearningRegistryData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
}
}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataContainerCollection.cs
index b38c427953980..d03eaa57501a5 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataContainerCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataContainerCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningRegistryDataContainerCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_RegistryListRegistryDataContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataContainer/registryList.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/DataContainer/registryList.json
// this example is just showing the usage of "RegistryDataContainers_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -58,7 +58,7 @@ public async Task GetAll_RegistryListRegistryDataContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryDataContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/DataContainer/get.json
// this example is just showing the usage of "RegistryDataContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -93,7 +93,7 @@ public async Task Get_GetRegistryDataContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetRegistryDataContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/DataContainer/get.json
// this example is just showing the usage of "RegistryDataContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -124,7 +124,7 @@ public async Task Exists_GetRegistryDataContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetRegistryDataContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/DataContainer/get.json
// this example is just showing the usage of "RegistryDataContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -167,7 +167,7 @@ public async Task GetIfExists_GetRegistryDataContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateRegistryDataContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/DataContainer/createOrUpdate.json
// this example is just showing the usage of "RegistryDataContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataContainerResource.cs
index e64bf4a43a24d..4643b39bdd4e4 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataContainerResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataContainerResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningRegistryDataContainerResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteRegistryDataContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataContainer/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/DataContainer/delete.json
// this example is just showing the usage of "RegistryDataContainers_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -48,7 +48,7 @@ public async Task Delete_DeleteRegistryDataContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryDataContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/DataContainer/get.json
// this example is just showing the usage of "RegistryDataContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -80,7 +80,7 @@ public async Task Get_GetRegistryDataContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateRegistryDataContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/DataContainer/createOrUpdate.json
// this example is just showing the usage of "RegistryDataContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataVersionCollection.cs
index 82e6de696a3ab..504edabb1f9dd 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataVersionCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataVersionCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningRegistryDataVersionCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_RegistryListRegistryDataVersionBase()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataVersionBase/registryList.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/DataVersionBase/registryList.json
// this example is just showing the usage of "RegistryDataVersions_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -62,7 +62,7 @@ public async Task GetAll_RegistryListRegistryDataVersionBase()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryDataVersionBase()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataVersionBase/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/DataVersionBase/get.json
// this example is just showing the usage of "RegistryDataVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -98,7 +98,7 @@ public async Task Get_GetRegistryDataVersionBase()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetRegistryDataVersionBase()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataVersionBase/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/DataVersionBase/get.json
// this example is just showing the usage of "RegistryDataVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -130,7 +130,7 @@ public async Task Exists_GetRegistryDataVersionBase()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetRegistryDataVersionBase()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataVersionBase/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/DataVersionBase/get.json
// this example is just showing the usage of "RegistryDataVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -174,7 +174,7 @@ public async Task GetIfExists_GetRegistryDataVersionBase()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateRegistryDataVersionBase()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataVersionBase/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/DataVersionBase/createOrUpdate.json
// this example is just showing the usage of "RegistryDataVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataVersionResource.cs
index e5625a757c868..585198b8eb920 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataVersionResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryDataVersionResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningRegistryDataVersionResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteRegistryDataVersionBase()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataVersionBase/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/DataVersionBase/delete.json
// this example is just showing the usage of "RegistryDataVersions_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -49,7 +49,7 @@ public async Task Delete_DeleteRegistryDataVersionBase()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryDataVersionBase()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataVersionBase/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/DataVersionBase/get.json
// this example is just showing the usage of "RegistryDataVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -82,7 +82,7 @@ public async Task Get_GetRegistryDataVersionBase()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateRegistryDataVersionBase()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataVersionBase/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/DataVersionBase/createOrUpdate.json
// this example is just showing the usage of "RegistryDataVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -134,7 +134,7 @@ public async Task Update_CreateOrUpdateRegistryDataVersionBase()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadRegistryDataVersionBase()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/DataVersionBase/createOrGetStartPendingUpload.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/DataVersionBase/createOrGetStartPendingUpload.json
// this example is just showing the usage of "RegistryDataVersions_CreateOrGetStartPendingUpload" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentContainerCollection.cs
index 508f9da305e18..d2c18ad5a5aa3 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentContainerCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentContainerCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningRegistryEnvironmentContainerCollectio
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListRegistryEnvironmentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentContainer/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/EnvironmentContainer/list.json
// this example is just showing the usage of "RegistryEnvironmentContainers_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -57,7 +57,7 @@ public async Task GetAll_ListRegistryEnvironmentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryEnvironmentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/EnvironmentContainer/get.json
// this example is just showing the usage of "RegistryEnvironmentContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -92,7 +92,7 @@ public async Task Get_GetRegistryEnvironmentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetRegistryEnvironmentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/EnvironmentContainer/get.json
// this example is just showing the usage of "RegistryEnvironmentContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -123,7 +123,7 @@ public async Task Exists_GetRegistryEnvironmentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetRegistryEnvironmentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/EnvironmentContainer/get.json
// this example is just showing the usage of "RegistryEnvironmentContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -166,7 +166,7 @@ public async Task GetIfExists_GetRegistryEnvironmentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateRegistryEnvironmentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/EnvironmentContainer/createOrUpdate.json
// this example is just showing the usage of "RegistryEnvironmentContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentContainerResource.cs
index 28ca562afb065..909c579c52ab2 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentContainerResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentContainerResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningRegistryEnvironmentContainerResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteRegistryEnvironmentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentContainer/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/EnvironmentContainer/delete.json
// this example is just showing the usage of "RegistryEnvironmentContainers_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -48,7 +48,7 @@ public async Task Delete_DeleteRegistryEnvironmentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryEnvironmentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/EnvironmentContainer/get.json
// this example is just showing the usage of "RegistryEnvironmentContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -80,7 +80,7 @@ public async Task Get_GetRegistryEnvironmentContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateRegistryEnvironmentContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/EnvironmentContainer/createOrUpdate.json
// this example is just showing the usage of "RegistryEnvironmentContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentVersionCollection.cs
index 88a56c863cfb2..1a4accc406495 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentVersionCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentVersionCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningRegistryEnvironmentVersionCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListRegistryEnvironmentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentVersion/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/EnvironmentVersion/list.json
// this example is just showing the usage of "RegistryEnvironmentVersions_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -60,7 +60,7 @@ public async Task GetAll_ListRegistryEnvironmentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryEnvironmentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/EnvironmentVersion/get.json
// this example is just showing the usage of "RegistryEnvironmentVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -96,7 +96,7 @@ public async Task Get_GetRegistryEnvironmentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetRegistryEnvironmentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/EnvironmentVersion/get.json
// this example is just showing the usage of "RegistryEnvironmentVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -128,7 +128,7 @@ public async Task Exists_GetRegistryEnvironmentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetRegistryEnvironmentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/EnvironmentVersion/get.json
// this example is just showing the usage of "RegistryEnvironmentVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -172,7 +172,7 @@ public async Task GetIfExists_GetRegistryEnvironmentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateRegistryEnvironmentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/EnvironmentVersion/createOrUpdate.json
// this example is just showing the usage of "RegistryEnvironmentVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentVersionResource.cs
index 55a4ffe1f4cc5..4391cd0a14908 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentVersionResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryEnvironmentVersionResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningRegistryEnvironmentVersionResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteRegistryEnvironmentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentVersion/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/EnvironmentVersion/delete.json
// this example is just showing the usage of "RegistryEnvironmentVersions_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -49,7 +49,7 @@ public async Task Delete_DeleteRegistryEnvironmentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryEnvironmentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/EnvironmentVersion/get.json
// this example is just showing the usage of "RegistryEnvironmentVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -82,7 +82,7 @@ public async Task Get_GetRegistryEnvironmentVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateRegistryEnvironmentVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/EnvironmentVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/EnvironmentVersion/createOrUpdate.json
// this example is just showing the usage of "RegistryEnvironmentVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelContainerCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelContainerCollection.cs
index 156a6c6bffc8d..20bab15e0910c 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelContainerCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelContainerCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningRegistryModelContainerCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListRegistryModelContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelContainer/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ModelContainer/list.json
// this example is just showing the usage of "RegistryModelContainers_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -57,7 +57,7 @@ public async Task GetAll_ListRegistryModelContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryModelContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ModelContainer/get.json
// this example is just showing the usage of "RegistryModelContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -92,7 +92,7 @@ public async Task Get_GetRegistryModelContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetRegistryModelContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ModelContainer/get.json
// this example is just showing the usage of "RegistryModelContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -123,7 +123,7 @@ public async Task Exists_GetRegistryModelContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetRegistryModelContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ModelContainer/get.json
// this example is just showing the usage of "RegistryModelContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -166,7 +166,7 @@ public async Task GetIfExists_GetRegistryModelContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateRegistryModelContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ModelContainer/createOrUpdate.json
// this example is just showing the usage of "RegistryModelContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelContainerResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelContainerResource.cs
index 950f3e0f2e219..a0dc575e7a281 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelContainerResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelContainerResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningRegistryModelContainerResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteRegistryModelContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelContainer/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ModelContainer/delete.json
// this example is just showing the usage of "RegistryModelContainers_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -48,7 +48,7 @@ public async Task Delete_DeleteRegistryModelContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryModelContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelContainer/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ModelContainer/get.json
// this example is just showing the usage of "RegistryModelContainers_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -80,7 +80,7 @@ public async Task Get_GetRegistryModelContainer()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateRegistryModelContainer()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelContainer/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ModelContainer/createOrUpdate.json
// this example is just showing the usage of "RegistryModelContainers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelVersionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelVersionCollection.cs
index a7fe18e774915..92f94d6ac3e38 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelVersionCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelVersionCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningRegistryModelVersionCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListRegistryModelVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ModelVersion/list.json
// this example is just showing the usage of "RegistryModelVersions_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -59,7 +59,7 @@ public async Task GetAll_ListRegistryModelVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryModelVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ModelVersion/get.json
// this example is just showing the usage of "RegistryModelVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -95,7 +95,7 @@ public async Task Get_GetRegistryModelVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetRegistryModelVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ModelVersion/get.json
// this example is just showing the usage of "RegistryModelVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -127,7 +127,7 @@ public async Task Exists_GetRegistryModelVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetRegistryModelVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ModelVersion/get.json
// this example is just showing the usage of "RegistryModelVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -171,7 +171,7 @@ public async Task GetIfExists_GetRegistryModelVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateRegistryModelVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ModelVersion/createOrUpdate.json
// this example is just showing the usage of "RegistryModelVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelVersionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelVersionResource.cs
index 280c1c263f3f0..84d7db0765f99 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelVersionResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryModelVersionResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningRegistryModelVersionResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteRegistryModelVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ModelVersion/delete.json
// this example is just showing the usage of "RegistryModelVersions_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -49,7 +49,7 @@ public async Task Delete_DeleteRegistryModelVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryModelVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ModelVersion/get.json
// this example is just showing the usage of "RegistryModelVersions_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -82,7 +82,7 @@ public async Task Get_GetRegistryModelVersion()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateRegistryModelVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ModelVersion/createOrUpdate.json
// this example is just showing the usage of "RegistryModelVersions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -136,76 +136,12 @@ public async Task Update_CreateOrUpdateRegistryModelVersion()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
- // Package Registry Model Version.
- [NUnit.Framework.Test]
- [NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Package_PackageRegistryModelVersion()
- {
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/package.json
- // this example is just showing the usage of "RegistryModelVersions_Package" operation, for the dependent resources, they will have to be created separately.
-
- // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
- TokenCredential cred = new DefaultAzureCredential();
- // authenticate your client
- ArmClient client = new ArmClient(cred);
-
- // this example assumes you already have this MachineLearningRegistryModelVersionResource created on azure
- // for more information of creating MachineLearningRegistryModelVersionResource, please refer to the document of MachineLearningRegistryModelVersionResource
- string subscriptionId = "00000000-1111-2222-3333-444444444444";
- string resourceGroupName = "test-rg";
- string registryName = "my-aml-registry";
- string modelName = "string";
- string version = "string";
- ResourceIdentifier machineLearningRegistryModelVersionResourceId = MachineLearningRegistryModelVersionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, modelName, version);
- MachineLearningRegistryModelVersionResource machineLearningRegistryModelVersion = client.GetMachineLearningRegistryModelVersionResource(machineLearningRegistryModelVersionResourceId);
-
- // invoke the operation
- ModelPackageContent content = new ModelPackageContent(new AzureMLBatchInferencingServer()
- {
- CodeConfiguration = new MachineLearningCodeConfiguration("string")
- {
- CodeId = new ResourceIdentifier("string"),
- },
- }, "string")
- {
- BaseEnvironmentSource = new BaseEnvironmentType(new ResourceIdentifier("string")),
- EnvironmentVariables =
-{
-["string"] = "string",
-},
- Inputs =
-{
-new ModelPackageInput(PackageInputType.UriFile,new PackageInputPathUri()
-{
-Uri = new Uri("string"),
-})
-{
-Mode = PackageInputDeliveryMode.Download,
-MountPath = "string",
-}
-},
- ModelConfiguration = new ModelConfiguration()
- {
- Mode = new PackageInputDeliveryMode("ReadOnlyMount"),
- MountPath = "string",
- },
- Tags =
-{
-["string"] = "string",
-},
- };
- ArmOperation lro = await machineLearningRegistryModelVersion.PackageAsync(WaitUntil.Completed, content);
- ModelPackageResult result = lro.Value;
-
- Console.WriteLine($"Succeeded: {result}");
- }
-
// CreateOrGetStartPendingUpload Registry Model Version.
[NUnit.Framework.Test]
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadRegistryModelVersion()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registry/ModelVersion/createOrGetStartPendingUpload.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registry/ModelVersion/createOrGetStartPendingUpload.json
// this example is just showing the usage of "RegistryModelVersions_CreateOrGetStartPendingUpload" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -227,7 +163,7 @@ public async Task CreateOrGetStartPendingUpload_CreateOrGetStartPendingUploadReg
PendingUploadRequestDto body = new PendingUploadRequestDto()
{
PendingUploadId = "string",
- PendingUploadType = PendingUploadType.None,
+ PendingUploadType = PendingUploadType.TemporaryBlobReference,
};
PendingUploadResponseDto result = await machineLearningRegistryModelVersion.CreateOrGetStartPendingUploadAsync(body);
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryResource.cs
index d8cac5eb21c59..3602d65f8a45d 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningRegistryResource.cs
@@ -17,12 +17,46 @@ namespace Azure.ResourceManager.MachineLearning.Samples
{
public partial class Sample_MachineLearningRegistryResource
{
+ // GetBlobReferenceSAS Data Reference.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetBlobReferenceSasRegistryDataReference_GetBlobReferenceSASDataReference()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/DataReference/getBlobReferenceSAS.json
+ // this example is just showing the usage of "RegistryDataReferences_GetBlobReferenceSas" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningRegistryResource created on azure
+ // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string registryName = "registryName";
+ ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName);
+ MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId);
+
+ // invoke the operation
+ string name = "string";
+ string version = "string";
+ GetBlobReferenceSasRequestDto body = new GetBlobReferenceSasRequestDto()
+ {
+ AssetId = "string",
+ BlobUri = new Uri("https://www.contoso.com/example"),
+ };
+ GetBlobReferenceSasResponseDto result = await machineLearningRegistry.GetBlobReferenceSasRegistryDataReferenceAsync(name, version, body);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
// List registries by subscription.
[NUnit.Framework.Test]
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetMachineLearningRegistries_ListRegistriesBySubscription()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/listBySubscription.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registries/listBySubscription.json
// this example is just showing the usage of "Registries_ListBySubscription" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -54,7 +88,7 @@ public async Task GetMachineLearningRegistries_ListRegistriesBySubscription()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteRegistry()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registries/delete.json
// this example is just showing the usage of "Registries_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -81,7 +115,38 @@ public async Task Delete_DeleteRegistry()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetRegistryWithSystemCreatedAccounts()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registries/get-SystemCreated.json
+ // this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningRegistryResource created on azure
+ // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string registryName = "string";
+ ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName);
+ MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId);
+
+ // invoke the operation
+ MachineLearningRegistryResource result = await machineLearningRegistry.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MachineLearningRegistryData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Get Registry with user created accounts.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetRegistryWithUserCreatedAccounts()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registries/get-UserCreated.json
// this example is just showing the usage of "Registries_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -112,7 +177,7 @@ public async Task Get_GetRegistryWithSystemCreatedAccounts()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_UpdateRegistryWithSystemCreatedAccounts()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/update.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registries/update-SystemCreated.json
// this example is just showing the usage of "Registries_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -159,12 +224,64 @@ public async Task Update_UpdateRegistryWithSystemCreatedAccounts()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+ // Update Registry with user created accounts.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_UpdateRegistryWithUserCreatedAccounts()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registries/update-UserCreated.json
+ // this example is just showing the usage of "Registries_Update" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningRegistryResource created on azure
+ // for more information of creating MachineLearningRegistryResource, please refer to the document of MachineLearningRegistryResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string registryName = "string";
+ ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName);
+ MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId);
+
+ // invoke the operation
+ MachineLearningRegistryPatch patch = new MachineLearningRegistryPatch()
+ {
+ Identity = new ManagedServiceIdentity("UserAssigned")
+ {
+ UserAssignedIdentities =
+{
+[new ResourceIdentifier("string")] = new UserAssignedIdentity(),
+},
+ },
+ Sku = new MachineLearningSkuPatch()
+ {
+ Capacity = 1,
+ Family = "string",
+ Name = "string",
+ Size = "string",
+ Tier = MachineLearningSkuTier.Basic,
+ },
+ Tags =
+{
+},
+ };
+ MachineLearningRegistryResource result = await machineLearningRegistry.UpdateAsync(patch);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MachineLearningRegistryData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
// Remove regions from registry
[NUnit.Framework.Test]
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task RemoveRegions_RemoveRegionsFromRegistry()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Registries/removeRegions.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Registries/removeRegions.json
// this example is just showing the usage of "Registries_RemoveRegions" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -202,7 +319,7 @@ public async Task RemoveRegions_RemoveRegionsFromRegistry()
IntellectualPropertyPublisher = "string",
ManagedResourceId = new ResourceIdentifier("string"),
MlFlowRegistryUri = new Uri("string"),
- PrivateEndpointConnections =
+ RegistryPrivateEndpointConnections =
{
new RegistryPrivateEndpointConnection()
{
@@ -216,7 +333,7 @@ public async Task RemoveRegions_RemoveRegionsFromRegistry()
{
SubnetArmId = new ResourceIdentifier("string"),
},
-PrivateLinkServiceConnectionState = new RegistryPrivateLinkServiceConnectionState()
+RegistryPrivateLinkServiceConnectionState = new RegistryPrivateLinkServiceConnectionState()
{
ActionsRequired = "string",
Description = "string",
@@ -240,6 +357,7 @@ public async Task RemoveRegions_RemoveRegionsFromRegistry()
AcrAccountSku = "string",
ArmResourceId = new ResourceIdentifier("string"),
},
+ArmResourceId = new ResourceIdentifier("string"),
}
},
Location = new AzureLocation("string"),
@@ -255,6 +373,7 @@ public async Task RemoveRegions_RemoveRegionsFromRegistry()
StorageAccountName = "string",
StorageAccountType = "string",
},
+ArmResourceId = new ResourceIdentifier("string"),
}
},
}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningScheduleCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningScheduleCollection.cs
index 7cd0a3aa6321c..049dcbc1b0915 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningScheduleCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningScheduleCollection.cs
@@ -21,7 +21,7 @@ public partial class Sample_MachineLearningScheduleCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListSchedules()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Schedule/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Schedule/list.json
// this example is just showing the usage of "Schedules_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -58,7 +58,7 @@ public async Task GetAll_ListSchedules()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetSchedule()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Schedule/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Schedule/get.json
// this example is just showing the usage of "Schedules_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -93,7 +93,7 @@ public async Task Get_GetSchedule()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetSchedule()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Schedule/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Schedule/get.json
// this example is just showing the usage of "Schedules_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -124,7 +124,7 @@ public async Task Exists_GetSchedule()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetSchedule()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Schedule/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Schedule/get.json
// this example is just showing the usage of "Schedules_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -167,7 +167,7 @@ public async Task GetIfExists_GetSchedule()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateOrUpdateSchedule()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Schedule/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Schedule/createOrUpdate.json
// this example is just showing the usage of "Schedules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningScheduleResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningScheduleResource.cs
index bfde2eb0c612a..08b92858b18f5 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningScheduleResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningScheduleResource.cs
@@ -21,7 +21,7 @@ public partial class Sample_MachineLearningScheduleResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteSchedule()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Schedule/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Schedule/delete.json
// this example is just showing the usage of "Schedules_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -49,7 +49,7 @@ public async Task Delete_DeleteSchedule()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetSchedule()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Schedule/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Schedule/get.json
// this example is just showing the usage of "Schedules_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -81,7 +81,7 @@ public async Task Get_GetSchedule()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_CreateOrUpdateSchedule()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Schedule/createOrUpdate.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Schedule/createOrUpdate.json
// this example is just showing the usage of "Schedules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceCollection.cs
index 838412ab6c489..961aa1eddc87f 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceCollection.cs
@@ -22,7 +22,7 @@ public partial class Sample_MachineLearningWorkspaceCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_GetWorkspacesByResourceGroup()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/listByResourceGroup.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/listByResourceGroup.json
// this example is just showing the usage of "Workspaces_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -58,7 +58,7 @@ public async Task GetAll_GetWorkspacesByResourceGroup()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspace()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/get.json
// this example is just showing the usage of "Workspaces_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -92,7 +92,7 @@ public async Task Get_GetWorkspace()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetWorkspace()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/get.json
// this example is just showing the usage of "Workspaces_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -122,7 +122,7 @@ public async Task Exists_GetWorkspace()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetWorkspace()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/get.json
// this example is just showing the usage of "Workspaces_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -164,7 +164,7 @@ public async Task GetIfExists_GetWorkspace()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateWorkspace()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/create.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/create.json
// this example is just showing the usage of "Workspaces_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionCollection.cs
index 1523c92386bd7..56970054f07e0 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionCollection.cs
@@ -20,7 +20,7 @@ public partial class Sample_MachineLearningWorkspaceConnectionCollection
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetAll_ListWorkspaceConnections()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceConnection/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/list.json
// this example is just showing the usage of "WorkspaceConnections_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -59,7 +59,7 @@ public async Task GetAll_ListWorkspaceConnections()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceConnection()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceConnection/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/get.json
// this example is just showing the usage of "WorkspaceConnections_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -94,7 +94,7 @@ public async Task Get_GetWorkspaceConnection()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Exists_GetWorkspaceConnection()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceConnection/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/get.json
// this example is just showing the usage of "WorkspaceConnections_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -125,7 +125,7 @@ public async Task Exists_GetWorkspaceConnection()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetIfExists_GetWorkspaceConnection()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceConnection/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/get.json
// this example is just showing the usage of "WorkspaceConnections_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -168,7 +168,7 @@ public async Task GetIfExists_GetWorkspaceConnection()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task CreateOrUpdate_CreateWorkspaceConnection()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceConnection/create.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/create.json
// this example is just showing the usage of "WorkspaceConnections_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionResource.cs
index 4d00d1e1e1941..23da7862194c1 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceConnectionResource.cs
@@ -6,7 +6,6 @@
#nullable disable
using System;
-using System.Collections.Generic;
using System.Threading.Tasks;
using Azure.Core;
using Azure.Identity;
@@ -21,7 +20,7 @@ public partial class Sample_MachineLearningWorkspaceConnectionResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspaceConnection()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceConnection/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/delete.json
// this example is just showing the usage of "WorkspaceConnections_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -49,7 +48,7 @@ public async Task Delete_DeleteWorkspaceConnection()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspaceConnection()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceConnection/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/get.json
// this example is just showing the usage of "WorkspaceConnections_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -81,7 +80,7 @@ public async Task Get_GetWorkspaceConnection()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_UpdateWorkspaceConnection()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceConnection/update.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/update.json
// this example is just showing the usage of "WorkspaceConnections_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -93,8 +92,8 @@ public async Task Update_UpdateWorkspaceConnection()
// for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
string subscriptionId = "00000000-1111-2222-3333-444444444444";
string resourceGroupName = "test-rg";
- string workspaceName = "aml-workspace-name";
- string connectionName = "some_string";
+ string workspaceName = "workspace-1";
+ string connectionName = "connection-1";
ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
@@ -110,9 +109,9 @@ public async Task Update_UpdateWorkspaceConnection()
},
Category = MachineLearningConnectionCategory.AdlsGen2,
ExpiryOn = DateTimeOffset.Parse("2020-01-01T00:00:00Z"),
- Metadata = BinaryData.FromObjectAsJson(new Dictionary()
- {
- }),
+ Metadata =
+{
+},
Target = "some_string",
},
};
@@ -130,7 +129,7 @@ public async Task Update_UpdateWorkspaceConnection()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetSecrets_GetWorkspaceConnection()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceConnection/listSecrets.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/listSecrets.json
// this example is just showing the usage of "WorkspaceConnections_ListSecrets" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -142,8 +141,8 @@ public async Task GetSecrets_GetWorkspaceConnection()
// for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
string subscriptionId = "00000000-1111-2222-3333-444444444444";
string resourceGroupName = "test-rg";
- string workspaceName = "aml-workspace-name";
- string connectionName = "some_string";
+ string workspaceName = "workspace-1";
+ string connectionName = "connection-1";
ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
@@ -156,5 +155,70 @@ public async Task GetSecrets_GetWorkspaceConnection()
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
+
+ // TestWorkspaceConnection
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task TestConnection_TestWorkspaceConnection()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/testConnection.json
+ // this example is just showing the usage of "WorkspaceConnections_TestConnection" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure
+ // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "resourceGroup-1";
+ string workspaceName = "workspace-1";
+ string connectionName = "connection-1";
+ ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
+ MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
+
+ // invoke the operation
+ MachineLearningWorkspaceConnectionData data = new MachineLearningWorkspaceConnectionData(new MachineLearningNoneAuthTypeWorkspaceConnection()
+ {
+ Category = MachineLearningConnectionCategory.ContainerRegistry,
+ ExpiryOn = DateTimeOffset.Parse("2024-03-15T14:30:00Z"),
+ Target = "target_url",
+ });
+ await machineLearningWorkspaceConnection.TestConnectionAsync(WaitUntil.Completed, data: data);
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get Azure OpenAI Connection Models
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetModelsConnections_GetAzureOpenAIConnectionModels()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/getModels.json
+ // this example is just showing the usage of "Connection_GetModels" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure
+ // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
+ MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (EndpointModelProperties item in machineLearningWorkspaceConnection.GetModelsConnectionsAsync())
+ {
+ Console.WriteLine($"Succeeded: {item}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
}
}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceResource.cs
index 82dde3fb93635..f6ec98c17e7f0 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceResource.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningWorkspaceResource.cs
@@ -21,7 +21,7 @@ public partial class Sample_MachineLearningWorkspaceResource
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetWorkspaceFeatures_ListWorkspaceFeatures()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/WorkspaceFeature/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceFeature/list.json
// this example is just showing the usage of "WorkspaceFeatures_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -51,7 +51,7 @@ public async Task GetWorkspaceFeatures_ListWorkspaceFeatures()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetMachineLearningWorkspaces_GetWorkspacesBySubscription()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/listBySubscription.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/listBySubscription.json
// this example is just showing the usage of "Workspaces_ListBySubscription" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -83,7 +83,7 @@ public async Task GetMachineLearningWorkspaces_GetWorkspacesBySubscription()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Delete_DeleteWorkspace()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/delete.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/delete.json
// this example is just showing the usage of "Workspaces_Delete" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -110,7 +110,7 @@ public async Task Delete_DeleteWorkspace()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Get_GetWorkspace()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/get.json
// this example is just showing the usage of "Workspaces_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -141,7 +141,7 @@ public async Task Get_GetWorkspace()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Update_UpdateWorkspace()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/update.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/update.json
// this example is just showing the usage of "Workspaces_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -179,7 +179,7 @@ public async Task Update_UpdateWorkspace()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task Diagnose_DiagnoseWorkspace()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/diagnose.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/diagnose.json
// this example is just showing the usage of "Workspaces_Diagnose" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -240,7 +240,7 @@ public async Task Diagnose_DiagnoseWorkspace()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetKeys_ListWorkspaceKeys()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/listKeys.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/listKeys.json
// this example is just showing the usage of "Workspaces_ListKeys" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -267,7 +267,7 @@ public async Task GetKeys_ListWorkspaceKeys()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetNotebookAccessToken_ListWorkspaceKeys()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/listNotebookAccessToken.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/listNotebookAccessToken.json
// this example is just showing the usage of "Workspaces_ListNotebookAccessToken" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -294,7 +294,7 @@ public async Task GetNotebookAccessToken_ListWorkspaceKeys()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetNotebookKeys_ListWorkspaceKeys()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Notebook/listKeys.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Notebook/listKeys.json
// this example is just showing the usage of "Workspaces_ListNotebookKeys" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -321,7 +321,7 @@ public async Task GetNotebookKeys_ListWorkspaceKeys()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetStorageAccountKeys_ListWorkspaceKeys()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/listStorageAccountKeys.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/listStorageAccountKeys.json
// this example is just showing the usage of "Workspaces_ListStorageAccountKeys" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -348,7 +348,7 @@ public async Task GetStorageAccountKeys_ListWorkspaceKeys()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetOutboundNetworkDependenciesEndpoints_ListOutboundNetworkDependenciesEndpoints()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ExternalFQDN/get.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/ExternalFQDN/get.json
// this example is just showing the usage of "Workspaces_ListOutboundNetworkDependenciesEndpoints" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -378,7 +378,7 @@ public async Task GetOutboundNetworkDependenciesEndpoints_ListOutboundNetworkDep
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task PrepareNotebook_PrepareNotebook()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Notebook/prepare.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Notebook/prepare.json
// this example is just showing the usage of "Workspaces_PrepareNotebook" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -406,7 +406,7 @@ public async Task PrepareNotebook_PrepareNotebook()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task ResyncKeys_ResyncWorkspaceKeys()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Workspace/resyncKeys.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/resyncKeys.json
// this example is just showing the usage of "Workspaces_ResyncKeys" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -428,12 +428,76 @@ public async Task ResyncKeys_ResyncWorkspaceKeys()
Console.WriteLine($"Succeeded");
}
+ // Get models under the Azure ML workspace for all Azure OpenAI connections that the user can deploy
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetModelsConnections_GetModelsUnderTheAzureMLWorkspaceForAllAzureOpenAIConnectionsThatTheUserCanDeploy()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/listConnectionModels.json
+ // this example is just showing the usage of "Connection_ListModels" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceResource created on azure
+ // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (EndpointModelProperties item in machineLearningWorkspace.GetModelsConnectionsAsync())
+ {
+ Console.WriteLine($"Succeeded: {item}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get Endpoint Deployments In Workspace
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetInWorkspaceEndpointDeployments_GetEndpointDeploymentsInWorkspace()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/Deployment/getInWorkspace.json
+ // this example is just showing the usage of "EndpointDeployment_GetInWorkspace" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceResource created on azure
+ // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "resourceGroup-1";
+ string workspaceName = "testworkspace";
+ ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (WorkspaceEndpointDeploymentResource item in machineLearningWorkspace.GetInWorkspaceEndpointDeploymentsAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointDeploymentResourcePropertiesBasicResourceData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
// WorkspaceListPrivateLinkResources
[NUnit.Framework.Test]
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetPrivateLinkResources_WorkspaceListPrivateLinkResources()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/PrivateLinkResource/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/PrivateLinkResource/list.json
// this example is just showing the usage of "PrivateLinkResources_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -463,7 +527,7 @@ public async Task GetPrivateLinkResources_WorkspaceListPrivateLinkResources()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task ProvisionManagedNetworkManagedNetworkProvision_ProvisionManagedNetwork()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/ManagedNetwork/provision.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/ManagedNetwork/provision.json
// this example is just showing the usage of "ManagedNetworkProvisions_ProvisionManagedNetwork" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MarketplaceSubscriptionCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MarketplaceSubscriptionCollection.cs
new file mode 100644
index 0000000000000..617b53afb3d53
--- /dev/null
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MarketplaceSubscriptionCollection.cs
@@ -0,0 +1,201 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.MachineLearning.Models;
+
+namespace Azure.ResourceManager.MachineLearning.Samples
+{
+ public partial class Sample_MarketplaceSubscriptionCollection
+ {
+ // List Workspace Marketplace Subscription.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_ListWorkspaceMarketplaceSubscription()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/MarketplaceSubscription/list.json
+ // this example is just showing the usage of "MarketplaceSubscriptions_List" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceResource created on azure
+ // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
+
+ // get the collection of this MarketplaceSubscriptionResource
+ MarketplaceSubscriptionCollection collection = machineLearningWorkspace.GetMarketplaceSubscriptions();
+
+ // invoke the operation and iterate over the result
+ await foreach (MarketplaceSubscriptionResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MarketplaceSubscriptionData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get Workspace Marketplace Subscription.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetWorkspaceMarketplaceSubscription()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/MarketplaceSubscription/get.json
+ // this example is just showing the usage of "MarketplaceSubscriptions_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceResource created on azure
+ // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
+
+ // get the collection of this MarketplaceSubscriptionResource
+ MarketplaceSubscriptionCollection collection = machineLearningWorkspace.GetMarketplaceSubscriptions();
+
+ // invoke the operation
+ string name = "string";
+ MarketplaceSubscriptionResource result = await collection.GetAsync(name);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MarketplaceSubscriptionData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Get Workspace Marketplace Subscription.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_GetWorkspaceMarketplaceSubscription()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/MarketplaceSubscription/get.json
+ // this example is just showing the usage of "MarketplaceSubscriptions_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceResource created on azure
+ // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
+
+ // get the collection of this MarketplaceSubscriptionResource
+ MarketplaceSubscriptionCollection collection = machineLearningWorkspace.GetMarketplaceSubscriptions();
+
+ // invoke the operation
+ string name = "string";
+ bool result = await collection.ExistsAsync(name);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // Get Workspace Marketplace Subscription.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_GetWorkspaceMarketplaceSubscription()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/MarketplaceSubscription/get.json
+ // this example is just showing the usage of "MarketplaceSubscriptions_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceResource created on azure
+ // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
+
+ // get the collection of this MarketplaceSubscriptionResource
+ MarketplaceSubscriptionCollection collection = machineLearningWorkspace.GetMarketplaceSubscriptions();
+
+ // invoke the operation
+ string name = "string";
+ NullableResponse response = await collection.GetIfExistsAsync(name);
+ MarketplaceSubscriptionResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine($"Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MarketplaceSubscriptionData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+
+ // CreateOrUpdate Workspace Marketplace Subscription.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceMarketplaceSubscription()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/MarketplaceSubscription/createOrUpdate.json
+ // this example is just showing the usage of "MarketplaceSubscriptions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceResource created on azure
+ // for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
+ MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
+
+ // get the collection of this MarketplaceSubscriptionResource
+ MarketplaceSubscriptionCollection collection = machineLearningWorkspace.GetMarketplaceSubscriptions();
+
+ // invoke the operation
+ string name = "string";
+ MarketplaceSubscriptionData data = new MarketplaceSubscriptionData(new MarketplaceSubscriptionProperties("string"));
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data);
+ MarketplaceSubscriptionResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MarketplaceSubscriptionData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MarketplaceSubscriptionResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MarketplaceSubscriptionResource.cs
new file mode 100644
index 0000000000000..1ffbcee59581f
--- /dev/null
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MarketplaceSubscriptionResource.cs
@@ -0,0 +1,112 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.MachineLearning.Models;
+
+namespace Azure.ResourceManager.MachineLearning.Samples
+{
+ public partial class Sample_MarketplaceSubscriptionResource
+ {
+ // Delete Workspace Marketplace Subscription.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Delete_DeleteWorkspaceMarketplaceSubscription()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/MarketplaceSubscription/delete.json
+ // this example is just showing the usage of "MarketplaceSubscriptions_Delete" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MarketplaceSubscriptionResource created on azure
+ // for more information of creating MarketplaceSubscriptionResource, please refer to the document of MarketplaceSubscriptionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ string name = "string";
+ ResourceIdentifier marketplaceSubscriptionResourceId = MarketplaceSubscriptionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name);
+ MarketplaceSubscriptionResource marketplaceSubscription = client.GetMarketplaceSubscriptionResource(marketplaceSubscriptionResourceId);
+
+ // invoke the operation
+ await marketplaceSubscription.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get Workspace Marketplace Subscription.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetWorkspaceMarketplaceSubscription()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/MarketplaceSubscription/get.json
+ // this example is just showing the usage of "MarketplaceSubscriptions_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MarketplaceSubscriptionResource created on azure
+ // for more information of creating MarketplaceSubscriptionResource, please refer to the document of MarketplaceSubscriptionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ string name = "string";
+ ResourceIdentifier marketplaceSubscriptionResourceId = MarketplaceSubscriptionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name);
+ MarketplaceSubscriptionResource marketplaceSubscription = client.GetMarketplaceSubscriptionResource(marketplaceSubscriptionResourceId);
+
+ // invoke the operation
+ MarketplaceSubscriptionResource result = await marketplaceSubscription.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MarketplaceSubscriptionData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // CreateOrUpdate Workspace Marketplace Subscription.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_CreateOrUpdateWorkspaceMarketplaceSubscription()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/MarketplaceSubscription/createOrUpdate.json
+ // this example is just showing the usage of "MarketplaceSubscriptions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MarketplaceSubscriptionResource created on azure
+ // for more information of creating MarketplaceSubscriptionResource, please refer to the document of MarketplaceSubscriptionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ string name = "string";
+ ResourceIdentifier marketplaceSubscriptionResourceId = MarketplaceSubscriptionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name);
+ MarketplaceSubscriptionResource marketplaceSubscription = client.GetMarketplaceSubscriptionResource(marketplaceSubscriptionResourceId);
+
+ // invoke the operation
+ MarketplaceSubscriptionData data = new MarketplaceSubscriptionData(new MarketplaceSubscriptionProperties("string"));
+ ArmOperation lro = await marketplaceSubscription.UpdateAsync(WaitUntil.Completed, data);
+ MarketplaceSubscriptionResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ MarketplaceSubscriptionData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RaiBlocklistItemPropertiesBasicResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RaiBlocklistItemPropertiesBasicResource.cs
new file mode 100644
index 0000000000000..6ef2b6e228f28
--- /dev/null
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RaiBlocklistItemPropertiesBasicResource.cs
@@ -0,0 +1,122 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.MachineLearning.Models;
+
+namespace Azure.ResourceManager.MachineLearning.Samples
+{
+ public partial class Sample_RaiBlocklistItemPropertiesBasicResource
+ {
+ // Delete RaiBlocklist Item
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Delete_DeleteRaiBlocklistItem()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiBlocklistItem/delete.json
+ // this example is just showing the usage of "ConnectionRaiBlocklistItem_Delete" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this RaiBlocklistItemPropertiesBasicResource created on azure
+ // for more information of creating RaiBlocklistItemPropertiesBasicResource, please refer to the document of RaiBlocklistItemPropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ string raiBlocklistName = "raiBlocklistName";
+ string raiBlocklistItemName = "raiBlocklistItemName";
+ ResourceIdentifier raiBlocklistItemPropertiesBasicResourceId = RaiBlocklistItemPropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, raiBlocklistName, raiBlocklistItemName);
+ RaiBlocklistItemPropertiesBasicResource raiBlocklistItemPropertiesBasicResource = client.GetRaiBlocklistItemPropertiesBasicResource(raiBlocklistItemPropertiesBasicResourceId);
+
+ // invoke the operation
+ await raiBlocklistItemPropertiesBasicResource.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get Rai RaiBlocklist Item
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetRaiRaiBlocklistItem()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiBlocklistItem/get.json
+ // this example is just showing the usage of "ConnectionRaiBlocklistItem_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this RaiBlocklistItemPropertiesBasicResource created on azure
+ // for more information of creating RaiBlocklistItemPropertiesBasicResource, please refer to the document of RaiBlocklistItemPropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ string raiBlocklistName = "raiBlocklistName";
+ string raiBlocklistItemName = "raiBlocklistItemName";
+ ResourceIdentifier raiBlocklistItemPropertiesBasicResourceId = RaiBlocklistItemPropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, raiBlocklistName, raiBlocklistItemName);
+ RaiBlocklistItemPropertiesBasicResource raiBlocklistItemPropertiesBasicResource = client.GetRaiBlocklistItemPropertiesBasicResource(raiBlocklistItemPropertiesBasicResourceId);
+
+ // invoke the operation
+ RaiBlocklistItemPropertiesBasicResource result = await raiBlocklistItemPropertiesBasicResource.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiBlocklistItemPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Create RaiBlocklist Item
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_CreateRaiBlocklistItem()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiBlocklistItem/create.json
+ // this example is just showing the usage of "ConnectionRaiBlocklistItem_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this RaiBlocklistItemPropertiesBasicResource created on azure
+ // for more information of creating RaiBlocklistItemPropertiesBasicResource, please refer to the document of RaiBlocklistItemPropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ string raiBlocklistName = "raiBlocklistName";
+ string raiBlocklistItemName = "raiBlocklistItemName";
+ ResourceIdentifier raiBlocklistItemPropertiesBasicResourceId = RaiBlocklistItemPropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, raiBlocklistName, raiBlocklistItemName);
+ RaiBlocklistItemPropertiesBasicResource raiBlocklistItemPropertiesBasicResource = client.GetRaiBlocklistItemPropertiesBasicResource(raiBlocklistItemPropertiesBasicResourceId);
+
+ // invoke the operation
+ RaiBlocklistItemPropertiesBasicResourceData data = new RaiBlocklistItemPropertiesBasicResourceData(new RaiBlocklistItemProperties()
+ {
+ IsRegex = false,
+ Pattern = "Pattern To Block",
+ });
+ ArmOperation lro = await raiBlocklistItemPropertiesBasicResource.UpdateAsync(WaitUntil.Completed, data);
+ RaiBlocklistItemPropertiesBasicResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiBlocklistItemPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RaiBlocklistItemPropertiesBasicResourceCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RaiBlocklistItemPropertiesBasicResourceCollection.cs
new file mode 100644
index 0000000000000..09ebde51ea62f
--- /dev/null
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RaiBlocklistItemPropertiesBasicResourceCollection.cs
@@ -0,0 +1,215 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.MachineLearning.Models;
+
+namespace Azure.ResourceManager.MachineLearning.Samples
+{
+ public partial class Sample_RaiBlocklistItemPropertiesBasicResourceCollection
+ {
+ // Get Rai RaiBlocklist Item
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetRaiRaiBlocklistItem()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiBlocklistItem/get.json
+ // this example is just showing the usage of "ConnectionRaiBlocklistItem_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this RaiBlocklistPropertiesBasicResource created on azure
+ // for more information of creating RaiBlocklistPropertiesBasicResource, please refer to the document of RaiBlocklistPropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ string raiBlocklistName = "raiBlocklistName";
+ ResourceIdentifier raiBlocklistPropertiesBasicResourceId = RaiBlocklistPropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, raiBlocklistName);
+ RaiBlocklistPropertiesBasicResource raiBlocklistPropertiesBasicResource = client.GetRaiBlocklistPropertiesBasicResource(raiBlocklistPropertiesBasicResourceId);
+
+ // get the collection of this RaiBlocklistItemPropertiesBasicResource
+ RaiBlocklistItemPropertiesBasicResourceCollection collection = raiBlocklistPropertiesBasicResource.GetRaiBlocklistItemPropertiesBasicResources();
+
+ // invoke the operation
+ string raiBlocklistItemName = "raiBlocklistItemName";
+ RaiBlocklistItemPropertiesBasicResource result = await collection.GetAsync(raiBlocklistItemName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiBlocklistItemPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Get Rai RaiBlocklist Item
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_GetRaiRaiBlocklistItem()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiBlocklistItem/get.json
+ // this example is just showing the usage of "ConnectionRaiBlocklistItem_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this RaiBlocklistPropertiesBasicResource created on azure
+ // for more information of creating RaiBlocklistPropertiesBasicResource, please refer to the document of RaiBlocklistPropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ string raiBlocklistName = "raiBlocklistName";
+ ResourceIdentifier raiBlocklistPropertiesBasicResourceId = RaiBlocklistPropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, raiBlocklistName);
+ RaiBlocklistPropertiesBasicResource raiBlocklistPropertiesBasicResource = client.GetRaiBlocklistPropertiesBasicResource(raiBlocklistPropertiesBasicResourceId);
+
+ // get the collection of this RaiBlocklistItemPropertiesBasicResource
+ RaiBlocklistItemPropertiesBasicResourceCollection collection = raiBlocklistPropertiesBasicResource.GetRaiBlocklistItemPropertiesBasicResources();
+
+ // invoke the operation
+ string raiBlocklistItemName = "raiBlocklistItemName";
+ bool result = await collection.ExistsAsync(raiBlocklistItemName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // Get Rai RaiBlocklist Item
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_GetRaiRaiBlocklistItem()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiBlocklistItem/get.json
+ // this example is just showing the usage of "ConnectionRaiBlocklistItem_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this RaiBlocklistPropertiesBasicResource created on azure
+ // for more information of creating RaiBlocklistPropertiesBasicResource, please refer to the document of RaiBlocklistPropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ string raiBlocklistName = "raiBlocklistName";
+ ResourceIdentifier raiBlocklistPropertiesBasicResourceId = RaiBlocklistPropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, raiBlocklistName);
+ RaiBlocklistPropertiesBasicResource raiBlocklistPropertiesBasicResource = client.GetRaiBlocklistPropertiesBasicResource(raiBlocklistPropertiesBasicResourceId);
+
+ // get the collection of this RaiBlocklistItemPropertiesBasicResource
+ RaiBlocklistItemPropertiesBasicResourceCollection collection = raiBlocklistPropertiesBasicResource.GetRaiBlocklistItemPropertiesBasicResources();
+
+ // invoke the operation
+ string raiBlocklistItemName = "raiBlocklistItemName";
+ NullableResponse response = await collection.GetIfExistsAsync(raiBlocklistItemName);
+ RaiBlocklistItemPropertiesBasicResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine($"Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiBlocklistItemPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+
+ // Create RaiBlocklist Item
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CreateOrUpdate_CreateRaiBlocklistItem()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiBlocklistItem/create.json
+ // this example is just showing the usage of "ConnectionRaiBlocklistItem_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this RaiBlocklistPropertiesBasicResource created on azure
+ // for more information of creating RaiBlocklistPropertiesBasicResource, please refer to the document of RaiBlocklistPropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ string raiBlocklistName = "raiBlocklistName";
+ ResourceIdentifier raiBlocklistPropertiesBasicResourceId = RaiBlocklistPropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, raiBlocklistName);
+ RaiBlocklistPropertiesBasicResource raiBlocklistPropertiesBasicResource = client.GetRaiBlocklistPropertiesBasicResource(raiBlocklistPropertiesBasicResourceId);
+
+ // get the collection of this RaiBlocklistItemPropertiesBasicResource
+ RaiBlocklistItemPropertiesBasicResourceCollection collection = raiBlocklistPropertiesBasicResource.GetRaiBlocklistItemPropertiesBasicResources();
+
+ // invoke the operation
+ string raiBlocklistItemName = "raiBlocklistItemName";
+ RaiBlocklistItemPropertiesBasicResourceData data = new RaiBlocklistItemPropertiesBasicResourceData(new RaiBlocklistItemProperties()
+ {
+ IsRegex = false,
+ Pattern = "Pattern To Block",
+ });
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, raiBlocklistItemName, data);
+ RaiBlocklistItemPropertiesBasicResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiBlocklistItemPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // List RaiBlocklist Items
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_ListRaiBlocklistItems()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiBlocklistItem/list.json
+ // this example is just showing the usage of "ConnectionRaiBlocklistItems_List" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this RaiBlocklistPropertiesBasicResource created on azure
+ // for more information of creating RaiBlocklistPropertiesBasicResource, please refer to the document of RaiBlocklistPropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ string raiBlocklistName = "raiBlocklistName";
+ ResourceIdentifier raiBlocklistPropertiesBasicResourceId = RaiBlocklistPropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, raiBlocklistName);
+ RaiBlocklistPropertiesBasicResource raiBlocklistPropertiesBasicResource = client.GetRaiBlocklistPropertiesBasicResource(raiBlocklistPropertiesBasicResourceId);
+
+ // get the collection of this RaiBlocklistItemPropertiesBasicResource
+ RaiBlocklistItemPropertiesBasicResourceCollection collection = raiBlocklistPropertiesBasicResource.GetRaiBlocklistItemPropertiesBasicResources();
+
+ // invoke the operation and iterate over the result
+ await foreach (RaiBlocklistItemPropertiesBasicResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiBlocklistItemPropertiesBasicResourceData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RaiBlocklistPropertiesBasicResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RaiBlocklistPropertiesBasicResource.cs
new file mode 100644
index 0000000000000..aacc0ca4270fd
--- /dev/null
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RaiBlocklistPropertiesBasicResource.cs
@@ -0,0 +1,199 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.MachineLearning.Models;
+
+namespace Azure.ResourceManager.MachineLearning.Samples
+{
+ public partial class Sample_RaiBlocklistPropertiesBasicResource
+ {
+ // Delete Rai Blocklist
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Delete_DeleteRaiBlocklist()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiBlocklist/delete.json
+ // this example is just showing the usage of "ConnectionRaiBlocklist_Delete" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this RaiBlocklistPropertiesBasicResource created on azure
+ // for more information of creating RaiBlocklistPropertiesBasicResource, please refer to the document of RaiBlocklistPropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ string raiBlocklistName = "raiBlocklistName";
+ ResourceIdentifier raiBlocklistPropertiesBasicResourceId = RaiBlocklistPropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, raiBlocklistName);
+ RaiBlocklistPropertiesBasicResource raiBlocklistPropertiesBasicResource = client.GetRaiBlocklistPropertiesBasicResource(raiBlocklistPropertiesBasicResourceId);
+
+ // invoke the operation
+ await raiBlocklistPropertiesBasicResource.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get Rai Blocklist
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetRaiBlocklist()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiBlocklist/get.json
+ // this example is just showing the usage of "ConnectionRaiBlocklist_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this RaiBlocklistPropertiesBasicResource created on azure
+ // for more information of creating RaiBlocklistPropertiesBasicResource, please refer to the document of RaiBlocklistPropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ string raiBlocklistName = "raiBlocklistName";
+ ResourceIdentifier raiBlocklistPropertiesBasicResourceId = RaiBlocklistPropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, raiBlocklistName);
+ RaiBlocklistPropertiesBasicResource raiBlocklistPropertiesBasicResource = client.GetRaiBlocklistPropertiesBasicResource(raiBlocklistPropertiesBasicResourceId);
+
+ // invoke the operation
+ RaiBlocklistPropertiesBasicResource result = await raiBlocklistPropertiesBasicResource.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiBlocklistPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Create Rai Blocklist
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_CreateRaiBlocklist()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiBlocklist/create.json
+ // this example is just showing the usage of "ConnectionRaiBlocklist_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this RaiBlocklistPropertiesBasicResource created on azure
+ // for more information of creating RaiBlocklistPropertiesBasicResource, please refer to the document of RaiBlocklistPropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ string raiBlocklistName = "raiBlocklistName";
+ ResourceIdentifier raiBlocklistPropertiesBasicResourceId = RaiBlocklistPropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, raiBlocklistName);
+ RaiBlocklistPropertiesBasicResource raiBlocklistPropertiesBasicResource = client.GetRaiBlocklistPropertiesBasicResource(raiBlocklistPropertiesBasicResourceId);
+
+ // invoke the operation
+ RaiBlocklistPropertiesBasicResourceData data = new RaiBlocklistPropertiesBasicResourceData(new RaiBlocklistProperties()
+ {
+ Description = "Basic blocklist description",
+ });
+ ArmOperation lro = await raiBlocklistPropertiesBasicResource.UpdateAsync(WaitUntil.Completed, data);
+ RaiBlocklistPropertiesBasicResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiBlocklistPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Create Bulk Rai Blocklist Items
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task AddBulkConnectionRaiBlocklistItem_CreateBulkRaiBlocklistItems()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiBlocklistItem/addBulk.json
+ // this example is just showing the usage of "ConnectionRaiBlocklistItem_AddBulk" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this RaiBlocklistPropertiesBasicResource created on azure
+ // for more information of creating RaiBlocklistPropertiesBasicResource, please refer to the document of RaiBlocklistPropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ string raiBlocklistName = "raiBlocklistName";
+ ResourceIdentifier raiBlocklistPropertiesBasicResourceId = RaiBlocklistPropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, raiBlocklistName);
+ RaiBlocklistPropertiesBasicResource raiBlocklistPropertiesBasicResource = client.GetRaiBlocklistPropertiesBasicResource(raiBlocklistPropertiesBasicResourceId);
+
+ // invoke the operation
+ IEnumerable content = new RaiBlocklistItemBulkRequest[]
+ {
+new RaiBlocklistItemBulkRequest()
+{
+Name = "myblocklistitem1",
+Properties = new RaiBlocklistItemProperties()
+{
+IsRegex = true,
+Pattern = "^[a-z0-9_-]{2,16}$",
+},
+},new RaiBlocklistItemBulkRequest()
+{
+Name = "myblocklistitem2",
+Properties = new RaiBlocklistItemProperties()
+{
+IsRegex = false,
+Pattern = "blockwords",
+},
+}
+ };
+ ArmOperation> lro = await raiBlocklistPropertiesBasicResource.AddBulkConnectionRaiBlocklistItemAsync(WaitUntil.Completed, content);
+ IList result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // Delete Bulk Rai Blocklist Items
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task DeleteBulkConnectionRaiBlocklistItem_DeleteBulkRaiBlocklistItems()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiBlocklistItem/deleteBulk.json
+ // this example is just showing the usage of "ConnectionRaiBlocklistItem_DeleteBulk" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this RaiBlocklistPropertiesBasicResource created on azure
+ // for more information of creating RaiBlocklistPropertiesBasicResource, please refer to the document of RaiBlocklistPropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ string raiBlocklistName = "raiBlocklistName";
+ ResourceIdentifier raiBlocklistPropertiesBasicResourceId = RaiBlocklistPropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, raiBlocklistName);
+ RaiBlocklistPropertiesBasicResource raiBlocklistPropertiesBasicResource = client.GetRaiBlocklistPropertiesBasicResource(raiBlocklistPropertiesBasicResourceId);
+
+ // invoke the operation
+ BinaryData body = BinaryData.FromObjectAsJson(new object[] { "myblocklistitem1", "myblocklistitem2" });
+ await raiBlocklistPropertiesBasicResource.DeleteBulkConnectionRaiBlocklistItemAsync(WaitUntil.Completed, body);
+
+ Console.WriteLine($"Succeeded");
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RaiBlocklistPropertiesBasicResourceCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RaiBlocklistPropertiesBasicResourceCollection.cs
new file mode 100644
index 0000000000000..847727a96ff37
--- /dev/null
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_RaiBlocklistPropertiesBasicResourceCollection.cs
@@ -0,0 +1,209 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.MachineLearning.Models;
+
+namespace Azure.ResourceManager.MachineLearning.Samples
+{
+ public partial class Sample_RaiBlocklistPropertiesBasicResourceCollection
+ {
+ // List Rai Blocklist
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_ListRaiBlocklist()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiBlocklist/list.json
+ // this example is just showing the usage of "ConnectionRaiBlocklists_List" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure
+ // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
+ MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
+
+ // get the collection of this RaiBlocklistPropertiesBasicResource
+ RaiBlocklistPropertiesBasicResourceCollection collection = machineLearningWorkspaceConnection.GetRaiBlocklistPropertiesBasicResources();
+
+ // invoke the operation and iterate over the result
+ await foreach (RaiBlocklistPropertiesBasicResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiBlocklistPropertiesBasicResourceData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get Rai Blocklist
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetRaiBlocklist()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiBlocklist/get.json
+ // this example is just showing the usage of "ConnectionRaiBlocklist_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure
+ // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
+ MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
+
+ // get the collection of this RaiBlocklistPropertiesBasicResource
+ RaiBlocklistPropertiesBasicResourceCollection collection = machineLearningWorkspaceConnection.GetRaiBlocklistPropertiesBasicResources();
+
+ // invoke the operation
+ string raiBlocklistName = "raiBlocklistName";
+ RaiBlocklistPropertiesBasicResource result = await collection.GetAsync(raiBlocklistName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiBlocklistPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Get Rai Blocklist
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_GetRaiBlocklist()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiBlocklist/get.json
+ // this example is just showing the usage of "ConnectionRaiBlocklist_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure
+ // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
+ MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
+
+ // get the collection of this RaiBlocklistPropertiesBasicResource
+ RaiBlocklistPropertiesBasicResourceCollection collection = machineLearningWorkspaceConnection.GetRaiBlocklistPropertiesBasicResources();
+
+ // invoke the operation
+ string raiBlocklistName = "raiBlocklistName";
+ bool result = await collection.ExistsAsync(raiBlocklistName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // Get Rai Blocklist
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_GetRaiBlocklist()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiBlocklist/get.json
+ // this example is just showing the usage of "ConnectionRaiBlocklist_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure
+ // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
+ MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
+
+ // get the collection of this RaiBlocklistPropertiesBasicResource
+ RaiBlocklistPropertiesBasicResourceCollection collection = machineLearningWorkspaceConnection.GetRaiBlocklistPropertiesBasicResources();
+
+ // invoke the operation
+ string raiBlocklistName = "raiBlocklistName";
+ NullableResponse response = await collection.GetIfExistsAsync(raiBlocklistName);
+ RaiBlocklistPropertiesBasicResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine($"Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiBlocklistPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+
+ // Create Rai Blocklist
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CreateOrUpdate_CreateRaiBlocklist()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiBlocklist/create.json
+ // this example is just showing the usage of "ConnectionRaiBlocklist_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure
+ // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
+ MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
+
+ // get the collection of this RaiBlocklistPropertiesBasicResource
+ RaiBlocklistPropertiesBasicResourceCollection collection = machineLearningWorkspaceConnection.GetRaiBlocklistPropertiesBasicResources();
+
+ // invoke the operation
+ string raiBlocklistName = "raiBlocklistName";
+ RaiBlocklistPropertiesBasicResourceData data = new RaiBlocklistPropertiesBasicResourceData(new RaiBlocklistProperties()
+ {
+ Description = "Basic blocklist description",
+ });
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, raiBlocklistName, data);
+ RaiBlocklistPropertiesBasicResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiBlocklistPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_ServerlessEndpointCollection.cs
similarity index 56%
rename from sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobCollection.cs
rename to sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_ServerlessEndpointCollection.cs
index 4c65a14f55ebf..50687d47e00fd 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_MachineLearningLabelingJobCollection.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_ServerlessEndpointCollection.cs
@@ -10,18 +10,19 @@
using Azure.Core;
using Azure.Identity;
using Azure.ResourceManager.MachineLearning.Models;
+using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.MachineLearning.Samples
{
- public partial class Sample_MachineLearningLabelingJobCollection
+ public partial class Sample_ServerlessEndpointCollection
{
- // List Labeling Job.
+ // List Workspace Serverless Endpoint.
[NUnit.Framework.Test]
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task GetAll_ListLabelingJob()
+ public async Task GetAll_ListWorkspaceServerlessEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/list.json
- // this example is just showing the usage of "LabelingJobs_List" operation, for the dependent resources, they will have to be created separately.
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ServerlessEndpoint/list.json
+ // this example is just showing the usage of "ServerlessEndpoints_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
@@ -31,20 +32,20 @@ public async Task GetAll_ListLabelingJob()
// this example assumes you already have this MachineLearningWorkspaceResource created on azure
// for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
string subscriptionId = "00000000-1111-2222-3333-444444444444";
- string resourceGroupName = "workspace-1234";
- string workspaceName = "testworkspace";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
- // get the collection of this MachineLearningLabelingJobResource
- MachineLearningLabelingJobCollection collection = machineLearningWorkspace.GetMachineLearningLabelingJobs();
+ // get the collection of this ServerlessEndpointResource
+ ServerlessEndpointCollection collection = machineLearningWorkspace.GetServerlessEndpoints();
// invoke the operation and iterate over the result
- await foreach (MachineLearningLabelingJobResource item in collection.GetAllAsync())
+ await foreach (ServerlessEndpointResource item in collection.GetAllAsync())
{
// the variable item is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
- MachineLearningLabelingJobData resourceData = item.Data;
+ ServerlessEndpointData resourceData = item.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
@@ -52,13 +53,13 @@ public async Task GetAll_ListLabelingJob()
Console.WriteLine($"Succeeded");
}
- // Get Labeling Job.
+ // Get Workspace Serverless Endpoint.
[NUnit.Framework.Test]
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Get_GetLabelingJob()
+ public async Task Get_GetWorkspaceServerlessEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/get.json
- // this example is just showing the usage of "LabelingJobs_Get" operation, for the dependent resources, they will have to be created separately.
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ServerlessEndpoint/get.json
+ // this example is just showing the usage of "ServerlessEndpoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
@@ -68,34 +69,32 @@ public async Task Get_GetLabelingJob()
// this example assumes you already have this MachineLearningWorkspaceResource created on azure
// for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
string subscriptionId = "00000000-1111-2222-3333-444444444444";
- string resourceGroupName = "workspace-1234";
- string workspaceName = "testworkspace";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
- // get the collection of this MachineLearningLabelingJobResource
- MachineLearningLabelingJobCollection collection = machineLearningWorkspace.GetMachineLearningLabelingJobs();
+ // get the collection of this ServerlessEndpointResource
+ ServerlessEndpointCollection collection = machineLearningWorkspace.GetServerlessEndpoints();
// invoke the operation
- string id = "testLabelingJob";
- bool? includeJobInstructions = true;
- bool? includeLabelCategories = true;
- MachineLearningLabelingJobResource result = await collection.GetAsync(id, includeJobInstructions: includeJobInstructions, includeLabelCategories: includeLabelCategories);
+ string name = "string";
+ ServerlessEndpointResource result = await collection.GetAsync(name);
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
- MachineLearningLabelingJobData resourceData = result.Data;
+ ServerlessEndpointData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
- // Get Labeling Job.
+ // Get Workspace Serverless Endpoint.
[NUnit.Framework.Test]
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task Exists_GetLabelingJob()
+ public async Task Exists_GetWorkspaceServerlessEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/get.json
- // this example is just showing the usage of "LabelingJobs_Get" operation, for the dependent resources, they will have to be created separately.
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ServerlessEndpoint/get.json
+ // this example is just showing the usage of "ServerlessEndpoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
@@ -105,30 +104,28 @@ public async Task Exists_GetLabelingJob()
// this example assumes you already have this MachineLearningWorkspaceResource created on azure
// for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
string subscriptionId = "00000000-1111-2222-3333-444444444444";
- string resourceGroupName = "workspace-1234";
- string workspaceName = "testworkspace";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
- // get the collection of this MachineLearningLabelingJobResource
- MachineLearningLabelingJobCollection collection = machineLearningWorkspace.GetMachineLearningLabelingJobs();
+ // get the collection of this ServerlessEndpointResource
+ ServerlessEndpointCollection collection = machineLearningWorkspace.GetServerlessEndpoints();
// invoke the operation
- string id = "testLabelingJob";
- bool? includeJobInstructions = true;
- bool? includeLabelCategories = true;
- bool result = await collection.ExistsAsync(id, includeJobInstructions: includeJobInstructions, includeLabelCategories: includeLabelCategories);
+ string name = "string";
+ bool result = await collection.ExistsAsync(name);
Console.WriteLine($"Succeeded: {result}");
}
- // Get Labeling Job.
+ // Get Workspace Serverless Endpoint.
[NUnit.Framework.Test]
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task GetIfExists_GetLabelingJob()
+ public async Task GetIfExists_GetWorkspaceServerlessEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/get.json
- // this example is just showing the usage of "LabelingJobs_Get" operation, for the dependent resources, they will have to be created separately.
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ServerlessEndpoint/get.json
+ // this example is just showing the usage of "ServerlessEndpoints_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
@@ -138,20 +135,18 @@ public async Task GetIfExists_GetLabelingJob()
// this example assumes you already have this MachineLearningWorkspaceResource created on azure
// for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
string subscriptionId = "00000000-1111-2222-3333-444444444444";
- string resourceGroupName = "workspace-1234";
- string workspaceName = "testworkspace";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
- // get the collection of this MachineLearningLabelingJobResource
- MachineLearningLabelingJobCollection collection = machineLearningWorkspace.GetMachineLearningLabelingJobs();
+ // get the collection of this ServerlessEndpointResource
+ ServerlessEndpointCollection collection = machineLearningWorkspace.GetServerlessEndpoints();
// invoke the operation
- string id = "testLabelingJob";
- bool? includeJobInstructions = true;
- bool? includeLabelCategories = true;
- NullableResponse response = await collection.GetIfExistsAsync(id, includeJobInstructions: includeJobInstructions, includeLabelCategories: includeLabelCategories);
- MachineLearningLabelingJobResource result = response.HasValue ? response.Value : null;
+ string name = "string";
+ NullableResponse response = await collection.GetIfExistsAsync(name);
+ ServerlessEndpointResource result = response.HasValue ? response.Value : null;
if (result == null)
{
@@ -161,19 +156,19 @@ public async Task GetIfExists_GetLabelingJob()
{
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
- MachineLearningLabelingJobData resourceData = result.Data;
+ ServerlessEndpointData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
}
- // CreateOrUpdate Labeling Job.
+ // CreateOrUpdate Workspace Serverless Endpoint.
[NUnit.Framework.Test]
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
- public async Task CreateOrUpdate_CreateOrUpdateLabelingJob()
+ public async Task CreateOrUpdate_CreateOrUpdateWorkspaceServerlessEndpoint()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/LabelingJob/createOrUpdate.json
- // this example is just showing the usage of "LabelingJobs_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ServerlessEndpoint/createOrUpdate.json
+ // this example is just showing the usage of "ServerlessEndpoints_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
TokenCredential cred = new DefaultAzureCredential();
@@ -183,88 +178,47 @@ public async Task CreateOrUpdate_CreateOrUpdateLabelingJob()
// this example assumes you already have this MachineLearningWorkspaceResource created on azure
// for more information of creating MachineLearningWorkspaceResource, please refer to the document of MachineLearningWorkspaceResource
string subscriptionId = "00000000-1111-2222-3333-444444444444";
- string resourceGroupName = "workspace-1234";
- string workspaceName = "testworkspace";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
ResourceIdentifier machineLearningWorkspaceResourceId = MachineLearningWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName);
MachineLearningWorkspaceResource machineLearningWorkspace = client.GetMachineLearningWorkspaceResource(machineLearningWorkspaceResourceId);
- // get the collection of this MachineLearningLabelingJobResource
- MachineLearningLabelingJobCollection collection = machineLearningWorkspace.GetMachineLearningLabelingJobs();
+ // get the collection of this ServerlessEndpointResource
+ ServerlessEndpointCollection collection = machineLearningWorkspace.GetServerlessEndpoints();
// invoke the operation
- string id = "testLabelingJob";
- MachineLearningLabelingJobData data = new MachineLearningLabelingJobData(new LabelingJobProperties()
+ string name = "string";
+ ServerlessEndpointData data = new ServerlessEndpointData(new AzureLocation("string"), new ServerlessEndpointProperties(ServerlessInferenceEndpointAuthMode.Key)
{
- JobInstructionsUri = new Uri("link/to/instructions"),
- LabelCategories =
-{
-["myCategory1"] = new LabelCategory()
-{
-Classes =
-{
-["myLabelClass1"] = new LabelClass()
-{
-DisplayName = "myLabelClass1",
-Subclasses =
-{
-},
-},
-["myLabelClass2"] = new LabelClass()
-{
-DisplayName = "myLabelClass2",
-Subclasses =
-{
-},
-},
-},
-DisplayName = "myCategory1Title",
-MultiSelect = LabelCategoryMultiSelect.Disabled,
-},
-["myCategory2"] = new LabelCategory()
-{
-Classes =
-{
-["myLabelClass1"] = new LabelClass()
-{
-DisplayName = "myLabelClass1",
-Subclasses =
-{
-},
-},
-["myLabelClass2"] = new LabelClass()
-{
-DisplayName = "myLabelClass2",
-Subclasses =
-{
-},
-},
-},
-DisplayName = "myCategory2Title",
-MultiSelect = LabelCategoryMultiSelect.Disabled,
-},
-},
- LabelingJobMediaProperties = new LabelingJobImageProperties(),
- MlAssistConfiguration = new MachineLearningAssistEnabledConfiguration("/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/myscoringcompute", "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/resourceGroup-1234/providers/Microsoft.MachineLearningServices/workspaces/testworkspace/computes/mytrainingompute"),
- Description = "string",
- Properties =
+ ContentSafetyStatus = ContentSafetyStatus.Enabled,
+ ModelId = "string",
+ })
+ {
+ Identity = new ManagedServiceIdentity("SystemAssigned")
+ {
+ UserAssignedIdentities =
{
-["additionalProp1"] = "string",
-["additionalProp2"] = "string",
-["additionalProp3"] = "string",
+[new ResourceIdentifier("string")] = new UserAssignedIdentity(),
},
+ },
+ Kind = "string",
+ Sku = new MachineLearningSku("string")
+ {
+ Tier = MachineLearningSkuTier.Standard,
+ Size = "string",
+ Family = "string",
+ Capacity = 1,
+ },
Tags =
{
-["additionalProp1"] = "string",
-["additionalProp2"] = "string",
-["additionalProp3"] = "string",
},
- });
- ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, id, data);
- MachineLearningLabelingJobResource result = lro.Value;
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, name, data);
+ ServerlessEndpointResource result = lro.Value;
// the variable result is a resource, you could call other operations on this instance as well
// but just for demo, we get its data from this resource instance
- MachineLearningLabelingJobData resourceData = result.Data;
+ ServerlessEndpointData resourceData = result.Data;
// for demo we just print out the id
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_ServerlessEndpointResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_ServerlessEndpointResource.cs
new file mode 100644
index 0000000000000..da4aa896773a2
--- /dev/null
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_ServerlessEndpointResource.cs
@@ -0,0 +1,197 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.MachineLearning.Models;
+
+namespace Azure.ResourceManager.MachineLearning.Samples
+{
+ public partial class Sample_ServerlessEndpointResource
+ {
+ // Delete Workspace Serverless Endpoint.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Delete_DeleteWorkspaceServerlessEndpoint()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ServerlessEndpoint/delete.json
+ // this example is just showing the usage of "ServerlessEndpoints_Delete" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ServerlessEndpointResource created on azure
+ // for more information of creating ServerlessEndpointResource, please refer to the document of ServerlessEndpointResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ string name = "string";
+ ResourceIdentifier serverlessEndpointResourceId = ServerlessEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name);
+ ServerlessEndpointResource serverlessEndpoint = client.GetServerlessEndpointResource(serverlessEndpointResourceId);
+
+ // invoke the operation
+ await serverlessEndpoint.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get Workspace Serverless Endpoint.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetWorkspaceServerlessEndpoint()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ServerlessEndpoint/get.json
+ // this example is just showing the usage of "ServerlessEndpoints_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ServerlessEndpointResource created on azure
+ // for more information of creating ServerlessEndpointResource, please refer to the document of ServerlessEndpointResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ string name = "string";
+ ResourceIdentifier serverlessEndpointResourceId = ServerlessEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name);
+ ServerlessEndpointResource serverlessEndpoint = client.GetServerlessEndpointResource(serverlessEndpointResourceId);
+
+ // invoke the operation
+ ServerlessEndpointResource result = await serverlessEndpoint.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ServerlessEndpointData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Update Workspace Serverless Endpoint.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_UpdateWorkspaceServerlessEndpoint()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ServerlessEndpoint/update.json
+ // this example is just showing the usage of "ServerlessEndpoints_Update" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ServerlessEndpointResource created on azure
+ // for more information of creating ServerlessEndpointResource, please refer to the document of ServerlessEndpointResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ string name = "string";
+ ResourceIdentifier serverlessEndpointResourceId = ServerlessEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name);
+ ServerlessEndpointResource serverlessEndpoint = client.GetServerlessEndpointResource(serverlessEndpointResourceId);
+
+ // invoke the operation
+ ServerlessEndpointPatch patch = new ServerlessEndpointPatch()
+ {
+ Identity = new MachineLearningPartialManagedServiceIdentity()
+ {
+ ManagedServiceIdentityType = "None",
+ UserAssignedIdentities =
+{
+["string"] = BinaryData.FromObjectAsJson(new Dictionary()
+{
+}),
+},
+ },
+ Sku = new MachineLearningSkuPatch()
+ {
+ Capacity = 1,
+ Family = "string",
+ Name = "string",
+ Size = "string",
+ Tier = MachineLearningSkuTier.Premium,
+ },
+ Tags =
+{
+},
+ };
+ ArmOperation lro = await serverlessEndpoint.UpdateAsync(WaitUntil.Completed, patch);
+ ServerlessEndpointResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ServerlessEndpointData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // ListKeys Workspace Serverless Endpoint.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetKeys_ListKeysWorkspaceServerlessEndpoint()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ServerlessEndpoint/listKeys.json
+ // this example is just showing the usage of "ServerlessEndpoints_ListKeys" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ServerlessEndpointResource created on azure
+ // for more information of creating ServerlessEndpointResource, please refer to the document of ServerlessEndpointResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ string name = "string";
+ ResourceIdentifier serverlessEndpointResourceId = ServerlessEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name);
+ ServerlessEndpointResource serverlessEndpoint = client.GetServerlessEndpointResource(serverlessEndpointResourceId);
+
+ // invoke the operation
+ MachineLearningEndpointAuthKeys result = await serverlessEndpoint.GetKeysAsync();
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // RegenerateKeys Workspace Serverless Endpoint.
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task RegenerateKeys_RegenerateKeysWorkspaceServerlessEndpoint()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Workspace/ServerlessEndpoint/regenerateKeys.json
+ // this example is just showing the usage of "ServerlessEndpoints_RegenerateKeys" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ServerlessEndpointResource created on azure
+ // for more information of creating ServerlessEndpointResource, please refer to the document of ServerlessEndpointResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "my-aml-workspace";
+ string name = "string";
+ ResourceIdentifier serverlessEndpointResourceId = ServerlessEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, name);
+ ServerlessEndpointResource serverlessEndpoint = client.GetServerlessEndpointResource(serverlessEndpointResourceId);
+
+ // invoke the operation
+ MachineLearningEndpointKeyRegenerateContent content = new MachineLearningEndpointKeyRegenerateContent(MachineLearningKeyType.Primary)
+ {
+ KeyValue = "string",
+ };
+ ArmOperation lro = await serverlessEndpoint.RegenerateKeysAsync(WaitUntil.Completed, content);
+ MachineLearningEndpointAuthKeys result = lro.Value;
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
index 94b10f612e537..d6919254119fb 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
@@ -21,7 +21,7 @@ public partial class Sample_SubscriptionResourceExtensions
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetMachineLearningUsages_ListUsages()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Usage/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Usage/list.json
// this example is just showing the usage of "Usages_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -50,7 +50,7 @@ public async Task GetMachineLearningUsages_ListUsages()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetMachineLearningVmSizes_ListVMSizes()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/VirtualMachineSize/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/VirtualMachineSize/list.json
// this example is just showing the usage of "VirtualMachineSizes_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -79,7 +79,7 @@ public async Task GetMachineLearningVmSizes_ListVMSizes()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task UpdateMachineLearningQuotas_UpdateQuotas()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Quota/update.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Quota/update.json
// this example is just showing the usage of "Quotas_Update" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -127,7 +127,7 @@ public async Task UpdateMachineLearningQuotas_UpdateQuotas()
[NUnit.Framework.Ignore("Only verifying that the sample builds")]
public async Task GetMachineLearningQuotas_ListWorkspaceQuotasByVMFamily()
{
- // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2023-06-01-preview/examples/Quota/list.json
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Quota/list.json
// this example is just showing the usage of "Quotas_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceConnectionDeploymentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceConnectionDeploymentCollection.cs
new file mode 100644
index 0000000000000..48708c1f0bdf4
--- /dev/null
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceConnectionDeploymentCollection.cs
@@ -0,0 +1,214 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.MachineLearning.Models;
+
+namespace Azure.ResourceManager.MachineLearning.Samples
+{
+ public partial class Sample_WorkspaceConnectionDeploymentCollection
+ {
+ // List Azure OpenAI Connection Deployments
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_ListAzureOpenAIConnectionDeployments()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/listDeployments.json
+ // this example is just showing the usage of "Connection_ListDeployments" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure
+ // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "resourceGroup-1";
+ string workspaceName = "testworkspace";
+ string connectionName = "testConnection";
+ ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
+ MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
+
+ // get the collection of this WorkspaceConnectionDeploymentResource
+ WorkspaceConnectionDeploymentCollection collection = machineLearningWorkspaceConnection.GetWorkspaceConnectionDeployments();
+
+ // invoke the operation and iterate over the result
+ await foreach (WorkspaceConnectionDeploymentResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointDeploymentResourcePropertiesBasicResourceData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get Azure OpenAI Connection Deployment
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetAzureOpenAIConnectionDeployment()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/getDeployment.json
+ // this example is just showing the usage of "Connection_GetDeployment" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure
+ // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "resourceGroup-1";
+ string workspaceName = "testworkspace";
+ string connectionName = "testConnection";
+ ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
+ MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
+
+ // get the collection of this WorkspaceConnectionDeploymentResource
+ WorkspaceConnectionDeploymentCollection collection = machineLearningWorkspaceConnection.GetWorkspaceConnectionDeployments();
+
+ // invoke the operation
+ string deploymentName = "text-davinci-003";
+ WorkspaceConnectionDeploymentResource result = await collection.GetAsync(deploymentName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointDeploymentResourcePropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Get Azure OpenAI Connection Deployment
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_GetAzureOpenAIConnectionDeployment()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/getDeployment.json
+ // this example is just showing the usage of "Connection_GetDeployment" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure
+ // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "resourceGroup-1";
+ string workspaceName = "testworkspace";
+ string connectionName = "testConnection";
+ ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
+ MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
+
+ // get the collection of this WorkspaceConnectionDeploymentResource
+ WorkspaceConnectionDeploymentCollection collection = machineLearningWorkspaceConnection.GetWorkspaceConnectionDeployments();
+
+ // invoke the operation
+ string deploymentName = "text-davinci-003";
+ bool result = await collection.ExistsAsync(deploymentName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // Get Azure OpenAI Connection Deployment
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_GetAzureOpenAIConnectionDeployment()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/getDeployment.json
+ // this example is just showing the usage of "Connection_GetDeployment" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure
+ // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "resourceGroup-1";
+ string workspaceName = "testworkspace";
+ string connectionName = "testConnection";
+ ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
+ MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
+
+ // get the collection of this WorkspaceConnectionDeploymentResource
+ WorkspaceConnectionDeploymentCollection collection = machineLearningWorkspaceConnection.GetWorkspaceConnectionDeployments();
+
+ // invoke the operation
+ string deploymentName = "text-davinci-003";
+ NullableResponse response = await collection.GetIfExistsAsync(deploymentName);
+ WorkspaceConnectionDeploymentResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine($"Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointDeploymentResourcePropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+
+ // Create Azure OpenAI Connection Deployment
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CreateOrUpdate_CreateAzureOpenAIConnectionDeployment()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/createDeployment.json
+ // this example is just showing the usage of "Connection_CreateOrUpdateDeployment" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure
+ // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "resourceGroup-1";
+ string workspaceName = "testworkspace";
+ string connectionName = "testConnection";
+ ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
+ MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
+
+ // get the collection of this WorkspaceConnectionDeploymentResource
+ WorkspaceConnectionDeploymentCollection collection = machineLearningWorkspaceConnection.GetWorkspaceConnectionDeployments();
+
+ // invoke the operation
+ string deploymentName = "text-davinci-003";
+ EndpointDeploymentResourcePropertiesBasicResourceData data = new EndpointDeploymentResourcePropertiesBasicResourceData(new OpenAIEndpointDeploymentResourceProperties(new EndpointDeploymentModel()
+ {
+ Format = "OpenAI",
+ Name = "text-davinci-003",
+ Version = "1",
+ })
+ {
+ VersionUpgradeOption = DeploymentModelVersionUpgradeOption.OnceNewDefaultVersionAvailable,
+ });
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, deploymentName, data);
+ WorkspaceConnectionDeploymentResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointDeploymentResourcePropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceConnectionDeploymentResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceConnectionDeploymentResource.cs
new file mode 100644
index 0000000000000..65151803829b0
--- /dev/null
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceConnectionDeploymentResource.cs
@@ -0,0 +1,123 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.MachineLearning.Models;
+
+namespace Azure.ResourceManager.MachineLearning.Samples
+{
+ public partial class Sample_WorkspaceConnectionDeploymentResource
+ {
+ // Delete Azure OpenAI Connection Deployment
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Delete_DeleteAzureOpenAIConnectionDeployment()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/deleteDeployment.json
+ // this example is just showing the usage of "Connection_DeleteDeployment" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this WorkspaceConnectionDeploymentResource created on azure
+ // for more information of creating WorkspaceConnectionDeploymentResource, please refer to the document of WorkspaceConnectionDeploymentResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ string deploymentName = "testDeploymentName";
+ ResourceIdentifier workspaceConnectionDeploymentResourceId = WorkspaceConnectionDeploymentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, deploymentName);
+ WorkspaceConnectionDeploymentResource workspaceConnectionDeployment = client.GetWorkspaceConnectionDeploymentResource(workspaceConnectionDeploymentResourceId);
+
+ // invoke the operation
+ await workspaceConnectionDeployment.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get Azure OpenAI Connection Deployment
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetAzureOpenAIConnectionDeployment()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/getDeployment.json
+ // this example is just showing the usage of "Connection_GetDeployment" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this WorkspaceConnectionDeploymentResource created on azure
+ // for more information of creating WorkspaceConnectionDeploymentResource, please refer to the document of WorkspaceConnectionDeploymentResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "resourceGroup-1";
+ string workspaceName = "testworkspace";
+ string connectionName = "testConnection";
+ string deploymentName = "text-davinci-003";
+ ResourceIdentifier workspaceConnectionDeploymentResourceId = WorkspaceConnectionDeploymentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, deploymentName);
+ WorkspaceConnectionDeploymentResource workspaceConnectionDeployment = client.GetWorkspaceConnectionDeploymentResource(workspaceConnectionDeploymentResourceId);
+
+ // invoke the operation
+ WorkspaceConnectionDeploymentResource result = await workspaceConnectionDeployment.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointDeploymentResourcePropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Create Azure OpenAI Connection Deployment
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_CreateAzureOpenAIConnectionDeployment()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/createDeployment.json
+ // this example is just showing the usage of "Connection_CreateOrUpdateDeployment" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this WorkspaceConnectionDeploymentResource created on azure
+ // for more information of creating WorkspaceConnectionDeploymentResource, please refer to the document of WorkspaceConnectionDeploymentResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "resourceGroup-1";
+ string workspaceName = "testworkspace";
+ string connectionName = "testConnection";
+ string deploymentName = "text-davinci-003";
+ ResourceIdentifier workspaceConnectionDeploymentResourceId = WorkspaceConnectionDeploymentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, deploymentName);
+ WorkspaceConnectionDeploymentResource workspaceConnectionDeployment = client.GetWorkspaceConnectionDeploymentResource(workspaceConnectionDeploymentResourceId);
+
+ // invoke the operation
+ EndpointDeploymentResourcePropertiesBasicResourceData data = new EndpointDeploymentResourcePropertiesBasicResourceData(new OpenAIEndpointDeploymentResourceProperties(new EndpointDeploymentModel()
+ {
+ Format = "OpenAI",
+ Name = "text-davinci-003",
+ Version = "1",
+ })
+ {
+ VersionUpgradeOption = DeploymentModelVersionUpgradeOption.OnceNewDefaultVersionAvailable,
+ });
+ ArmOperation lro = await workspaceConnectionDeployment.UpdateAsync(WaitUntil.Completed, data);
+ WorkspaceConnectionDeploymentResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointDeploymentResourcePropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceConnectionRaiPolicyCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceConnectionRaiPolicyCollection.cs
new file mode 100644
index 0000000000000..4236bdc5d3e92
--- /dev/null
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceConnectionRaiPolicyCollection.cs
@@ -0,0 +1,238 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.MachineLearning.Models;
+
+namespace Azure.ResourceManager.MachineLearning.Samples
+{
+ public partial class Sample_WorkspaceConnectionRaiPolicyCollection
+ {
+ // List Rai policy
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_ListRaiPolicy()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiPolicy/list.json
+ // this example is just showing the usage of "ConnectionRaiPolicies_List" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure
+ // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
+ MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
+
+ // get the collection of this WorkspaceConnectionRaiPolicyResource
+ WorkspaceConnectionRaiPolicyCollection collection = machineLearningWorkspaceConnection.GetWorkspaceConnectionRaiPolicies();
+
+ // invoke the operation and iterate over the result
+ await foreach (WorkspaceConnectionRaiPolicyResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiPolicyPropertiesBasicResourceData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get Rai policy
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetRaiPolicy()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiPolicy/get.json
+ // this example is just showing the usage of "ConnectionRaiPolicy_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure
+ // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
+ MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
+
+ // get the collection of this WorkspaceConnectionRaiPolicyResource
+ WorkspaceConnectionRaiPolicyCollection collection = machineLearningWorkspaceConnection.GetWorkspaceConnectionRaiPolicies();
+
+ // invoke the operation
+ string raiPolicyName = "raiPolicyName";
+ WorkspaceConnectionRaiPolicyResource result = await collection.GetAsync(raiPolicyName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiPolicyPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Get Rai policy
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_GetRaiPolicy()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiPolicy/get.json
+ // this example is just showing the usage of "ConnectionRaiPolicy_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure
+ // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
+ MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
+
+ // get the collection of this WorkspaceConnectionRaiPolicyResource
+ WorkspaceConnectionRaiPolicyCollection collection = machineLearningWorkspaceConnection.GetWorkspaceConnectionRaiPolicies();
+
+ // invoke the operation
+ string raiPolicyName = "raiPolicyName";
+ bool result = await collection.ExistsAsync(raiPolicyName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // Get Rai policy
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_GetRaiPolicy()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiPolicy/get.json
+ // this example is just showing the usage of "ConnectionRaiPolicy_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure
+ // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
+ MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
+
+ // get the collection of this WorkspaceConnectionRaiPolicyResource
+ WorkspaceConnectionRaiPolicyCollection collection = machineLearningWorkspaceConnection.GetWorkspaceConnectionRaiPolicies();
+
+ // invoke the operation
+ string raiPolicyName = "raiPolicyName";
+ NullableResponse response = await collection.GetIfExistsAsync(raiPolicyName);
+ WorkspaceConnectionRaiPolicyResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine($"Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiPolicyPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+
+ // Create Rai policy
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CreateOrUpdate_CreateRaiPolicy()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiPolicy/create.json
+ // this example is just showing the usage of "ConnectionRaiPolicy_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this MachineLearningWorkspaceConnectionResource created on azure
+ // for more information of creating MachineLearningWorkspaceConnectionResource, please refer to the document of MachineLearningWorkspaceConnectionResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ ResourceIdentifier machineLearningWorkspaceConnectionResourceId = MachineLearningWorkspaceConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName);
+ MachineLearningWorkspaceConnectionResource machineLearningWorkspaceConnection = client.GetMachineLearningWorkspaceConnectionResource(machineLearningWorkspaceConnectionResourceId);
+
+ // get the collection of this WorkspaceConnectionRaiPolicyResource
+ WorkspaceConnectionRaiPolicyCollection collection = machineLearningWorkspaceConnection.GetWorkspaceConnectionRaiPolicies();
+
+ // invoke the operation
+ string raiPolicyName = "raiPolicyName";
+ RaiPolicyPropertiesBasicResourceData data = new RaiPolicyPropertiesBasicResourceData(new RaiPolicyProperties()
+ {
+ BasePolicyName = "112",
+ CompletionBlocklists =
+{
+new RaiBlocklistConfig()
+{
+Blocking = false,
+BlocklistName = "blocklistName",
+}
+},
+ ContentFilters =
+{
+new RaiPolicyContentFilter()
+{
+AllowedContentLevel = AllowedContentLevel.Low,
+Blocking = false,
+Enabled = false,
+Name = "policyName",
+Source = RaiPolicyContentSource.Prompt,
+}
+},
+ Mode = RaiPolicyMode.Blocking,
+ PromptBlocklists =
+{
+new RaiBlocklistConfig()
+{
+Blocking = false,
+BlocklistName = "blocklistName",
+}
+},
+ PolicyType = RaiPolicyType.SystemManaged,
+ });
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, raiPolicyName, data);
+ WorkspaceConnectionRaiPolicyResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiPolicyPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceConnectionRaiPolicyResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceConnectionRaiPolicyResource.cs
new file mode 100644
index 0000000000000..3c41b9d3979ac
--- /dev/null
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceConnectionRaiPolicyResource.cs
@@ -0,0 +1,147 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.MachineLearning.Models;
+
+namespace Azure.ResourceManager.MachineLearning.Samples
+{
+ public partial class Sample_WorkspaceConnectionRaiPolicyResource
+ {
+ // Delete Rai policy
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Delete_DeleteRaiPolicy()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiPolicy/delete.json
+ // this example is just showing the usage of "ConnectionRaiPolicy_Delete" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this WorkspaceConnectionRaiPolicyResource created on azure
+ // for more information of creating WorkspaceConnectionRaiPolicyResource, please refer to the document of WorkspaceConnectionRaiPolicyResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ string raiPolicyName = "raiPolicyName";
+ ResourceIdentifier workspaceConnectionRaiPolicyResourceId = WorkspaceConnectionRaiPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, raiPolicyName);
+ WorkspaceConnectionRaiPolicyResource workspaceConnectionRaiPolicy = client.GetWorkspaceConnectionRaiPolicyResource(workspaceConnectionRaiPolicyResourceId);
+
+ // invoke the operation
+ await workspaceConnectionRaiPolicy.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get Rai policy
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetRaiPolicy()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiPolicy/get.json
+ // this example is just showing the usage of "ConnectionRaiPolicy_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this WorkspaceConnectionRaiPolicyResource created on azure
+ // for more information of creating WorkspaceConnectionRaiPolicyResource, please refer to the document of WorkspaceConnectionRaiPolicyResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ string raiPolicyName = "raiPolicyName";
+ ResourceIdentifier workspaceConnectionRaiPolicyResourceId = WorkspaceConnectionRaiPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, raiPolicyName);
+ WorkspaceConnectionRaiPolicyResource workspaceConnectionRaiPolicy = client.GetWorkspaceConnectionRaiPolicyResource(workspaceConnectionRaiPolicyResourceId);
+
+ // invoke the operation
+ WorkspaceConnectionRaiPolicyResource result = await workspaceConnectionRaiPolicy.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiPolicyPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Create Rai policy
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_CreateRaiPolicy()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/WorkspaceConnection/RaiPolicy/create.json
+ // this example is just showing the usage of "ConnectionRaiPolicy_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this WorkspaceConnectionRaiPolicyResource created on azure
+ // for more information of creating WorkspaceConnectionRaiPolicyResource, please refer to the document of WorkspaceConnectionRaiPolicyResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string connectionName = "testConnection";
+ string raiPolicyName = "raiPolicyName";
+ ResourceIdentifier workspaceConnectionRaiPolicyResourceId = WorkspaceConnectionRaiPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, connectionName, raiPolicyName);
+ WorkspaceConnectionRaiPolicyResource workspaceConnectionRaiPolicy = client.GetWorkspaceConnectionRaiPolicyResource(workspaceConnectionRaiPolicyResourceId);
+
+ // invoke the operation
+ RaiPolicyPropertiesBasicResourceData data = new RaiPolicyPropertiesBasicResourceData(new RaiPolicyProperties()
+ {
+ BasePolicyName = "112",
+ CompletionBlocklists =
+{
+new RaiBlocklistConfig()
+{
+Blocking = false,
+BlocklistName = "blocklistName",
+}
+},
+ ContentFilters =
+{
+new RaiPolicyContentFilter()
+{
+AllowedContentLevel = AllowedContentLevel.Low,
+Blocking = false,
+Enabled = false,
+Name = "policyName",
+Source = RaiPolicyContentSource.Prompt,
+}
+},
+ Mode = RaiPolicyMode.Blocking,
+ PromptBlocklists =
+{
+new RaiBlocklistConfig()
+{
+Blocking = false,
+BlocklistName = "blocklistName",
+}
+},
+ PolicyType = RaiPolicyType.SystemManaged,
+ });
+ ArmOperation lro = await workspaceConnectionRaiPolicy.UpdateAsync(WaitUntil.Completed, data);
+ WorkspaceConnectionRaiPolicyResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiPolicyPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEndpointDeploymentCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEndpointDeploymentCollection.cs
new file mode 100644
index 0000000000000..680856af5281c
--- /dev/null
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEndpointDeploymentCollection.cs
@@ -0,0 +1,214 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.MachineLearning.Models;
+
+namespace Azure.ResourceManager.MachineLearning.Samples
+{
+ public partial class Sample_WorkspaceEndpointDeploymentCollection
+ {
+ // Get Endpoint Deployments
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_GetEndpointDeployments()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/Deployment/getDeployments.json
+ // this example is just showing the usage of "EndpointDeployment_List" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this EndpointResourcePropertiesBasicResource created on azure
+ // for more information of creating EndpointResourcePropertiesBasicResource, please refer to the document of EndpointResourcePropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "resourceGroup-1";
+ string workspaceName = "testworkspace";
+ string endpointName = "Azure.OpenAI";
+ ResourceIdentifier endpointResourcePropertiesBasicResourceId = EndpointResourcePropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName);
+ EndpointResourcePropertiesBasicResource endpointResourcePropertiesBasicResource = client.GetEndpointResourcePropertiesBasicResource(endpointResourcePropertiesBasicResourceId);
+
+ // get the collection of this WorkspaceEndpointDeploymentResource
+ WorkspaceEndpointDeploymentCollection collection = endpointResourcePropertiesBasicResource.GetWorkspaceEndpointDeployments();
+
+ // invoke the operation and iterate over the result
+ await foreach (WorkspaceEndpointDeploymentResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointDeploymentResourcePropertiesBasicResourceData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get Endpoint Deployment
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetEndpointDeployment()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/Deployment/get.json
+ // this example is just showing the usage of "EndpointDeployment_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this EndpointResourcePropertiesBasicResource created on azure
+ // for more information of creating EndpointResourcePropertiesBasicResource, please refer to the document of EndpointResourcePropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "resourceGroup-1";
+ string workspaceName = "testworkspace";
+ string endpointName = "Azure.OpenAI";
+ ResourceIdentifier endpointResourcePropertiesBasicResourceId = EndpointResourcePropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName);
+ EndpointResourcePropertiesBasicResource endpointResourcePropertiesBasicResource = client.GetEndpointResourcePropertiesBasicResource(endpointResourcePropertiesBasicResourceId);
+
+ // get the collection of this WorkspaceEndpointDeploymentResource
+ WorkspaceEndpointDeploymentCollection collection = endpointResourcePropertiesBasicResource.GetWorkspaceEndpointDeployments();
+
+ // invoke the operation
+ string deploymentName = "text-davinci-003";
+ WorkspaceEndpointDeploymentResource result = await collection.GetAsync(deploymentName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointDeploymentResourcePropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Get Endpoint Deployment
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_GetEndpointDeployment()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/Deployment/get.json
+ // this example is just showing the usage of "EndpointDeployment_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this EndpointResourcePropertiesBasicResource created on azure
+ // for more information of creating EndpointResourcePropertiesBasicResource, please refer to the document of EndpointResourcePropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "resourceGroup-1";
+ string workspaceName = "testworkspace";
+ string endpointName = "Azure.OpenAI";
+ ResourceIdentifier endpointResourcePropertiesBasicResourceId = EndpointResourcePropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName);
+ EndpointResourcePropertiesBasicResource endpointResourcePropertiesBasicResource = client.GetEndpointResourcePropertiesBasicResource(endpointResourcePropertiesBasicResourceId);
+
+ // get the collection of this WorkspaceEndpointDeploymentResource
+ WorkspaceEndpointDeploymentCollection collection = endpointResourcePropertiesBasicResource.GetWorkspaceEndpointDeployments();
+
+ // invoke the operation
+ string deploymentName = "text-davinci-003";
+ bool result = await collection.ExistsAsync(deploymentName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // Get Endpoint Deployment
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_GetEndpointDeployment()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/Deployment/get.json
+ // this example is just showing the usage of "EndpointDeployment_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this EndpointResourcePropertiesBasicResource created on azure
+ // for more information of creating EndpointResourcePropertiesBasicResource, please refer to the document of EndpointResourcePropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "resourceGroup-1";
+ string workspaceName = "testworkspace";
+ string endpointName = "Azure.OpenAI";
+ ResourceIdentifier endpointResourcePropertiesBasicResourceId = EndpointResourcePropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName);
+ EndpointResourcePropertiesBasicResource endpointResourcePropertiesBasicResource = client.GetEndpointResourcePropertiesBasicResource(endpointResourcePropertiesBasicResourceId);
+
+ // get the collection of this WorkspaceEndpointDeploymentResource
+ WorkspaceEndpointDeploymentCollection collection = endpointResourcePropertiesBasicResource.GetWorkspaceEndpointDeployments();
+
+ // invoke the operation
+ string deploymentName = "text-davinci-003";
+ NullableResponse response = await collection.GetIfExistsAsync(deploymentName);
+ WorkspaceEndpointDeploymentResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine($"Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointDeploymentResourcePropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+
+ // Create Endpoint Deployment
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CreateOrUpdate_CreateEndpointDeployment()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/Deployment/create.json
+ // this example is just showing the usage of "EndpointDeployment_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this EndpointResourcePropertiesBasicResource created on azure
+ // for more information of creating EndpointResourcePropertiesBasicResource, please refer to the document of EndpointResourcePropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "resourceGroup-1";
+ string workspaceName = "testworkspace";
+ string endpointName = "Azure.OpenAI";
+ ResourceIdentifier endpointResourcePropertiesBasicResourceId = EndpointResourcePropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName);
+ EndpointResourcePropertiesBasicResource endpointResourcePropertiesBasicResource = client.GetEndpointResourcePropertiesBasicResource(endpointResourcePropertiesBasicResourceId);
+
+ // get the collection of this WorkspaceEndpointDeploymentResource
+ WorkspaceEndpointDeploymentCollection collection = endpointResourcePropertiesBasicResource.GetWorkspaceEndpointDeployments();
+
+ // invoke the operation
+ string deploymentName = "text-davinci-003";
+ EndpointDeploymentResourcePropertiesBasicResourceData data = new EndpointDeploymentResourcePropertiesBasicResourceData(new OpenAIEndpointDeploymentResourceProperties(new EndpointDeploymentModel()
+ {
+ Format = "OpenAI",
+ Name = "text-davinci-003",
+ Version = "1",
+ })
+ {
+ VersionUpgradeOption = DeploymentModelVersionUpgradeOption.OnceNewDefaultVersionAvailable,
+ });
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, deploymentName, data);
+ WorkspaceEndpointDeploymentResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointDeploymentResourcePropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEndpointDeploymentResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEndpointDeploymentResource.cs
new file mode 100644
index 0000000000000..c1101097e97ee
--- /dev/null
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEndpointDeploymentResource.cs
@@ -0,0 +1,123 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.MachineLearning.Models;
+
+namespace Azure.ResourceManager.MachineLearning.Samples
+{
+ public partial class Sample_WorkspaceEndpointDeploymentResource
+ {
+ // Delete Endpoint Deployment
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Delete_DeleteEndpointDeployment()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/Deployment/delete.json
+ // this example is just showing the usage of "EndpointDeployment_Delete" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this WorkspaceEndpointDeploymentResource created on azure
+ // for more information of creating WorkspaceEndpointDeploymentResource, please refer to the document of WorkspaceEndpointDeploymentResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string endpointName = "Azure.OpenAI";
+ string deploymentName = "testDeploymentName";
+ ResourceIdentifier workspaceEndpointDeploymentResourceId = WorkspaceEndpointDeploymentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName, deploymentName);
+ WorkspaceEndpointDeploymentResource workspaceEndpointDeployment = client.GetWorkspaceEndpointDeploymentResource(workspaceEndpointDeploymentResourceId);
+
+ // invoke the operation
+ await workspaceEndpointDeployment.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get Endpoint Deployment
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetEndpointDeployment()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/Deployment/get.json
+ // this example is just showing the usage of "EndpointDeployment_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this WorkspaceEndpointDeploymentResource created on azure
+ // for more information of creating WorkspaceEndpointDeploymentResource, please refer to the document of WorkspaceEndpointDeploymentResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "resourceGroup-1";
+ string workspaceName = "testworkspace";
+ string endpointName = "Azure.OpenAI";
+ string deploymentName = "text-davinci-003";
+ ResourceIdentifier workspaceEndpointDeploymentResourceId = WorkspaceEndpointDeploymentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName, deploymentName);
+ WorkspaceEndpointDeploymentResource workspaceEndpointDeployment = client.GetWorkspaceEndpointDeploymentResource(workspaceEndpointDeploymentResourceId);
+
+ // invoke the operation
+ WorkspaceEndpointDeploymentResource result = await workspaceEndpointDeployment.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointDeploymentResourcePropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Create Endpoint Deployment
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_CreateEndpointDeployment()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/Deployment/create.json
+ // this example is just showing the usage of "EndpointDeployment_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this WorkspaceEndpointDeploymentResource created on azure
+ // for more information of creating WorkspaceEndpointDeploymentResource, please refer to the document of WorkspaceEndpointDeploymentResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "resourceGroup-1";
+ string workspaceName = "testworkspace";
+ string endpointName = "Azure.OpenAI";
+ string deploymentName = "text-davinci-003";
+ ResourceIdentifier workspaceEndpointDeploymentResourceId = WorkspaceEndpointDeploymentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName, deploymentName);
+ WorkspaceEndpointDeploymentResource workspaceEndpointDeployment = client.GetWorkspaceEndpointDeploymentResource(workspaceEndpointDeploymentResourceId);
+
+ // invoke the operation
+ EndpointDeploymentResourcePropertiesBasicResourceData data = new EndpointDeploymentResourcePropertiesBasicResourceData(new OpenAIEndpointDeploymentResourceProperties(new EndpointDeploymentModel()
+ {
+ Format = "OpenAI",
+ Name = "text-davinci-003",
+ Version = "1",
+ })
+ {
+ VersionUpgradeOption = DeploymentModelVersionUpgradeOption.OnceNewDefaultVersionAvailable,
+ });
+ ArmOperation lro = await workspaceEndpointDeployment.UpdateAsync(WaitUntil.Completed, data);
+ WorkspaceEndpointDeploymentResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ EndpointDeploymentResourcePropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEndpointRaiPolicyCollection.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEndpointRaiPolicyCollection.cs
new file mode 100644
index 0000000000000..105749e74d20c
--- /dev/null
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEndpointRaiPolicyCollection.cs
@@ -0,0 +1,238 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.MachineLearning.Models;
+
+namespace Azure.ResourceManager.MachineLearning.Samples
+{
+ public partial class Sample_WorkspaceEndpointRaiPolicyCollection
+ {
+ // List Rai policies
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetAll_ListRaiPolicies()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/RaiPolicy/list.json
+ // this example is just showing the usage of "RaiPolicies_List" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this EndpointResourcePropertiesBasicResource created on azure
+ // for more information of creating EndpointResourcePropertiesBasicResource, please refer to the document of EndpointResourcePropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string endpointName = "Azure.OpenAI";
+ ResourceIdentifier endpointResourcePropertiesBasicResourceId = EndpointResourcePropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName);
+ EndpointResourcePropertiesBasicResource endpointResourcePropertiesBasicResource = client.GetEndpointResourcePropertiesBasicResource(endpointResourcePropertiesBasicResourceId);
+
+ // get the collection of this WorkspaceEndpointRaiPolicyResource
+ WorkspaceEndpointRaiPolicyCollection collection = endpointResourcePropertiesBasicResource.GetWorkspaceEndpointRaiPolicies();
+
+ // invoke the operation and iterate over the result
+ await foreach (WorkspaceEndpointRaiPolicyResource item in collection.GetAllAsync())
+ {
+ // the variable item is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiPolicyPropertiesBasicResourceData resourceData = item.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get Rai policy
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetRaiPolicy()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/RaiPolicy/get.json
+ // this example is just showing the usage of "RaiPolicy_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this EndpointResourcePropertiesBasicResource created on azure
+ // for more information of creating EndpointResourcePropertiesBasicResource, please refer to the document of EndpointResourcePropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string endpointName = "Azure.OpenAI";
+ ResourceIdentifier endpointResourcePropertiesBasicResourceId = EndpointResourcePropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName);
+ EndpointResourcePropertiesBasicResource endpointResourcePropertiesBasicResource = client.GetEndpointResourcePropertiesBasicResource(endpointResourcePropertiesBasicResourceId);
+
+ // get the collection of this WorkspaceEndpointRaiPolicyResource
+ WorkspaceEndpointRaiPolicyCollection collection = endpointResourcePropertiesBasicResource.GetWorkspaceEndpointRaiPolicies();
+
+ // invoke the operation
+ string raiPolicyName = "raiPolicyName";
+ WorkspaceEndpointRaiPolicyResource result = await collection.GetAsync(raiPolicyName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiPolicyPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Get Rai policy
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Exists_GetRaiPolicy()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/RaiPolicy/get.json
+ // this example is just showing the usage of "RaiPolicy_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this EndpointResourcePropertiesBasicResource created on azure
+ // for more information of creating EndpointResourcePropertiesBasicResource, please refer to the document of EndpointResourcePropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string endpointName = "Azure.OpenAI";
+ ResourceIdentifier endpointResourcePropertiesBasicResourceId = EndpointResourcePropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName);
+ EndpointResourcePropertiesBasicResource endpointResourcePropertiesBasicResource = client.GetEndpointResourcePropertiesBasicResource(endpointResourcePropertiesBasicResourceId);
+
+ // get the collection of this WorkspaceEndpointRaiPolicyResource
+ WorkspaceEndpointRaiPolicyCollection collection = endpointResourcePropertiesBasicResource.GetWorkspaceEndpointRaiPolicies();
+
+ // invoke the operation
+ string raiPolicyName = "raiPolicyName";
+ bool result = await collection.ExistsAsync(raiPolicyName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ // Get Rai policy
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task GetIfExists_GetRaiPolicy()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/RaiPolicy/get.json
+ // this example is just showing the usage of "RaiPolicy_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this EndpointResourcePropertiesBasicResource created on azure
+ // for more information of creating EndpointResourcePropertiesBasicResource, please refer to the document of EndpointResourcePropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string endpointName = "Azure.OpenAI";
+ ResourceIdentifier endpointResourcePropertiesBasicResourceId = EndpointResourcePropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName);
+ EndpointResourcePropertiesBasicResource endpointResourcePropertiesBasicResource = client.GetEndpointResourcePropertiesBasicResource(endpointResourcePropertiesBasicResourceId);
+
+ // get the collection of this WorkspaceEndpointRaiPolicyResource
+ WorkspaceEndpointRaiPolicyCollection collection = endpointResourcePropertiesBasicResource.GetWorkspaceEndpointRaiPolicies();
+
+ // invoke the operation
+ string raiPolicyName = "raiPolicyName";
+ NullableResponse response = await collection.GetIfExistsAsync(raiPolicyName);
+ WorkspaceEndpointRaiPolicyResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine($"Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiPolicyPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+
+ // Create Rai policy
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task CreateOrUpdate_CreateRaiPolicy()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/RaiPolicy/create.json
+ // this example is just showing the usage of "RaiPolicy_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this EndpointResourcePropertiesBasicResource created on azure
+ // for more information of creating EndpointResourcePropertiesBasicResource, please refer to the document of EndpointResourcePropertiesBasicResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string endpointName = "Azure.OpenAI";
+ ResourceIdentifier endpointResourcePropertiesBasicResourceId = EndpointResourcePropertiesBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName);
+ EndpointResourcePropertiesBasicResource endpointResourcePropertiesBasicResource = client.GetEndpointResourcePropertiesBasicResource(endpointResourcePropertiesBasicResourceId);
+
+ // get the collection of this WorkspaceEndpointRaiPolicyResource
+ WorkspaceEndpointRaiPolicyCollection collection = endpointResourcePropertiesBasicResource.GetWorkspaceEndpointRaiPolicies();
+
+ // invoke the operation
+ string raiPolicyName = "raiPolicyName";
+ RaiPolicyPropertiesBasicResourceData data = new RaiPolicyPropertiesBasicResourceData(new RaiPolicyProperties()
+ {
+ BasePolicyName = "112",
+ CompletionBlocklists =
+{
+new RaiBlocklistConfig()
+{
+Blocking = false,
+BlocklistName = "blocklistName",
+}
+},
+ ContentFilters =
+{
+new RaiPolicyContentFilter()
+{
+AllowedContentLevel = AllowedContentLevel.Low,
+Blocking = false,
+Enabled = false,
+Name = "policyName",
+Source = RaiPolicyContentSource.Prompt,
+}
+},
+ Mode = RaiPolicyMode.Blocking,
+ PromptBlocklists =
+{
+new RaiBlocklistConfig()
+{
+Blocking = false,
+BlocklistName = "blocklistName",
+}
+},
+ PolicyType = RaiPolicyType.SystemManaged,
+ });
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, raiPolicyName, data);
+ WorkspaceEndpointRaiPolicyResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiPolicyPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEndpointRaiPolicyResource.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEndpointRaiPolicyResource.cs
new file mode 100644
index 0000000000000..fc3d2ae838bc8
--- /dev/null
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/samples/Generated/Samples/Sample_WorkspaceEndpointRaiPolicyResource.cs
@@ -0,0 +1,147 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Identity;
+using Azure.ResourceManager.MachineLearning.Models;
+
+namespace Azure.ResourceManager.MachineLearning.Samples
+{
+ public partial class Sample_WorkspaceEndpointRaiPolicyResource
+ {
+ // Delete Rai policy
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Delete_DeleteRaiPolicy()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/RaiPolicy/delete.json
+ // this example is just showing the usage of "RaiPolicy_Delete" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this WorkspaceEndpointRaiPolicyResource created on azure
+ // for more information of creating WorkspaceEndpointRaiPolicyResource, please refer to the document of WorkspaceEndpointRaiPolicyResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string endpointName = "Azure.OpenAI";
+ string raiPolicyName = "raiPolicyName";
+ ResourceIdentifier workspaceEndpointRaiPolicyResourceId = WorkspaceEndpointRaiPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName, raiPolicyName);
+ WorkspaceEndpointRaiPolicyResource workspaceEndpointRaiPolicy = client.GetWorkspaceEndpointRaiPolicyResource(workspaceEndpointRaiPolicyResourceId);
+
+ // invoke the operation
+ await workspaceEndpointRaiPolicy.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine($"Succeeded");
+ }
+
+ // Get Rai policy
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Get_GetRaiPolicy()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/RaiPolicy/get.json
+ // this example is just showing the usage of "RaiPolicy_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this WorkspaceEndpointRaiPolicyResource created on azure
+ // for more information of creating WorkspaceEndpointRaiPolicyResource, please refer to the document of WorkspaceEndpointRaiPolicyResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string endpointName = "Azure.OpenAI";
+ string raiPolicyName = "raiPolicyName";
+ ResourceIdentifier workspaceEndpointRaiPolicyResourceId = WorkspaceEndpointRaiPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName, raiPolicyName);
+ WorkspaceEndpointRaiPolicyResource workspaceEndpointRaiPolicy = client.GetWorkspaceEndpointRaiPolicyResource(workspaceEndpointRaiPolicyResourceId);
+
+ // invoke the operation
+ WorkspaceEndpointRaiPolicyResource result = await workspaceEndpointRaiPolicy.GetAsync();
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiPolicyPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+
+ // Create Rai policy
+ [NUnit.Framework.Test]
+ [NUnit.Framework.Ignore("Only verifying that the sample builds")]
+ public async Task Update_CreateRaiPolicy()
+ {
+ // Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/preview/2024-07-01-preview/examples/Endpoint/RaiPolicy/create.json
+ // this example is just showing the usage of "RaiPolicy_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this WorkspaceEndpointRaiPolicyResource created on azure
+ // for more information of creating WorkspaceEndpointRaiPolicyResource, please refer to the document of WorkspaceEndpointRaiPolicyResource
+ string subscriptionId = "00000000-1111-2222-3333-444444444444";
+ string resourceGroupName = "test-rg";
+ string workspaceName = "aml-workspace-name";
+ string endpointName = "Azure.OpenAI";
+ string raiPolicyName = "raiPolicyName";
+ ResourceIdentifier workspaceEndpointRaiPolicyResourceId = WorkspaceEndpointRaiPolicyResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName, raiPolicyName);
+ WorkspaceEndpointRaiPolicyResource workspaceEndpointRaiPolicy = client.GetWorkspaceEndpointRaiPolicyResource(workspaceEndpointRaiPolicyResourceId);
+
+ // invoke the operation
+ RaiPolicyPropertiesBasicResourceData data = new RaiPolicyPropertiesBasicResourceData(new RaiPolicyProperties()
+ {
+ BasePolicyName = "112",
+ CompletionBlocklists =
+{
+new RaiBlocklistConfig()
+{
+Blocking = false,
+BlocklistName = "blocklistName",
+}
+},
+ ContentFilters =
+{
+new RaiPolicyContentFilter()
+{
+AllowedContentLevel = AllowedContentLevel.Low,
+Blocking = false,
+Enabled = false,
+Name = "policyName",
+Source = RaiPolicyContentSource.Prompt,
+}
+},
+ Mode = RaiPolicyMode.Blocking,
+ PromptBlocklists =
+{
+new RaiBlocklistConfig()
+{
+Blocking = false,
+BlocklistName = "blocklistName",
+}
+},
+ PolicyType = RaiPolicyType.SystemManaged,
+ });
+ ArmOperation lro = await workspaceEndpointRaiPolicy.UpdateAsync(WaitUntil.Completed, data);
+ WorkspaceEndpointRaiPolicyResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ RaiPolicyPropertiesBasicResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs
index 3b76d382ae248..a99378494fec9 100644
--- a/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs
+++ b/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/src/Generated/ArmMachineLearningModelFactory.cs
@@ -327,13 +327,12 @@ public static MachineLearningCodeVersionData MachineLearningCodeVersionData(Reso
/// The asset description text.
/// The asset property dictionary.
/// Tag dictionary. Tags can be added, removed, and updated.
- /// Specifies the lifecycle setting of managed data asset.
- /// If the name version are system generated (anonymous registration). For types where Stage is defined, when Stage is provided it will be used to populate IsAnonymous.
- /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived.
+ /// If the name version are system generated (anonymous registration).
+ /// Is the asset archived?.
/// Uri where code is located.
/// Provisioning state for the code version.
/// A new instance for mocking.
- public static MachineLearningCodeVersionProperties MachineLearningCodeVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, Uri codeUri = null, RegistryAssetProvisioningState? provisioningState = null)
+ public static MachineLearningCodeVersionProperties MachineLearningCodeVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isAnonymous = null, bool? isArchived = null, Uri codeUri = null, RegistryAssetProvisioningState? provisioningState = null)
{
properties ??= new Dictionary();
tags ??= new Dictionary();
@@ -343,7 +342,6 @@ public static MachineLearningCodeVersionProperties MachineLearningCodeVersionPro
properties,
tags,
serializedAdditionalRawData: null,
- autoDeleteSetting,
isAnonymous,
isArchived,
codeUri,
@@ -442,17 +440,15 @@ public static MachineLearningComponentVersionData MachineLearningComponentVersio
/// The asset description text.
/// The asset property dictionary.
/// Tag dictionary. Tags can be added, removed, and updated.
- /// Specifies the lifecycle setting of managed data asset.
- /// If the name version are system generated (anonymous registration). For types where Stage is defined, when Stage is provided it will be used to populate IsAnonymous.
- /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived.
+ /// If the name version are system generated (anonymous registration).
+ /// Is the asset archived?.
///
/// Defines Component definition details.
/// <see href="https://docs.microsoft.com/en-us/azure/machine-learning/reference-yaml-component-command" />
///
/// Provisioning state for the component version.
- /// Stage in the component lifecycle.
/// A new instance for mocking.
- public static MachineLearningComponentVersionProperties MachineLearningComponentVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, BinaryData componentSpec = null, RegistryAssetProvisioningState? provisioningState = null, string stage = null)
+ public static MachineLearningComponentVersionProperties MachineLearningComponentVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isAnonymous = null, bool? isArchived = null, BinaryData componentSpec = null, RegistryAssetProvisioningState? provisioningState = null)
{
properties ??= new Dictionary();
tags ??= new Dictionary();
@@ -462,12 +458,10 @@ public static MachineLearningComponentVersionProperties MachineLearningComponent
properties,
tags,
serializedAdditionalRawData: null,
- autoDeleteSetting,
isAnonymous,
isArchived,
componentSpec,
- provisioningState,
- stage);
+ provisioningState);
}
/// Initializes a new instance of .
@@ -535,6 +529,28 @@ public static MachineLearningDataVersionData MachineLearningDataVersionData(Reso
serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// Blob reference for consumption details.
+ /// A new instance for mocking.
+ public static GetBlobReferenceSasResponseDto GetBlobReferenceSasResponseDto(GetBlobReferenceForConsumptionDto blobReferenceForConsumption = null)
+ {
+ return new GetBlobReferenceSasResponseDto(blobReferenceForConsumption, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Blob uri, example: https://blob.windows.core.net/Container/Path.
+ ///
+ /// Credential info to access storage account
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , , and .
+ ///
+ /// The ARM id of the storage account.
+ /// A new instance for mocking.
+ public static GetBlobReferenceForConsumptionDto GetBlobReferenceForConsumptionDto(Uri blobUri = null, DataReferenceCredential credential = null, string storageAccountArmId = null)
+ {
+ return new GetBlobReferenceForConsumptionDto(blobUri, credential, storageAccountArmId, serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// The id.
/// The name.
@@ -600,9 +616,8 @@ public static MachineLearningEnvironmentVersionData MachineLearningEnvironmentVe
/// The asset description text.
/// The asset property dictionary.
/// Tag dictionary. Tags can be added, removed, and updated.
- /// Specifies the lifecycle setting of managed data asset.
- /// If the name version are system generated (anonymous registration). For types where Stage is defined, when Stage is provided it will be used to populate IsAnonymous.
- /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived.
+ /// If the name version are system generated (anonymous registration).
+ /// Is the asset archived?.
/// Defines if image needs to be rebuilt based on base image changes.
/// Configuration settings for Docker build context.
///
@@ -618,12 +633,11 @@ public static MachineLearningEnvironmentVersionData MachineLearningEnvironmentVe
/// <seealso href="https://docs.microsoft.com/en-us/azure/machine-learning/how-to-deploy-custom-docker-image#use-a-custom-base-image" />
///
/// Defines configuration specific to inference.
- /// Intellectual Property details. Used if environment is an Intellectual Property.
/// The OS type of the environment.
/// Provisioning state for the environment version.
/// Stage in the environment lifecycle assigned to this environment.
/// A new instance for mocking.
- public static MachineLearningEnvironmentVersionProperties MachineLearningEnvironmentVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, AutoRebuildSetting? autoRebuild = null, MachineLearningBuildContext build = null, string condaFile = null, MachineLearningEnvironmentType? environmentType = null, string image = null, MachineLearningInferenceContainerProperties inferenceConfig = null, IntellectualProperty intellectualProperty = null, MachineLearningOperatingSystemType? osType = null, RegistryAssetProvisioningState? provisioningState = null, string stage = null)
+ public static MachineLearningEnvironmentVersionProperties MachineLearningEnvironmentVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isAnonymous = null, bool? isArchived = null, AutoRebuildSetting? autoRebuild = null, MachineLearningBuildContext build = null, string condaFile = null, MachineLearningEnvironmentType? environmentType = null, string image = null, MachineLearningInferenceContainerProperties inferenceConfig = null, MachineLearningOperatingSystemType? osType = null, RegistryAssetProvisioningState? provisioningState = null, string stage = null)
{
properties ??= new Dictionary();
tags ??= new Dictionary();
@@ -633,7 +647,6 @@ public static MachineLearningEnvironmentVersionProperties MachineLearningEnviron
properties,
tags,
serializedAdditionalRawData: null,
- autoDeleteSetting,
isAnonymous,
isArchived,
autoRebuild,
@@ -642,12 +655,50 @@ public static MachineLearningEnvironmentVersionProperties MachineLearningEnviron
environmentType,
image,
inferenceConfig,
- intellectualProperty,
osType,
provisioningState,
stage);
}
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// [Required] Additional attributes of the entity.
+ /// A new instance for mocking.
+ public static MarketplaceSubscriptionData MarketplaceSubscriptionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MarketplaceSubscriptionProperties properties = null)
+ {
+ return new MarketplaceSubscriptionData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Marketplace Plan associated with the Marketplace Subscription.
+ /// Current status of the Marketplace Subscription.
+ /// [Required] Target Marketplace Model ID to create a Marketplace Subscription for.
+ /// Provisioning State of the Marketplace Subscription.
+ /// A new instance for mocking.
+ public static MarketplaceSubscriptionProperties MarketplaceSubscriptionProperties(MarketplacePlan marketplacePlan = null, MarketplaceSubscriptionStatus? marketplaceSubscriptionStatus = null, string modelId = null, MarketplaceSubscriptionProvisioningState? provisioningState = null)
+ {
+ return new MarketplaceSubscriptionProperties(marketplacePlan, marketplaceSubscriptionStatus, modelId, provisioningState, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The identifying name of the Offer of the Marketplace Plan.
+ /// The identifying name of the Plan of the Marketplace Plan.
+ /// The identifying name of the Publisher of the Marketplace Plan.
+ /// A new instance for mocking.
+ public static MarketplacePlan MarketplacePlan(string offerId = null, string planId = null, string publisherId = null)
+ {
+ return new MarketplacePlan(offerId, planId, publisherId, serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// The id.
/// The name.
@@ -713,18 +764,16 @@ public static MachineLearningModelVersionData MachineLearningModelVersionData(Re
/// The asset description text.
/// The asset property dictionary.
/// Tag dictionary. Tags can be added, removed, and updated.
- /// Specifies the lifecycle setting of managed data asset.
- /// If the name version are system generated (anonymous registration). For types where Stage is defined, when Stage is provided it will be used to populate IsAnonymous.
- /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived.
+ /// If the name version are system generated (anonymous registration).
+ /// Is the asset archived?.
/// Mapping of model flavors to their properties.
- /// Intellectual Property details. Used if model is an Intellectual Property.
/// Name of the training job which produced this model.
/// The storage format for this entity. Used for NCD.
/// The URI path to the model contents.
/// Provisioning state for the model version.
/// Stage in the model lifecycle assigned to this model.
/// A new instance for mocking.
- public static MachineLearningModelVersionProperties MachineLearningModelVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, IDictionary flavors = null, IntellectualProperty intellectualProperty = null, string jobName = null, string modelType = null, Uri modelUri = null, RegistryAssetProvisioningState? provisioningState = null, string stage = null)
+ public static MachineLearningModelVersionProperties MachineLearningModelVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isAnonymous = null, bool? isArchived = null, IDictionary flavors = null, string jobName = null, string modelType = null, Uri modelUri = null, RegistryAssetProvisioningState? provisioningState = null, string stage = null)
{
properties ??= new Dictionary();
tags ??= new Dictionary();
@@ -735,11 +784,9 @@ public static MachineLearningModelVersionProperties MachineLearningModelVersionP
properties,
tags,
serializedAdditionalRawData: null,
- autoDeleteSetting,
isAnonymous,
isArchived,
flavors,
- intellectualProperty,
jobName,
modelType,
modelUri,
@@ -747,80 +794,6 @@ public static MachineLearningModelVersionProperties MachineLearningModelVersionP
stage);
}
- /// Initializes a new instance of .
- ///
- /// Base environment to start with.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include .
- ///
- /// Collection of environment variables.
- ///
- /// [Required] Inferencing server configurations.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , and .
- ///
- /// Collection of inputs.
- /// Model configuration including the mount mode.
- /// Tag dictionary. Tags can be added, removed, and updated.
- /// [Required] Arm ID of the target environment to be created by package operation.
- /// A new instance for mocking.
- public static ModelPackageContent ModelPackageContent(BaseEnvironmentSource baseEnvironmentSource = null, IDictionary environmentVariables = null, InferencingServer inferencingServer = null, IEnumerable inputs = null, ModelConfiguration modelConfiguration = null, IDictionary tags = null, string targetEnvironmentId = null)
- {
- environmentVariables ??= new Dictionary();
- inputs ??= new List();
- tags ??= new Dictionary();
-
- return new ModelPackageContent(
- baseEnvironmentSource,
- environmentVariables,
- inferencingServer,
- inputs?.ToList(),
- modelConfiguration,
- tags,
- targetEnvironmentId,
- serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- ///
- /// Base environment to start with.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include .
- ///
- /// Build id of the image build operation.
- /// Build state of the image build operation.
- /// Collection of environment variables.
- ///
- /// Inferencing server configurations.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , and .
- ///
- /// Collection of inputs.
- /// Log url of the image build operation.
- /// Model configuration including the mount mode.
- /// Tag dictionary. Tags can be added, removed, and updated.
- /// Asset ID of the target environment created by package operation.
- /// A new instance for mocking.
- public static ModelPackageResult ModelPackageResult(BaseEnvironmentSource baseEnvironmentSource = null, string buildId = null, PackageBuildState? buildState = null, IReadOnlyDictionary environmentVariables = null, InferencingServer inferencingServer = null, IEnumerable inputs = null, Uri logUri = null, ModelConfiguration modelConfiguration = null, IReadOnlyDictionary tags = null, string targetEnvironmentId = null)
- {
- environmentVariables ??= new Dictionary();
- inputs ??= new List();
- tags ??= new Dictionary();
-
- return new ModelPackageResult(
- baseEnvironmentSource,
- buildId,
- buildState,
- environmentVariables,
- inferencingServer,
- inputs?.ToList(),
- logUri,
- modelConfiguration,
- tags,
- targetEnvironmentId,
- serializedAdditionalRawData: null);
- }
-
/// Initializes a new instance of .
/// The id.
/// The name.
@@ -938,7 +911,7 @@ public static MachineLearningBatchDeploymentData MachineLearningBatchDeploymentD
/// Initializes a new instance of .
/// Code configuration for the endpoint deployment.
/// Description of the endpoint deployment.
- /// ARM resource ID of the environment specification for the endpoint deployment.
+ /// ARM resource ID or AssetId of the environment specification for the endpoint deployment.
/// Environment variables configuration for the deployment.
/// Property dictionary. Properties can be added, but not removed or altered.
/// Compute target for batch inference operation.
@@ -1012,7 +985,7 @@ public static MachineLearningBatchDeploymentProperties MachineLearningBatchDeplo
///
/// [Required] Additional attributes of the entity.
/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , , , and .
+ /// The available derived classes include , , , and .
///
/// A new instance for mocking.
public static MachineLearningDatastoreData MachineLearningDatastoreData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningDatastoreProperties properties = null)
@@ -1033,13 +1006,12 @@ public static MachineLearningDatastoreData MachineLearningDatastoreData(Resource
///
/// [Required] Account credentials.
/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , , , , and .
+ /// The available derived classes include , , , and .
///
/// [Required] Storage type backing the datastore.
- /// Intellectual Property details.
/// Readonly property to indicate if datastore is the workspace default datastore.
/// A new instance for mocking.
- public static MachineLearningDatastoreProperties MachineLearningDatastoreProperties(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningDatastoreCredentials credentials = null, string datastoreType = null, IntellectualProperty intellectualProperty = null, bool? isDefault = null)
+ public static MachineLearningDatastoreProperties MachineLearningDatastoreProperties(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningDatastoreCredentials credentials = null, string datastoreType = null, bool? isDefault = null)
{
properties ??= new Dictionary();
tags ??= new Dictionary();
@@ -1051,7 +1023,6 @@ public static MachineLearningDatastoreProperties MachineLearningDatastorePropert
serializedAdditionalRawData: null,
credentials,
datastoreType == null ? default : new DatastoreType(datastoreType),
- intellectualProperty,
isDefault);
}
@@ -1138,16 +1109,15 @@ public static MachineLearningFeatureSetVersionData MachineLearningFeatureSetVers
/// The asset description text.
/// The asset property dictionary.
/// Tag dictionary. Tags can be added, removed, and updated.
- /// Specifies the lifecycle setting of managed data asset.
- /// If the name version are system generated (anonymous registration). For types where Stage is defined, when Stage is provided it will be used to populate IsAnonymous.
- /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived.
+ /// If the name version are system generated (anonymous registration).
+ /// Is the asset archived?.
/// Specifies list of entities.
/// Specifies the materialization settings.
/// Provisioning state for the featureset version container.
/// Specifies the feature spec details.
/// Specifies the asset stage.
/// A new instance for mocking.
- public static MachineLearningFeatureSetVersionProperties MachineLearningFeatureSetVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, IEnumerable entities = null, MaterializationSettings materializationSettings = null, RegistryAssetProvisioningState? provisioningState = null, string specificationPath = null, string stage = null)
+ public static MachineLearningFeatureSetVersionProperties MachineLearningFeatureSetVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isAnonymous = null, bool? isArchived = null, IEnumerable entities = null, MaterializationSettings materializationSettings = null, RegistryAssetProvisioningState? provisioningState = null, string specificationPath = null, string stage = null)
{
properties ??= new Dictionary();
tags ??= new Dictionary();
@@ -1158,7 +1128,6 @@ public static MachineLearningFeatureSetVersionProperties MachineLearningFeatureS
properties,
tags,
serializedAdditionalRawData: null,
- autoDeleteSetting,
isAnonymous,
isArchived,
entities?.ToList(),
@@ -1168,32 +1137,14 @@ public static MachineLearningFeatureSetVersionProperties MachineLearningFeatureS
stage);
}
- /// Initializes a new instance of .
- /// Specifies the created date.
- /// Specifies the display name.
- /// Specifies the duration.
- /// Specifies the experiment id.
- /// Specifies the backfill feature window to be materialized.
- /// Specifies the job id.
- /// Specifies the job status.
- /// Specifies the tags if any.
- /// Specifies the feature store job type.
- /// A new instance for mocking.
- public static MachineLearningFeatureSetJob MachineLearningFeatureSetJob(DateTimeOffset? createdOn = null, string displayName = null, TimeSpan? duration = null, string experimentId = null, FeatureWindow featureWindow = null, string jobId = null, MachineLearningJobStatus? status = null, IReadOnlyDictionary tags = null, FeatureStoreJobType? featureStoreJobType = null)
+ /// Initializes a new instance of .
+ /// List of jobs submitted as part of the backfill request.
+ /// A new instance for mocking.
+ public static FeaturesetVersionBackfillResponse FeaturesetVersionBackfillResponse(IEnumerable jobIds = null)
{
- tags ??= new Dictionary();
+ jobIds ??= new List();
- return new MachineLearningFeatureSetJob(
- createdOn,
- displayName,
- duration,
- experimentId,
- featureWindow,
- jobId,
- status,
- tags,
- featureStoreJobType,
- serializedAdditionalRawData: null);
+ return new FeaturesetVersionBackfillResponse(jobIds?.ToList(), serializedAdditionalRawData: null);
}
/// Initializes a new instance of .
@@ -1261,14 +1212,13 @@ public static MachineLearningFeaturestoreEntityVersionData MachineLearningFeatur
/// The asset description text.
/// The asset property dictionary.
/// Tag dictionary. Tags can be added, removed, and updated.
- /// Specifies the lifecycle setting of managed data asset.
- /// If the name version are system generated (anonymous registration). For types where Stage is defined, when Stage is provided it will be used to populate IsAnonymous.
- /// Is the asset archived? For types where Stage is defined, when Stage is provided it will be used to populate IsArchived.
+ /// If the name version are system generated (anonymous registration).
+ /// Is the asset archived?.
/// Specifies index columns.
/// Provisioning state for the featurestore entity version.
/// Specifies the asset stage.
/// A new instance for mocking.
- public static MachineLearningFeatureStoreEntityVersionProperties MachineLearningFeatureStoreEntityVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, AutoDeleteSetting autoDeleteSetting = null, bool? isAnonymous = null, bool? isArchived = null, IEnumerable indexColumns = null, RegistryAssetProvisioningState? provisioningState = null, string stage = null)
+ public static MachineLearningFeatureStoreEntityVersionProperties MachineLearningFeatureStoreEntityVersionProperties(string description = null, IDictionary properties = null, IDictionary tags = null, bool? isAnonymous = null, bool? isArchived = null, IEnumerable indexColumns = null, RegistryAssetProvisioningState? provisioningState = null, string stage = null)
{
properties ??= new Dictionary();
tags ??= new Dictionary();
@@ -1279,7 +1229,6 @@ public static MachineLearningFeatureStoreEntityVersionProperties MachineLearning
properties,
tags,
serializedAdditionalRawData: null,
- autoDeleteSetting,
isAnonymous,
isArchived,
indexColumns?.ToList(),
@@ -1295,7 +1244,7 @@ public static MachineLearningFeatureStoreEntityVersionProperties MachineLearning
///
/// [Required] Additional attributes of the entity.
/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , , , and .
+ /// The available derived classes include , , , , and .
///
/// A new instance for mocking.
public static MachineLearningJobData MachineLearningJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningJobProperties properties = null)
@@ -1326,18 +1275,16 @@ public static MachineLearningJobData MachineLearningJobData(ResourceIdentifier i
/// Is the asset archived?.
/// [Required] Specifies the type of job.
/// Notification setting for the job.
- /// Configuration for secrets to be made available during runtime.
///
/// List of JobEndpoints.
/// For local jobs, a job endpoint will have an endpoint value of FileStreamObject.
///
/// Status of the job.
/// A new instance for mocking.
- public static MachineLearningJobProperties MachineLearningJobProperties(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, string jobType = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null)
+ public static MachineLearningJobProperties MachineLearningJobProperties(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, string jobType = null, NotificationSetting notificationSetting = null, IDictionary services = null, MachineLearningJobStatus? status = null)
{
properties ??= new Dictionary();
tags ??= new Dictionary();
- secretsConfiguration ??= new Dictionary();
services ??= new Dictionary();
return new MachineLearningJobProperties(
@@ -1353,7 +1300,6 @@ public static MachineLearningJobProperties MachineLearningJobProperties(string d
isArchived,
jobType == null ? default : new JobType(jobType),
notificationSetting,
- secretsConfiguration,
services,
status);
}
@@ -1368,7 +1314,7 @@ public static MachineLearningJobProperties MachineLearningJobProperties(string d
/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include .
///
- /// Port for endpoint set by user.
+ /// Port for endpoint.
/// Additional properties to set on the endpoint.
/// Status of endpoint.
/// A new instance for mocking.
@@ -1387,142 +1333,6 @@ public static MachineLearningJobService MachineLearningJobService(string endpoin
serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// [Required] Additional attributes of the entity.
- /// A new instance for mocking.
- public static MachineLearningLabelingJobData MachineLearningLabelingJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, LabelingJobProperties properties = null)
- {
- return new MachineLearningLabelingJobData(
- id,
- name,
- resourceType,
- systemData,
- properties,
- serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// The asset description text.
- /// The asset property dictionary.
- /// Tag dictionary. Tags can be added, removed, and updated.
- /// ARM resource ID of the component resource.
- /// ARM resource ID of the compute resource.
- /// Display name of job.
- /// The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment.
- ///
- /// Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null.
- /// Defaults to AmlToken if null.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , and .
- ///
- /// Is the asset archived?.
- /// Notification setting for the job.
- /// Configuration for secrets to be made available during runtime.
- ///
- /// List of JobEndpoints.
- /// For local jobs, a job endpoint will have an endpoint value of FileStreamObject.
- ///
- /// Status of the job.
- /// Created time of the job in UTC timezone.
- /// Configuration of data used in the job.
- /// Labeling instructions of the job.
- /// Label categories of the job.
- ///
- /// Media type specific properties in the job.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include and .
- ///
- ///
- /// Configuration of MLAssist feature in the job.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include and .
- ///
- /// Progress metrics of the job.
- /// Internal id of the job(Previously called project).
- /// Specifies the labeling job provisioning state.
- /// Status messages of the job.
- /// A new instance for mocking.
- public static LabelingJobProperties LabelingJobProperties(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, DateTimeOffset? createdOn = null, LabelingDataConfiguration dataConfiguration = null, Uri jobInstructionsUri = null, IDictionary labelCategories = null, LabelingJobMediaProperties labelingJobMediaProperties = null, MachineLearningAssistConfiguration mlAssistConfiguration = null, ProgressMetrics progressMetrics = null, Guid? projectId = null, JobProvisioningState? provisioningState = null, IEnumerable statusMessages = null)
- {
- properties ??= new Dictionary();
- tags ??= new Dictionary();
- secretsConfiguration ??= new Dictionary();
- services ??= new Dictionary();
- labelCategories ??= new Dictionary();
- statusMessages ??= new List();
-
- return new LabelingJobProperties(
- description,
- properties,
- tags,
- serializedAdditionalRawData: null,
- componentId,
- computeId,
- displayName,
- experimentName,
- identity,
- isArchived,
- JobType.Labeling,
- notificationSetting,
- secretsConfiguration,
- services,
- status,
- createdOn,
- dataConfiguration,
- jobInstructionsUri != null ? new LabelingJobInstructions(jobInstructionsUri, serializedAdditionalRawData: null) : null,
- labelCategories,
- labelingJobMediaProperties,
- mlAssistConfiguration,
- progressMetrics,
- projectId,
- provisioningState,
- statusMessages?.ToList());
- }
-
- /// Initializes a new instance of .
- /// The completed datapoint count.
- /// The time of last successful incremental data refresh in UTC.
- /// The skipped datapoint count.
- /// The total datapoint count.
- /// A new instance for mocking.
- public static ProgressMetrics ProgressMetrics(long? completedDatapointCount = null, DateTimeOffset? incrementalDataLastRefreshOn = null, long? skippedDatapointCount = null, long? totalDatapointCount = null)
- {
- return new ProgressMetrics(completedDatapointCount, incrementalDataLastRefreshOn, skippedDatapointCount, totalDatapointCount, serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// Service-defined message code.
- /// Time in UTC at which the message was created.
- /// Severity level of message.
- /// A human-readable representation of the message code.
- /// A new instance for mocking.
- public static JobStatusMessage JobStatusMessage(string code = null, DateTimeOffset? createdOn = null, JobStatusMessageLevel? level = null, string message = null)
- {
- return new JobStatusMessage(code, createdOn, level, message, serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// The time when the export was completed.
- /// The total number of labeled datapoints exported.
- /// [Required] The format of exported labels, also as the discriminator.
- /// Name and identifier of the job containing exported labels.
- /// The time when the export was requested.
- /// A new instance for mocking.
- public static ExportSummary ExportSummary(DateTimeOffset? endOn = null, long? exportedRowCount = null, string format = null, string labelingJobId = null, DateTimeOffset? startOn = null)
- {
- return new UnknownExportSummary(
- endOn,
- exportedRowCount,
- format == null ? default : new ExportFormatType(format),
- labelingJobId,
- startOn,
- serializedAdditionalRawData: null);
- }
-
/// Initializes a new instance of .
/// The id.
/// The name.
@@ -1630,7 +1440,7 @@ public static MachineLearningOnlineDeploymentData MachineLearningOnlineDeploymen
/// Initializes a new instance of .
/// Code configuration for the endpoint deployment.
/// Description of the endpoint deployment.
- /// ARM resource ID of the environment specification for the endpoint deployment.
+ /// ARM resource ID or AssetId of the environment specification for the endpoint deployment.
/// Environment variables configuration for the deployment.
/// Property dictionary. Properties can be added, but not removed or altered.
/// If true, enables Application Insights logging.
@@ -1762,7 +1572,7 @@ public static MachineLearningScheduleData MachineLearningScheduleData(ResourceId
///
/// [Required] Specifies the action of the schedule
/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , and .
+ /// The available derived classes include , and .
///
/// Display name of schedule.
/// Is the schedule enabled?.
@@ -1790,6 +1600,69 @@ public static MachineLearningScheduleProperties MachineLearningSchedulePropertie
trigger);
}
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The tags.
+ /// The location.
+ /// Managed service identity (system assigned and/or user assigned identities).
+ /// Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type.
+ /// [Required] Additional attributes of the entity.
+ /// Sku details required for ARM contract for Autoscaling.
+ /// A new instance for mocking.
+ public static ServerlessEndpointData ServerlessEndpointData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, ServerlessEndpointProperties properties = null, MachineLearningSku sku = null)
+ {
+ tags ??= new Dictionary();
+
+ return new ServerlessEndpointData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ tags,
+ location,
+ identity,
+ kind,
+ properties,
+ sku,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// [Required] Specifies the authentication mode for the Serverless endpoint.
+ /// Specifies the content safety options. If omitted, the default content safety settings will be configured.
+ /// The current state of the ServerlessEndpoint.
+ /// The inference uri to target when making requests against the serverless endpoint.
+ /// The MarketplaceSubscription Azure ID associated to this ServerlessEndpoint.
+ /// The model settings (model id) for the model being serviced on the ServerlessEndpoint.
+ /// Provisioning state for the endpoint.
+ /// A new instance for mocking.
+ public static ServerlessEndpointProperties ServerlessEndpointProperties(ServerlessInferenceEndpointAuthMode authMode = default, ContentSafetyStatus? contentSafetyStatus = null, ServerlessEndpointState? endpointState = null, ServerlessInferenceEndpoint inferenceEndpoint = null, string marketplaceSubscriptionId = null, string modelId = null, MachineLearningEndpointProvisioningState? provisioningState = null)
+ {
+ return new ServerlessEndpointProperties(
+ authMode,
+ contentSafetyStatus.HasValue ? new ContentSafety(contentSafetyStatus.Value, serializedAdditionalRawData: null) : null,
+ endpointState,
+ inferenceEndpoint,
+ marketplaceSubscriptionId,
+ modelId != null ? new ModelSettings(modelId, serializedAdditionalRawData: null) : null,
+ provisioningState,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Specifies any required headers to target this serverless endpoint.
+ /// [Required] The inference uri to target when making requests against the Serverless Endpoint.
+ /// A new instance for mocking.
+ public static ServerlessInferenceEndpoint ServerlessInferenceEndpoint(IReadOnlyDictionary headers = null, Uri uri = null)
+ {
+ headers ??= new Dictionary();
+
+ return new ServerlessInferenceEndpoint(headers, uri, serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// The id.
/// The name.
@@ -1803,18 +1676,20 @@ public static MachineLearningScheduleProperties MachineLearningSchedulePropertie
/// Discovery URL for the Registry.
/// IntellectualPropertyPublisher for the registry.
/// ResourceId of the managed RG if the registry has system created resources.
+ /// Managed resource group specific settings.
/// MLFlow Registry URI for the Registry.
- /// Private endpoint connections info used for pending connections in private link portal.
+ /// Private endpoint connections info used for pending connections in private link portal.
///
/// Is the Registry accessible from the internet?
/// Possible values: "Enabled" or "Disabled"
///
/// Details of each region the registry is in.
/// A new instance for mocking.
- public static MachineLearningRegistryData MachineLearningRegistryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningSku sku = null, Uri discoveryUri = null, string intellectualPropertyPublisher = null, ResourceIdentifier managedResourceId = null, Uri mlFlowRegistryUri = null, IEnumerable privateEndpointConnections = null, string publicNetworkAccess = null, IEnumerable regionDetails = null)
+ public static MachineLearningRegistryData MachineLearningRegistryData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningSku sku = null, Uri discoveryUri = null, string intellectualPropertyPublisher = null, ResourceIdentifier managedResourceId = null, IEnumerable managedResourceGroupAssignedIdentities = null, Uri mlFlowRegistryUri = null, IEnumerable registryPrivateEndpointConnections = null, string publicNetworkAccess = null, IEnumerable regionDetails = null)
{
tags ??= new Dictionary();
- privateEndpointConnections ??= new List();
+ managedResourceGroupAssignedIdentities ??= new List();
+ registryPrivateEndpointConnections ??= new List();
regionDetails ??= new List();
return new MachineLearningRegistryData(
@@ -1830,13 +1705,22 @@ public static MachineLearningRegistryData MachineLearningRegistryData(ResourceId
discoveryUri,
intellectualPropertyPublisher,
managedResourceId != null ? new ArmResourceId(managedResourceId, serializedAdditionalRawData: null) : null,
+ managedResourceGroupAssignedIdentities != null ? new ManagedResourceGroupSettings(managedResourceGroupAssignedIdentities?.ToList(), serializedAdditionalRawData: null) : null,
mlFlowRegistryUri,
- privateEndpointConnections?.ToList(),
+ registryPrivateEndpointConnections?.ToList(),
publicNetworkAccess,
regionDetails?.ToList(),
serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// Identity principal Id.
+ /// A new instance for mocking.
+ public static ManagedResourceGroupAssignedIdentities ManagedResourceGroupAssignedIdentities(Guid? principalId = null)
+ {
+ return new ManagedResourceGroupAssignedIdentities(principalId, serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// The ARM identifier for Private Endpoint.
/// The subnetId that the private endpoint is connected to.
@@ -1875,6 +1759,7 @@ public static MachineLearningUserFeature MachineLearningUserFeature(string id =
///
/// Optional. This field is required to be implemented by the RP because AML is supporting more than one tier.
/// The flag to indicate whether to allow public access when behind VNet.
+ /// The flag to indicate whether we will do role assignment for the workspace MSI on resource group level.
/// ARM id of the application insights associated with this workspace.
///
///
@@ -1882,6 +1767,9 @@ public static MachineLearningUserFeature MachineLearningUserFeature(string id =
/// The description of this workspace.
/// Url for the discovery service to identify regional endpoints for machine learning experimentation services.
///
+ ///
+ /// Flag to tell if simplified CMK should be enabled for this workspace.
+ /// Flag to tell if SoftwareBillOfMaterials should be enabled for this workspace.
///
///
/// Settings for feature store type workspace.
@@ -1889,6 +1777,7 @@ public static MachineLearningUserFeature MachineLearningUserFeature(string id =
/// The flag to signal HBI data in the workspace and reduce diagnostic data collected by the service.
///
/// The compute name for image build.
+ /// The list of IPv4 addresses that are allowed to access the workspace.
/// ARM id of the key vault associated with this workspace. This cannot be changed once the workspace has been created.
///
/// Managed Network settings for a machine learning workspace.
@@ -1899,6 +1788,7 @@ public static MachineLearningUserFeature MachineLearningUserFeature(string id =
/// Count of private connections in the workspace.
/// The current deployment state of workspace resource. The provisioningState is to indicate states for resource provisioning.
/// Whether requests from Public Network are allowed.
+ /// Settings for serverless compute in a workspace.
/// The service managed resource settings.
/// The name of the managed resource group created by workspace RP in customer subscription if the workspace is CMK workspace.
/// The list of shared private link resources in this workspace.
@@ -1912,12 +1802,13 @@ public static MachineLearningUserFeature MachineLearningUserFeature(string id =
/// WorkspaceHub's configuration object.
/// The immutable id associated with this workspace.
/// A new instance for mocking.
- public static MachineLearningWorkspaceData MachineLearningWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningSku sku = null, bool? allowPublicAccessWhenBehindVnet = null, string applicationInsights = null, IEnumerable associatedWorkspaces = null, IEnumerable containerRegistries = null, string containerRegistry = null, string description = null, Uri discoveryUri = null, bool? enableDataIsolation = null, MachineLearningEncryptionSetting encryption = null, IEnumerable existingWorkspaces = null, FeatureStoreSettings featureStoreSettings = null, string friendlyName = null, bool? isHbiWorkspace = null, ResourceIdentifier hubResourceId = null, string imageBuildCompute = null, string keyVault = null, IEnumerable keyVaults = null, ManagedNetworkSettings managedNetwork = null, Uri mlFlowTrackingUri = null, MachineLearningNotebookResourceInfo notebookInfo = null, string primaryUserAssignedIdentity = null, IEnumerable privateEndpointConnections = null, int? privateLinkCount = null, MachineLearningProvisioningState? provisioningState = null, MachineLearningPublicNetworkAccessType? publicNetworkAccessType = null, int? cosmosDbCollectionsThroughput = null, string serviceProvisionedResourceGroup = null, IEnumerable sharedPrivateLinkResources = null, int? softDeleteRetentionInDays = null, string storageAccount = null, IEnumerable storageAccounts = null, bool? isStorageHnsEnabled = null, string systemDatastoresAuthMode = null, Guid? tenantId = null, bool? isV1LegacyMode = null, WorkspaceHubConfig workspaceHubConfig = null, string workspaceId = null)
+ public static MachineLearningWorkspaceData MachineLearningWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, ManagedServiceIdentity identity = null, string kind = null, MachineLearningSku sku = null, bool? allowPublicAccessWhenBehindVnet = null, bool? allowRoleAssignmentOnRG = null, string applicationInsights = null, IEnumerable associatedWorkspaces = null, IEnumerable containerRegistries = null, string containerRegistry = null, string description = null, Uri discoveryUri = null, bool? enableDataIsolation = null, bool? enableServiceSideCMKEncryption = null, bool? enableSimplifiedCmk = null, bool? enableSoftwareBillOfMaterials = null, MachineLearningEncryptionSetting encryption = null, IEnumerable existingWorkspaces = null, FeatureStoreSettings featureStoreSettings = null, string friendlyName = null, bool? isHbiWorkspace = null, ResourceIdentifier hubResourceId = null, string imageBuildCompute = null, IEnumerable ipAllowlist = null, string keyVault = null, IEnumerable keyVaults = null, ManagedNetworkSettings managedNetwork = null, Uri mlFlowTrackingUri = null, MachineLearningNotebookResourceInfo notebookInfo = null, string primaryUserAssignedIdentity = null, IEnumerable privateEndpointConnections = null, int? privateLinkCount = null, MachineLearningProvisioningState? provisioningState = null, MachineLearningPublicNetworkAccessType? publicNetworkAccessType = null, ServerlessComputeSettings serverlessComputeSettings = null, int? cosmosDbCollectionsThroughput = null, string serviceProvisionedResourceGroup = null, IEnumerable sharedPrivateLinkResources = null, int? softDeleteRetentionInDays = null, string storageAccount = null, IEnumerable storageAccounts = null, bool? isStorageHnsEnabled = null, string systemDatastoresAuthMode = null, Guid? tenantId = null, bool? isV1LegacyMode = null, WorkspaceHubConfig workspaceHubConfig = null, string workspaceId = null)
{
tags ??= new Dictionary();
associatedWorkspaces ??= new List();
containerRegistries ??= new List();
existingWorkspaces ??= new List();
+ ipAllowlist ??= new List();
keyVaults ??= new List();
privateEndpointConnections ??= new List();
sharedPrivateLinkResources ??= new List();
@@ -1934,6 +1825,7 @@ public static MachineLearningWorkspaceData MachineLearningWorkspaceData(Resource
kind,
sku,
allowPublicAccessWhenBehindVnet,
+ allowRoleAssignmentOnRG,
applicationInsights,
associatedWorkspaces?.ToList(),
containerRegistries?.ToList(),
@@ -1941,6 +1833,9 @@ public static MachineLearningWorkspaceData MachineLearningWorkspaceData(Resource
description,
discoveryUri,
enableDataIsolation,
+ enableServiceSideCMKEncryption,
+ enableSimplifiedCmk,
+ enableSoftwareBillOfMaterials,
encryption,
existingWorkspaces?.ToList(),
featureStoreSettings,
@@ -1948,6 +1843,7 @@ public static MachineLearningWorkspaceData MachineLearningWorkspaceData(Resource
isHbiWorkspace,
hubResourceId,
imageBuildCompute,
+ ipAllowlist?.ToList(),
keyVault,
keyVaults?.ToList(),
managedNetwork,
@@ -1958,6 +1854,7 @@ public static MachineLearningWorkspaceData MachineLearningWorkspaceData(Resource
privateLinkCount,
provisioningState,
publicNetworkAccessType,
+ serverlessComputeSettings,
cosmosDbCollectionsThroughput != null ? new ServiceManagedResourcesSettings(new CosmosDbSettings(cosmosDbCollectionsThroughput, serializedAdditionalRawData: null), serializedAdditionalRawData: null) : null,
serviceProvisionedResourceGroup,
sharedPrivateLinkResources?.ToList(),
@@ -1978,16 +1875,37 @@ public static MachineLearningWorkspaceData MachineLearningWorkspaceData(Resource
///
///
/// Dictionary of <OutboundRule>
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , and .
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , and .
///
/// Status of the Provisioning for the managed network of a machine learning workspace.
+ ///
/// A new instance for mocking.
- public static ManagedNetworkSettings ManagedNetworkSettings(IsolationMode? isolationMode = null, string networkId = null, IDictionary outboundRules = null, ManagedNetworkProvisionStatus status = null)
+ public static ManagedNetworkSettings ManagedNetworkSettings(IsolationMode? isolationMode = null, string networkId = null, IDictionary outboundRules = null, ManagedNetworkProvisionStatus status = null, IEnumerable changeableIsolationModes = null)
{
outboundRules ??= new Dictionary();
+ changeableIsolationModes ??= new List();
- return new ManagedNetworkSettings(isolationMode, networkId, outboundRules, status, serializedAdditionalRawData: null);
+ return new ManagedNetworkSettings(
+ isolationMode,
+ networkId,
+ outboundRules,
+ status,
+ changeableIsolationModes?.ToList(),
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Category of a managed network Outbound Rule of a machine learning workspace.
+ ///
+ /// Type of a managed network Outbound Rule of a machine learning workspace.
+ /// Type of a managed network Outbound Rule of a machine learning workspace.
+ /// A new instance for mocking.
+ public static MachineLearningOutboundRule MachineLearningOutboundRule(OutboundRuleCategory? category = null, IEnumerable parentRuleNames = null, OutboundRuleStatus? status = null, string outboundRuleType = null)
+ {
+ parentRuleNames ??= new List();
+
+ return new UnknownOutboundRule(category, parentRuleNames?.ToList(), status, outboundRuleType == null ? default : new OutboundRuleType(outboundRuleType), serializedAdditionalRawData: null);
}
/// Initializes a new instance of .
@@ -2057,8 +1975,8 @@ public static MachineLearningPrivateEndpoint MachineLearningPrivateEndpoint(Reso
/// The resourceType.
/// The systemData.
///
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , , , , , , and .
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , , , , , , , , , , and .
///
/// A new instance for mocking.
public static MachineLearningWorkspaceConnectionData MachineLearningWorkspaceConnectionData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningWorkspaceConnectionProperties properties = null)
@@ -2072,6 +1990,246 @@ public static MachineLearningWorkspaceConnectionData MachineLearningWorkspaceCon
serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// Authentication type of the connection target.
+ /// Category of the connection.
+ ///
+ ///
+ ///
+ /// Group based on connection category.
+ ///
+ /// Store user metadata for this connection.
+ ///
+ ///
+ ///
+ ///
+ ///
+ /// A new instance for mocking.
+ public static MachineLearningWorkspaceConnectionProperties MachineLearningWorkspaceConnectionProperties(string authType = null, MachineLearningConnectionCategory? category = null, ResourceIdentifier createdByWorkspaceArmId = null, string error = null, DateTimeOffset? expiryOn = null, ConnectionGroup? group = null, bool? isSharedToAll = null, IDictionary metadata = null, ManagedPERequirement? peRequirement = null, ManagedPEStatus? peStatus = null, IEnumerable sharedUserList = null, string target = null, bool? useWorkspaceManagedIdentity = null)
+ {
+ metadata ??= new Dictionary();
+ sharedUserList ??= new List();
+
+ return new UnknownWorkspaceConnectionPropertiesV2(
+ authType == null ? default : new MachineLearningConnectionAuthType(authType),
+ category,
+ createdByWorkspaceArmId,
+ error,
+ expiryOn,
+ group,
+ isSharedToAll,
+ metadata,
+ peRequirement,
+ peStatus,
+ sharedUserList?.ToList(),
+ target,
+ useWorkspaceManagedIdentity,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ ///
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , , and .
+ ///
+ /// A new instance for mocking.
+ public static EndpointDeploymentResourcePropertiesBasicResourceData EndpointDeploymentResourcePropertiesBasicResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, EndpointDeploymentResourceProperties properties = null)
+ {
+ return new EndpointDeploymentResourcePropertiesBasicResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The failure reason if the creation failed.
+ /// Read-only provision state status property.
+ /// Kind of the deployment.
+ /// A new instance for mocking.
+ public static EndpointDeploymentResourceProperties EndpointDeploymentResourceProperties(string failureReason = null, DefaultResourceProvisioningState? provisioningState = null, string endpointDeploymentResourcePropertiesType = null)
+ {
+ return new UnknownEndpointDeploymentResourceProperties(failureReason, provisioningState, endpointDeploymentResourcePropertiesType, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The capabilities.
+ ///
+ /// The capabilities for finetune models.
+ /// Deployment model format.
+ /// If the model is default version.
+ /// Model lifecycle status.
+ /// The max capacity.
+ /// Deployment model name.
+ /// The list of Model Sku.
+ /// Metadata pertaining to creation and last modification of the resource.
+ /// Optional. Deployment model version. If version is not specified, a default version will be assigned. The default version is different for different models and might change when there is new version available for a model. Default version for a model could be found from list models API.
+ /// A new instance for mocking.
+ public static EndpointModelProperties EndpointModelProperties(IReadOnlyDictionary capabilities = null, EndpointModelDeprecationProperties deprecation = null, IReadOnlyDictionary finetuneCapabilities = null, string format = null, bool? isDefaultVersion = null, ModelLifecycleStatus? lifecycleStatus = null, int? maxCapacity = null, string name = null, IEnumerable skus = null, SystemData systemData = null, string version = null)
+ {
+ capabilities ??= new Dictionary();
+ finetuneCapabilities ??= new Dictionary();
+ skus ??= new List();
+
+ return new EndpointModelProperties(
+ capabilities,
+ deprecation,
+ finetuneCapabilities,
+ format,
+ isDefaultVersion,
+ lifecycleStatus,
+ maxCapacity,
+ name,
+ skus?.ToList(),
+ systemData,
+ version,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The datetime of deprecation of the fineTune Model.
+ /// The datetime of deprecation of the inference Model.
+ /// A new instance for mocking.
+ public static EndpointModelDeprecationProperties EndpointModelDeprecationProperties(DateTimeOffset? fineTune = null, DateTimeOffset? inference = null)
+ {
+ return new EndpointModelDeprecationProperties(fineTune, inference, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ ///
+ /// The list of ARM id for the connection support this SKU.
+ /// The datetime of deprecation of the model SKU.
+ /// The name of the model SKU.
+ ///
+ /// The usage name of the model SKU.
+ /// A new instance for mocking.
+ public static EndpointModelSkuProperties EndpointModelSkuProperties(EndpointModelSkuCapacityProperties capacity = null, IEnumerable connectionIds = null, DateTimeOffset? deprecationOn = null, string name = null, IEnumerable rateLimits = null, string usageName = null)
+ {
+ connectionIds ??= new List();
+ rateLimits ??= new List();
+
+ return new EndpointModelSkuProperties(
+ capacity,
+ connectionIds?.ToList(),
+ deprecationOn,
+ name,
+ rateLimits?.ToList(),
+ usageName,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The default capacity.
+ /// The maximum capacity.
+ /// A new instance for mocking.
+ public static EndpointModelSkuCapacityProperties EndpointModelSkuCapacityProperties(int? @default = null, int? maximum = null)
+ {
+ return new EndpointModelSkuCapacityProperties(@default, maximum, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The count value of Call Rate Limit.
+ /// The renewal period in seconds of Call Rate Limit.
+ /// The call rate limit for the model.
+ /// A new instance for mocking.
+ public static EndpointModelSkuRateLimitProperties EndpointModelSkuRateLimitProperties(float? count = null, float? renewalPeriod = null, IEnumerable rules = null)
+ {
+ rules ??= new List();
+
+ return new EndpointModelSkuRateLimitProperties(count, renewalPeriod, rules?.ToList(), serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ ///
+ /// If the dynamic throttling is enabled.
+ ///
+ ///
+ ///
+ ///
+ /// A new instance for mocking.
+ public static EndpointModelSkuRateLimitRuleProperties EndpointModelSkuRateLimitRuleProperties(float? count = null, bool? dynamicThrottlingEnabled = null, string key = null, IEnumerable matchPatterns = null, float? minCount = null, float? renewalPeriod = null)
+ {
+ matchPatterns ??= new List();
+
+ return new EndpointModelSkuRateLimitRuleProperties(
+ count,
+ dynamicThrottlingEnabled,
+ key,
+ matchPatterns?.ToList(),
+ minCount,
+ renewalPeriod,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ ///
+ ///
+ /// A new instance for mocking.
+ public static EndpointModelSkuRateLimitRulePatternProperties EndpointModelSkuRateLimitRulePatternProperties(string method = null, string path = null)
+ {
+ return new EndpointModelSkuRateLimitRulePatternProperties(method, path, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// RAI Custom Blocklist properties.
+ /// A new instance for mocking.
+ public static RaiBlocklistPropertiesBasicResourceData RaiBlocklistPropertiesBasicResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string raiBlocklistDescription = null)
+ {
+ return new RaiBlocklistPropertiesBasicResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ raiBlocklistDescription != null ? new RaiBlocklistProperties(raiBlocklistDescription, serializedAdditionalRawData: null) : null,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// RAI Custom Blocklist Item properties.
+ /// A new instance for mocking.
+ public static RaiBlocklistItemPropertiesBasicResourceData RaiBlocklistItemPropertiesBasicResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, RaiBlocklistItemProperties properties = null)
+ {
+ return new RaiBlocklistItemPropertiesBasicResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Azure OpenAI Content Filters properties.
+ /// A new instance for mocking.
+ public static RaiPolicyPropertiesBasicResourceData RaiPolicyPropertiesBasicResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, RaiPolicyProperties properties = null)
+ {
+ return new RaiPolicyPropertiesBasicResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
///
/// A new instance for mocking.
@@ -2126,6 +2284,77 @@ public static MachineLearningDiagnoseResult MachineLearningDiagnoseResult(string
return new MachineLearningDiagnoseResult(code, level, message, serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ ///
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , , , and .
+ ///
+ /// A new instance for mocking.
+ public static EndpointResourcePropertiesBasicResourceData EndpointResourcePropertiesBasicResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, EndpointResourceProperties properties = null)
+ {
+ return new EndpointResourcePropertiesBasicResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ properties,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Byo resource id for creating the built-in model service endpoints.
+ /// Deployments info.
+ /// Type of the endpoint.
+ /// Uri of the endpoint.
+ /// The failure reason if the creation failed.
+ ///
+ /// Location of the endpoint.
+ /// Since input dto and when parse endpoint resource share the same contract
+ /// this Location field is just for parse the endpoint resource info
+ /// we won't let customer specify the endpoint resource location since we will create it the same location as workspace
+ ///
+ /// Name of the endpoint.
+ /// Read-only provision state status property.
+ /// Whether the proxy (non-byo) endpoint is a regular endpoint or a OneKeyV2 AI services account endpoint.
+ /// A new instance for mocking.
+ public static EndpointResourceProperties EndpointResourceProperties(ResourceIdentifier associatedResourceId = null, IEnumerable deployments = null, string endpointType = null, Uri endpointUri = null, string failureReason = null, AzureLocation? location = null, string name = null, DefaultResourceProvisioningState? provisioningState = null, bool? shouldCreateAiServicesEndpoint = null)
+ {
+ deployments ??= new List();
+
+ return new UnknownEndpointResourceProperties(
+ associatedResourceId,
+ deployments?.ToList(),
+ endpointType == null ? default : new EndpointType(endpointType),
+ endpointUri,
+ failureReason,
+ location,
+ name,
+ provisioningState,
+ shouldCreateAiServicesEndpoint,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// Dictionary of Keys for the endpoint.
+ /// A new instance for mocking.
+ public static EndpointKeys EndpointKeys(AccountApiKeys keys = null)
+ {
+ return new EndpointKeys(keys, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ ///
+ ///
+ /// A new instance for mocking.
+ public static AccountApiKeys AccountApiKeys(string key1 = null, string key2 = null)
+ {
+ return new AccountApiKeys(key1, key2, serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of .
/// The access key of the workspace app insights.
///
@@ -2251,8 +2480,8 @@ public static MachineLearningFqdnEndpointDetail MachineLearningFqdnEndpointDetai
/// The systemData.
///
/// Outbound Rule for the managed network of a machine learning workspace.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , and .
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , and .
///
/// A new instance for mocking.
public static MachineLearningOutboundRuleBasicData MachineLearningOutboundRuleBasicData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, MachineLearningOutboundRule properties = null)
@@ -2510,10 +2739,31 @@ public static MachineLearningComputeInstanceSshSettings MachineLearningComputeIn
/// Specifies the current operating system image version this compute instance is running on.
/// Specifies the latest available operating system image version.
/// Specifies whether this compute instance is running on the latest operating system image.
+ /// Metadata about the os patching.
/// A new instance for mocking.
- public static ImageMetadata ImageMetadata(string currentImageVersion = null, string latestImageVersion = null, bool? isLatestOSImageVersion = null)
+ public static ImageMetadata ImageMetadata(string currentImageVersion = null, string latestImageVersion = null, bool? isLatestOSImageVersion = null, OSPatchingStatus osPatchingStatus = null)
{
- return new ImageMetadata(currentImageVersion, latestImageVersion, isLatestOSImageVersion, serializedAdditionalRawData: null);
+ return new ImageMetadata(currentImageVersion, latestImageVersion, isLatestOSImageVersion, osPatchingStatus, serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The os patching status.
+ /// Time of the latest os patching.
+ /// Specifies whether this compute instance is pending for reboot to finish os patching.
+ /// Time of scheduled reboot.
+ /// Collection of errors encountered when doing os patching.
+ /// A new instance for mocking.
+ public static OSPatchingStatus OSPatchingStatus(PatchStatus? patchStatus = null, string latestPatchTime = null, bool? rebootPending = null, string scheduledRebootTime = null, IEnumerable osPatchingErrors = null)
+ {
+ osPatchingErrors ??= new List();
+
+ return new OSPatchingStatus(
+ patchStatus,
+ latestPatchTime,
+ rebootPending,
+ scheduledRebootTime,
+ osPatchingErrors?.ToList(),
+ serializedAdditionalRawData: null);
}
/// Initializes a new instance of .
@@ -2565,7 +2815,7 @@ public static MachineLearningComputeInstanceLastOperation MachineLearningCompute
/// Required if triggerType is Cron.
/// [Deprecated] Not used any more.
/// A new instance for mocking.
- public static MachineLearningComputeStartStopSchedule MachineLearningComputeStartStopSchedule(string id = null, MachineLearningComputeProvisioningStatus? provisioningStatus = null, MachineLearningScheduleStatus? status = null, MachineLearningComputePowerAction? action = null, MachineLearningTriggerType? triggerType = null, ComputeStartStopRecurrenceSchedule recurrenceSchedule = null, ComputeStartStopCronSchedule cronSchedule = null, MachineLearningScheduleBase schedule = null)
+ public static MachineLearningComputeStartStopSchedule MachineLearningComputeStartStopSchedule(string id = null, MachineLearningComputeProvisioningStatus? provisioningStatus = null, MachineLearningScheduleStatus? status = null, MachineLearningComputePowerAction? action = null, ComputeTriggerType? triggerType = null, ComputeStartStopRecurrenceSchedule recurrenceSchedule = null, ComputeStartStopCronSchedule cronSchedule = null, MachineLearningScheduleBase schedule = null)
{
return new MachineLearningComputeStartStopSchedule(
id,
@@ -2621,32 +2871,6 @@ public static MachineLearningComputeInstanceDataDisk MachineLearningComputeInsta
return new MachineLearningComputeInstanceDataDisk(caching, diskSizeGB, lun, storageAccountType, serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
- /// Source of the ComputeInstance data mount.
- /// Data source type.
- /// name of the ComputeInstance data mount.
- /// Mount Action.
- /// who this data mount created by.
- /// Path of this data mount.
- /// Mount state.
- /// The time when the disk mounted.
- /// Error of this data mount.
- /// A new instance for mocking.
- public static MachineLearningComputeInstanceDataMount MachineLearningComputeInstanceDataMount(string source = null, MachineLearningSourceType? sourceType = null, string mountName = null, MachineLearningMountAction? mountAction = null, string createdBy = null, string mountPath = null, MachineLearningMountState? mountState = null, DateTimeOffset? mountedOn = null, string error = null)
- {
- return new MachineLearningComputeInstanceDataMount(
- source,
- sourceType,
- mountName,
- mountAction,
- createdBy,
- mountPath,
- mountState,
- mountedOn,
- error,
- serializedAdditionalRawData: null);
- }
-
/// Initializes a new instance of .
/// Location for the underlying compute.
/// The provision state of the cluster. Valid values are Unknown, Updating, Provisioning, Succeeded, and Failed.
@@ -2904,7 +3128,6 @@ public static MachineLearningDatabricksComputeSecrets MachineLearningDatabricksC
///
/// Is the asset archived?.
/// Notification setting for the job.
- /// Configuration for secrets to be made available during runtime.
///
/// List of JobEndpoints.
/// For local jobs, a job endpoint will have an endpoint value of FileStreamObject.
@@ -2920,7 +3143,7 @@ public static MachineLearningDatabricksComputeSecrets MachineLearningDatabricksC
/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
/// The available derived classes include , , , , and .
///
- /// Queue settings for the job.
+ /// Queue settings for the job.
/// Compute Resource configuration for the job.
///
/// [Required] This represents scenario which can be one of Tables/NLP/Image
@@ -2928,11 +3151,10 @@ public static MachineLearningDatabricksComputeSecrets MachineLearningDatabricksC
/// The available derived classes include , , , , , , , , and .
///
/// A new instance for mocking.
- public static AutoMLJob AutoMLJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary secretsConfiguration = null, IDictionary services = null, MachineLearningJobStatus? status = null, string environmentId = null, IDictionary environmentVariables = null, IDictionary outputs = null, JobQueueSettings queueSettings = null, MachineLearningJobResourceConfiguration resources = null, AutoMLVertical taskDetails = null)
+ public static AutoMLJob AutoMLJob(string description = null, IDictionary properties = null, IDictionary tags = null, ResourceIdentifier componentId = null, ResourceIdentifier computeId = null, string displayName = null, string experimentName = null, MachineLearningIdentityConfiguration identity = null, bool? isArchived = null, NotificationSetting notificationSetting = null, IDictionary services = null, MachineLearningJobStatus? status = null, string environmentId = null, IDictionary environmentVariables = null, IDictionary outputs = null, JobTier? queueJobTier = null, MachineLearningJobResourceConfiguration resources = null, AutoMLVertical taskDetails = null)
{
properties ??= new Dictionary();
tags ??= new Dictionary();
- secretsConfiguration ??= new Dictionary();
services ??= new Dictionary();
environmentVariables ??= new Dictionary();
outputs ??= new Dictionary();
@@ -2950,13 +3172,12 @@ public static AutoMLJob AutoMLJob(string description = null, IDictionary
/// [Required] Account credentials.
/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , , , , and .
+ /// The available derived classes include , , , and .
///
- /// Intellectual Property details.
/// Readonly property to indicate if datastore is the workspace default datastore.
/// Storage account name.
/// Storage account container name.
@@ -2980,7 +3200,7 @@ public static AutoMLJob AutoMLJob(string description = null, IDictionary Azure Resource Group name.
/// Azure Subscription Id.
/// A new instance for mocking.
- public static MachineLearningAzureBlobDatastore MachineLearningAzureBlobDatastore(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningDatastoreCredentials credentials = null, IntellectualProperty intellectualProperty = null, bool? isDefault = null, string accountName = null, string containerName = null, string endpoint = null, string protocol = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null, string resourceGroup = null, string subscriptionId = null)
+ public static MachineLearningAzureBlobDatastore MachineLearningAzureBlobDatastore(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningDatastoreCredentials credentials = null, bool? isDefault = null, string accountName = null, string containerName = null, string endpoint = null, string protocol = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null, string resourceGroup = null, string subscriptionId = null)
{
properties ??= new Dictionary();
tags ??= new Dictionary();
@@ -2992,7 +3212,6 @@ public static MachineLearningAzureBlobDatastore MachineLearningAzureBlobDatastor
serializedAdditionalRawData: null,
credentials,
DatastoreType.AzureBlob,
- intellectualProperty,
isDefault,
accountName,
containerName,
@@ -3010,16 +3229,15 @@ public static MachineLearningAzureBlobDatastore MachineLearningAzureBlobDatastor
///
/// [Required] Account credentials.
/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , , , , and .
+ /// The available derived classes include , , , and .
///
- /// Intellectual Property details.
/// Readonly property to indicate if datastore is the workspace default datastore.
/// Indicates which identity to use to authenticate service data access to customer's storage.
/// [Required] Azure Data Lake store name.
/// Azure Resource Group name.
/// Azure Subscription Id.
/// A new instance for mocking.
- public static MachineLearningAzureDataLakeGen1Datastore MachineLearningAzureDataLakeGen1Datastore(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningDatastoreCredentials credentials = null, IntellectualProperty intellectualProperty = null, bool? isDefault = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null, string storeName = null, string resourceGroup = null, string subscriptionId = null)
+ public static MachineLearningAzureDataLakeGen1Datastore MachineLearningAzureDataLakeGen1Datastore(string description = null, IDictionary properties = null, IDictionary tags = null, MachineLearningDatastoreCredentials credentials = null, bool? isDefault = null, MachineLearningServiceDataAccessAuthIdentity? serviceDataAccessAuthIdentity = null, string storeName = null, string resourceGroup = null, string subscriptionId = null)
{
properties ??= new Dictionary();
tags ??= new Dictionary();
@@ -3031,7 +3249,6 @@ public static MachineLearningAzureDataLakeGen1Datastore MachineLearningAzureData
serializedAdditionalRawData: null,
credentials,
DatastoreType.AzureDataLakeGen1,
- intellectualProperty,
isDefault,
serviceDataAccessAuthIdentity,
storeName,
@@ -3046,9 +3263,8 @@ public static MachineLearningAzureDataLakeGen1Datastore MachineLearningAzureData
///
/// [Required] Account credentials.
/// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , , , , and .
+ /// The available derived classes include , , , and .
///
- /// Intellectual Property details.
/// Readonly property to indicate if datastore is the workspace default datastore.
/// [Required] Storage account name.
/// Azure cloud endpoint for the storage account.
@@ -3058,7 +3274,7 @@ public static MachineLearningAzureDataLakeGen1Datastore MachineLearningAzureData
/// Azure Resource Group name.
/// Azure Subscription Id.
/// A new