From 23aebe80e3cdf76d39bb3c7facfa5922ba85887d Mon Sep 17 00:00:00 2001 From: malpaniHMC Date: Sun, 29 Oct 2023 23:38:05 -0700 Subject: [PATCH] AGC API Version 2023-11-01 (#39516) * init * init * addressing comments for README & CHANGELOG --- .../CHANGELOG.md | 11 +++++++++++ .../Azure.ResourceManager.ServiceNetworking/README.md | 2 +- .../Generated/Samples/Sample_AssociationCollection.cs | 10 +++++----- .../Generated/Samples/Sample_AssociationResource.cs | 6 +++--- .../Generated/Samples/Sample_FrontendCollection.cs | 10 +++++----- .../Generated/Samples/Sample_FrontendResource.cs | 6 +++--- .../Samples/Sample_TrafficControllerCollection.cs | 10 +++++----- .../Samples/Sample_TrafficControllerResource.cs | 8 ++++---- .../AssociationsInterfaceRestOperations.cs | 2 +- .../FrontendsInterfaceRestOperations.cs | 2 +- .../TrafficControllerInterfaceRestOperations.cs | 2 +- .../src/autorest.md | 2 +- .../tests/Tests/TrafficControllerTests.cs | 11 +---------- 13 files changed, 42 insertions(+), 40 deletions(-) diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/CHANGELOG.md b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/CHANGELOG.md index 939be93b15e24..a171693e4fd2e 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/CHANGELOG.md +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/CHANGELOG.md @@ -1,5 +1,16 @@ # Release History +## 1.0.0 (2023-11-01) +### Features Added +- Perform CRUD Operations for Application Gateway for Containers (AGC). +- Use the latest API version for (2023-11-01) +### Breaking Changes + +### Bugs Fixed + +### Other Changes + + ## 1.0.0-beta.3 (Unreleased) ### Features Added diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/README.md b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/README.md index 707361a8e9df9..a45004793d6e3 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/README.md +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/README.md @@ -19,7 +19,7 @@ This library follows the [new Azure SDK guidelines](https://azure.github.io/azur Install the Microsoft Azure ServiceNetworking management library for .NET with [NuGet](https://www.nuget.org/): ```dotnetcli -dotnet add package Azure.ResourceManager.ServiceNetworking --prerelease +dotnet add package Azure.ResourceManager.ServiceNetworking ``` ### Prerequisites diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_AssociationCollection.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_AssociationCollection.cs index 85868b9972f84..d473595f35720 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_AssociationCollection.cs +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_AssociationCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_AssociationCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetAssociations() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationsGet.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/AssociationsGet.json // this example is just showing the usage of "AssociationsInterface_ListByTrafficController" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task GetAll_GetAssociations() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAssociation() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationGet.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/AssociationGet.json // this example is just showing the usage of "AssociationsInterface_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task Get_GetAssociation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetAssociation() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationGet.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/AssociationGet.json // this example is just showing the usage of "AssociationsInterface_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 @@ -126,7 +126,7 @@ public async Task Exists_GetAssociation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetAssociation() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationGet.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/AssociationGet.json // this example is just showing the usage of "AssociationsInterface_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 @@ -169,7 +169,7 @@ public async Task GetIfExists_GetAssociation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_PutAssociation() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationPut.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/AssociationPut.json // this example is just showing the usage of "AssociationsInterface_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_AssociationResource.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_AssociationResource.cs index 78edc5495dc43..38d8976535e5a 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_AssociationResource.cs +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_AssociationResource.cs @@ -23,7 +23,7 @@ public partial class Sample_AssociationResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetAssociation() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationGet.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/AssociationGet.json // this example is just showing the usage of "AssociationsInterface_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetAssociation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateAssociation() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationPatch.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/AssociationPatch.json // this example is just showing the usage of "AssociationsInterface_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 @@ -92,7 +92,7 @@ public async Task Update_UpdateAssociation() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteAssociation() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/AssociationDelete.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/AssociationDelete.json // this example is just showing the usage of "AssociationsInterface_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 diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_FrontendCollection.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_FrontendCollection.cs index 3fc1969baf864..a93a4dd3a42d4 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_FrontendCollection.cs +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_FrontendCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_FrontendCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetFrontends() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendsGet.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/FrontendsGet.json // this example is just showing the usage of "FrontendsInterface_ListByTrafficController" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task GetAll_GetFrontends() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFrontend() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendGet.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/FrontendGet.json // this example is just showing the usage of "FrontendsInterface_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -94,7 +94,7 @@ public async Task Get_GetFrontend() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetFrontend() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendGet.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/FrontendGet.json // this example is just showing the usage of "FrontendsInterface_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task Exists_GetFrontend() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetFrontend() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendGet.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/FrontendGet.json // this example is just showing the usage of "FrontendsInterface_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -168,7 +168,7 @@ public async Task GetIfExists_GetFrontend() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_PutFrontend() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendPut.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/FrontendPut.json // this example is just showing the usage of "FrontendsInterface_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_FrontendResource.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_FrontendResource.cs index bcdad3c92d0b7..52b0149ce3a29 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_FrontendResource.cs +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_FrontendResource.cs @@ -23,7 +23,7 @@ public partial class Sample_FrontendResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetFrontend() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendGet.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/FrontendGet.json // this example is just showing the usage of "FrontendsInterface_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetFrontend() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_UpdateFrontend() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendPatch.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/FrontendPatch.json // this example is just showing the usage of "FrontendsInterface_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 @@ -88,7 +88,7 @@ public async Task Update_UpdateFrontend() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteFrontend() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/FrontendDelete.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/FrontendDelete.json // this example is just showing the usage of "FrontendsInterface_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 diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_TrafficControllerCollection.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_TrafficControllerCollection.cs index d0878d03f999b..a91f6048f8848 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_TrafficControllerCollection.cs +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_TrafficControllerCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_TrafficControllerCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_GetTrafficControllers() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllersGet.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/TrafficControllersGet.json // this example is just showing the usage of "TrafficControllerInterface_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 @@ -59,7 +59,7 @@ public async Task GetAll_GetTrafficControllers() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetTrafficController() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerGet.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/TrafficControllerGet.json // this example is just showing the usage of "TrafficControllerInterface_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Get_GetTrafficController() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_GetTrafficController() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerGet.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/TrafficControllerGet.json // this example is just showing the usage of "TrafficControllerInterface_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -123,7 +123,7 @@ public async Task Exists_GetTrafficController() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_GetTrafficController() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerGet.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/TrafficControllerGet.json // this example is just showing the usage of "TrafficControllerInterface_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 @@ -165,7 +165,7 @@ public async Task GetIfExists_GetTrafficController() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_PutTrafficController() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerPut.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/TrafficControllerPut.json // this example is just showing the usage of "TrafficControllerInterface_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_TrafficControllerResource.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_TrafficControllerResource.cs index 085afe327a95b..f9c3cd5a4e10a 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_TrafficControllerResource.cs +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/samples/Generated/Samples/Sample_TrafficControllerResource.cs @@ -24,7 +24,7 @@ public partial class Sample_TrafficControllerResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetTrafficControllers_GetTrafficControllersList() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllersGetList.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/TrafficControllersGetList.json // this example is just showing the usage of "TrafficControllerInterface_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 @@ -56,7 +56,7 @@ public async Task GetTrafficControllers_GetTrafficControllersList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_GetTrafficController() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerGet.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/TrafficControllerGet.json // this example is just showing the usage of "TrafficControllerInterface_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 @@ -87,7 +87,7 @@ public async Task Get_GetTrafficController() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_PatchTrafficController() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerPatch.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/TrafficControllerPatch.json // this example is just showing the usage of "TrafficControllerInterface_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 @@ -125,7 +125,7 @@ public async Task Update_PatchTrafficController() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_DeleteTrafficController() { - // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/cadl/examples/TrafficControllerDelete.json + // Generated from example definition: specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/stable/2023-11-01/examples/TrafficControllerDelete.json // this example is just showing the usage of "TrafficControllerInterface_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 diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/AssociationsInterfaceRestOperations.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/AssociationsInterfaceRestOperations.cs index 64197c47fcb5a..342fe7a7f0f58 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/AssociationsInterfaceRestOperations.cs +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/AssociationsInterfaceRestOperations.cs @@ -33,7 +33,7 @@ public AssociationsInterfaceRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-05-01-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/FrontendsInterfaceRestOperations.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/FrontendsInterfaceRestOperations.cs index 5e417df646200..346337712b8e7 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/FrontendsInterfaceRestOperations.cs +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/FrontendsInterfaceRestOperations.cs @@ -33,7 +33,7 @@ public FrontendsInterfaceRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-05-01-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/TrafficControllerInterfaceRestOperations.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/TrafficControllerInterfaceRestOperations.cs index ac5c5bf0281d4..7edab6faa0241 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/TrafficControllerInterfaceRestOperations.cs +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/Generated/RestOperations/TrafficControllerInterfaceRestOperations.cs @@ -33,7 +33,7 @@ public TrafficControllerInterfaceRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-05-01-preview"; + _apiVersion = apiVersion ?? "2023-11-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/autorest.md b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/autorest.md index 8aa31a5ef3234..cc9b380720162 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/autorest.md +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/src/autorest.md @@ -7,7 +7,7 @@ azure-arm: true csharp: true library-name: ServiceNetworking namespace: Azure.ResourceManager.ServiceNetworking -require: https://github.com/Azure/azure-rest-api-specs/blob/b53cd31f04037e6f1b82dfc68d086e2d108eda13/specification/servicenetworking/resource-manager/readme.md +require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/9837baba3ca259b4f2a3f736593311f445c35c63/specification/servicenetworking/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true sample-gen: diff --git a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/tests/Tests/TrafficControllerTests.cs b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/tests/Tests/TrafficControllerTests.cs index ac09c2e87cf62..d012a4b2e9541 100644 --- a/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/tests/Tests/TrafficControllerTests.cs +++ b/sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/tests/Tests/TrafficControllerTests.cs @@ -3,22 +3,13 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; using System.Threading.Tasks; using Azure.Core.TestFramework; using Azure.ResourceManager.Resources; -using Azure.ResourceManager.Resources.Models; -using Azure.ResourceManager.ServiceNetworking; using Azure.ResourceManager.Network; using Azure.Core; using NUnit.Framework; -using Azure.ResourceManager.ServiceNetworking.Models; -using System.IO.Pipelines; -using Castle.Core.Resource; -using System.Xml.Linq; using Azure.ResourceManager.Network.Models; -using AssociationType = Azure.ResourceManager.ServiceNetworking.Models.AssociationType; using Azure.ResourceManager.ServiceNetworking.Tests; namespace Azure.ResourceManager.ServiceNetworking.TrafficController.Tests.Tests @@ -81,7 +72,7 @@ private async Task> CreateFrontendAsync(ResourceG //Frontend Data object that is used to create the new frontend object. FrontendData fnd = new FrontendData(location) { - Location = location, + Location = location }; //Performing the Create/PUT operation and returning the result. return await frontends.CreateOrUpdateAsync(WaitUntil.Completed, frontendName, fnd);