From ae763ebe2da18eab64f880af99111a0f115038ec Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 9 Oct 2024 12:46:47 +0000 Subject: [PATCH] CodeGen from PR 30835 in Azure/azure-rest-api-specs Merge 3d2f9b454eb053620dd1ebb2cd3f04d8d8200f3c into d38a2c3ce2e2dfc38053af2f6b5fc10cb6221961 --- .../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 +- .../tsp-location.yaml | 3 +- 15 files changed, 777 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.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..6bb7700e7eb8 --- /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 "DeidServices_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 "DeidServices_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 "DeidServices_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 "DeidServices_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..bdd84b4f7b68 --- /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 "DeidServices_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 "DeidServices_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 "DeidServices_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..ae0e91b45d71 --- /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 "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + 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 "PrivateEndpointConnections_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 "PrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + 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..485e3dc1bd91 --- /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 "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + 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 "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + 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 "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + 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 "PrivateEndpointConnections_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 8596c7ab4041..45afdd04fc2a 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 6bcc3da8b620..cbfa2091498b 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 480fd7942f77..65f85a41f4be 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 cc8cae3c53e8..53319f0b2e3d 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 b2adb8857a8a..c4a044d380ca 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 f70ae5f28dd9..e3f9fcf78604 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 26b0a7e25065..1b440eb0b422 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 7b18940e8fa8..77853e2add3c 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 2d38b2e95079..cbd026a271f7 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); } diff --git a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/tsp-location.yaml b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/tsp-location.yaml index 0f1cccefcbd8..7fa959ed1b24 100644 --- a/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/tsp-location.yaml +++ b/sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/tsp-location.yaml @@ -1,3 +1,4 @@ directory: specification/healthdataaiservices/HealthDataAIServices.Management -commit: 0eb061fdfe4d366139b760f9bdf633088b4262cc +commit: 14461e95dbf9f9e1043d1bc0377b88af6ade1dfc repo: Azure/azure-rest-api-specs +additionalDirectories: