From 38e1b14df3306ce5a8a592aaed644001b7ba3ffc Mon Sep 17 00:00:00 2001 From: cribe Date: Mon, 4 Nov 2024 16:40:39 -0500 Subject: [PATCH 01/10] 1st try --- .../Azure.Health.Deidentification/tsp-location.yaml | 2 +- .../tsp-location.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/healthdataaiservices/Azure.Health.Deidentification/tsp-location.yaml b/sdk/healthdataaiservices/Azure.Health.Deidentification/tsp-location.yaml index 909f38668483..45bb01beb414 100644 --- a/sdk/healthdataaiservices/Azure.Health.Deidentification/tsp-location.yaml +++ b/sdk/healthdataaiservices/Azure.Health.Deidentification/tsp-location.yaml @@ -1,5 +1,5 @@ additionalDirectories: [] repo: Azure/azure-rest-api-specs -commit: 2771da5baeee73dfd70b2a5f2813a55549c2aa73 +commit: 057370caecbbfbb39c560bc1e9c2ab89da7cf6b6 directory: specification/healthdataaiservices/HealthDataAIServices.DeidServices diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/tsp-location.yaml b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/tsp-location.yaml index 0f1cccefcbd8..38275899ab77 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/tsp-location.yaml +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/tsp-location.yaml @@ -1,3 +1,3 @@ directory: specification/healthdataaiservices/HealthDataAIServices.Management -commit: 0eb061fdfe4d366139b760f9bdf633088b4262cc +commit: 057370caecbbfbb39c560bc1e9c2ab89da7cf6b6 repo: Azure/azure-rest-api-specs From 0a75f7dd080b2884546038d60a6c0cd409f7050b Mon Sep 17 00:00:00 2001 From: cribe Date: Mon, 4 Nov 2024 16:57:33 -0500 Subject: [PATCH 02/10] 1st re-gen --- .../tsp-location.yaml | 2 +- .../Samples/Sample_DeidServiceCollection.cs | 213 ++++++++++++++++++ .../Samples/Sample_DeidServiceResource.cs | 180 +++++++++++++++ ...rvicesPrivateEndpointConnectionResource.cs | 120 ++++++++++ ...ateEndpointConnectionResourceCollection.cs | 209 +++++++++++++++++ .../src/Generated/DeidServiceCollection.cs | 20 +- .../src/Generated/DeidServiceResource.cs | 32 +-- .../HealthDataAIServicesExtensions.cs | 8 +- ...althDataAIServicesResourceGroupResource.cs | 4 +- ...ealthDataAIServicesSubscriptionResource.cs | 4 +- ...rvicesPrivateEndpointConnectionResource.cs | 12 +- ...ateEndpointConnectionResourceCollection.cs | 20 +- .../DeidServicesRestOperations.cs | 2 +- ...rivateEndpointConnectionsRestOperations.cs | 2 +- .../PrivateLinksRestOperations.cs | 2 +- 15 files changed, 776 insertions(+), 54 deletions(-) create mode 100644 sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_DeidServiceCollection.cs create mode 100644 sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_DeidServiceResource.cs create mode 100644 sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_HealthDataAIServicesPrivateEndpointConnectionResource.cs create mode 100644 sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_HealthDataAIServicesPrivateEndpointConnectionResourceCollection.cs diff --git a/sdk/healthdataaiservices/Azure.Health.Deidentification/tsp-location.yaml b/sdk/healthdataaiservices/Azure.Health.Deidentification/tsp-location.yaml index 45bb01beb414..909f38668483 100644 --- a/sdk/healthdataaiservices/Azure.Health.Deidentification/tsp-location.yaml +++ b/sdk/healthdataaiservices/Azure.Health.Deidentification/tsp-location.yaml @@ -1,5 +1,5 @@ additionalDirectories: [] repo: Azure/azure-rest-api-specs -commit: 057370caecbbfbb39c560bc1e9c2ab89da7cf6b6 +commit: 2771da5baeee73dfd70b2a5f2813a55549c2aa73 directory: specification/healthdataaiservices/HealthDataAIServices.DeidServices diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_DeidServiceCollection.cs b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_DeidServiceCollection.cs new file mode 100644 index 000000000000..3167cdcc43f1 --- /dev/null +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_DeidServiceCollection.cs @@ -0,0 +1,213 @@ +// 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.HealthDataAIServices.Models; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.HealthDataAIServices.Samples +{ + public partial class Sample_DeidServiceCollection + { + // DeidServices_Get - generated by [MaximumSet] rule. [stable] + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_DeidServicesGetGeneratedByMaximumSetRuleStable() + { + // Generated from example definition: 2024-09-20/DeidServices_Get_MaximumSet_Gen.json + // this example is just showing the usage of "DeidService_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 = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + string resourceGroupName = "rgopenapi"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this DeidServiceResource + DeidServiceCollection collection = resourceGroupResource.GetDeidServices(); + + // invoke the operation + string deidServiceName = "deidTest"; + DeidServiceResource result = await collection.GetAsync(deidServiceName); + + // 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 + DeidServiceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // DeidServices_Get - generated by [MaximumSet] rule. [stable] + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_DeidServicesGetGeneratedByMaximumSetRuleStable() + { + // Generated from example definition: 2024-09-20/DeidServices_Get_MaximumSet_Gen.json + // this example is just showing the usage of "DeidService_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 = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + string resourceGroupName = "rgopenapi"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this DeidServiceResource + DeidServiceCollection collection = resourceGroupResource.GetDeidServices(); + + // invoke the operation + string deidServiceName = "deidTest"; + bool result = await collection.ExistsAsync(deidServiceName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // DeidServices_Get - generated by [MaximumSet] rule. [stable] + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetIfExists_DeidServicesGetGeneratedByMaximumSetRuleStable() + { + // Generated from example definition: 2024-09-20/DeidServices_Get_MaximumSet_Gen.json + // this example is just showing the usage of "DeidService_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 = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + string resourceGroupName = "rgopenapi"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this DeidServiceResource + DeidServiceCollection collection = resourceGroupResource.GetDeidServices(); + + // invoke the operation + string deidServiceName = "deidTest"; + NullableResponse response = await collection.GetIfExistsAsync(deidServiceName); + DeidServiceResource 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 + DeidServiceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + // DeidServices_ListByResourceGroup - generated by [MaximumSet] rule. [stable] + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_DeidServicesListByResourceGroupGeneratedByMaximumSetRuleStable() + { + // Generated from example definition: 2024-09-20/DeidServices_ListByResourceGroup_MaximumSet_Gen.json + // this example is just showing the usage of "DeidService_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 + 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 = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + string resourceGroupName = "rgopenapi"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this DeidServiceResource + DeidServiceCollection collection = resourceGroupResource.GetDeidServices(); + + // invoke the operation and iterate over the result + await foreach (DeidServiceResource 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 + DeidServiceData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // DeidServices_Create - generated by [MaximumSet] rule. [stable] + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_DeidServicesCreateGeneratedByMaximumSetRuleStable() + { + // Generated from example definition: 2024-09-20/DeidServices_Create_MaximumSet_Gen.json + // this example is just showing the usage of "DeidService_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 ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + string resourceGroupName = "rgopenapi"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this DeidServiceResource + DeidServiceCollection collection = resourceGroupResource.GetDeidServices(); + + // invoke the operation + string deidServiceName = "deidTest"; + DeidServiceData data = new DeidServiceData(new AzureLocation("qwyhvdwcsjulggagdqxlmazcl")) + { + Properties = new DeidServiceProperties() + { + PublicNetworkAccess = HealthDataAIServicesPublicNetworkAccess.Enabled, + }, + Identity = new ManagedServiceIdentity("None") + { + UserAssignedIdentities = +{ +}, + }, + Tags = +{ +}, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, deidServiceName, data); + DeidServiceResource 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 + DeidServiceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_DeidServiceResource.cs b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_DeidServiceResource.cs new file mode 100644 index 000000000000..4f6dfa745efd --- /dev/null +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_DeidServiceResource.cs @@ -0,0 +1,180 @@ +// 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.HealthDataAIServices.Models; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Resources; + +namespace Azure.ResourceManager.HealthDataAIServices.Samples +{ + public partial class Sample_DeidServiceResource + { + // DeidServices_Get - generated by [MaximumSet] rule. [stable] + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_DeidServicesGetGeneratedByMaximumSetRuleStable() + { + // Generated from example definition: 2024-09-20/DeidServices_Get_MaximumSet_Gen.json + // this example is just showing the usage of "DeidService_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 DeidServiceResource created on azure + // for more information of creating DeidServiceResource, please refer to the document of DeidServiceResource + string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + string resourceGroupName = "rgopenapi"; + string deidServiceName = "deidTest"; + ResourceIdentifier deidServiceResourceId = DeidServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName); + DeidServiceResource deidService = client.GetDeidServiceResource(deidServiceResourceId); + + // invoke the operation + DeidServiceResource result = await deidService.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 + DeidServiceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // DeidServices_ListBySubscription - generated by [MaximumSet] rule. [stable] + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetDeidServices_DeidServicesListBySubscriptionGeneratedByMaximumSetRuleStable() + { + // Generated from example definition: 2024-09-20/DeidServices_ListBySubscription_MaximumSet_Gen.json + // this example is just showing the usage of "DeidService_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 + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this SubscriptionResource created on azure + // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource + string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); + SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); + + // invoke the operation and iterate over the result + await foreach (DeidServiceResource item in subscriptionResource.GetDeidServicesAsync()) + { + // 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 + DeidServiceData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine($"Succeeded"); + } + + // DeidServices_Update - generated by [MaximumSet] rule. [stable] + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_DeidServicesUpdateGeneratedByMaximumSetRuleStable() + { + // Generated from example definition: 2024-09-20/DeidServices_Update_MaximumSet_Gen.json + // this example is just showing the usage of "DeidService_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 DeidServiceResource created on azure + // for more information of creating DeidServiceResource, please refer to the document of DeidServiceResource + string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + string resourceGroupName = "rgopenapi"; + string deidServiceName = "deidTest"; + ResourceIdentifier deidServiceResourceId = DeidServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName); + DeidServiceResource deidService = client.GetDeidServiceResource(deidServiceResourceId); + + // invoke the operation + DeidServicePatch patch = new DeidServicePatch() + { + Tags = +{ +}, + Identity = new ManagedServiceIdentity(default), + DeidPropertiesUpdatePublicNetworkAccess = HealthDataAIServicesPublicNetworkAccess.Enabled, + }; + ArmOperation lro = await deidService.UpdateAsync(WaitUntil.Completed, patch); + DeidServiceResource 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 + DeidServiceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // DeidServices_Delete - generated by [MaximumSet] rule. [stable] + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_DeidServicesDeleteGeneratedByMaximumSetRuleStable() + { + // Generated from example definition: 2024-09-20/DeidServices_Delete_MaximumSet_Gen.json + // this example is just showing the usage of "DeidService_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 DeidServiceResource created on azure + // for more information of creating DeidServiceResource, please refer to the document of DeidServiceResource + string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + string resourceGroupName = "rgopenapi"; + string deidServiceName = "deidTest"; + ResourceIdentifier deidServiceResourceId = DeidServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName); + DeidServiceResource deidService = client.GetDeidServiceResource(deidServiceResourceId); + + // invoke the operation + await deidService.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + + // PrivateLinks_ListByDeidService - generated by [MaximumSet] rule. [stable] + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetPrivateLinks_PrivateLinksListByDeidServiceGeneratedByMaximumSetRuleStable() + { + // Generated from example definition: 2024-09-20/PrivateLinks_ListByDeidService_MaximumSet_Gen.json + // this example is just showing the usage of "PrivateLinkResource_ListByDeidService" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details 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 DeidServiceResource created on azure + // for more information of creating DeidServiceResource, please refer to the document of DeidServiceResource + string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + string resourceGroupName = "rgopenapi"; + string deidServiceName = "deidTest"; + ResourceIdentifier deidServiceResourceId = DeidServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName); + DeidServiceResource deidService = client.GetDeidServiceResource(deidServiceResourceId); + + // invoke the operation and iterate over the result + await foreach (HealthDataAIServicesPrivateLinkResourceData item in deidService.GetPrivateLinksAsync()) + { + Console.WriteLine($"Succeeded: {item}"); + } + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_HealthDataAIServicesPrivateEndpointConnectionResource.cs b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_HealthDataAIServicesPrivateEndpointConnectionResource.cs new file mode 100644 index 000000000000..e0ea5a7c350a --- /dev/null +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_HealthDataAIServicesPrivateEndpointConnectionResource.cs @@ -0,0 +1,120 @@ +// 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.HealthDataAIServices.Models; + +namespace Azure.ResourceManager.HealthDataAIServices.Samples +{ + public partial class Sample_HealthDataAIServicesPrivateEndpointConnectionResource + { + // PrivateEndpointConnections_Get - generated by [MaximumSet] rule. [stable] + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_PrivateEndpointConnectionsGetGeneratedByMaximumSetRuleStable() + { + // Generated from example definition: 2024-09-20/PrivateEndpointConnections_Get_MaximumSet_Gen.json + // this example is just showing the usage of "PrivateEndpointConnectionResource_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 HealthDataAIServicesPrivateEndpointConnectionResource created on azure + // for more information of creating HealthDataAIServicesPrivateEndpointConnectionResource, please refer to the document of HealthDataAIServicesPrivateEndpointConnectionResource + string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + string resourceGroupName = "rgopenapi"; + string deidServiceName = "deidTest"; + string privateEndpointConnectionName = "kgwgrrpabvrsrrvpcgcnfmyfgyrl"; + ResourceIdentifier healthDataAIServicesPrivateEndpointConnectionResourceId = HealthDataAIServicesPrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName, privateEndpointConnectionName); + HealthDataAIServicesPrivateEndpointConnectionResource healthDataAIServicesPrivateEndpointConnectionResource = client.GetHealthDataAIServicesPrivateEndpointConnectionResource(healthDataAIServicesPrivateEndpointConnectionResourceId); + + // invoke the operation + HealthDataAIServicesPrivateEndpointConnectionResource result = await healthDataAIServicesPrivateEndpointConnectionResource.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 + HealthDataAIServicesPrivateEndpointConnectionResourceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // PrivateEndpointConnections_Create - generated by [MaximumSet] rule. [stable] + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Update_PrivateEndpointConnectionsCreateGeneratedByMaximumSetRuleStable() + { + // Generated from example definition: 2024-09-20/PrivateEndpointConnections_Create_MaximumSet_Gen.json + // this example is just showing the usage of "PrivateEndpointConnectionResource_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 HealthDataAIServicesPrivateEndpointConnectionResource created on azure + // for more information of creating HealthDataAIServicesPrivateEndpointConnectionResource, please refer to the document of HealthDataAIServicesPrivateEndpointConnectionResource + string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + string resourceGroupName = "rgopenapi"; + string deidServiceName = "deidTest"; + string privateEndpointConnectionName = "kgwgrrpabvrsrrvpcgcnfmyfgyrl"; + ResourceIdentifier healthDataAIServicesPrivateEndpointConnectionResourceId = HealthDataAIServicesPrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName, privateEndpointConnectionName); + HealthDataAIServicesPrivateEndpointConnectionResource healthDataAIServicesPrivateEndpointConnectionResource = client.GetHealthDataAIServicesPrivateEndpointConnectionResource(healthDataAIServicesPrivateEndpointConnectionResourceId); + + // invoke the operation + HealthDataAIServicesPrivateEndpointConnectionResourceData data = new HealthDataAIServicesPrivateEndpointConnectionResourceData() + { + Properties = new PrivateEndpointConnectionProperties(new HealthDataAIServicesPrivateLinkServiceConnectionState() + { + Status = HealthDataAIServicesPrivateEndpointServiceConnectionStatus.Pending, + Description = "xr", + ActionsRequired = "ulb", + }), + }; + ArmOperation lro = await healthDataAIServicesPrivateEndpointConnectionResource.UpdateAsync(WaitUntil.Completed, data); + HealthDataAIServicesPrivateEndpointConnectionResource 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 + HealthDataAIServicesPrivateEndpointConnectionResourceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // PrivateEndpointConnections_Delete - generated by [MaximumSet] rule. [stable] + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Delete_PrivateEndpointConnectionsDeleteGeneratedByMaximumSetRuleStable() + { + // Generated from example definition: 2024-09-20/PrivateEndpointConnections_Delete_MaximumSet_Gen.json + // this example is just showing the usage of "PrivateEndpointConnectionResource_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 HealthDataAIServicesPrivateEndpointConnectionResource created on azure + // for more information of creating HealthDataAIServicesPrivateEndpointConnectionResource, please refer to the document of HealthDataAIServicesPrivateEndpointConnectionResource + string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + string resourceGroupName = "rgopenapi"; + string deidServiceName = "deidTest"; + string privateEndpointConnectionName = "kgwgrrpabvrsrrvpcgcnfmyfgyrl"; + ResourceIdentifier healthDataAIServicesPrivateEndpointConnectionResourceId = HealthDataAIServicesPrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName, privateEndpointConnectionName); + HealthDataAIServicesPrivateEndpointConnectionResource healthDataAIServicesPrivateEndpointConnectionResource = client.GetHealthDataAIServicesPrivateEndpointConnectionResource(healthDataAIServicesPrivateEndpointConnectionResourceId); + + // invoke the operation + await healthDataAIServicesPrivateEndpointConnectionResource.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine($"Succeeded"); + } + } +} diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_HealthDataAIServicesPrivateEndpointConnectionResourceCollection.cs b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_HealthDataAIServicesPrivateEndpointConnectionResourceCollection.cs new file mode 100644 index 000000000000..0f56c6881653 --- /dev/null +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_HealthDataAIServicesPrivateEndpointConnectionResourceCollection.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.HealthDataAIServices.Models; + +namespace Azure.ResourceManager.HealthDataAIServices.Samples +{ + public partial class Sample_HealthDataAIServicesPrivateEndpointConnectionResourceCollection + { + // PrivateEndpointConnections_Get - generated by [MaximumSet] rule. [stable] + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Get_PrivateEndpointConnectionsGetGeneratedByMaximumSetRuleStable() + { + // Generated from example definition: 2024-09-20/PrivateEndpointConnections_Get_MaximumSet_Gen.json + // this example is just showing the usage of "PrivateEndpointConnectionResource_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 DeidServiceResource created on azure + // for more information of creating DeidServiceResource, please refer to the document of DeidServiceResource + string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + string resourceGroupName = "rgopenapi"; + string deidServiceName = "deidTest"; + ResourceIdentifier deidServiceResourceId = DeidServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName); + DeidServiceResource deidService = client.GetDeidServiceResource(deidServiceResourceId); + + // get the collection of this HealthDataAIServicesPrivateEndpointConnectionResource + HealthDataAIServicesPrivateEndpointConnectionResourceCollection collection = deidService.GetHealthDataAIServicesPrivateEndpointConnectionResources(); + + // invoke the operation + string privateEndpointConnectionName = "kgwgrrpabvrsrrvpcgcnfmyfgyrl"; + HealthDataAIServicesPrivateEndpointConnectionResource result = await collection.GetAsync(privateEndpointConnectionName); + + // 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 + HealthDataAIServicesPrivateEndpointConnectionResourceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // PrivateEndpointConnections_Get - generated by [MaximumSet] rule. [stable] + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task Exists_PrivateEndpointConnectionsGetGeneratedByMaximumSetRuleStable() + { + // Generated from example definition: 2024-09-20/PrivateEndpointConnections_Get_MaximumSet_Gen.json + // this example is just showing the usage of "PrivateEndpointConnectionResource_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 DeidServiceResource created on azure + // for more information of creating DeidServiceResource, please refer to the document of DeidServiceResource + string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + string resourceGroupName = "rgopenapi"; + string deidServiceName = "deidTest"; + ResourceIdentifier deidServiceResourceId = DeidServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName); + DeidServiceResource deidService = client.GetDeidServiceResource(deidServiceResourceId); + + // get the collection of this HealthDataAIServicesPrivateEndpointConnectionResource + HealthDataAIServicesPrivateEndpointConnectionResourceCollection collection = deidService.GetHealthDataAIServicesPrivateEndpointConnectionResources(); + + // invoke the operation + string privateEndpointConnectionName = "kgwgrrpabvrsrrvpcgcnfmyfgyrl"; + bool result = await collection.ExistsAsync(privateEndpointConnectionName); + + Console.WriteLine($"Succeeded: {result}"); + } + + // PrivateEndpointConnections_Get - generated by [MaximumSet] rule. [stable] + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetIfExists_PrivateEndpointConnectionsGetGeneratedByMaximumSetRuleStable() + { + // Generated from example definition: 2024-09-20/PrivateEndpointConnections_Get_MaximumSet_Gen.json + // this example is just showing the usage of "PrivateEndpointConnectionResource_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 DeidServiceResource created on azure + // for more information of creating DeidServiceResource, please refer to the document of DeidServiceResource + string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + string resourceGroupName = "rgopenapi"; + string deidServiceName = "deidTest"; + ResourceIdentifier deidServiceResourceId = DeidServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName); + DeidServiceResource deidService = client.GetDeidServiceResource(deidServiceResourceId); + + // get the collection of this HealthDataAIServicesPrivateEndpointConnectionResource + HealthDataAIServicesPrivateEndpointConnectionResourceCollection collection = deidService.GetHealthDataAIServicesPrivateEndpointConnectionResources(); + + // invoke the operation + string privateEndpointConnectionName = "kgwgrrpabvrsrrvpcgcnfmyfgyrl"; + NullableResponse response = await collection.GetIfExistsAsync(privateEndpointConnectionName); + HealthDataAIServicesPrivateEndpointConnectionResource 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 + HealthDataAIServicesPrivateEndpointConnectionResourceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + // PrivateEndpointConnections_Create - generated by [MaximumSet] rule. [stable] + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task CreateOrUpdate_PrivateEndpointConnectionsCreateGeneratedByMaximumSetRuleStable() + { + // Generated from example definition: 2024-09-20/PrivateEndpointConnections_Create_MaximumSet_Gen.json + // this example is just showing the usage of "PrivateEndpointConnectionResource_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 DeidServiceResource created on azure + // for more information of creating DeidServiceResource, please refer to the document of DeidServiceResource + string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + string resourceGroupName = "rgopenapi"; + string deidServiceName = "deidTest"; + ResourceIdentifier deidServiceResourceId = DeidServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName); + DeidServiceResource deidService = client.GetDeidServiceResource(deidServiceResourceId); + + // get the collection of this HealthDataAIServicesPrivateEndpointConnectionResource + HealthDataAIServicesPrivateEndpointConnectionResourceCollection collection = deidService.GetHealthDataAIServicesPrivateEndpointConnectionResources(); + + // invoke the operation + string privateEndpointConnectionName = "kgwgrrpabvrsrrvpcgcnfmyfgyrl"; + HealthDataAIServicesPrivateEndpointConnectionResourceData data = new HealthDataAIServicesPrivateEndpointConnectionResourceData() + { + Properties = new PrivateEndpointConnectionProperties(new HealthDataAIServicesPrivateLinkServiceConnectionState() + { + Status = HealthDataAIServicesPrivateEndpointServiceConnectionStatus.Pending, + Description = "xr", + ActionsRequired = "ulb", + }), + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, privateEndpointConnectionName, data); + HealthDataAIServicesPrivateEndpointConnectionResource 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 + HealthDataAIServicesPrivateEndpointConnectionResourceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + // PrivateEndpointConnections_ListByDeidService - generated by [MaximumSet] rule. [stable] + [NUnit.Framework.Test] + [NUnit.Framework.Ignore("Only verifying that the sample builds")] + public async Task GetAll_PrivateEndpointConnectionsListByDeidServiceGeneratedByMaximumSetRuleStable() + { + // Generated from example definition: 2024-09-20/PrivateEndpointConnections_ListByDeidService_MaximumSet_Gen.json + // this example is just showing the usage of "PrivateEndpointConnectionResource_ListByDeidService" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details 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 DeidServiceResource created on azure + // for more information of creating DeidServiceResource, please refer to the document of DeidServiceResource + string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; + string resourceGroupName = "rgopenapi"; + string deidServiceName = "deidTest"; + ResourceIdentifier deidServiceResourceId = DeidServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName); + DeidServiceResource deidService = client.GetDeidServiceResource(deidServiceResourceId); + + // get the collection of this HealthDataAIServicesPrivateEndpointConnectionResource + HealthDataAIServicesPrivateEndpointConnectionResourceCollection collection = deidService.GetHealthDataAIServicesPrivateEndpointConnectionResources(); + + // invoke the operation and iterate over the result + await foreach (HealthDataAIServicesPrivateEndpointConnectionResource 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 + HealthDataAIServicesPrivateEndpointConnectionResourceData 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/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/DeidServiceCollection.cs b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/DeidServiceCollection.cs index 31a1a2e877a4..b20b4bcfdc4c 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/DeidServiceCollection.cs +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/DeidServiceCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string deidSer /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string deidServiceName, Cancell /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string deidServiceName, Ca /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string deidServiceName, CancellationToken c /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsAsyn /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/DeidServiceResource.cs b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/DeidServiceResource.cs index b8dd37e30c93..d6f949dc6d43 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/DeidServiceResource.cs +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/DeidServiceResource.cs @@ -115,7 +115,7 @@ public virtual HealthDataAIServicesPrivateEndpointConnectionResourceCollection G /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -146,7 +146,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -177,7 +177,7 @@ public virtual Response G /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -217,7 +217,7 @@ public virtual async Task> GetAsync(CancellationTo /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(CancellationToken cancellationT /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -299,7 +299,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -341,7 +341,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -387,7 +387,7 @@ public virtual async Task> UpdateAsync(WaitUnt /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -433,7 +433,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Dei /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// @@ -459,7 +459,7 @@ public virtual AsyncPageable GetPri /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// @@ -485,7 +485,7 @@ public virtual Pageable GetPrivateL /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -547,7 +547,7 @@ public virtual async Task> AddTagAsync(string key, /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -609,7 +609,7 @@ public virtual Response AddTag(string key, string value, Ca /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -666,7 +666,7 @@ public virtual async Task> SetTagsAsync(IDictionar /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -723,7 +723,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -783,7 +783,7 @@ public virtual async Task> RemoveTagAsync(string k /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/Extensions/HealthDataAIServicesExtensions.cs b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/Extensions/HealthDataAIServicesExtensions.cs index 45ed156d13f7..f4368883f476 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/Extensions/HealthDataAIServicesExtensions.cs +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/Extensions/HealthDataAIServicesExtensions.cs @@ -100,7 +100,7 @@ public static DeidServiceCollection GetDeidServices(this ResourceGroupResource r /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -138,7 +138,7 @@ public static async Task> GetDeidServiceAsync(this /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -176,7 +176,7 @@ public static Response GetDeidService(this ResourceGroupRes /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -212,7 +212,7 @@ public static AsyncPageable GetDeidServicesAsync(this Subsc /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/Extensions/MockableHealthDataAIServicesResourceGroupResource.cs b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/Extensions/MockableHealthDataAIServicesResourceGroupResource.cs index 46c6284491dc..c465c7a0b9fa 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/Extensions/MockableHealthDataAIServicesResourceGroupResource.cs +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/Extensions/MockableHealthDataAIServicesResourceGroupResource.cs @@ -53,7 +53,7 @@ public virtual DeidServiceCollection GetDeidServices() /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -84,7 +84,7 @@ public virtual async Task> GetDeidServiceAsync(str /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/Extensions/MockableHealthDataAIServicesSubscriptionResource.cs b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/Extensions/MockableHealthDataAIServicesSubscriptionResource.cs index 1d017dc8651a..d7feae574de9 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/Extensions/MockableHealthDataAIServicesSubscriptionResource.cs +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/Extensions/MockableHealthDataAIServicesSubscriptionResource.cs @@ -52,7 +52,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -82,7 +82,7 @@ public virtual AsyncPageable GetDeidServicesAsync(Cancellat /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/HealthDataAIServicesPrivateEndpointConnectionResource.cs b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/HealthDataAIServicesPrivateEndpointConnectionResource.cs index ff155ae48e36..724425ecd4ce 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/HealthDataAIServicesPrivateEndpointConnectionResource.cs +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/HealthDataAIServicesPrivateEndpointConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response G /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/HealthDataAIServicesPrivateEndpointConnectionResourceCollection.cs b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/HealthDataAIServicesPrivateEndpointConnectionResourceCollection.cs index f8773ad01ed7..5fc550a99eff 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/HealthDataAIServicesPrivateEndpointConnectionResourceCollection.cs +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/HealthDataAIServicesPrivateEndpointConnectionResourceCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response G /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable G /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance /// /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-02-28-preview + /// 2024-09-20 /// /// /// Resource diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/RestOperations/DeidServicesRestOperations.cs b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/RestOperations/DeidServicesRestOperations.cs index d661f81db626..2ee5fd901f75 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/RestOperations/DeidServicesRestOperations.cs +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/RestOperations/DeidServicesRestOperations.cs @@ -32,7 +32,7 @@ public DeidServicesRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-02-28-preview"; + _apiVersion = apiVersion ?? "2024-09-20"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 35fc01f8f437..19cc40141b86 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-02-28-preview"; + _apiVersion = apiVersion ?? "2024-09-20"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/RestOperations/PrivateLinksRestOperations.cs b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/RestOperations/PrivateLinksRestOperations.cs index 129417eaf2fc..f54517d6d489 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/RestOperations/PrivateLinksRestOperations.cs +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Generated/RestOperations/PrivateLinksRestOperations.cs @@ -32,7 +32,7 @@ public PrivateLinksRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-02-28-preview"; + _apiVersion = apiVersion ?? "2024-09-20"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } From 1a2e29121983ddf5ca3d030343b67ee329ce417c Mon Sep 17 00:00:00 2001 From: cribe Date: Tue, 5 Nov 2024 11:43:57 -0500 Subject: [PATCH 03/10] Removed samples already covered in code --- .../Samples/Sample_DeidServiceCollection.cs | 213 ------------------ .../Samples/Sample_DeidServiceResource.cs | 180 --------------- ...rvicesPrivateEndpointConnectionResource.cs | 120 ---------- ...ateEndpointConnectionResourceCollection.cs | 209 ----------------- 4 files changed, 722 deletions(-) delete mode 100644 sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_DeidServiceCollection.cs delete mode 100644 sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_DeidServiceResource.cs delete mode 100644 sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_HealthDataAIServicesPrivateEndpointConnectionResource.cs delete mode 100644 sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_HealthDataAIServicesPrivateEndpointConnectionResourceCollection.cs diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_DeidServiceCollection.cs b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_DeidServiceCollection.cs deleted file mode 100644 index 3167cdcc43f1..000000000000 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_DeidServiceCollection.cs +++ /dev/null @@ -1,213 +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.HealthDataAIServices.Models; -using Azure.ResourceManager.Models; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.HealthDataAIServices.Samples -{ - public partial class Sample_DeidServiceCollection - { - // DeidServices_Get - generated by [MaximumSet] rule. [stable] - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_DeidServicesGetGeneratedByMaximumSetRuleStable() - { - // Generated from example definition: 2024-09-20/DeidServices_Get_MaximumSet_Gen.json - // this example is just showing the usage of "DeidService_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 = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; - string resourceGroupName = "rgopenapi"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this DeidServiceResource - DeidServiceCollection collection = resourceGroupResource.GetDeidServices(); - - // invoke the operation - string deidServiceName = "deidTest"; - DeidServiceResource result = await collection.GetAsync(deidServiceName); - - // 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 - DeidServiceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // DeidServices_Get - generated by [MaximumSet] rule. [stable] - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_DeidServicesGetGeneratedByMaximumSetRuleStable() - { - // Generated from example definition: 2024-09-20/DeidServices_Get_MaximumSet_Gen.json - // this example is just showing the usage of "DeidService_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 = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; - string resourceGroupName = "rgopenapi"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this DeidServiceResource - DeidServiceCollection collection = resourceGroupResource.GetDeidServices(); - - // invoke the operation - string deidServiceName = "deidTest"; - bool result = await collection.ExistsAsync(deidServiceName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // DeidServices_Get - generated by [MaximumSet] rule. [stable] - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetIfExists_DeidServicesGetGeneratedByMaximumSetRuleStable() - { - // Generated from example definition: 2024-09-20/DeidServices_Get_MaximumSet_Gen.json - // this example is just showing the usage of "DeidService_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 = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; - string resourceGroupName = "rgopenapi"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this DeidServiceResource - DeidServiceCollection collection = resourceGroupResource.GetDeidServices(); - - // invoke the operation - string deidServiceName = "deidTest"; - NullableResponse response = await collection.GetIfExistsAsync(deidServiceName); - DeidServiceResource 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 - DeidServiceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } - - // DeidServices_ListByResourceGroup - generated by [MaximumSet] rule. [stable] - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_DeidServicesListByResourceGroupGeneratedByMaximumSetRuleStable() - { - // Generated from example definition: 2024-09-20/DeidServices_ListByResourceGroup_MaximumSet_Gen.json - // this example is just showing the usage of "DeidService_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 - 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 = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; - string resourceGroupName = "rgopenapi"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this DeidServiceResource - DeidServiceCollection collection = resourceGroupResource.GetDeidServices(); - - // invoke the operation and iterate over the result - await foreach (DeidServiceResource 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 - DeidServiceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // DeidServices_Create - generated by [MaximumSet] rule. [stable] - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_DeidServicesCreateGeneratedByMaximumSetRuleStable() - { - // Generated from example definition: 2024-09-20/DeidServices_Create_MaximumSet_Gen.json - // this example is just showing the usage of "DeidService_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 ResourceGroupResource created on azure - // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; - string resourceGroupName = "rgopenapi"; - ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); - ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); - - // get the collection of this DeidServiceResource - DeidServiceCollection collection = resourceGroupResource.GetDeidServices(); - - // invoke the operation - string deidServiceName = "deidTest"; - DeidServiceData data = new DeidServiceData(new AzureLocation("qwyhvdwcsjulggagdqxlmazcl")) - { - Properties = new DeidServiceProperties() - { - PublicNetworkAccess = HealthDataAIServicesPublicNetworkAccess.Enabled, - }, - Identity = new ManagedServiceIdentity("None") - { - UserAssignedIdentities = -{ -}, - }, - Tags = -{ -}, - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, deidServiceName, data); - DeidServiceResource 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 - DeidServiceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } -} diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_DeidServiceResource.cs b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_DeidServiceResource.cs deleted file mode 100644 index 4f6dfa745efd..000000000000 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_DeidServiceResource.cs +++ /dev/null @@ -1,180 +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.HealthDataAIServices.Models; -using Azure.ResourceManager.Models; -using Azure.ResourceManager.Resources; - -namespace Azure.ResourceManager.HealthDataAIServices.Samples -{ - public partial class Sample_DeidServiceResource - { - // DeidServices_Get - generated by [MaximumSet] rule. [stable] - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_DeidServicesGetGeneratedByMaximumSetRuleStable() - { - // Generated from example definition: 2024-09-20/DeidServices_Get_MaximumSet_Gen.json - // this example is just showing the usage of "DeidService_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 DeidServiceResource created on azure - // for more information of creating DeidServiceResource, please refer to the document of DeidServiceResource - string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; - string resourceGroupName = "rgopenapi"; - string deidServiceName = "deidTest"; - ResourceIdentifier deidServiceResourceId = DeidServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName); - DeidServiceResource deidService = client.GetDeidServiceResource(deidServiceResourceId); - - // invoke the operation - DeidServiceResource result = await deidService.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 - DeidServiceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // DeidServices_ListBySubscription - generated by [MaximumSet] rule. [stable] - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetDeidServices_DeidServicesListBySubscriptionGeneratedByMaximumSetRuleStable() - { - // Generated from example definition: 2024-09-20/DeidServices_ListBySubscription_MaximumSet_Gen.json - // this example is just showing the usage of "DeidService_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 - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this SubscriptionResource created on azure - // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; - ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); - SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); - - // invoke the operation and iterate over the result - await foreach (DeidServiceResource item in subscriptionResource.GetDeidServicesAsync()) - { - // 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 - DeidServiceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - - // DeidServices_Update - generated by [MaximumSet] rule. [stable] - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_DeidServicesUpdateGeneratedByMaximumSetRuleStable() - { - // Generated from example definition: 2024-09-20/DeidServices_Update_MaximumSet_Gen.json - // this example is just showing the usage of "DeidService_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 DeidServiceResource created on azure - // for more information of creating DeidServiceResource, please refer to the document of DeidServiceResource - string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; - string resourceGroupName = "rgopenapi"; - string deidServiceName = "deidTest"; - ResourceIdentifier deidServiceResourceId = DeidServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName); - DeidServiceResource deidService = client.GetDeidServiceResource(deidServiceResourceId); - - // invoke the operation - DeidServicePatch patch = new DeidServicePatch() - { - Tags = -{ -}, - Identity = new ManagedServiceIdentity(default), - DeidPropertiesUpdatePublicNetworkAccess = HealthDataAIServicesPublicNetworkAccess.Enabled, - }; - ArmOperation lro = await deidService.UpdateAsync(WaitUntil.Completed, patch); - DeidServiceResource 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 - DeidServiceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // DeidServices_Delete - generated by [MaximumSet] rule. [stable] - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_DeidServicesDeleteGeneratedByMaximumSetRuleStable() - { - // Generated from example definition: 2024-09-20/DeidServices_Delete_MaximumSet_Gen.json - // this example is just showing the usage of "DeidService_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 DeidServiceResource created on azure - // for more information of creating DeidServiceResource, please refer to the document of DeidServiceResource - string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; - string resourceGroupName = "rgopenapi"; - string deidServiceName = "deidTest"; - ResourceIdentifier deidServiceResourceId = DeidServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName); - DeidServiceResource deidService = client.GetDeidServiceResource(deidServiceResourceId); - - // invoke the operation - await deidService.DeleteAsync(WaitUntil.Completed); - - Console.WriteLine($"Succeeded"); - } - - // PrivateLinks_ListByDeidService - generated by [MaximumSet] rule. [stable] - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetPrivateLinks_PrivateLinksListByDeidServiceGeneratedByMaximumSetRuleStable() - { - // Generated from example definition: 2024-09-20/PrivateLinks_ListByDeidService_MaximumSet_Gen.json - // this example is just showing the usage of "PrivateLinkResource_ListByDeidService" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details 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 DeidServiceResource created on azure - // for more information of creating DeidServiceResource, please refer to the document of DeidServiceResource - string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; - string resourceGroupName = "rgopenapi"; - string deidServiceName = "deidTest"; - ResourceIdentifier deidServiceResourceId = DeidServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName); - DeidServiceResource deidService = client.GetDeidServiceResource(deidServiceResourceId); - - // invoke the operation and iterate over the result - await foreach (HealthDataAIServicesPrivateLinkResourceData item in deidService.GetPrivateLinksAsync()) - { - Console.WriteLine($"Succeeded: {item}"); - } - - Console.WriteLine($"Succeeded"); - } - } -} diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_HealthDataAIServicesPrivateEndpointConnectionResource.cs b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_HealthDataAIServicesPrivateEndpointConnectionResource.cs deleted file mode 100644 index e0ea5a7c350a..000000000000 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_HealthDataAIServicesPrivateEndpointConnectionResource.cs +++ /dev/null @@ -1,120 +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.HealthDataAIServices.Models; - -namespace Azure.ResourceManager.HealthDataAIServices.Samples -{ - public partial class Sample_HealthDataAIServicesPrivateEndpointConnectionResource - { - // PrivateEndpointConnections_Get - generated by [MaximumSet] rule. [stable] - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_PrivateEndpointConnectionsGetGeneratedByMaximumSetRuleStable() - { - // Generated from example definition: 2024-09-20/PrivateEndpointConnections_Get_MaximumSet_Gen.json - // this example is just showing the usage of "PrivateEndpointConnectionResource_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 HealthDataAIServicesPrivateEndpointConnectionResource created on azure - // for more information of creating HealthDataAIServicesPrivateEndpointConnectionResource, please refer to the document of HealthDataAIServicesPrivateEndpointConnectionResource - string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; - string resourceGroupName = "rgopenapi"; - string deidServiceName = "deidTest"; - string privateEndpointConnectionName = "kgwgrrpabvrsrrvpcgcnfmyfgyrl"; - ResourceIdentifier healthDataAIServicesPrivateEndpointConnectionResourceId = HealthDataAIServicesPrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName, privateEndpointConnectionName); - HealthDataAIServicesPrivateEndpointConnectionResource healthDataAIServicesPrivateEndpointConnectionResource = client.GetHealthDataAIServicesPrivateEndpointConnectionResource(healthDataAIServicesPrivateEndpointConnectionResourceId); - - // invoke the operation - HealthDataAIServicesPrivateEndpointConnectionResource result = await healthDataAIServicesPrivateEndpointConnectionResource.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 - HealthDataAIServicesPrivateEndpointConnectionResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // PrivateEndpointConnections_Create - generated by [MaximumSet] rule. [stable] - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_PrivateEndpointConnectionsCreateGeneratedByMaximumSetRuleStable() - { - // Generated from example definition: 2024-09-20/PrivateEndpointConnections_Create_MaximumSet_Gen.json - // this example is just showing the usage of "PrivateEndpointConnectionResource_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 HealthDataAIServicesPrivateEndpointConnectionResource created on azure - // for more information of creating HealthDataAIServicesPrivateEndpointConnectionResource, please refer to the document of HealthDataAIServicesPrivateEndpointConnectionResource - string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; - string resourceGroupName = "rgopenapi"; - string deidServiceName = "deidTest"; - string privateEndpointConnectionName = "kgwgrrpabvrsrrvpcgcnfmyfgyrl"; - ResourceIdentifier healthDataAIServicesPrivateEndpointConnectionResourceId = HealthDataAIServicesPrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName, privateEndpointConnectionName); - HealthDataAIServicesPrivateEndpointConnectionResource healthDataAIServicesPrivateEndpointConnectionResource = client.GetHealthDataAIServicesPrivateEndpointConnectionResource(healthDataAIServicesPrivateEndpointConnectionResourceId); - - // invoke the operation - HealthDataAIServicesPrivateEndpointConnectionResourceData data = new HealthDataAIServicesPrivateEndpointConnectionResourceData() - { - Properties = new PrivateEndpointConnectionProperties(new HealthDataAIServicesPrivateLinkServiceConnectionState() - { - Status = HealthDataAIServicesPrivateEndpointServiceConnectionStatus.Pending, - Description = "xr", - ActionsRequired = "ulb", - }), - }; - ArmOperation lro = await healthDataAIServicesPrivateEndpointConnectionResource.UpdateAsync(WaitUntil.Completed, data); - HealthDataAIServicesPrivateEndpointConnectionResource 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 - HealthDataAIServicesPrivateEndpointConnectionResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // PrivateEndpointConnections_Delete - generated by [MaximumSet] rule. [stable] - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_PrivateEndpointConnectionsDeleteGeneratedByMaximumSetRuleStable() - { - // Generated from example definition: 2024-09-20/PrivateEndpointConnections_Delete_MaximumSet_Gen.json - // this example is just showing the usage of "PrivateEndpointConnectionResource_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 HealthDataAIServicesPrivateEndpointConnectionResource created on azure - // for more information of creating HealthDataAIServicesPrivateEndpointConnectionResource, please refer to the document of HealthDataAIServicesPrivateEndpointConnectionResource - string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; - string resourceGroupName = "rgopenapi"; - string deidServiceName = "deidTest"; - string privateEndpointConnectionName = "kgwgrrpabvrsrrvpcgcnfmyfgyrl"; - ResourceIdentifier healthDataAIServicesPrivateEndpointConnectionResourceId = HealthDataAIServicesPrivateEndpointConnectionResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName, privateEndpointConnectionName); - HealthDataAIServicesPrivateEndpointConnectionResource healthDataAIServicesPrivateEndpointConnectionResource = client.GetHealthDataAIServicesPrivateEndpointConnectionResource(healthDataAIServicesPrivateEndpointConnectionResourceId); - - // invoke the operation - await healthDataAIServicesPrivateEndpointConnectionResource.DeleteAsync(WaitUntil.Completed); - - Console.WriteLine($"Succeeded"); - } - } -} diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_HealthDataAIServicesPrivateEndpointConnectionResourceCollection.cs b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_HealthDataAIServicesPrivateEndpointConnectionResourceCollection.cs deleted file mode 100644 index 0f56c6881653..000000000000 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/samples/Generated/Samples/Sample_HealthDataAIServicesPrivateEndpointConnectionResourceCollection.cs +++ /dev/null @@ -1,209 +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.HealthDataAIServices.Models; - -namespace Azure.ResourceManager.HealthDataAIServices.Samples -{ - public partial class Sample_HealthDataAIServicesPrivateEndpointConnectionResourceCollection - { - // PrivateEndpointConnections_Get - generated by [MaximumSet] rule. [stable] - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_PrivateEndpointConnectionsGetGeneratedByMaximumSetRuleStable() - { - // Generated from example definition: 2024-09-20/PrivateEndpointConnections_Get_MaximumSet_Gen.json - // this example is just showing the usage of "PrivateEndpointConnectionResource_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 DeidServiceResource created on azure - // for more information of creating DeidServiceResource, please refer to the document of DeidServiceResource - string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; - string resourceGroupName = "rgopenapi"; - string deidServiceName = "deidTest"; - ResourceIdentifier deidServiceResourceId = DeidServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName); - DeidServiceResource deidService = client.GetDeidServiceResource(deidServiceResourceId); - - // get the collection of this HealthDataAIServicesPrivateEndpointConnectionResource - HealthDataAIServicesPrivateEndpointConnectionResourceCollection collection = deidService.GetHealthDataAIServicesPrivateEndpointConnectionResources(); - - // invoke the operation - string privateEndpointConnectionName = "kgwgrrpabvrsrrvpcgcnfmyfgyrl"; - HealthDataAIServicesPrivateEndpointConnectionResource result = await collection.GetAsync(privateEndpointConnectionName); - - // 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 - HealthDataAIServicesPrivateEndpointConnectionResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // PrivateEndpointConnections_Get - generated by [MaximumSet] rule. [stable] - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_PrivateEndpointConnectionsGetGeneratedByMaximumSetRuleStable() - { - // Generated from example definition: 2024-09-20/PrivateEndpointConnections_Get_MaximumSet_Gen.json - // this example is just showing the usage of "PrivateEndpointConnectionResource_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 DeidServiceResource created on azure - // for more information of creating DeidServiceResource, please refer to the document of DeidServiceResource - string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; - string resourceGroupName = "rgopenapi"; - string deidServiceName = "deidTest"; - ResourceIdentifier deidServiceResourceId = DeidServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName); - DeidServiceResource deidService = client.GetDeidServiceResource(deidServiceResourceId); - - // get the collection of this HealthDataAIServicesPrivateEndpointConnectionResource - HealthDataAIServicesPrivateEndpointConnectionResourceCollection collection = deidService.GetHealthDataAIServicesPrivateEndpointConnectionResources(); - - // invoke the operation - string privateEndpointConnectionName = "kgwgrrpabvrsrrvpcgcnfmyfgyrl"; - bool result = await collection.ExistsAsync(privateEndpointConnectionName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // PrivateEndpointConnections_Get - generated by [MaximumSet] rule. [stable] - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetIfExists_PrivateEndpointConnectionsGetGeneratedByMaximumSetRuleStable() - { - // Generated from example definition: 2024-09-20/PrivateEndpointConnections_Get_MaximumSet_Gen.json - // this example is just showing the usage of "PrivateEndpointConnectionResource_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 DeidServiceResource created on azure - // for more information of creating DeidServiceResource, please refer to the document of DeidServiceResource - string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; - string resourceGroupName = "rgopenapi"; - string deidServiceName = "deidTest"; - ResourceIdentifier deidServiceResourceId = DeidServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName); - DeidServiceResource deidService = client.GetDeidServiceResource(deidServiceResourceId); - - // get the collection of this HealthDataAIServicesPrivateEndpointConnectionResource - HealthDataAIServicesPrivateEndpointConnectionResourceCollection collection = deidService.GetHealthDataAIServicesPrivateEndpointConnectionResources(); - - // invoke the operation - string privateEndpointConnectionName = "kgwgrrpabvrsrrvpcgcnfmyfgyrl"; - NullableResponse response = await collection.GetIfExistsAsync(privateEndpointConnectionName); - HealthDataAIServicesPrivateEndpointConnectionResource 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 - HealthDataAIServicesPrivateEndpointConnectionResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } - - // PrivateEndpointConnections_Create - generated by [MaximumSet] rule. [stable] - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_PrivateEndpointConnectionsCreateGeneratedByMaximumSetRuleStable() - { - // Generated from example definition: 2024-09-20/PrivateEndpointConnections_Create_MaximumSet_Gen.json - // this example is just showing the usage of "PrivateEndpointConnectionResource_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 DeidServiceResource created on azure - // for more information of creating DeidServiceResource, please refer to the document of DeidServiceResource - string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; - string resourceGroupName = "rgopenapi"; - string deidServiceName = "deidTest"; - ResourceIdentifier deidServiceResourceId = DeidServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName); - DeidServiceResource deidService = client.GetDeidServiceResource(deidServiceResourceId); - - // get the collection of this HealthDataAIServicesPrivateEndpointConnectionResource - HealthDataAIServicesPrivateEndpointConnectionResourceCollection collection = deidService.GetHealthDataAIServicesPrivateEndpointConnectionResources(); - - // invoke the operation - string privateEndpointConnectionName = "kgwgrrpabvrsrrvpcgcnfmyfgyrl"; - HealthDataAIServicesPrivateEndpointConnectionResourceData data = new HealthDataAIServicesPrivateEndpointConnectionResourceData() - { - Properties = new PrivateEndpointConnectionProperties(new HealthDataAIServicesPrivateLinkServiceConnectionState() - { - Status = HealthDataAIServicesPrivateEndpointServiceConnectionStatus.Pending, - Description = "xr", - ActionsRequired = "ulb", - }), - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, privateEndpointConnectionName, data); - HealthDataAIServicesPrivateEndpointConnectionResource 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 - HealthDataAIServicesPrivateEndpointConnectionResourceData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // PrivateEndpointConnections_ListByDeidService - generated by [MaximumSet] rule. [stable] - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_PrivateEndpointConnectionsListByDeidServiceGeneratedByMaximumSetRuleStable() - { - // Generated from example definition: 2024-09-20/PrivateEndpointConnections_ListByDeidService_MaximumSet_Gen.json - // this example is just showing the usage of "PrivateEndpointConnectionResource_ListByDeidService" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details 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 DeidServiceResource created on azure - // for more information of creating DeidServiceResource, please refer to the document of DeidServiceResource - string subscriptionId = "F21BB31B-C214-42C0-ACF0-DACCA05D3011"; - string resourceGroupName = "rgopenapi"; - string deidServiceName = "deidTest"; - ResourceIdentifier deidServiceResourceId = DeidServiceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, deidServiceName); - DeidServiceResource deidService = client.GetDeidServiceResource(deidServiceResourceId); - - // get the collection of this HealthDataAIServicesPrivateEndpointConnectionResource - HealthDataAIServicesPrivateEndpointConnectionResourceCollection collection = deidService.GetHealthDataAIServicesPrivateEndpointConnectionResources(); - - // invoke the operation and iterate over the result - await foreach (HealthDataAIServicesPrivateEndpointConnectionResource 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 - HealthDataAIServicesPrivateEndpointConnectionResourceData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - } -} From 954020bd0036d62a5d426c940bf51d2843952a5d Mon Sep 17 00:00:00 2001 From: cribe Date: Tue, 5 Nov 2024 22:25:44 -0500 Subject: [PATCH 04/10] Updated changelog with GA and no changes mention --- .../CHANGELOG.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md index 035e59845303..d5af2076c797 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md @@ -1,14 +1,8 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0 (2024-05-11) -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +This release marks the General Availability (GA) of the package. There are no changes from the previous version. ## 1.0.0-beta.1 (2024-08-15) From bcdf42c79f59e2a355be9ce4ab555b8dfbd8cb38 Mon Sep 17 00:00:00 2001 From: cribe Date: Wed, 6 Nov 2024 08:21:57 -0500 Subject: [PATCH 05/10] Fixed typo and added version bump comment --- .../Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md index d5af2076c797..3a914dde0381 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md @@ -1,8 +1,8 @@ # Release History -## 1.0.0 (2024-05-11) +## 1.0.0 (2024-11-11) -This release marks the General Availability (GA) of the package. There are no changes from the previous version. +This release marks the General Availability (GA) of the package. There are no changes from the previous version, but the API version has been updated. ## 1.0.0-beta.1 (2024-08-15) From a64cc1a2fc1e0c9fca8a192ede302dd63faadc4b Mon Sep 17 00:00:00 2001 From: cribe Date: Wed, 6 Nov 2024 08:44:15 -0500 Subject: [PATCH 06/10] Re-vert 1.0.0-beta.2 removal mistake --- .../CHANGELOG.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md index 3a914dde0381..f74636c54065 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md @@ -4,6 +4,16 @@ This release marks the General Availability (GA) of the package. There are no changes from the previous version, but the API version has been updated. +## 1.0.0-beta.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.0-beta.1 (2024-08-15) ### Features Added From 8333acef220c030e9cde45d59c9b7d06b68570d3 Mon Sep 17 00:00:00 2001 From: cribe Date: Wed, 6 Nov 2024 09:07:54 -0500 Subject: [PATCH 07/10] Removed pre-release flag and bump version in ,NET .csproj --- .../Azure.ResourceManager.HealthDataAIServices/README.md | 2 +- .../src/Azure.ResourceManager.HealthDataAIServices.csproj | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/README.md b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/README.md index 666152c0afec..f581ea7131e4 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/README.md +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/README.md @@ -17,7 +17,7 @@ This library follows the [new Azure SDK guidelines](https://azure.github.io/azur Install the Microsoft Azure HealthDataAIServices management library for .NET with [NuGet](https://www.nuget.org/): ```dotnetcli -dotnet add package Azure.ResourceManager.HealthDataAIServices --prerelease +dotnet add package Azure.ResourceManager.HealthDataAIServices ``` ### Prerequisites diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Azure.ResourceManager.HealthDataAIServices.csproj b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Azure.ResourceManager.HealthDataAIServices.csproj index d880bd7dfaac..daef8778e2dc 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Azure.ResourceManager.HealthDataAIServices.csproj +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/src/Azure.ResourceManager.HealthDataAIServices.csproj @@ -1,6 +1,6 @@ - 1.0.0-beta.2 + 1.0.0 Azure.ResourceManager.HealthDataAIServices Azure Resource Manager client SDK for Azure resource provider HealthDataAIServices. azure;management;arm;resource manager;healthdataaiservices From 0c4a03ff0142a1c8f5e59a476ad95f7441117189 Mon Sep 17 00:00:00 2001 From: cribe Date: Wed, 6 Nov 2024 09:23:12 -0500 Subject: [PATCH 08/10] fix build error "did not contain any of the recommended sections" --- .../Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md index f74636c54065..031677c06ac6 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md @@ -2,6 +2,8 @@ ## 1.0.0 (2024-11-11) +### Features Added + This release marks the General Availability (GA) of the package. There are no changes from the previous version, but the API version has been updated. ## 1.0.0-beta.2 (Unreleased) From 10c6da76e072b52e1bfad452063847afa310d277 Mon Sep 17 00:00:00 2001 From: cribe Date: Wed, 6 Nov 2024 09:54:51 -0500 Subject: [PATCH 09/10] Added the proper date to 1.0.0-beta.2 + note --- .../Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md index 031677c06ac6..1c00db2e9a00 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md @@ -6,10 +6,12 @@ This release marks the General Availability (GA) of the package. There are no changes from the previous version, but the API version has been updated. -## 1.0.0-beta.2 (Unreleased) +## 1.0.0-beta.2 (2024-08-15) ### Features Added +This version was automatically incremented by the Azure SDK bot after the release of the Azure.ResourceManager.HealthDataAIServices package. There were no additional changes in this version. + ### Breaking Changes ### Bugs Fixed From 879a3f6a3d40e77a4233148f3693e1342c060e8a Mon Sep 17 00:00:00 2001 From: Arthur Ma Date: Thu, 7 Nov 2024 10:50:07 +0800 Subject: [PATCH 10/10] Update CHANGELOG.md --- .../CHANGELOG.md | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md index 1c00db2e9a00..91329e0ce3ab 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/CHANGELOG.md @@ -6,18 +6,6 @@ This release marks the General Availability (GA) of the package. There are no changes from the previous version, but the API version has been updated. -## 1.0.0-beta.2 (2024-08-15) - -### Features Added - -This version was automatically incremented by the Azure SDK bot after the release of the Azure.ResourceManager.HealthDataAIServices package. There were no additional changes in this version. - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - ## 1.0.0-beta.1 (2024-08-15) ### Features Added