[Automation] Collect examples from azure-sdk-for-net#Azure.ResourceManager.MachineLearning_1.2.1
This commit is contained in:
Родитель
708f9d8ec4
Коммит
1f774d3f8f
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -17,16 +17,19 @@ 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
|
||||
// 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";
|
||||
string id = "string";
|
||||
ResourceIdentifier machineLearningJobResourceId = MachineLearningJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
|
||||
MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId);
|
||||
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 AutoMLJob(new ImageClassification(new MachineLearningTableJobInput(new Uri("string")), new ImageLimitSettings()
|
||||
{
|
||||
MaxTrials = 2,
|
||||
|
@ -99,7 +102,7 @@ MachineLearningJobData data = new MachineLearningJobData(new AutoMLJob(new Image
|
|||
["string"] = "string",
|
||||
},
|
||||
});
|
||||
ArmOperation<MachineLearningJobResource> lro = await machineLearningJob.UpdateAsync(WaitUntil.Completed, data);
|
||||
ArmOperation<MachineLearningJobResource> 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
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -17,20 +17,31 @@ 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
|
||||
// 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";
|
||||
string id = "string";
|
||||
ResourceIdentifier machineLearningJobResourceId = MachineLearningJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
|
||||
MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId);
|
||||
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
|
||||
MachineLearningJobResource result = await machineLearningJob.GetAsync();
|
||||
string id = "string";
|
||||
NullableResponse<MachineLearningJobResource> response = await collection.GetIfExistsAsync(id);
|
||||
MachineLearningJobResource result = response.HasValue ? response.Value : null;
|
||||
|
||||
// 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}");
|
||||
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}");
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -17,16 +17,19 @@ 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
|
||||
// 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";
|
||||
string id = "string";
|
||||
ResourceIdentifier machineLearningJobResourceId = MachineLearningJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
|
||||
MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId);
|
||||
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 MachineLearningCommandJob("string", new ResourceIdentifier("string"))
|
||||
{
|
||||
Resources = new MachineLearningJobResourceConfiguration()
|
||||
|
@ -97,7 +100,7 @@ MachineLearningJobData data = new MachineLearningJobData(new MachineLearningComm
|
|||
["string"] = "string",
|
||||
},
|
||||
});
|
||||
ArmOperation<MachineLearningJobResource> lro = await machineLearningJob.UpdateAsync(WaitUntil.Completed, data);
|
||||
ArmOperation<MachineLearningJobResource> 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
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -17,20 +17,31 @@ 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
|
||||
// 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";
|
||||
string id = "string";
|
||||
ResourceIdentifier machineLearningJobResourceId = MachineLearningJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
|
||||
MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId);
|
||||
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
|
||||
MachineLearningJobResource result = await machineLearningJob.GetAsync();
|
||||
string id = "string";
|
||||
NullableResponse<MachineLearningJobResource> response = await collection.GetIfExistsAsync(id);
|
||||
MachineLearningJobResource result = response.HasValue ? response.Value : null;
|
||||
|
||||
// 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}");
|
||||
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}");
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -17,16 +17,19 @@ 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
|
||||
// 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";
|
||||
string id = "string";
|
||||
ResourceIdentifier machineLearningJobResourceId = MachineLearningJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
|
||||
MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId);
|
||||
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 MachineLearningPipelineJob()
|
||||
{
|
||||
Settings = BinaryData.FromObjectAsJson(new Dictionary<string, object>()
|
||||
|
@ -74,7 +77,7 @@ MachineLearningJobData data = new MachineLearningJobData(new MachineLearningPipe
|
|||
["string"] = "string",
|
||||
},
|
||||
});
|
||||
ArmOperation<MachineLearningJobResource> lro = await machineLearningJob.UpdateAsync(WaitUntil.Completed, data);
|
||||
ArmOperation<MachineLearningJobResource> 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
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -17,20 +17,31 @@ 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
|
||||
// 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";
|
||||
string id = "string";
|
||||
ResourceIdentifier machineLearningJobResourceId = MachineLearningJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
|
||||
MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId);
|
||||
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
|
||||
MachineLearningJobResource result = await machineLearningJob.GetAsync();
|
||||
string id = "string";
|
||||
NullableResponse<MachineLearningJobResource> response = await collection.GetIfExistsAsync(id);
|
||||
MachineLearningJobResource result = response.HasValue ? response.Value : null;
|
||||
|
||||
// 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}");
|
||||
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}");
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -17,16 +17,19 @@ 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
|
||||
// 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";
|
||||
string id = "string";
|
||||
ResourceIdentifier machineLearningJobResourceId = MachineLearningJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
|
||||
MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId);
|
||||
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 MachineLearningSweepJob(BinaryData.FromObjectAsJson(new Dictionary<string, object>()
|
||||
{
|
||||
["string"] = new Dictionary<string, object>()
|
||||
|
@ -93,7 +96,7 @@ MachineLearningJobData data = new MachineLearningJobData(new MachineLearningSwee
|
|||
["string"] = "string",
|
||||
},
|
||||
});
|
||||
ArmOperation<MachineLearningJobResource> lro = await machineLearningJob.UpdateAsync(WaitUntil.Completed, data);
|
||||
ArmOperation<MachineLearningJobResource> 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
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -17,20 +17,31 @@ 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
|
||||
// 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";
|
||||
string id = "string";
|
||||
ResourceIdentifier machineLearningJobResourceId = MachineLearningJobResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, id);
|
||||
MachineLearningJobResource machineLearningJob = client.GetMachineLearningJobResource(machineLearningJobResourceId);
|
||||
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
|
||||
MachineLearningJobResource result = await machineLearningJob.GetAsync();
|
||||
string id = "string";
|
||||
NullableResponse<MachineLearningJobResource> response = await collection.GetIfExistsAsync(id);
|
||||
MachineLearningJobResource result = response.HasValue ? response.Value : null;
|
||||
|
||||
// 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}");
|
||||
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}");
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -15,26 +15,23 @@ 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
|
||||
// this example assumes you already have this MachineLearningOutboundRuleBasicResource created on azure
|
||||
// for more information of creating MachineLearningOutboundRuleBasicResource, please refer to the document of MachineLearningOutboundRuleBasicResource
|
||||
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 MachineLearningOutboundRuleBasicResource
|
||||
MachineLearningOutboundRuleBasicCollection collection = machineLearningWorkspace.GetMachineLearningOutboundRuleBasics();
|
||||
string ruleName = "rule_name_1";
|
||||
ResourceIdentifier machineLearningOutboundRuleBasicResourceId = MachineLearningOutboundRuleBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName);
|
||||
MachineLearningOutboundRuleBasicResource machineLearningOutboundRuleBasic = client.GetMachineLearningOutboundRuleBasicResource(machineLearningOutboundRuleBasicResourceId);
|
||||
|
||||
// invoke the operation
|
||||
string ruleName = "rule_name_1";
|
||||
MachineLearningOutboundRuleBasicData data = new MachineLearningOutboundRuleBasicData(new FqdnOutboundRule()
|
||||
{
|
||||
Destination = "destination_endpoint",
|
||||
Category = OutboundRuleCategory.UserDefined,
|
||||
Status = OutboundRuleStatus.Active,
|
||||
});
|
||||
ArmOperation<MachineLearningOutboundRuleBasicResource> lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, ruleName, data);
|
||||
ArmOperation<MachineLearningOutboundRuleBasicResource> lro = await machineLearningOutboundRuleBasic.UpdateAsync(WaitUntil.Completed, data);
|
||||
MachineLearningOutboundRuleBasicResource result = lro.Value;
|
||||
|
||||
// the variable result is a resource, you could call other operations on this instance as well
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -15,31 +15,20 @@ 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
|
||||
// this example assumes you already have this MachineLearningOutboundRuleBasicResource created on azure
|
||||
// for more information of creating MachineLearningOutboundRuleBasicResource, please refer to the document of MachineLearningOutboundRuleBasicResource
|
||||
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 MachineLearningOutboundRuleBasicResource
|
||||
MachineLearningOutboundRuleBasicCollection collection = machineLearningWorkspace.GetMachineLearningOutboundRuleBasics();
|
||||
string ruleName = "name_of_the_fqdn_rule";
|
||||
ResourceIdentifier machineLearningOutboundRuleBasicResourceId = MachineLearningOutboundRuleBasicResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName);
|
||||
MachineLearningOutboundRuleBasicResource machineLearningOutboundRuleBasic = client.GetMachineLearningOutboundRuleBasicResource(machineLearningOutboundRuleBasicResourceId);
|
||||
|
||||
// invoke the operation
|
||||
string ruleName = "name_of_the_fqdn_rule";
|
||||
NullableResponse<MachineLearningOutboundRuleBasicResource> response = await collection.GetIfExistsAsync(ruleName);
|
||||
MachineLearningOutboundRuleBasicResource result = response.HasValue ? response.Value : null;
|
||||
MachineLearningOutboundRuleBasicResource result = await machineLearningOutboundRuleBasic.GetAsync();
|
||||
|
||||
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
|
||||
MachineLearningOutboundRuleBasicData resourceData = result.Data;
|
||||
// for demo we just print out the id
|
||||
Console.WriteLine($"Succeeded on id: {resourceData.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
|
||||
MachineLearningOutboundRuleBasicData resourceData = result.Data;
|
||||
// for demo we just print out the id
|
||||
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -2,9 +2,11 @@ using Azure;
|
|||
using Azure.ResourceManager;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml;
|
||||
using Azure.Core;
|
||||
using Azure.Identity;
|
||||
using Azure.ResourceManager.MachineLearning.Models;
|
||||
using Azure.ResourceManager.Models;
|
||||
using Azure.ResourceManager.MachineLearning;
|
||||
|
||||
// Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/KubernetesOnlineDeployment/get.json
|
||||
|
@ -15,21 +17,32 @@ TokenCredential cred = new DefaultAzureCredential();
|
|||
// authenticate your client
|
||||
ArmClient client = new ArmClient(cred);
|
||||
|
||||
// this example assumes you already have this MachineLearningOnlineDeploymentResource created on azure
|
||||
// for more information of creating MachineLearningOnlineDeploymentResource, please refer to the document of MachineLearningOnlineDeploymentResource
|
||||
// this example assumes you already have this MachineLearningOnlineEndpointResource created on azure
|
||||
// for more information of creating MachineLearningOnlineEndpointResource, please refer to the document of MachineLearningOnlineEndpointResource
|
||||
string subscriptionId = "00000000-1111-2222-3333-444444444444";
|
||||
string resourceGroupName = "test-rg";
|
||||
string workspaceName = "my-aml-workspace";
|
||||
string endpointName = "testEndpointName";
|
||||
string deploymentName = "testDeploymentName";
|
||||
ResourceIdentifier machineLearningOnlineDeploymentResourceId = MachineLearningOnlineDeploymentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName, deploymentName);
|
||||
MachineLearningOnlineDeploymentResource machineLearningOnlineDeployment = client.GetMachineLearningOnlineDeploymentResource(machineLearningOnlineDeploymentResourceId);
|
||||
ResourceIdentifier machineLearningOnlineEndpointResourceId = MachineLearningOnlineEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName);
|
||||
MachineLearningOnlineEndpointResource machineLearningOnlineEndpoint = client.GetMachineLearningOnlineEndpointResource(machineLearningOnlineEndpointResourceId);
|
||||
|
||||
// get the collection of this MachineLearningOnlineDeploymentResource
|
||||
MachineLearningOnlineDeploymentCollection collection = machineLearningOnlineEndpoint.GetMachineLearningOnlineDeployments();
|
||||
|
||||
// invoke the operation
|
||||
MachineLearningOnlineDeploymentResource result = await machineLearningOnlineDeployment.GetAsync();
|
||||
string deploymentName = "testDeploymentName";
|
||||
NullableResponse<MachineLearningOnlineDeploymentResource> response = await collection.GetIfExistsAsync(deploymentName);
|
||||
MachineLearningOnlineDeploymentResource result = response.HasValue ? response.Value : null;
|
||||
|
||||
// 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
|
||||
MachineLearningOnlineDeploymentData resourceData = result.Data;
|
||||
// for demo we just print out the id
|
||||
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
|
||||
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
|
||||
MachineLearningOnlineDeploymentData resourceData = result.Data;
|
||||
// for demo we just print out the id
|
||||
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -2,9 +2,11 @@ using Azure;
|
|||
using Azure.ResourceManager;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using System.Xml;
|
||||
using Azure.Core;
|
||||
using Azure.Identity;
|
||||
using Azure.ResourceManager.MachineLearning.Models;
|
||||
using Azure.ResourceManager.Models;
|
||||
using Azure.ResourceManager.MachineLearning;
|
||||
|
||||
// Generated from example definition: specification/machinelearningservices/resource-manager/Microsoft.MachineLearningServices/stable/2024-04-01/examples/OnlineDeployment/ManagedOnlineDeployment/get.json
|
||||
|
@ -15,21 +17,32 @@ TokenCredential cred = new DefaultAzureCredential();
|
|||
// authenticate your client
|
||||
ArmClient client = new ArmClient(cred);
|
||||
|
||||
// this example assumes you already have this MachineLearningOnlineDeploymentResource created on azure
|
||||
// for more information of creating MachineLearningOnlineDeploymentResource, please refer to the document of MachineLearningOnlineDeploymentResource
|
||||
// this example assumes you already have this MachineLearningOnlineEndpointResource created on azure
|
||||
// for more information of creating MachineLearningOnlineEndpointResource, please refer to the document of MachineLearningOnlineEndpointResource
|
||||
string subscriptionId = "00000000-1111-2222-3333-444444444444";
|
||||
string resourceGroupName = "test-rg";
|
||||
string workspaceName = "my-aml-workspace";
|
||||
string endpointName = "testEndpointName";
|
||||
string deploymentName = "testDeploymentName";
|
||||
ResourceIdentifier machineLearningOnlineDeploymentResourceId = MachineLearningOnlineDeploymentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName, deploymentName);
|
||||
MachineLearningOnlineDeploymentResource machineLearningOnlineDeployment = client.GetMachineLearningOnlineDeploymentResource(machineLearningOnlineDeploymentResourceId);
|
||||
ResourceIdentifier machineLearningOnlineEndpointResourceId = MachineLearningOnlineEndpointResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, endpointName);
|
||||
MachineLearningOnlineEndpointResource machineLearningOnlineEndpoint = client.GetMachineLearningOnlineEndpointResource(machineLearningOnlineEndpointResourceId);
|
||||
|
||||
// get the collection of this MachineLearningOnlineDeploymentResource
|
||||
MachineLearningOnlineDeploymentCollection collection = machineLearningOnlineEndpoint.GetMachineLearningOnlineDeployments();
|
||||
|
||||
// invoke the operation
|
||||
MachineLearningOnlineDeploymentResource result = await machineLearningOnlineDeployment.GetAsync();
|
||||
string deploymentName = "testDeploymentName";
|
||||
NullableResponse<MachineLearningOnlineDeploymentResource> response = await collection.GetIfExistsAsync(deploymentName);
|
||||
MachineLearningOnlineDeploymentResource result = response.HasValue ? response.Value : null;
|
||||
|
||||
// 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
|
||||
MachineLearningOnlineDeploymentData resourceData = result.Data;
|
||||
// for demo we just print out the id
|
||||
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
|
||||
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
|
||||
MachineLearningOnlineDeploymentData resourceData = result.Data;
|
||||
// for demo we just print out the id
|
||||
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -17,19 +17,30 @@ 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
|
||||
// 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";
|
||||
string registryName = "string";
|
||||
ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName);
|
||||
MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId);
|
||||
ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
|
||||
ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
|
||||
|
||||
// get the collection of this MachineLearningRegistryResource
|
||||
MachineLearningRegistryCollection collection = resourceGroupResource.GetMachineLearningRegistries();
|
||||
|
||||
// invoke the operation
|
||||
MachineLearningRegistryResource result = await machineLearningRegistry.GetAsync();
|
||||
string registryName = "string";
|
||||
NullableResponse<MachineLearningRegistryResource> response = await collection.GetIfExistsAsync(registryName);
|
||||
MachineLearningRegistryResource result = response.HasValue ? response.Value : null;
|
||||
|
||||
// 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}");
|
||||
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}");
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -17,19 +17,30 @@ 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
|
||||
// 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";
|
||||
string registryName = "string";
|
||||
ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName);
|
||||
MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId);
|
||||
ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName);
|
||||
ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId);
|
||||
|
||||
// get the collection of this MachineLearningRegistryResource
|
||||
MachineLearningRegistryCollection collection = resourceGroupResource.GetMachineLearningRegistries();
|
||||
|
||||
// invoke the operation
|
||||
MachineLearningRegistryResource result = await machineLearningRegistry.GetAsync();
|
||||
string registryName = "string";
|
||||
NullableResponse<MachineLearningRegistryResource> response = await collection.GetIfExistsAsync(registryName);
|
||||
MachineLearningRegistryResource result = response.HasValue ? response.Value : null;
|
||||
|
||||
// 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}");
|
||||
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}");
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -15,19 +15,16 @@ 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
|
||||
// this example assumes you already have this MachineLearningRegistryCodeContainerResource created on azure
|
||||
// for more information of creating MachineLearningRegistryCodeContainerResource, please refer to the document of MachineLearningRegistryCodeContainerResource
|
||||
string subscriptionId = "00000000-1111-2222-3333-444444444444";
|
||||
string resourceGroupName = "testrg123";
|
||||
string registryName = "testregistry";
|
||||
ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName);
|
||||
MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId);
|
||||
|
||||
// get the collection of this MachineLearningRegistryCodeContainerResource
|
||||
MachineLearningRegistryCodeContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryCodeContainers();
|
||||
string codeName = "testContainer";
|
||||
ResourceIdentifier machineLearningRegistryCodeContainerResourceId = MachineLearningRegistryCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName);
|
||||
MachineLearningRegistryCodeContainerResource machineLearningRegistryCodeContainer = client.GetMachineLearningRegistryCodeContainerResource(machineLearningRegistryCodeContainerResourceId);
|
||||
|
||||
// invoke the operation
|
||||
string codeName = "testContainer";
|
||||
MachineLearningCodeContainerData data = new MachineLearningCodeContainerData(new MachineLearningCodeContainerProperties()
|
||||
{
|
||||
Description = "string",
|
||||
|
@ -37,7 +34,7 @@ MachineLearningCodeContainerData data = new MachineLearningCodeContainerData(new
|
|||
["tag2"] = "value2",
|
||||
},
|
||||
});
|
||||
ArmOperation<MachineLearningRegistryCodeContainerResource> lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, codeName, data);
|
||||
ArmOperation<MachineLearningRegistryCodeContainerResource> lro = await machineLearningRegistryCodeContainer.UpdateAsync(WaitUntil.Completed, data);
|
||||
MachineLearningRegistryCodeContainerResource result = lro.Value;
|
||||
|
||||
// the variable result is a resource, you could call other operations on this instance as well
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
|
@ -15,31 +15,20 @@ 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
|
||||
// this example assumes you already have this MachineLearningRegistryCodeContainerResource created on azure
|
||||
// for more information of creating MachineLearningRegistryCodeContainerResource, please refer to the document of MachineLearningRegistryCodeContainerResource
|
||||
string subscriptionId = "00000000-1111-2222-3333-444444444444";
|
||||
string resourceGroupName = "testrg123";
|
||||
string registryName = "testregistry";
|
||||
ResourceIdentifier machineLearningRegistryResourceId = MachineLearningRegistryResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName);
|
||||
MachineLearningRegistryResource machineLearningRegistry = client.GetMachineLearningRegistryResource(machineLearningRegistryResourceId);
|
||||
|
||||
// get the collection of this MachineLearningRegistryCodeContainerResource
|
||||
MachineLearningRegistryCodeContainerCollection collection = machineLearningRegistry.GetMachineLearningRegistryCodeContainers();
|
||||
string codeName = "testContainer";
|
||||
ResourceIdentifier machineLearningRegistryCodeContainerResourceId = MachineLearningRegistryCodeContainerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, registryName, codeName);
|
||||
MachineLearningRegistryCodeContainerResource machineLearningRegistryCodeContainer = client.GetMachineLearningRegistryCodeContainerResource(machineLearningRegistryCodeContainerResourceId);
|
||||
|
||||
// invoke the operation
|
||||
string codeName = "testContainer";
|
||||
NullableResponse<MachineLearningRegistryCodeContainerResource> response = await collection.GetIfExistsAsync(codeName);
|
||||
MachineLearningRegistryCodeContainerResource result = response.HasValue ? response.Value : null;
|
||||
MachineLearningRegistryCodeContainerResource result = await machineLearningRegistryCodeContainer.GetAsync();
|
||||
|
||||
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
|
||||
MachineLearningCodeContainerData resourceData = result.Data;
|
||||
// for demo we just print out the id
|
||||
Console.WriteLine($"Succeeded on id: {resourceData.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
|
||||
MachineLearningCodeContainerData resourceData = result.Data;
|
||||
// for demo we just print out the id
|
||||
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.0/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
||||
{"sdkUrl": "https://github.com/Azure/azure-sdk-for-net/blob/Azure.ResourceManager.MachineLearning_1.2.1/sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/README.md"}
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче