diff --git a/sdk/keyvault/Azure.Management.KeyVault/Azure.Management.KeyVault.sln b/sdk/keyvault/Azure.Management.KeyVault/Azure.Management.KeyVault.sln new file mode 100644 index 0000000000000..d25b9652f4b76 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/Azure.Management.KeyVault.sln @@ -0,0 +1,121 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30011.22 +MinimumVisualStudioVersion = 15.0.26124.0 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Management.KeyVault", "src\Azure.Management.KeyVault.csproj", "{68CD0142-EAA5-4D17-B574-0E059D28908B}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Management.KeyVault.Tests", "tests\Azure.Management.KeyVault.Tests.csproj", "{831C392A-50D2-45D4-8AC9-CDB1FF7B443E}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core.TestFramework", "..\..\core\Azure.Core.TestFramework\src\Azure.Core.TestFramework.csproj", "{D834F7AA-20E1-4A74-8474-6E367332E3EB}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Core", "..\..\core\Azure.Core\src\Azure.Core.csproj", "{91F4FCC0-AEB7-4FEC-B3C2-7A3F9764CB51}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Identity", "..\..\identity\Azure.Identity\src\Azure.Identity.csproj", "{CDBD55B6-0742-464F-8188-3BF17006FA34}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Graph.Rbac", "..\..\testcommon\Azure.Graph.Rbac\src\Azure.Graph.Rbac.csproj", "{4CACB10F-8A47-4BF5-9AA7-C8303D8E4BD2}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Management.Resource", "..\..\testcommon\Azure.Management.Resource.2017_05\src\Azure.Management.Resource.csproj", "{E55AC16E-98FB-4C1F-A873-C9ADDA0896CA}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {68CD0142-EAA5-4D17-B574-0E059D28908B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {68CD0142-EAA5-4D17-B574-0E059D28908B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {68CD0142-EAA5-4D17-B574-0E059D28908B}.Debug|x64.ActiveCfg = Debug|Any CPU + {68CD0142-EAA5-4D17-B574-0E059D28908B}.Debug|x64.Build.0 = Debug|Any CPU + {68CD0142-EAA5-4D17-B574-0E059D28908B}.Debug|x86.ActiveCfg = Debug|Any CPU + {68CD0142-EAA5-4D17-B574-0E059D28908B}.Debug|x86.Build.0 = Debug|Any CPU + {68CD0142-EAA5-4D17-B574-0E059D28908B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {68CD0142-EAA5-4D17-B574-0E059D28908B}.Release|Any CPU.Build.0 = Release|Any CPU + {68CD0142-EAA5-4D17-B574-0E059D28908B}.Release|x64.ActiveCfg = Release|Any CPU + {68CD0142-EAA5-4D17-B574-0E059D28908B}.Release|x64.Build.0 = Release|Any CPU + {68CD0142-EAA5-4D17-B574-0E059D28908B}.Release|x86.ActiveCfg = Release|Any CPU + {68CD0142-EAA5-4D17-B574-0E059D28908B}.Release|x86.Build.0 = Release|Any CPU + {831C392A-50D2-45D4-8AC9-CDB1FF7B443E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {831C392A-50D2-45D4-8AC9-CDB1FF7B443E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {831C392A-50D2-45D4-8AC9-CDB1FF7B443E}.Debug|x64.ActiveCfg = Debug|Any CPU + {831C392A-50D2-45D4-8AC9-CDB1FF7B443E}.Debug|x64.Build.0 = Debug|Any CPU + {831C392A-50D2-45D4-8AC9-CDB1FF7B443E}.Debug|x86.ActiveCfg = Debug|Any CPU + {831C392A-50D2-45D4-8AC9-CDB1FF7B443E}.Debug|x86.Build.0 = Debug|Any CPU + {831C392A-50D2-45D4-8AC9-CDB1FF7B443E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {831C392A-50D2-45D4-8AC9-CDB1FF7B443E}.Release|Any CPU.Build.0 = Release|Any CPU + {831C392A-50D2-45D4-8AC9-CDB1FF7B443E}.Release|x64.ActiveCfg = Release|Any CPU + {831C392A-50D2-45D4-8AC9-CDB1FF7B443E}.Release|x64.Build.0 = Release|Any CPU + {831C392A-50D2-45D4-8AC9-CDB1FF7B443E}.Release|x86.ActiveCfg = Release|Any CPU + {831C392A-50D2-45D4-8AC9-CDB1FF7B443E}.Release|x86.Build.0 = Release|Any CPU + {D834F7AA-20E1-4A74-8474-6E367332E3EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D834F7AA-20E1-4A74-8474-6E367332E3EB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D834F7AA-20E1-4A74-8474-6E367332E3EB}.Debug|x64.ActiveCfg = Debug|Any CPU + {D834F7AA-20E1-4A74-8474-6E367332E3EB}.Debug|x64.Build.0 = Debug|Any CPU + {D834F7AA-20E1-4A74-8474-6E367332E3EB}.Debug|x86.ActiveCfg = Debug|Any CPU + {D834F7AA-20E1-4A74-8474-6E367332E3EB}.Debug|x86.Build.0 = Debug|Any CPU + {D834F7AA-20E1-4A74-8474-6E367332E3EB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D834F7AA-20E1-4A74-8474-6E367332E3EB}.Release|Any CPU.Build.0 = Release|Any CPU + {D834F7AA-20E1-4A74-8474-6E367332E3EB}.Release|x64.ActiveCfg = Release|Any CPU + {D834F7AA-20E1-4A74-8474-6E367332E3EB}.Release|x64.Build.0 = Release|Any CPU + {D834F7AA-20E1-4A74-8474-6E367332E3EB}.Release|x86.ActiveCfg = Release|Any CPU + {D834F7AA-20E1-4A74-8474-6E367332E3EB}.Release|x86.Build.0 = Release|Any CPU + {91F4FCC0-AEB7-4FEC-B3C2-7A3F9764CB51}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {91F4FCC0-AEB7-4FEC-B3C2-7A3F9764CB51}.Debug|Any CPU.Build.0 = Debug|Any CPU + {91F4FCC0-AEB7-4FEC-B3C2-7A3F9764CB51}.Debug|x64.ActiveCfg = Debug|Any CPU + {91F4FCC0-AEB7-4FEC-B3C2-7A3F9764CB51}.Debug|x64.Build.0 = Debug|Any CPU + {91F4FCC0-AEB7-4FEC-B3C2-7A3F9764CB51}.Debug|x86.ActiveCfg = Debug|Any CPU + {91F4FCC0-AEB7-4FEC-B3C2-7A3F9764CB51}.Debug|x86.Build.0 = Debug|Any CPU + {91F4FCC0-AEB7-4FEC-B3C2-7A3F9764CB51}.Release|Any CPU.ActiveCfg = Release|Any CPU + {91F4FCC0-AEB7-4FEC-B3C2-7A3F9764CB51}.Release|Any CPU.Build.0 = Release|Any CPU + {91F4FCC0-AEB7-4FEC-B3C2-7A3F9764CB51}.Release|x64.ActiveCfg = Release|Any CPU + {91F4FCC0-AEB7-4FEC-B3C2-7A3F9764CB51}.Release|x64.Build.0 = Release|Any CPU + {91F4FCC0-AEB7-4FEC-B3C2-7A3F9764CB51}.Release|x86.ActiveCfg = Release|Any CPU + {91F4FCC0-AEB7-4FEC-B3C2-7A3F9764CB51}.Release|x86.Build.0 = Release|Any CPU + {CDBD55B6-0742-464F-8188-3BF17006FA34}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CDBD55B6-0742-464F-8188-3BF17006FA34}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CDBD55B6-0742-464F-8188-3BF17006FA34}.Debug|x64.ActiveCfg = Debug|Any CPU + {CDBD55B6-0742-464F-8188-3BF17006FA34}.Debug|x64.Build.0 = Debug|Any CPU + {CDBD55B6-0742-464F-8188-3BF17006FA34}.Debug|x86.ActiveCfg = Debug|Any CPU + {CDBD55B6-0742-464F-8188-3BF17006FA34}.Debug|x86.Build.0 = Debug|Any CPU + {CDBD55B6-0742-464F-8188-3BF17006FA34}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CDBD55B6-0742-464F-8188-3BF17006FA34}.Release|Any CPU.Build.0 = Release|Any CPU + {CDBD55B6-0742-464F-8188-3BF17006FA34}.Release|x64.ActiveCfg = Release|Any CPU + {CDBD55B6-0742-464F-8188-3BF17006FA34}.Release|x64.Build.0 = Release|Any CPU + {CDBD55B6-0742-464F-8188-3BF17006FA34}.Release|x86.ActiveCfg = Release|Any CPU + {CDBD55B6-0742-464F-8188-3BF17006FA34}.Release|x86.Build.0 = Release|Any CPU + {4CACB10F-8A47-4BF5-9AA7-C8303D8E4BD2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4CACB10F-8A47-4BF5-9AA7-C8303D8E4BD2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4CACB10F-8A47-4BF5-9AA7-C8303D8E4BD2}.Debug|x64.ActiveCfg = Debug|Any CPU + {4CACB10F-8A47-4BF5-9AA7-C8303D8E4BD2}.Debug|x64.Build.0 = Debug|Any CPU + {4CACB10F-8A47-4BF5-9AA7-C8303D8E4BD2}.Debug|x86.ActiveCfg = Debug|Any CPU + {4CACB10F-8A47-4BF5-9AA7-C8303D8E4BD2}.Debug|x86.Build.0 = Debug|Any CPU + {4CACB10F-8A47-4BF5-9AA7-C8303D8E4BD2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4CACB10F-8A47-4BF5-9AA7-C8303D8E4BD2}.Release|Any CPU.Build.0 = Release|Any CPU + {4CACB10F-8A47-4BF5-9AA7-C8303D8E4BD2}.Release|x64.ActiveCfg = Release|Any CPU + {4CACB10F-8A47-4BF5-9AA7-C8303D8E4BD2}.Release|x64.Build.0 = Release|Any CPU + {4CACB10F-8A47-4BF5-9AA7-C8303D8E4BD2}.Release|x86.ActiveCfg = Release|Any CPU + {4CACB10F-8A47-4BF5-9AA7-C8303D8E4BD2}.Release|x86.Build.0 = Release|Any CPU + {E55AC16E-98FB-4C1F-A873-C9ADDA0896CA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E55AC16E-98FB-4C1F-A873-C9ADDA0896CA}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E55AC16E-98FB-4C1F-A873-C9ADDA0896CA}.Debug|x64.ActiveCfg = Debug|Any CPU + {E55AC16E-98FB-4C1F-A873-C9ADDA0896CA}.Debug|x64.Build.0 = Debug|Any CPU + {E55AC16E-98FB-4C1F-A873-C9ADDA0896CA}.Debug|x86.ActiveCfg = Debug|Any CPU + {E55AC16E-98FB-4C1F-A873-C9ADDA0896CA}.Debug|x86.Build.0 = Debug|Any CPU + {E55AC16E-98FB-4C1F-A873-C9ADDA0896CA}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E55AC16E-98FB-4C1F-A873-C9ADDA0896CA}.Release|Any CPU.Build.0 = Release|Any CPU + {E55AC16E-98FB-4C1F-A873-C9ADDA0896CA}.Release|x64.ActiveCfg = Release|Any CPU + {E55AC16E-98FB-4C1F-A873-C9ADDA0896CA}.Release|x64.Build.0 = Release|Any CPU + {E55AC16E-98FB-4C1F-A873-C9ADDA0896CA}.Release|x86.ActiveCfg = Release|Any CPU + {E55AC16E-98FB-4C1F-A873-C9ADDA0896CA}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {EEF0B562-43E9-4E60-B175-1E70BF329831} + EndGlobalSection +EndGlobal diff --git a/sdk/keyvault/Azure.Management.KeyVault/CHANGELOG.md b/sdk/keyvault/Azure.Management.KeyVault/CHANGELOG.md new file mode 100644 index 0000000000000..b183b6bdac5c9 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/CHANGELOG.md @@ -0,0 +1,6 @@ +# Release History + +## 1.0.0-preview.1 + +### New Features +- Initial preview of Azure Management KeyVault SDK based on Azure.Core \ No newline at end of file diff --git a/sdk/keyvault/Azure.Management.KeyVault/Directory.Build.props b/sdk/keyvault/Azure.Management.KeyVault/Directory.Build.props new file mode 100644 index 0000000000000..1a9611bd49242 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/Directory.Build.props @@ -0,0 +1,6 @@ + + + + diff --git a/sdk/keyvault/Azure.Management.KeyVault/README.md b/sdk/keyvault/Azure.Management.KeyVault/README.md new file mode 100644 index 0000000000000..00272db1fafae --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/README.md @@ -0,0 +1,69 @@ +# README.md template + +Use the guidelines in each section of this template to ensure consistency and readability of your README. The README resides in your package's GitHub repository at the root of its directory within the repo. It's also used as the package distribution page (NuGet, PyPi, npm, etc.) and as a Quickstart on docs.microsoft.com. See [README-EXAMPLE.md](README-EXAMPLE.md) for an example following this template. + +* All headings, including the H1, should use **sentence-style capitalization**. Refer to the [Microsoft Style Guide][style-guide-msft] and [Microsoft Cloud Style Guide][style-guide-cloud] for more information. +* Example: `# Azure Batch client library for Python` + +# Azure Management KeyVault client library for .NET + +**Introduction**: The introduction appears directly under the title (H1) of your README. + +* **DO NOT** use an "Introduction" or "Overview" heading (H2) for this section. +* First sentence: **Describe the service** briefly. You can usually use the first line of the service's docs landing page for this (Example: [Cosmos DB docs landing page](https://docs.microsoft.com/azure/cosmos-db/)). +* Next, add a **bulleted list** of the **most common tasks** supported by the package or library, prefaced with "Use the client library for [Product Name] to:". Then, provide code snippets for these tasks in the [Examples](#examples) section later in the document. Keep the task list short but include those tasks most developers need to perform with your package. +* Include this single line of links targeting your product's content at the bottom of the introduction, making any adjustments as necessary (for example, NuGet instead of PyPi): + + [Source code](https://github.com/Azure/azure-sdk-for-python/tree/master/azure-batch) | [Package (PyPi)](https://pypi.org/project/azure-batch/) | [API reference documentation](https://docs.microsoft.com/python/api/overview/azure/batch?view=azure-python) | [Product documentation](https://docs.microsoft.com/azure/batch/) + +> TIP: Your README should be as **brief** as possible but **no more brief** than necessary to get a developer new to Azure, the service, or the package up and running quickly. Keep it brief, but include everything a developer needs to make their first API call successfully. + +## Getting started + +This section should include everything a developer needs to do to install and create their first client connection *very quickly*. + +### Install the package + +First, provide instruction for obtaining and installing the package or library. This section might include only a single line of code, like `pip install package-name`, but should enable a developer to successfully install the package from NuGet, pip, npm, Maven, or even cloning a GitHub repository. + +Include a **Prerequisites** line after the install command that details any requirements that must be satisfied before a developer can [authenticate](#authenticate-the-client) and test all of the snippets in the [Examples](#examples) section. For example, for Cosmos DB: + +**Prerequisites**: You must have an [Azure subscription](https://azure.microsoft.com/free/), [Cosmos DB account](https://docs.microsoft.com/azure/cosmos-db/account-overview) (SQL API), and [Python 3.6+](https://www.python.org/downloads/) to use this package. + +### Authenticate the client + +If your library requires authentication for use, such as for Azure services, include instructions and example code needed for initializing and authenticating. + +For example, include details on obtaining an account key and endpoint URI, setting environment variables for each, and initializing the client object. + +## Key concepts + +The *Key concepts* section should describe the functionality of the main classes. Point out the most important and useful classes in the package (with links to their reference pages) and explain how those classes work together. Feel free to use bulleted lists, tables, code blocks, or even diagrams for clarity. + +## Examples + +Include code snippets and short descriptions for each task you listed in the [Introduction](#introduction) (the bulleted list). Briefly explain each operation, but include enough clarity to explain complex or otherwise tricky operations. + +## Troubleshooting + +Describe common errors and exceptions, how to "unpack" them if necessary, and include guidance for graceful handling and recovery. + +Provide information to help developers avoid throttling or other service-enforced errors they might encounter. For example, provide guidance and examples for using retry or connection policies in the API. + +If the package or a related package supports it, include tips for logging or enabling instrumentation to help them debug their code. + +## Next steps + +* Provide a link to additional code examples, ideally to those sitting alongside the README in the package's `/samples` directory. +* If appropriate, point users to other packages that might be useful. +* If you think there's a good chance that developers might stumble across your package in error (because they're searching for specific functionality and mistakenly think the package provides that functionality), point them to the packages they might be looking for. + +## Contributing + +This is a template, but your SDK readme should include details on how to contribute code to the repo/package. + + +[style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization +[style-guide-cloud]: https://worldready.cloudapp.net/Styleguide/Read?id=2696&topicid=25357 + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Ftemplate%2FAzure.Template%2FREADME.png) diff --git a/sdk/keyvault/Azure.Management.KeyVault/api/Azure.Management.KeyVault.netstandard2.0.cs b/sdk/keyvault/Azure.Management.KeyVault/api/Azure.Management.KeyVault.netstandard2.0.cs new file mode 100644 index 0000000000000..68965e9509584 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/api/Azure.Management.KeyVault.netstandard2.0.cs @@ -0,0 +1,573 @@ +namespace Azure.Management.KeyVault +{ + public partial class KeyVaultManagementClient + { + protected KeyVaultManagementClient() { } + public KeyVaultManagementClient(string subscriptionId, Azure.Core.TokenCredential tokenCredential, Azure.Management.KeyVault.KeyVaultManagementClientOptions options = null) { } + public KeyVaultManagementClient(string subscriptionId, System.Uri endpoint, Azure.Core.TokenCredential tokenCredential, Azure.Management.KeyVault.KeyVaultManagementClientOptions options = null) { } + public virtual Azure.Management.KeyVault.OperationsClient GetOperationsClient() { throw null; } + public virtual Azure.Management.KeyVault.PrivateEndpointConnectionsClient GetPrivateEndpointConnectionsClient() { throw null; } + public virtual Azure.Management.KeyVault.PrivateLinkResourcesClient GetPrivateLinkResourcesClient() { throw null; } + public virtual Azure.Management.KeyVault.VaultsClient GetVaultsClient() { throw null; } + } + public partial class KeyVaultManagementClientOptions : Azure.Core.ClientOptions + { + public KeyVaultManagementClientOptions() { } + } + public partial class OperationsClient + { + protected OperationsClient() { } + public virtual Azure.Pageable List(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable ListAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class PrivateEndpointConnectionsClient + { + protected PrivateEndpointConnectionsClient() { } + public virtual Azure.Response Get(string resourceGroupName, string vaultName, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string resourceGroupName, string vaultName, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Put(string resourceGroupName, string vaultName, string privateEndpointConnectionName, Azure.Management.KeyVault.Models.PrivateEndpointConnection properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> PutAsync(string resourceGroupName, string vaultName, string privateEndpointConnectionName, Azure.Management.KeyVault.Models.PrivateEndpointConnection properties, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Management.KeyVault.PrivateEndpointConnectionsDeleteOperation StartDelete(string resourceGroupName, string vaultName, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.ValueTask StartDeleteAsync(string resourceGroupName, string vaultName, string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class PrivateEndpointConnectionsDeleteOperation : Azure.Operation + { + internal PrivateEndpointConnectionsDeleteOperation() { } + public override bool HasCompleted { get { throw null; } } + public override bool HasValue { get { throw null; } } + public override string Id { get { throw null; } } + public override Azure.Management.KeyVault.Models.PrivateEndpointConnection Value { get { throw null; } } + public override Azure.Response GetRawResponse() { throw null; } + public override Azure.Response UpdateStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class PrivateLinkResourcesClient + { + protected PrivateLinkResourcesClient() { } + public virtual Azure.Response ListByVault(string resourceGroupName, string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ListByVaultAsync(string resourceGroupName, string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class VaultsClient + { + protected VaultsClient() { } + public virtual Azure.Response CheckNameAvailability(Azure.Management.KeyVault.Models.VaultCheckNameAvailabilityParameters vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CheckNameAvailabilityAsync(Azure.Management.KeyVault.Models.VaultCheckNameAvailabilityParameters vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Delete(string resourceGroupName, string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(string resourceGroupName, string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string resourceGroupName, string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string resourceGroupName, string vaultName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetDeleted(string vaultName, string location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetDeletedAsync(string vaultName, string location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable List(int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable ListAsync(int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable ListByResourceGroup(string resourceGroupName, int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable ListByResourceGroupAsync(string resourceGroupName, int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable ListBySubscription(int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable ListBySubscriptionAsync(int? top = default(int?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable ListDeleted(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable ListDeletedAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Management.KeyVault.VaultsCreateOrUpdateOperation StartCreateOrUpdate(string resourceGroupName, string vaultName, Azure.Management.KeyVault.Models.VaultCreateOrUpdateParameters parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.ValueTask StartCreateOrUpdateAsync(string resourceGroupName, string vaultName, Azure.Management.KeyVault.Models.VaultCreateOrUpdateParameters parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Management.KeyVault.VaultsPurgeDeletedOperation StartPurgeDeleted(string vaultName, string location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.ValueTask StartPurgeDeletedAsync(string vaultName, string location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(string resourceGroupName, string vaultName, Azure.Management.KeyVault.Models.VaultPatchParameters parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response UpdateAccessPolicy(string resourceGroupName, string vaultName, Azure.Management.KeyVault.Models.AccessPolicyUpdateKind operationKind, Azure.Management.KeyVault.Models.VaultAccessPolicyParameters parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAccessPolicyAsync(string resourceGroupName, string vaultName, Azure.Management.KeyVault.Models.AccessPolicyUpdateKind operationKind, Azure.Management.KeyVault.Models.VaultAccessPolicyParameters parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(string resourceGroupName, string vaultName, Azure.Management.KeyVault.Models.VaultPatchParameters parameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class VaultsCreateOrUpdateOperation : Azure.Operation + { + internal VaultsCreateOrUpdateOperation() { } + public override bool HasCompleted { get { throw null; } } + public override bool HasValue { get { throw null; } } + public override string Id { get { throw null; } } + public override Azure.Management.KeyVault.Models.Vault Value { get { throw null; } } + public override Azure.Response GetRawResponse() { throw null; } + public override Azure.Response UpdateStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class VaultsPurgeDeletedOperation : Azure.Operation + { + internal VaultsPurgeDeletedOperation() { } + public override bool HasCompleted { get { throw null; } } + public override bool HasValue { get { throw null; } } + public override string Id { get { throw null; } } + public override Azure.Response Value { get { throw null; } } + public override Azure.Response GetRawResponse() { throw null; } + public override Azure.Response UpdateStatus(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask UpdateStatusAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask> WaitForCompletionAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public override System.Threading.Tasks.ValueTask> WaitForCompletionAsync(System.TimeSpan pollingInterval, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } +} +namespace Azure.Management.KeyVault.Models +{ + public partial class AccessPolicyEntry + { + public AccessPolicyEntry(System.Guid tenantId, string objectId, Azure.Management.KeyVault.Models.Permissions permissions) { } + public System.Guid? ApplicationId { get { throw null; } set { } } + public string ObjectId { get { throw null; } set { } } + public Azure.Management.KeyVault.Models.Permissions Permissions { get { throw null; } set { } } + public System.Guid TenantId { get { throw null; } set { } } + } + public enum AccessPolicyUpdateKind + { + Add = 0, + Replace = 1, + Remove = 2, + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct CertificatePermissions : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public CertificatePermissions(string value) { throw null; } + public static Azure.Management.KeyVault.Models.CertificatePermissions Backup { get { throw null; } } + public static Azure.Management.KeyVault.Models.CertificatePermissions Create { get { throw null; } } + public static Azure.Management.KeyVault.Models.CertificatePermissions Delete { get { throw null; } } + public static Azure.Management.KeyVault.Models.CertificatePermissions Deleteissuers { get { throw null; } } + public static Azure.Management.KeyVault.Models.CertificatePermissions Get { get { throw null; } } + public static Azure.Management.KeyVault.Models.CertificatePermissions Getissuers { get { throw null; } } + public static Azure.Management.KeyVault.Models.CertificatePermissions Import { get { throw null; } } + public static Azure.Management.KeyVault.Models.CertificatePermissions List { get { throw null; } } + public static Azure.Management.KeyVault.Models.CertificatePermissions Listissuers { get { throw null; } } + public static Azure.Management.KeyVault.Models.CertificatePermissions Managecontacts { get { throw null; } } + public static Azure.Management.KeyVault.Models.CertificatePermissions Manageissuers { get { throw null; } } + public static Azure.Management.KeyVault.Models.CertificatePermissions Purge { get { throw null; } } + public static Azure.Management.KeyVault.Models.CertificatePermissions Recover { get { throw null; } } + public static Azure.Management.KeyVault.Models.CertificatePermissions Restore { get { throw null; } } + public static Azure.Management.KeyVault.Models.CertificatePermissions Setissuers { get { throw null; } } + public static Azure.Management.KeyVault.Models.CertificatePermissions Update { get { throw null; } } + public bool Equals(Azure.Management.KeyVault.Models.CertificatePermissions other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Management.KeyVault.Models.CertificatePermissions left, Azure.Management.KeyVault.Models.CertificatePermissions right) { throw null; } + public static implicit operator Azure.Management.KeyVault.Models.CertificatePermissions (string value) { throw null; } + public static bool operator !=(Azure.Management.KeyVault.Models.CertificatePermissions left, Azure.Management.KeyVault.Models.CertificatePermissions right) { throw null; } + public override string ToString() { throw null; } + } + public partial class CheckNameAvailabilityResult + { + internal CheckNameAvailabilityResult() { } + public string Message { get { throw null; } } + public bool? NameAvailable { get { throw null; } } + public Azure.Management.KeyVault.Models.Reason? Reason { get { throw null; } } + } + public partial class CloudError + { + internal CloudError() { } + public Azure.Management.KeyVault.Models.CloudErrorBody Error { get { throw null; } } + } + public partial class CloudErrorBody + { + internal CloudErrorBody() { } + public string Code { get { throw null; } } + public string Message { get { throw null; } } + } + public enum CreateMode + { + Recover = 0, + Default = 1, + } + public partial class DeletedVault + { + internal DeletedVault() { } + public string Id { get { throw null; } } + public string Name { get { throw null; } } + public Azure.Management.KeyVault.Models.DeletedVaultProperties Properties { get { throw null; } } + public string Type { get { throw null; } } + } + public partial class DeletedVaultListResult + { + internal DeletedVaultListResult() { } + public string NextLink { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } + } + public partial class DeletedVaultProperties + { + internal DeletedVaultProperties() { } + public System.DateTimeOffset? DeletionDate { get { throw null; } } + public string Location { get { throw null; } } + public System.DateTimeOffset? ScheduledPurgeDate { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Tags { get { throw null; } } + public string VaultId { get { throw null; } } + } + public partial class IPRule + { + public IPRule(string value) { } + public string Value { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct KeyPermissions : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public KeyPermissions(string value) { throw null; } + public static Azure.Management.KeyVault.Models.KeyPermissions Backup { get { throw null; } } + public static Azure.Management.KeyVault.Models.KeyPermissions Create { get { throw null; } } + public static Azure.Management.KeyVault.Models.KeyPermissions Decrypt { get { throw null; } } + public static Azure.Management.KeyVault.Models.KeyPermissions Delete { get { throw null; } } + public static Azure.Management.KeyVault.Models.KeyPermissions Encrypt { get { throw null; } } + public static Azure.Management.KeyVault.Models.KeyPermissions Get { get { throw null; } } + public static Azure.Management.KeyVault.Models.KeyPermissions Import { get { throw null; } } + public static Azure.Management.KeyVault.Models.KeyPermissions List { get { throw null; } } + public static Azure.Management.KeyVault.Models.KeyPermissions Purge { get { throw null; } } + public static Azure.Management.KeyVault.Models.KeyPermissions Recover { get { throw null; } } + public static Azure.Management.KeyVault.Models.KeyPermissions Restore { get { throw null; } } + public static Azure.Management.KeyVault.Models.KeyPermissions Sign { get { throw null; } } + public static Azure.Management.KeyVault.Models.KeyPermissions UnwrapKey { get { throw null; } } + public static Azure.Management.KeyVault.Models.KeyPermissions Update { get { throw null; } } + public static Azure.Management.KeyVault.Models.KeyPermissions Verify { get { throw null; } } + public static Azure.Management.KeyVault.Models.KeyPermissions WrapKey { get { throw null; } } + public bool Equals(Azure.Management.KeyVault.Models.KeyPermissions other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Management.KeyVault.Models.KeyPermissions left, Azure.Management.KeyVault.Models.KeyPermissions right) { throw null; } + public static implicit operator Azure.Management.KeyVault.Models.KeyPermissions (string value) { throw null; } + public static bool operator !=(Azure.Management.KeyVault.Models.KeyPermissions left, Azure.Management.KeyVault.Models.KeyPermissions right) { throw null; } + public override string ToString() { throw null; } + } + public partial class LogSpecification + { + internal LogSpecification() { } + public string BlobDuration { get { throw null; } } + public string DisplayName { get { throw null; } } + public string Name { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct NetworkRuleAction : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public NetworkRuleAction(string value) { throw null; } + public static Azure.Management.KeyVault.Models.NetworkRuleAction Allow { get { throw null; } } + public static Azure.Management.KeyVault.Models.NetworkRuleAction Deny { get { throw null; } } + public bool Equals(Azure.Management.KeyVault.Models.NetworkRuleAction other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Management.KeyVault.Models.NetworkRuleAction left, Azure.Management.KeyVault.Models.NetworkRuleAction right) { throw null; } + public static implicit operator Azure.Management.KeyVault.Models.NetworkRuleAction (string value) { throw null; } + public static bool operator !=(Azure.Management.KeyVault.Models.NetworkRuleAction left, Azure.Management.KeyVault.Models.NetworkRuleAction right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct NetworkRuleBypassOptions : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public NetworkRuleBypassOptions(string value) { throw null; } + public static Azure.Management.KeyVault.Models.NetworkRuleBypassOptions AzureServices { get { throw null; } } + public static Azure.Management.KeyVault.Models.NetworkRuleBypassOptions None { get { throw null; } } + public bool Equals(Azure.Management.KeyVault.Models.NetworkRuleBypassOptions other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Management.KeyVault.Models.NetworkRuleBypassOptions left, Azure.Management.KeyVault.Models.NetworkRuleBypassOptions right) { throw null; } + public static implicit operator Azure.Management.KeyVault.Models.NetworkRuleBypassOptions (string value) { throw null; } + public static bool operator !=(Azure.Management.KeyVault.Models.NetworkRuleBypassOptions left, Azure.Management.KeyVault.Models.NetworkRuleBypassOptions right) { throw null; } + public override string ToString() { throw null; } + } + public partial class NetworkRuleSet + { + public NetworkRuleSet() { } + public Azure.Management.KeyVault.Models.NetworkRuleBypassOptions? Bypass { get { throw null; } set { } } + public Azure.Management.KeyVault.Models.NetworkRuleAction? DefaultAction { get { throw null; } set { } } + public System.Collections.Generic.IList IpRules { get { throw null; } set { } } + public System.Collections.Generic.IList VirtualNetworkRules { get { throw null; } set { } } + } + public partial class Operation + { + internal Operation() { } + public Azure.Management.KeyVault.Models.OperationDisplay Display { get { throw null; } } + public string Name { get { throw null; } } + public string Origin { get { throw null; } } + public Azure.Management.KeyVault.Models.ServiceSpecification ServiceSpecification { get { throw null; } } + } + public partial class OperationDisplay + { + internal OperationDisplay() { } + public string Description { get { throw null; } } + public string Operation { get { throw null; } } + public string Provider { get { throw null; } } + public string Resource { get { throw null; } } + } + public partial class OperationListResult + { + internal OperationListResult() { } + public string NextLink { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } + } + public partial class Permissions + { + public Permissions() { } + public System.Collections.Generic.IList Certificates { get { throw null; } set { } } + public System.Collections.Generic.IList Keys { get { throw null; } set { } } + public System.Collections.Generic.IList Secrets { get { throw null; } set { } } + public System.Collections.Generic.IList Storage { get { throw null; } set { } } + } + public partial class PrivateEndpoint + { + public PrivateEndpoint() { } + public string Id { get { throw null; } } + } + public partial class PrivateEndpointConnection : Azure.Management.KeyVault.Models.Resource + { + public PrivateEndpointConnection() { } + public Azure.Management.KeyVault.Models.PrivateEndpoint PrivateEndpoint { get { throw null; } set { } } + public Azure.Management.KeyVault.Models.PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } + public Azure.Management.KeyVault.Models.PrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } } + } + public partial class PrivateEndpointConnectionItem + { + public PrivateEndpointConnectionItem() { } + public Azure.Management.KeyVault.Models.PrivateEndpoint PrivateEndpoint { get { throw null; } set { } } + public Azure.Management.KeyVault.Models.PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get { throw null; } set { } } + public Azure.Management.KeyVault.Models.PrivateEndpointConnectionProvisioningState? ProvisioningState { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct PrivateEndpointConnectionProvisioningState : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public PrivateEndpointConnectionProvisioningState(string value) { throw null; } + public static Azure.Management.KeyVault.Models.PrivateEndpointConnectionProvisioningState Creating { get { throw null; } } + public static Azure.Management.KeyVault.Models.PrivateEndpointConnectionProvisioningState Deleting { get { throw null; } } + public static Azure.Management.KeyVault.Models.PrivateEndpointConnectionProvisioningState Disconnected { get { throw null; } } + public static Azure.Management.KeyVault.Models.PrivateEndpointConnectionProvisioningState Failed { get { throw null; } } + public static Azure.Management.KeyVault.Models.PrivateEndpointConnectionProvisioningState Succeeded { get { throw null; } } + public static Azure.Management.KeyVault.Models.PrivateEndpointConnectionProvisioningState Updating { get { throw null; } } + public bool Equals(Azure.Management.KeyVault.Models.PrivateEndpointConnectionProvisioningState other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Management.KeyVault.Models.PrivateEndpointConnectionProvisioningState left, Azure.Management.KeyVault.Models.PrivateEndpointConnectionProvisioningState right) { throw null; } + public static implicit operator Azure.Management.KeyVault.Models.PrivateEndpointConnectionProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.Management.KeyVault.Models.PrivateEndpointConnectionProvisioningState left, Azure.Management.KeyVault.Models.PrivateEndpointConnectionProvisioningState right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct PrivateEndpointServiceConnectionStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public PrivateEndpointServiceConnectionStatus(string value) { throw null; } + public static Azure.Management.KeyVault.Models.PrivateEndpointServiceConnectionStatus Approved { get { throw null; } } + public static Azure.Management.KeyVault.Models.PrivateEndpointServiceConnectionStatus Disconnected { get { throw null; } } + public static Azure.Management.KeyVault.Models.PrivateEndpointServiceConnectionStatus Pending { get { throw null; } } + public static Azure.Management.KeyVault.Models.PrivateEndpointServiceConnectionStatus Rejected { get { throw null; } } + public bool Equals(Azure.Management.KeyVault.Models.PrivateEndpointServiceConnectionStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Management.KeyVault.Models.PrivateEndpointServiceConnectionStatus left, Azure.Management.KeyVault.Models.PrivateEndpointServiceConnectionStatus right) { throw null; } + public static implicit operator Azure.Management.KeyVault.Models.PrivateEndpointServiceConnectionStatus (string value) { throw null; } + public static bool operator !=(Azure.Management.KeyVault.Models.PrivateEndpointServiceConnectionStatus left, Azure.Management.KeyVault.Models.PrivateEndpointServiceConnectionStatus right) { throw null; } + public override string ToString() { throw null; } + } + public partial class PrivateLinkResource : Azure.Management.KeyVault.Models.Resource + { + public PrivateLinkResource() { } + public string GroupId { get { throw null; } } + public System.Collections.Generic.IList RequiredMembers { get { throw null; } } + public System.Collections.Generic.IList RequiredZoneNames { get { throw null; } set { } } + } + public partial class PrivateLinkResourceListResult + { + internal PrivateLinkResourceListResult() { } + public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } + } + public partial class PrivateLinkServiceConnectionState + { + public PrivateLinkServiceConnectionState() { } + public string ActionRequired { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.Management.KeyVault.Models.PrivateEndpointServiceConnectionStatus? Status { get { throw null; } set { } } + } + public enum Reason + { + AccountNameInvalid = 0, + AlreadyExists = 1, + } + public partial class Resource + { + public Resource() { } + public string Id { get { throw null; } } + public string Location { get { throw null; } } + public string Name { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + public string Type { get { throw null; } } + } + public partial class ResourceListResult + { + internal ResourceListResult() { } + public string NextLink { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct SecretPermissions : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public SecretPermissions(string value) { throw null; } + public static Azure.Management.KeyVault.Models.SecretPermissions Backup { get { throw null; } } + public static Azure.Management.KeyVault.Models.SecretPermissions Delete { get { throw null; } } + public static Azure.Management.KeyVault.Models.SecretPermissions Get { get { throw null; } } + public static Azure.Management.KeyVault.Models.SecretPermissions List { get { throw null; } } + public static Azure.Management.KeyVault.Models.SecretPermissions Purge { get { throw null; } } + public static Azure.Management.KeyVault.Models.SecretPermissions Recover { get { throw null; } } + public static Azure.Management.KeyVault.Models.SecretPermissions Restore { get { throw null; } } + public static Azure.Management.KeyVault.Models.SecretPermissions Set { get { throw null; } } + public bool Equals(Azure.Management.KeyVault.Models.SecretPermissions other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Management.KeyVault.Models.SecretPermissions left, Azure.Management.KeyVault.Models.SecretPermissions right) { throw null; } + public static implicit operator Azure.Management.KeyVault.Models.SecretPermissions (string value) { throw null; } + public static bool operator !=(Azure.Management.KeyVault.Models.SecretPermissions left, Azure.Management.KeyVault.Models.SecretPermissions right) { throw null; } + public override string ToString() { throw null; } + } + public partial class ServiceSpecification + { + internal ServiceSpecification() { } + public System.Collections.Generic.IReadOnlyList LogSpecifications { get { throw null; } } + } + public partial class Sku + { + public Sku(Azure.Management.KeyVault.Models.SkuName name) { } + public string Family { get { throw null; } set { } } + public Azure.Management.KeyVault.Models.SkuName Name { get { throw null; } set { } } + } + public enum SkuName + { + Standard = 0, + Premium = 1, + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct StoragePermissions : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public StoragePermissions(string value) { throw null; } + public static Azure.Management.KeyVault.Models.StoragePermissions Backup { get { throw null; } } + public static Azure.Management.KeyVault.Models.StoragePermissions Delete { get { throw null; } } + public static Azure.Management.KeyVault.Models.StoragePermissions Deletesas { get { throw null; } } + public static Azure.Management.KeyVault.Models.StoragePermissions Get { get { throw null; } } + public static Azure.Management.KeyVault.Models.StoragePermissions Getsas { get { throw null; } } + public static Azure.Management.KeyVault.Models.StoragePermissions List { get { throw null; } } + public static Azure.Management.KeyVault.Models.StoragePermissions Listsas { get { throw null; } } + public static Azure.Management.KeyVault.Models.StoragePermissions Purge { get { throw null; } } + public static Azure.Management.KeyVault.Models.StoragePermissions Recover { get { throw null; } } + public static Azure.Management.KeyVault.Models.StoragePermissions Regeneratekey { get { throw null; } } + public static Azure.Management.KeyVault.Models.StoragePermissions Restore { get { throw null; } } + public static Azure.Management.KeyVault.Models.StoragePermissions Set { get { throw null; } } + public static Azure.Management.KeyVault.Models.StoragePermissions Setsas { get { throw null; } } + public static Azure.Management.KeyVault.Models.StoragePermissions Update { get { throw null; } } + public bool Equals(Azure.Management.KeyVault.Models.StoragePermissions other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.Management.KeyVault.Models.StoragePermissions left, Azure.Management.KeyVault.Models.StoragePermissions right) { throw null; } + public static implicit operator Azure.Management.KeyVault.Models.StoragePermissions (string value) { throw null; } + public static bool operator !=(Azure.Management.KeyVault.Models.StoragePermissions left, Azure.Management.KeyVault.Models.StoragePermissions right) { throw null; } + public override string ToString() { throw null; } + } + public partial class Vault + { + internal Vault() { } + public string Id { get { throw null; } } + public string Location { get { throw null; } } + public string Name { get { throw null; } } + public Azure.Management.KeyVault.Models.VaultProperties Properties { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Tags { get { throw null; } } + public string Type { get { throw null; } } + } + public partial class VaultAccessPolicyParameters + { + public VaultAccessPolicyParameters(Azure.Management.KeyVault.Models.VaultAccessPolicyProperties properties) { } + public string Id { get { throw null; } } + public string Location { get { throw null; } } + public string Name { get { throw null; } } + public Azure.Management.KeyVault.Models.VaultAccessPolicyProperties Properties { get { throw null; } set { } } + public string Type { get { throw null; } } + } + public partial class VaultAccessPolicyProperties + { + public VaultAccessPolicyProperties(System.Collections.Generic.IEnumerable accessPolicies) { } + public System.Collections.Generic.IList AccessPolicies { get { throw null; } set { } } + } + public partial class VaultCheckNameAvailabilityParameters + { + public VaultCheckNameAvailabilityParameters(string name) { } + public string Name { get { throw null; } } + public string Type { get { throw null; } } + } + public partial class VaultCreateOrUpdateParameters + { + public VaultCreateOrUpdateParameters(string location, Azure.Management.KeyVault.Models.VaultProperties properties) { } + public string Location { get { throw null; } } + public Azure.Management.KeyVault.Models.VaultProperties Properties { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } + } + public partial class VaultListResult + { + internal VaultListResult() { } + public string NextLink { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Value { get { throw null; } } + } + public partial class VaultPatchParameters + { + public VaultPatchParameters() { } + public Azure.Management.KeyVault.Models.VaultPatchProperties Properties { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } set { } } + } + public partial class VaultPatchProperties + { + public VaultPatchProperties() { } + public System.Collections.Generic.IList AccessPolicies { get { throw null; } set { } } + public Azure.Management.KeyVault.Models.CreateMode? CreateMode { get { throw null; } set { } } + public bool? EnabledForDeployment { get { throw null; } set { } } + public bool? EnabledForDiskEncryption { get { throw null; } set { } } + public bool? EnabledForTemplateDeployment { get { throw null; } set { } } + public bool? EnablePurgeProtection { get { throw null; } set { } } + public bool? EnableSoftDelete { get { throw null; } set { } } + public Azure.Management.KeyVault.Models.NetworkRuleSet NetworkAcls { get { throw null; } set { } } + public Azure.Management.KeyVault.Models.Sku Sku { get { throw null; } set { } } + public System.Guid? TenantId { get { throw null; } set { } } + } + public partial class VaultProperties + { + public VaultProperties(System.Guid tenantId, Azure.Management.KeyVault.Models.Sku sku) { } + public System.Collections.Generic.IList AccessPolicies { get { throw null; } set { } } + public Azure.Management.KeyVault.Models.CreateMode? CreateMode { get { throw null; } set { } } + public bool? EnabledForDeployment { get { throw null; } set { } } + public bool? EnabledForDiskEncryption { get { throw null; } set { } } + public bool? EnabledForTemplateDeployment { get { throw null; } set { } } + public bool? EnablePurgeProtection { get { throw null; } set { } } + public bool? EnableSoftDelete { get { throw null; } set { } } + public Azure.Management.KeyVault.Models.NetworkRuleSet NetworkAcls { get { throw null; } set { } } + public System.Collections.Generic.IList PrivateEndpointConnections { get { throw null; } } + public Azure.Management.KeyVault.Models.Sku Sku { get { throw null; } set { } } + public System.Guid TenantId { get { throw null; } set { } } + public string VaultUri { get { throw null; } set { } } + } + public partial class VirtualNetworkRule + { + public VirtualNetworkRule(string id) { } + public string Id { get { throw null; } set { } } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Azure.Management.KeyVault.csproj b/sdk/keyvault/Azure.Management.KeyVault/src/Azure.Management.KeyVault.csproj new file mode 100644 index 0000000000000..feb8c978de5fb --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Azure.Management.KeyVault.csproj @@ -0,0 +1,10 @@ + + + 1.0.0-preview.1 + Azure.Management.KeyVault + Azure management client SDK for Azure resource provider Microsoft.KeyVault + azure;management;keyvault + + $(NoWarn);AZC0008 + + diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/KeyVaultManagementClient.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/KeyVaultManagementClient.cs new file mode 100644 index 0000000000000..6d122a1a81446 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/KeyVaultManagementClient.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.KeyVault; + +namespace Azure.Management.KeyVault +{ + /// KeyVault service management client. + public class KeyVaultManagementClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + private readonly string _subscriptionId; + private readonly Uri _endpoint; + + /// Initializes a new instance of KeyVaultManagementClient for mocking. + protected KeyVaultManagementClient() + { + } + + /// Initializes a new instance of KeyVaultManagementClient. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The OAuth token for making client requests. + /// The options for configuring the client. + public KeyVaultManagementClient(string subscriptionId, TokenCredential tokenCredential, KeyVaultManagementClientOptions options = null) : this(subscriptionId, null, tokenCredential, options) + { + } + /// Initializes a new instance of KeyVaultManagementClient. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// server parameter. + /// The OAuth token for making client requests. + /// The options for configuring the client. + /// This occurs when one of the required arguments is null. + public KeyVaultManagementClient(string subscriptionId, Uri endpoint, TokenCredential tokenCredential, KeyVaultManagementClientOptions options = null) + { + if (subscriptionId == null) + { + throw new ArgumentNullException(nameof(subscriptionId)); + } + endpoint ??= new Uri("https://management.azure.com"); + + options ??= new KeyVaultManagementClientOptions(); + _clientDiagnostics = new ClientDiagnostics(options); + _pipeline = ManagementPipelineBuilder.Build(tokenCredential, endpoint, options); + _subscriptionId = subscriptionId; + _endpoint = endpoint; + } + + /// Creates a new instance of VaultsClient. + public virtual VaultsClient GetVaultsClient() + { + return new VaultsClient(_clientDiagnostics, _pipeline, _subscriptionId, _endpoint); + } + + /// Creates a new instance of PrivateEndpointConnectionsClient. + public virtual PrivateEndpointConnectionsClient GetPrivateEndpointConnectionsClient() + { + return new PrivateEndpointConnectionsClient(_clientDiagnostics, _pipeline, _subscriptionId, _endpoint); + } + + /// Creates a new instance of PrivateLinkResourcesClient. + public virtual PrivateLinkResourcesClient GetPrivateLinkResourcesClient() + { + return new PrivateLinkResourcesClient(_clientDiagnostics, _pipeline, _subscriptionId, _endpoint); + } + + /// Creates a new instance of OperationsClient. + public virtual OperationsClient GetOperationsClient() + { + return new OperationsClient(_clientDiagnostics, _pipeline, _endpoint); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/KeyVaultManagementClientOptions.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/KeyVaultManagementClientOptions.cs new file mode 100644 index 0000000000000..381e387330af4 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/KeyVaultManagementClientOptions.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; + +namespace Azure.Management.KeyVault +{ + /// Client options for KeyVault. + public class KeyVaultManagementClientOptions : ClientOptions + { + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/AccessPolicyEntry.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/AccessPolicyEntry.Serialization.cs new file mode 100644 index 0000000000000..393f6f8e79014 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/AccessPolicyEntry.Serialization.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class AccessPolicyEntry : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("tenantId"); + writer.WriteStringValue(TenantId); + writer.WritePropertyName("objectId"); + writer.WriteStringValue(ObjectId); + if (ApplicationId != null) + { + writer.WritePropertyName("applicationId"); + writer.WriteStringValue(ApplicationId.Value); + } + writer.WritePropertyName("permissions"); + writer.WriteObjectValue(Permissions); + writer.WriteEndObject(); + } + + internal static AccessPolicyEntry DeserializeAccessPolicyEntry(JsonElement element) + { + Guid tenantId = default; + string objectId = default; + Guid? applicationId = default; + Permissions permissions = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("tenantId")) + { + tenantId = property.Value.GetGuid(); + continue; + } + if (property.NameEquals("objectId")) + { + objectId = property.Value.GetString(); + continue; + } + if (property.NameEquals("applicationId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + applicationId = property.Value.GetGuid(); + continue; + } + if (property.NameEquals("permissions")) + { + permissions = Permissions.DeserializePermissions(property.Value); + continue; + } + } + return new AccessPolicyEntry(tenantId, objectId, applicationId, permissions); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/AccessPolicyEntry.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/AccessPolicyEntry.cs new file mode 100644 index 0000000000000..56a16deb33bce --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/AccessPolicyEntry.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Management.KeyVault.Models +{ + /// An identity that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID. + public partial class AccessPolicyEntry + { + /// Initializes a new instance of AccessPolicyEntry. + /// The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault. + /// The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies. + /// Permissions the identity has for keys, secrets and certificates. + public AccessPolicyEntry(Guid tenantId, string objectId, Permissions permissions) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (permissions == null) + { + throw new ArgumentNullException(nameof(permissions)); + } + + TenantId = tenantId; + ObjectId = objectId; + Permissions = permissions; + } + + /// Initializes a new instance of AccessPolicyEntry. + /// The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault. + /// The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies. + /// Application ID of the client making request on behalf of a principal. + /// Permissions the identity has for keys, secrets and certificates. + internal AccessPolicyEntry(Guid tenantId, string objectId, Guid? applicationId, Permissions permissions) + { + TenantId = tenantId; + ObjectId = objectId; + ApplicationId = applicationId; + Permissions = permissions; + } + + /// The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault. + public Guid TenantId { get; set; } + /// The object ID of a user, service principal or security group in the Azure Active Directory tenant for the vault. The object ID must be unique for the list of access policies. + public string ObjectId { get; set; } + /// Application ID of the client making request on behalf of a principal. + public Guid? ApplicationId { get; set; } + /// Permissions the identity has for keys, secrets and certificates. + public Permissions Permissions { get; set; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/AccessPolicyUpdateKind.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/AccessPolicyUpdateKind.Serialization.cs new file mode 100644 index 0000000000000..88ab4a2a56f79 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/AccessPolicyUpdateKind.Serialization.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Management.KeyVault.Models +{ + internal static class AccessPolicyUpdateKindExtensions + { + public static string ToSerialString(this AccessPolicyUpdateKind value) => value switch + { + AccessPolicyUpdateKind.Add => "add", + AccessPolicyUpdateKind.Replace => "replace", + AccessPolicyUpdateKind.Remove => "remove", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AccessPolicyUpdateKind value.") + }; + + public static AccessPolicyUpdateKind ToAccessPolicyUpdateKind(this string value) + { + if (string.Equals(value, "add", StringComparison.InvariantCultureIgnoreCase)) return AccessPolicyUpdateKind.Add; + if (string.Equals(value, "replace", StringComparison.InvariantCultureIgnoreCase)) return AccessPolicyUpdateKind.Replace; + if (string.Equals(value, "remove", StringComparison.InvariantCultureIgnoreCase)) return AccessPolicyUpdateKind.Remove; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown AccessPolicyUpdateKind value."); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/AccessPolicyUpdateKind.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/AccessPolicyUpdateKind.cs new file mode 100644 index 0000000000000..67aad701d46c0 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/AccessPolicyUpdateKind.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.KeyVault.Models +{ + /// The AccessPolicyUpdateKind. + public enum AccessPolicyUpdateKind + { + /// add. + Add, + /// replace. + Replace, + /// remove. + Remove + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CertificatePermissions.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CertificatePermissions.cs new file mode 100644 index 0000000000000..6d7daf246b8d7 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CertificatePermissions.cs @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Management.KeyVault.Models +{ + /// The CertificatePermissions. + public readonly partial struct CertificatePermissions : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + public CertificatePermissions(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string GetValue = "get"; + private const string ListValue = "list"; + private const string DeleteValue = "delete"; + private const string CreateValue = "create"; + private const string ImportValue = "import"; + private const string UpdateValue = "update"; + private const string ManagecontactsValue = "managecontacts"; + private const string GetissuersValue = "getissuers"; + private const string ListissuersValue = "listissuers"; + private const string SetissuersValue = "setissuers"; + private const string DeleteissuersValue = "deleteissuers"; + private const string ManageissuersValue = "manageissuers"; + private const string RecoverValue = "recover"; + private const string PurgeValue = "purge"; + private const string BackupValue = "backup"; + private const string RestoreValue = "restore"; + + /// get. + public static CertificatePermissions Get { get; } = new CertificatePermissions(GetValue); + /// list. + public static CertificatePermissions List { get; } = new CertificatePermissions(ListValue); + /// delete. + public static CertificatePermissions Delete { get; } = new CertificatePermissions(DeleteValue); + /// create. + public static CertificatePermissions Create { get; } = new CertificatePermissions(CreateValue); + /// import. + public static CertificatePermissions Import { get; } = new CertificatePermissions(ImportValue); + /// update. + public static CertificatePermissions Update { get; } = new CertificatePermissions(UpdateValue); + /// managecontacts. + public static CertificatePermissions Managecontacts { get; } = new CertificatePermissions(ManagecontactsValue); + /// getissuers. + public static CertificatePermissions Getissuers { get; } = new CertificatePermissions(GetissuersValue); + /// listissuers. + public static CertificatePermissions Listissuers { get; } = new CertificatePermissions(ListissuersValue); + /// setissuers. + public static CertificatePermissions Setissuers { get; } = new CertificatePermissions(SetissuersValue); + /// deleteissuers. + public static CertificatePermissions Deleteissuers { get; } = new CertificatePermissions(DeleteissuersValue); + /// manageissuers. + public static CertificatePermissions Manageissuers { get; } = new CertificatePermissions(ManageissuersValue); + /// recover. + public static CertificatePermissions Recover { get; } = new CertificatePermissions(RecoverValue); + /// purge. + public static CertificatePermissions Purge { get; } = new CertificatePermissions(PurgeValue); + /// backup. + public static CertificatePermissions Backup { get; } = new CertificatePermissions(BackupValue); + /// restore. + public static CertificatePermissions Restore { get; } = new CertificatePermissions(RestoreValue); + /// Determines if two values are the same. + public static bool operator ==(CertificatePermissions left, CertificatePermissions right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(CertificatePermissions left, CertificatePermissions right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator CertificatePermissions(string value) => new CertificatePermissions(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is CertificatePermissions other && Equals(other); + /// + public bool Equals(CertificatePermissions other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CheckNameAvailabilityResult.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CheckNameAvailabilityResult.Serialization.cs new file mode 100644 index 0000000000000..612be20082e41 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CheckNameAvailabilityResult.Serialization.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class CheckNameAvailabilityResult + { + internal static CheckNameAvailabilityResult DeserializeCheckNameAvailabilityResult(JsonElement element) + { + bool? nameAvailable = default; + Reason? reason = default; + string message = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nameAvailable")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nameAvailable = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("reason")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + reason = property.Value.GetString().ToReason(); + continue; + } + if (property.NameEquals("message")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + message = property.Value.GetString(); + continue; + } + } + return new CheckNameAvailabilityResult(nameAvailable, reason, message); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CheckNameAvailabilityResult.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CheckNameAvailabilityResult.cs new file mode 100644 index 0000000000000..40c9ec31302ac --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CheckNameAvailabilityResult.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.KeyVault.Models +{ + /// The CheckNameAvailability operation response. + public partial class CheckNameAvailabilityResult + { + /// Initializes a new instance of CheckNameAvailabilityResult. + internal CheckNameAvailabilityResult() + { + } + + /// Initializes a new instance of CheckNameAvailabilityResult. + /// A boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used. + /// The reason that a vault name could not be used. The Reason element is only returned if NameAvailable is false. + /// An error message explaining the Reason value in more detail. + internal CheckNameAvailabilityResult(bool? nameAvailable, Reason? reason, string message) + { + NameAvailable = nameAvailable; + Reason = reason; + Message = message; + } + + /// A boolean value that indicates whether the name is available for you to use. If true, the name is available. If false, the name has already been taken or is invalid and cannot be used. + public bool? NameAvailable { get; } + /// The reason that a vault name could not be used. The Reason element is only returned if NameAvailable is false. + public Reason? Reason { get; } + /// An error message explaining the Reason value in more detail. + public string Message { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CloudError.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CloudError.Serialization.cs new file mode 100644 index 0000000000000..be4c75135adc3 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CloudError.Serialization.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class CloudError + { + internal static CloudError DeserializeCloudError(JsonElement element) + { + CloudErrorBody error = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("error")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + error = CloudErrorBody.DeserializeCloudErrorBody(property.Value); + continue; + } + } + return new CloudError(error); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CloudError.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CloudError.cs new file mode 100644 index 0000000000000..0f86929b599af --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CloudError.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.KeyVault.Models +{ + /// An error response from Key Vault resource provider. + public partial class CloudError + { + /// Initializes a new instance of CloudError. + internal CloudError() + { + } + + /// Initializes a new instance of CloudError. + /// An error response from Key Vault resource provider. + internal CloudError(CloudErrorBody error) + { + Error = error; + } + + /// An error response from Key Vault resource provider. + public CloudErrorBody Error { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CloudErrorBody.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CloudErrorBody.Serialization.cs new file mode 100644 index 0000000000000..8ea186fecf0d7 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CloudErrorBody.Serialization.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class CloudErrorBody + { + internal static CloudErrorBody DeserializeCloudErrorBody(JsonElement element) + { + string code = default; + string message = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("code")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + code = property.Value.GetString(); + continue; + } + if (property.NameEquals("message")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + message = property.Value.GetString(); + continue; + } + } + return new CloudErrorBody(code, message); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CloudErrorBody.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CloudErrorBody.cs new file mode 100644 index 0000000000000..3ce912ed1b4eb --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CloudErrorBody.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.KeyVault.Models +{ + /// An error response from Key Vault resource provider. + public partial class CloudErrorBody + { + /// Initializes a new instance of CloudErrorBody. + internal CloudErrorBody() + { + } + + /// Initializes a new instance of CloudErrorBody. + /// Error code. This is a mnemonic that can be consumed programmatically. + /// User friendly error message. The message is typically localized and may vary with service version. + internal CloudErrorBody(string code, string message) + { + Code = code; + Message = message; + } + + /// Error code. This is a mnemonic that can be consumed programmatically. + public string Code { get; } + /// User friendly error message. The message is typically localized and may vary with service version. + public string Message { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CreateMode.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CreateMode.Serialization.cs new file mode 100644 index 0000000000000..25575be721962 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CreateMode.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Management.KeyVault.Models +{ + internal static class CreateModeExtensions + { + public static string ToSerialString(this CreateMode value) => value switch + { + CreateMode.Recover => "recover", + CreateMode.Default => "default", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CreateMode value.") + }; + + public static CreateMode ToCreateMode(this string value) + { + if (string.Equals(value, "recover", StringComparison.InvariantCultureIgnoreCase)) return CreateMode.Recover; + if (string.Equals(value, "default", StringComparison.InvariantCultureIgnoreCase)) return CreateMode.Default; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown CreateMode value."); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CreateMode.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CreateMode.cs new file mode 100644 index 0000000000000..daebf0e22af83 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/CreateMode.cs @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.KeyVault.Models +{ + /// The vault's create mode to indicate whether the vault need to be recovered or not. + public enum CreateMode + { + /// recover. + Recover, + /// default. + Default + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/DeletedVault.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/DeletedVault.Serialization.cs new file mode 100644 index 0000000000000..c8429bf528420 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/DeletedVault.Serialization.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class DeletedVault + { + internal static DeletedVault DeserializeDeletedVault(JsonElement element) + { + string id = default; + string name = default; + string type = default; + DeletedVaultProperties properties = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = DeletedVaultProperties.DeserializeDeletedVaultProperties(property.Value); + continue; + } + } + return new DeletedVault(id, name, type, properties); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/DeletedVault.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/DeletedVault.cs new file mode 100644 index 0000000000000..8f078e5a63563 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/DeletedVault.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.KeyVault.Models +{ + /// Deleted vault information with extended details. + public partial class DeletedVault + { + /// Initializes a new instance of DeletedVault. + internal DeletedVault() + { + } + + /// Initializes a new instance of DeletedVault. + /// The resource ID for the deleted key vault. + /// The name of the key vault. + /// The resource type of the key vault. + /// Properties of the vault. + internal DeletedVault(string id, string name, string type, DeletedVaultProperties properties) + { + Id = id; + Name = name; + Type = type; + Properties = properties; + } + + /// The resource ID for the deleted key vault. + public string Id { get; } + /// The name of the key vault. + public string Name { get; } + /// The resource type of the key vault. + public string Type { get; } + /// Properties of the vault. + public DeletedVaultProperties Properties { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/DeletedVaultListResult.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/DeletedVaultListResult.Serialization.cs new file mode 100644 index 0000000000000..b57d8d81d7a9e --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/DeletedVaultListResult.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class DeletedVaultListResult + { + internal static DeletedVaultListResult DeserializeDeletedVaultListResult(JsonElement element) + { + IReadOnlyList value = default; + string nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(DeletedVault.DeserializeDeletedVault(item)); + } + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = property.Value.GetString(); + continue; + } + } + return new DeletedVaultListResult(value, nextLink); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/DeletedVaultListResult.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/DeletedVaultListResult.cs new file mode 100644 index 0000000000000..63d13f3a3f924 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/DeletedVaultListResult.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.KeyVault.Models +{ + /// List of vaults. + public partial class DeletedVaultListResult + { + /// Initializes a new instance of DeletedVaultListResult. + internal DeletedVaultListResult() + { + } + + /// Initializes a new instance of DeletedVaultListResult. + /// The list of deleted vaults. + /// The URL to get the next set of deleted vaults. + internal DeletedVaultListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The list of deleted vaults. + public IReadOnlyList Value { get; } + /// The URL to get the next set of deleted vaults. + public string NextLink { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/DeletedVaultProperties.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/DeletedVaultProperties.Serialization.cs new file mode 100644 index 0000000000000..641aa9bb3a79d --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/DeletedVaultProperties.Serialization.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class DeletedVaultProperties + { + internal static DeletedVaultProperties DeserializeDeletedVaultProperties(JsonElement element) + { + string vaultId = default; + string location = default; + DateTimeOffset? deletionDate = default; + DateTimeOffset? scheduledPurgeDate = default; + IReadOnlyDictionary tags = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("vaultId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + vaultId = property.Value.GetString(); + continue; + } + if (property.NameEquals("location")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + location = property.Value.GetString(); + continue; + } + if (property.NameEquals("deletionDate")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + deletionDate = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("scheduledPurgeDate")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + scheduledPurgeDate = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("tags")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(property0.Name, null); + } + else + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + } + tags = dictionary; + continue; + } + } + return new DeletedVaultProperties(vaultId, location, deletionDate, scheduledPurgeDate, tags); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/DeletedVaultProperties.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/DeletedVaultProperties.cs new file mode 100644 index 0000000000000..1e434eb5cbaca --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/DeletedVaultProperties.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Management.KeyVault.Models +{ + /// Properties of the deleted vault. + public partial class DeletedVaultProperties + { + /// Initializes a new instance of DeletedVaultProperties. + internal DeletedVaultProperties() + { + } + + /// Initializes a new instance of DeletedVaultProperties. + /// The resource id of the original vault. + /// The location of the original vault. + /// The deleted date. + /// The scheduled purged date. + /// Tags of the original vault. + internal DeletedVaultProperties(string vaultId, string location, DateTimeOffset? deletionDate, DateTimeOffset? scheduledPurgeDate, IReadOnlyDictionary tags) + { + VaultId = vaultId; + Location = location; + DeletionDate = deletionDate; + ScheduledPurgeDate = scheduledPurgeDate; + Tags = tags; + } + + /// The resource id of the original vault. + public string VaultId { get; } + /// The location of the original vault. + public string Location { get; } + /// The deleted date. + public DateTimeOffset? DeletionDate { get; } + /// The scheduled purged date. + public DateTimeOffset? ScheduledPurgeDate { get; } + /// Tags of the original vault. + public IReadOnlyDictionary Tags { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/IPRule.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/IPRule.Serialization.cs new file mode 100644 index 0000000000000..119a2d13c200d --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/IPRule.Serialization.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class IPRule : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("value"); + writer.WriteStringValue(Value); + writer.WriteEndObject(); + } + + internal static IPRule DeserializeIPRule(JsonElement element) + { + string value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + value = property.Value.GetString(); + continue; + } + } + return new IPRule(value); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/IPRule.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/IPRule.cs new file mode 100644 index 0000000000000..98cacfae0a2bd --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/IPRule.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Management.KeyVault.Models +{ + /// A rule governing the accessibility of a vault from a specific ip address or ip range. + public partial class IPRule + { + /// Initializes a new instance of IPRule. + /// An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78). + public IPRule(string value) + { + if (value == null) + { + throw new ArgumentNullException(nameof(value)); + } + + Value = value; + } + + /// An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78). + public string Value { get; set; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/KeyPermissions.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/KeyPermissions.cs new file mode 100644 index 0000000000000..5de80bb7e59e0 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/KeyPermissions.cs @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Management.KeyVault.Models +{ + /// The KeyPermissions. + public readonly partial struct KeyPermissions : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + public KeyPermissions(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EncryptValue = "encrypt"; + private const string DecryptValue = "decrypt"; + private const string WrapKeyValue = "wrapKey"; + private const string UnwrapKeyValue = "unwrapKey"; + private const string SignValue = "sign"; + private const string VerifyValue = "verify"; + private const string GetValue = "get"; + private const string ListValue = "list"; + private const string CreateValue = "create"; + private const string UpdateValue = "update"; + private const string ImportValue = "import"; + private const string DeleteValue = "delete"; + private const string BackupValue = "backup"; + private const string RestoreValue = "restore"; + private const string RecoverValue = "recover"; + private const string PurgeValue = "purge"; + + /// encrypt. + public static KeyPermissions Encrypt { get; } = new KeyPermissions(EncryptValue); + /// decrypt. + public static KeyPermissions Decrypt { get; } = new KeyPermissions(DecryptValue); + /// wrapKey. + public static KeyPermissions WrapKey { get; } = new KeyPermissions(WrapKeyValue); + /// unwrapKey. + public static KeyPermissions UnwrapKey { get; } = new KeyPermissions(UnwrapKeyValue); + /// sign. + public static KeyPermissions Sign { get; } = new KeyPermissions(SignValue); + /// verify. + public static KeyPermissions Verify { get; } = new KeyPermissions(VerifyValue); + /// get. + public static KeyPermissions Get { get; } = new KeyPermissions(GetValue); + /// list. + public static KeyPermissions List { get; } = new KeyPermissions(ListValue); + /// create. + public static KeyPermissions Create { get; } = new KeyPermissions(CreateValue); + /// update. + public static KeyPermissions Update { get; } = new KeyPermissions(UpdateValue); + /// import. + public static KeyPermissions Import { get; } = new KeyPermissions(ImportValue); + /// delete. + public static KeyPermissions Delete { get; } = new KeyPermissions(DeleteValue); + /// backup. + public static KeyPermissions Backup { get; } = new KeyPermissions(BackupValue); + /// restore. + public static KeyPermissions Restore { get; } = new KeyPermissions(RestoreValue); + /// recover. + public static KeyPermissions Recover { get; } = new KeyPermissions(RecoverValue); + /// purge. + public static KeyPermissions Purge { get; } = new KeyPermissions(PurgeValue); + /// Determines if two values are the same. + public static bool operator ==(KeyPermissions left, KeyPermissions right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(KeyPermissions left, KeyPermissions right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator KeyPermissions(string value) => new KeyPermissions(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is KeyPermissions other && Equals(other); + /// + public bool Equals(KeyPermissions other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/LogSpecification.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/LogSpecification.Serialization.cs new file mode 100644 index 0000000000000..295261bf41c44 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/LogSpecification.Serialization.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class LogSpecification + { + internal static LogSpecification DeserializeLogSpecification(JsonElement element) + { + string name = default; + string displayName = default; + string blobDuration = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("displayName")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("blobDuration")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + blobDuration = property.Value.GetString(); + continue; + } + } + return new LogSpecification(name, displayName, blobDuration); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/LogSpecification.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/LogSpecification.cs new file mode 100644 index 0000000000000..0950f9fbf557d --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/LogSpecification.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.KeyVault.Models +{ + /// Log specification of operation. + public partial class LogSpecification + { + /// Initializes a new instance of LogSpecification. + internal LogSpecification() + { + } + + /// Initializes a new instance of LogSpecification. + /// Name of log specification. + /// Display name of log specification. + /// Blob duration of specification. + internal LogSpecification(string name, string displayName, string blobDuration) + { + Name = name; + DisplayName = displayName; + BlobDuration = blobDuration; + } + + /// Name of log specification. + public string Name { get; } + /// Display name of log specification. + public string DisplayName { get; } + /// Blob duration of specification. + public string BlobDuration { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/NetworkRuleAction.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/NetworkRuleAction.cs new file mode 100644 index 0000000000000..c5a1ffc930f8f --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/NetworkRuleAction.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Management.KeyVault.Models +{ + /// The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated. + public readonly partial struct NetworkRuleAction : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + public NetworkRuleAction(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AllowValue = "Allow"; + private const string DenyValue = "Deny"; + + /// Allow. + public static NetworkRuleAction Allow { get; } = new NetworkRuleAction(AllowValue); + /// Deny. + public static NetworkRuleAction Deny { get; } = new NetworkRuleAction(DenyValue); + /// Determines if two values are the same. + public static bool operator ==(NetworkRuleAction left, NetworkRuleAction right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(NetworkRuleAction left, NetworkRuleAction right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator NetworkRuleAction(string value) => new NetworkRuleAction(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is NetworkRuleAction other && Equals(other); + /// + public bool Equals(NetworkRuleAction other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/NetworkRuleBypassOptions.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/NetworkRuleBypassOptions.cs new file mode 100644 index 0000000000000..53f6ff7bc3194 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/NetworkRuleBypassOptions.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Management.KeyVault.Models +{ + /// Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'. If not specified the default is 'AzureServices'. + public readonly partial struct NetworkRuleBypassOptions : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + public NetworkRuleBypassOptions(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AzureServicesValue = "AzureServices"; + private const string NoneValue = "None"; + + /// AzureServices. + public static NetworkRuleBypassOptions AzureServices { get; } = new NetworkRuleBypassOptions(AzureServicesValue); + /// None. + public static NetworkRuleBypassOptions None { get; } = new NetworkRuleBypassOptions(NoneValue); + /// Determines if two values are the same. + public static bool operator ==(NetworkRuleBypassOptions left, NetworkRuleBypassOptions right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(NetworkRuleBypassOptions left, NetworkRuleBypassOptions right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator NetworkRuleBypassOptions(string value) => new NetworkRuleBypassOptions(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is NetworkRuleBypassOptions other && Equals(other); + /// + public bool Equals(NetworkRuleBypassOptions other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/NetworkRuleSet.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/NetworkRuleSet.Serialization.cs new file mode 100644 index 0000000000000..b917dc90dffc1 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/NetworkRuleSet.Serialization.cs @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class NetworkRuleSet : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Bypass != null) + { + writer.WritePropertyName("bypass"); + writer.WriteStringValue(Bypass.Value.ToString()); + } + if (DefaultAction != null) + { + writer.WritePropertyName("defaultAction"); + writer.WriteStringValue(DefaultAction.Value.ToString()); + } + if (IpRules != null) + { + writer.WritePropertyName("ipRules"); + writer.WriteStartArray(); + foreach (var item in IpRules) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (VirtualNetworkRules != null) + { + writer.WritePropertyName("virtualNetworkRules"); + writer.WriteStartArray(); + foreach (var item in VirtualNetworkRules) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static NetworkRuleSet DeserializeNetworkRuleSet(JsonElement element) + { + NetworkRuleBypassOptions? bypass = default; + NetworkRuleAction? defaultAction = default; + IList ipRules = default; + IList virtualNetworkRules = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("bypass")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + bypass = new NetworkRuleBypassOptions(property.Value.GetString()); + continue; + } + if (property.NameEquals("defaultAction")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + defaultAction = new NetworkRuleAction(property.Value.GetString()); + continue; + } + if (property.NameEquals("ipRules")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(IPRule.DeserializeIPRule(item)); + } + } + ipRules = array; + continue; + } + if (property.NameEquals("virtualNetworkRules")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(VirtualNetworkRule.DeserializeVirtualNetworkRule(item)); + } + } + virtualNetworkRules = array; + continue; + } + } + return new NetworkRuleSet(bypass, defaultAction, ipRules, virtualNetworkRules); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/NetworkRuleSet.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/NetworkRuleSet.cs new file mode 100644 index 0000000000000..5e6125af30fe8 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/NetworkRuleSet.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.KeyVault.Models +{ + /// A set of rules governing the network accessibility of a vault. + public partial class NetworkRuleSet + { + /// Initializes a new instance of NetworkRuleSet. + public NetworkRuleSet() + { + } + + /// Initializes a new instance of NetworkRuleSet. + /// Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'. If not specified the default is 'AzureServices'. + /// The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated. + /// The list of IP address rules. + /// The list of virtual network rules. + internal NetworkRuleSet(NetworkRuleBypassOptions? bypass, NetworkRuleAction? defaultAction, IList ipRules, IList virtualNetworkRules) + { + Bypass = bypass; + DefaultAction = defaultAction; + IpRules = ipRules; + VirtualNetworkRules = virtualNetworkRules; + } + + /// Tells what traffic can bypass network rules. This can be 'AzureServices' or 'None'. If not specified the default is 'AzureServices'. + public NetworkRuleBypassOptions? Bypass { get; set; } + /// The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated. + public NetworkRuleAction? DefaultAction { get; set; } + /// The list of IP address rules. + public IList IpRules { get; set; } + /// The list of virtual network rules. + public IList VirtualNetworkRules { get; set; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Operation.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Operation.Serialization.cs new file mode 100644 index 0000000000000..9bbfd38084aa7 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Operation.Serialization.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class Operation + { + internal static Operation DeserializeOperation(JsonElement element) + { + string name = default; + OperationDisplay display = default; + string origin = default; + ServiceSpecification serviceSpecification = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("display")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + display = OperationDisplay.DeserializeOperationDisplay(property.Value); + continue; + } + if (property.NameEquals("origin")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + origin = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties")) + { + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("serviceSpecification")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + serviceSpecification = ServiceSpecification.DeserializeServiceSpecification(property0.Value); + continue; + } + } + continue; + } + } + return new Operation(name, display, origin, serviceSpecification); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Operation.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Operation.cs new file mode 100644 index 0000000000000..d71227857b175 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Operation.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.KeyVault.Models +{ + /// Key Vault REST API operation definition. + public partial class Operation + { + /// Initializes a new instance of Operation. + internal Operation() + { + } + + /// Initializes a new instance of Operation. + /// Operation name: {provider}/{resource}/{operation}. + /// Display metadata associated with the operation. + /// The origin of operations. + /// One property of operation, include metric specifications. + internal Operation(string name, OperationDisplay display, string origin, ServiceSpecification serviceSpecification) + { + Name = name; + Display = display; + Origin = origin; + ServiceSpecification = serviceSpecification; + } + + /// Operation name: {provider}/{resource}/{operation}. + public string Name { get; } + /// Display metadata associated with the operation. + public OperationDisplay Display { get; } + /// The origin of operations. + public string Origin { get; } + /// One property of operation, include metric specifications. + public ServiceSpecification ServiceSpecification { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/OperationDisplay.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/OperationDisplay.Serialization.cs new file mode 100644 index 0000000000000..770d8418d1016 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/OperationDisplay.Serialization.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class OperationDisplay + { + internal static OperationDisplay DeserializeOperationDisplay(JsonElement element) + { + string provider = default; + string resource = default; + string operation = default; + string description = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("provider")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provider = property.Value.GetString(); + continue; + } + if (property.NameEquals("resource")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resource = property.Value.GetString(); + continue; + } + if (property.NameEquals("operation")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + operation = property.Value.GetString(); + continue; + } + if (property.NameEquals("description")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + description = property.Value.GetString(); + continue; + } + } + return new OperationDisplay(provider, resource, operation, description); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/OperationDisplay.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/OperationDisplay.cs new file mode 100644 index 0000000000000..ac825f965a6f5 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/OperationDisplay.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.KeyVault.Models +{ + /// Display metadata associated with the operation. + public partial class OperationDisplay + { + /// Initializes a new instance of OperationDisplay. + internal OperationDisplay() + { + } + + /// Initializes a new instance of OperationDisplay. + /// Service provider: Microsoft Key Vault. + /// Resource on which the operation is performed etc. + /// Type of operation: get, read, delete, etc. + /// Description of operation. + internal OperationDisplay(string provider, string resource, string operation, string description) + { + Provider = provider; + Resource = resource; + Operation = operation; + Description = description; + } + + /// Service provider: Microsoft Key Vault. + public string Provider { get; } + /// Resource on which the operation is performed etc. + public string Resource { get; } + /// Type of operation: get, read, delete, etc. + public string Operation { get; } + /// Description of operation. + public string Description { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/OperationListResult.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/OperationListResult.Serialization.cs new file mode 100644 index 0000000000000..20d482b0c4768 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/OperationListResult.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class OperationListResult + { + internal static OperationListResult DeserializeOperationListResult(JsonElement element) + { + IReadOnlyList value = default; + string nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(Operation.DeserializeOperation(item)); + } + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = property.Value.GetString(); + continue; + } + } + return new OperationListResult(value, nextLink); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/OperationListResult.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/OperationListResult.cs new file mode 100644 index 0000000000000..b16b8619e24fd --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/OperationListResult.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.KeyVault.Models +{ + /// Result of the request to list Storage operations. It contains a list of operations and a URL link to get the next set of results. + public partial class OperationListResult + { + /// Initializes a new instance of OperationListResult. + internal OperationListResult() + { + } + + /// Initializes a new instance of OperationListResult. + /// List of Storage operations supported by the Storage resource provider. + /// The URL to get the next set of operations. + internal OperationListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// List of Storage operations supported by the Storage resource provider. + public IReadOnlyList Value { get; } + /// The URL to get the next set of operations. + public string NextLink { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Permissions.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Permissions.Serialization.cs new file mode 100644 index 0000000000000..3f9f3fc60fe95 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Permissions.Serialization.cs @@ -0,0 +1,130 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class Permissions : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Keys != null) + { + writer.WritePropertyName("keys"); + writer.WriteStartArray(); + foreach (var item in Keys) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); + } + if (Secrets != null) + { + writer.WritePropertyName("secrets"); + writer.WriteStartArray(); + foreach (var item in Secrets) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); + } + if (Certificates != null) + { + writer.WritePropertyName("certificates"); + writer.WriteStartArray(); + foreach (var item in Certificates) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); + } + if (Storage != null) + { + writer.WritePropertyName("storage"); + writer.WriteStartArray(); + foreach (var item in Storage) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static Permissions DeserializePermissions(JsonElement element) + { + IList keys = default; + IList secrets = default; + IList certificates = default; + IList storage = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("keys")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(new KeyPermissions(item.GetString())); + } + keys = array; + continue; + } + if (property.NameEquals("secrets")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(new SecretPermissions(item.GetString())); + } + secrets = array; + continue; + } + if (property.NameEquals("certificates")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(new CertificatePermissions(item.GetString())); + } + certificates = array; + continue; + } + if (property.NameEquals("storage")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(new StoragePermissions(item.GetString())); + } + storage = array; + continue; + } + } + return new Permissions(keys, secrets, certificates, storage); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Permissions.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Permissions.cs new file mode 100644 index 0000000000000..9738e5bb69a20 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Permissions.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.KeyVault.Models +{ + /// Permissions the identity has for keys, secrets, certificates and storage. + public partial class Permissions + { + /// Initializes a new instance of Permissions. + public Permissions() + { + } + + /// Initializes a new instance of Permissions. + /// Permissions to keys. + /// Permissions to secrets. + /// Permissions to certificates. + /// Permissions to storage accounts. + internal Permissions(IList keys, IList secrets, IList certificates, IList storage) + { + Keys = keys; + Secrets = secrets; + Certificates = certificates; + Storage = storage; + } + + /// Permissions to keys. + public IList Keys { get; set; } + /// Permissions to secrets. + public IList Secrets { get; set; } + /// Permissions to certificates. + public IList Certificates { get; set; } + /// Permissions to storage accounts. + public IList Storage { get; set; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpoint.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpoint.Serialization.cs new file mode 100644 index 0000000000000..2dd80be675d77 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpoint.Serialization.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class PrivateEndpoint : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Id != null) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } + writer.WriteEndObject(); + } + + internal static PrivateEndpoint DeserializePrivateEndpoint(JsonElement element) + { + string id = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + } + return new PrivateEndpoint(id); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpoint.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpoint.cs new file mode 100644 index 0000000000000..c32fd6bec7c4e --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpoint.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.KeyVault.Models +{ + /// Private endpoint object properties. + public partial class PrivateEndpoint + { + /// Initializes a new instance of PrivateEndpoint. + public PrivateEndpoint() + { + } + + /// Initializes a new instance of PrivateEndpoint. + /// Full identifier of the private endpoint resource. + internal PrivateEndpoint(string id) + { + Id = id; + } + + /// Full identifier of the private endpoint resource. + public string Id { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpointConnection.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpointConnection.Serialization.cs new file mode 100644 index 0000000000000..16a049c4225ed --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpointConnection.Serialization.cs @@ -0,0 +1,178 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class PrivateEndpointConnection : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Id != null) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } + if (Name != null) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + } + if (Type != null) + { + writer.WritePropertyName("type"); + writer.WriteStringValue(Type); + } + if (Location != null) + { + writer.WritePropertyName("location"); + writer.WriteStringValue(Location); + } + if (Tags != null) + { + writer.WritePropertyName("tags"); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WritePropertyName("properties"); + writer.WriteStartObject(); + if (PrivateEndpoint != null) + { + writer.WritePropertyName("privateEndpoint"); + writer.WriteObjectValue(PrivateEndpoint); + } + if (PrivateLinkServiceConnectionState != null) + { + writer.WritePropertyName("privateLinkServiceConnectionState"); + writer.WriteObjectValue(PrivateLinkServiceConnectionState); + } + if (ProvisioningState != null) + { + writer.WritePropertyName("provisioningState"); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + + internal static PrivateEndpointConnection DeserializePrivateEndpointConnection(JsonElement element) + { + string id = default; + string name = default; + string type = default; + string location = default; + IDictionary tags = default; + PrivateEndpoint privateEndpoint = default; + PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default; + PrivateEndpointConnectionProvisioningState? provisioningState = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("location")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + location = property.Value.GetString(); + continue; + } + if (property.NameEquals("tags")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(property0.Name, null); + } + else + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + } + tags = dictionary; + continue; + } + if (property.NameEquals("properties")) + { + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("privateEndpoint")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + privateEndpoint = PrivateEndpoint.DeserializePrivateEndpoint(property0.Value); + continue; + } + if (property0.NameEquals("privateLinkServiceConnectionState")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + privateLinkServiceConnectionState = PrivateLinkServiceConnectionState.DeserializePrivateLinkServiceConnectionState(property0.Value); + continue; + } + if (property0.NameEquals("provisioningState")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new PrivateEndpointConnectionProvisioningState(property0.Value.GetString()); + continue; + } + } + continue; + } + } + return new PrivateEndpointConnection(id, name, type, location, tags, privateEndpoint, privateLinkServiceConnectionState, provisioningState); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpointConnection.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpointConnection.cs new file mode 100644 index 0000000000000..6ff61f70d3655 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpointConnection.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.KeyVault.Models +{ + /// Private endpoint connection resource. + public partial class PrivateEndpointConnection : Resource + { + /// Initializes a new instance of PrivateEndpointConnection. + public PrivateEndpointConnection() + { + } + + /// Initializes a new instance of PrivateEndpointConnection. + /// Fully qualified identifier of the key vault resource. + /// Name of the key vault resource. + /// Resource type of the key vault resource. + /// Azure location of the key vault resource. + /// Tags assigned to the key vault resource. + /// Properties of the private endpoint object. + /// Approval state of the private link connection. + /// Provisioning state of the private endpoint connection. + internal PrivateEndpointConnection(string id, string name, string type, string location, IDictionary tags, PrivateEndpoint privateEndpoint, PrivateLinkServiceConnectionState privateLinkServiceConnectionState, PrivateEndpointConnectionProvisioningState? provisioningState) : base(id, name, type, location, tags) + { + PrivateEndpoint = privateEndpoint; + PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; + ProvisioningState = provisioningState; + } + + /// Properties of the private endpoint object. + public PrivateEndpoint PrivateEndpoint { get; set; } + /// Approval state of the private link connection. + public PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; } + /// Provisioning state of the private endpoint connection. + public PrivateEndpointConnectionProvisioningState? ProvisioningState { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpointConnectionItem.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpointConnectionItem.Serialization.cs new file mode 100644 index 0000000000000..4bb82f86fe745 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpointConnectionItem.Serialization.cs @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class PrivateEndpointConnectionItem : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("properties"); + writer.WriteStartObject(); + if (PrivateEndpoint != null) + { + writer.WritePropertyName("privateEndpoint"); + writer.WriteObjectValue(PrivateEndpoint); + } + if (PrivateLinkServiceConnectionState != null) + { + writer.WritePropertyName("privateLinkServiceConnectionState"); + writer.WriteObjectValue(PrivateLinkServiceConnectionState); + } + if (ProvisioningState != null) + { + writer.WritePropertyName("provisioningState"); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + + internal static PrivateEndpointConnectionItem DeserializePrivateEndpointConnectionItem(JsonElement element) + { + PrivateEndpoint privateEndpoint = default; + PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default; + PrivateEndpointConnectionProvisioningState? provisioningState = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties")) + { + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("privateEndpoint")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + privateEndpoint = PrivateEndpoint.DeserializePrivateEndpoint(property0.Value); + continue; + } + if (property0.NameEquals("privateLinkServiceConnectionState")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + privateLinkServiceConnectionState = PrivateLinkServiceConnectionState.DeserializePrivateLinkServiceConnectionState(property0.Value); + continue; + } + if (property0.NameEquals("provisioningState")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new PrivateEndpointConnectionProvisioningState(property0.Value.GetString()); + continue; + } + } + continue; + } + } + return new PrivateEndpointConnectionItem(privateEndpoint, privateLinkServiceConnectionState, provisioningState); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpointConnectionItem.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpointConnectionItem.cs new file mode 100644 index 0000000000000..6744bea77e1fd --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpointConnectionItem.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.KeyVault.Models +{ + /// Private endpoint connection item. + public partial class PrivateEndpointConnectionItem + { + /// Initializes a new instance of PrivateEndpointConnectionItem. + public PrivateEndpointConnectionItem() + { + } + + /// Initializes a new instance of PrivateEndpointConnectionItem. + /// Properties of the private endpoint object. + /// Approval state of the private link connection. + /// Provisioning state of the private endpoint connection. + internal PrivateEndpointConnectionItem(PrivateEndpoint privateEndpoint, PrivateLinkServiceConnectionState privateLinkServiceConnectionState, PrivateEndpointConnectionProvisioningState? provisioningState) + { + PrivateEndpoint = privateEndpoint; + PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; + ProvisioningState = provisioningState; + } + + /// Properties of the private endpoint object. + public PrivateEndpoint PrivateEndpoint { get; set; } + /// Approval state of the private link connection. + public PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; } + /// Provisioning state of the private endpoint connection. + public PrivateEndpointConnectionProvisioningState? ProvisioningState { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpointConnectionProvisioningState.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpointConnectionProvisioningState.cs new file mode 100644 index 0000000000000..f7ee67fa8d7ee --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpointConnectionProvisioningState.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Management.KeyVault.Models +{ + /// The current provisioning state. + public readonly partial struct PrivateEndpointConnectionProvisioningState : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + public PrivateEndpointConnectionProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string CreatingValue = "Creating"; + private const string UpdatingValue = "Updating"; + private const string DeletingValue = "Deleting"; + private const string FailedValue = "Failed"; + private const string DisconnectedValue = "Disconnected"; + + /// Succeeded. + public static PrivateEndpointConnectionProvisioningState Succeeded { get; } = new PrivateEndpointConnectionProvisioningState(SucceededValue); + /// Creating. + public static PrivateEndpointConnectionProvisioningState Creating { get; } = new PrivateEndpointConnectionProvisioningState(CreatingValue); + /// Updating. + public static PrivateEndpointConnectionProvisioningState Updating { get; } = new PrivateEndpointConnectionProvisioningState(UpdatingValue); + /// Deleting. + public static PrivateEndpointConnectionProvisioningState Deleting { get; } = new PrivateEndpointConnectionProvisioningState(DeletingValue); + /// Failed. + public static PrivateEndpointConnectionProvisioningState Failed { get; } = new PrivateEndpointConnectionProvisioningState(FailedValue); + /// Disconnected. + public static PrivateEndpointConnectionProvisioningState Disconnected { get; } = new PrivateEndpointConnectionProvisioningState(DisconnectedValue); + /// Determines if two values are the same. + public static bool operator ==(PrivateEndpointConnectionProvisioningState left, PrivateEndpointConnectionProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(PrivateEndpointConnectionProvisioningState left, PrivateEndpointConnectionProvisioningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator PrivateEndpointConnectionProvisioningState(string value) => new PrivateEndpointConnectionProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PrivateEndpointConnectionProvisioningState other && Equals(other); + /// + public bool Equals(PrivateEndpointConnectionProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpointServiceConnectionStatus.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpointServiceConnectionStatus.cs new file mode 100644 index 0000000000000..ee2598944ab65 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateEndpointServiceConnectionStatus.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Management.KeyVault.Models +{ + /// The private endpoint connection status. + public readonly partial struct PrivateEndpointServiceConnectionStatus : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + public PrivateEndpointServiceConnectionStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string PendingValue = "Pending"; + private const string ApprovedValue = "Approved"; + private const string RejectedValue = "Rejected"; + private const string DisconnectedValue = "Disconnected"; + + /// Pending. + public static PrivateEndpointServiceConnectionStatus Pending { get; } = new PrivateEndpointServiceConnectionStatus(PendingValue); + /// Approved. + public static PrivateEndpointServiceConnectionStatus Approved { get; } = new PrivateEndpointServiceConnectionStatus(ApprovedValue); + /// Rejected. + public static PrivateEndpointServiceConnectionStatus Rejected { get; } = new PrivateEndpointServiceConnectionStatus(RejectedValue); + /// Disconnected. + public static PrivateEndpointServiceConnectionStatus Disconnected { get; } = new PrivateEndpointServiceConnectionStatus(DisconnectedValue); + /// Determines if two values are the same. + public static bool operator ==(PrivateEndpointServiceConnectionStatus left, PrivateEndpointServiceConnectionStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(PrivateEndpointServiceConnectionStatus left, PrivateEndpointServiceConnectionStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator PrivateEndpointServiceConnectionStatus(string value) => new PrivateEndpointServiceConnectionStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PrivateEndpointServiceConnectionStatus other && Equals(other); + /// + public bool Equals(PrivateEndpointServiceConnectionStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateLinkResource.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateLinkResource.Serialization.cs new file mode 100644 index 0000000000000..1217d644f0284 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateLinkResource.Serialization.cs @@ -0,0 +1,212 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class PrivateLinkResource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Id != null) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } + if (Name != null) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + } + if (Type != null) + { + writer.WritePropertyName("type"); + writer.WriteStringValue(Type); + } + if (Location != null) + { + writer.WritePropertyName("location"); + writer.WriteStringValue(Location); + } + if (Tags != null) + { + writer.WritePropertyName("tags"); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WritePropertyName("properties"); + writer.WriteStartObject(); + if (GroupId != null) + { + writer.WritePropertyName("groupId"); + writer.WriteStringValue(GroupId); + } + if (RequiredMembers != null) + { + writer.WritePropertyName("requiredMembers"); + writer.WriteStartArray(); + foreach (var item in RequiredMembers) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (RequiredZoneNames != null) + { + writer.WritePropertyName("requiredZoneNames"); + writer.WriteStartArray(); + foreach (var item in RequiredZoneNames) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + writer.WriteEndObject(); + } + + internal static PrivateLinkResource DeserializePrivateLinkResource(JsonElement element) + { + string id = default; + string name = default; + string type = default; + string location = default; + IDictionary tags = default; + string groupId = default; + IList requiredMembers = default; + IList requiredZoneNames = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("location")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + location = property.Value.GetString(); + continue; + } + if (property.NameEquals("tags")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(property0.Name, null); + } + else + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + } + tags = dictionary; + continue; + } + if (property.NameEquals("properties")) + { + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("groupId")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + groupId = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("requiredMembers")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + requiredMembers = array; + continue; + } + if (property0.NameEquals("requiredZoneNames")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + requiredZoneNames = array; + continue; + } + } + continue; + } + } + return new PrivateLinkResource(id, name, type, location, tags, groupId, requiredMembers, requiredZoneNames); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateLinkResource.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateLinkResource.cs new file mode 100644 index 0000000000000..293a1797d706a --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateLinkResource.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.KeyVault.Models +{ + /// A private link resource. + public partial class PrivateLinkResource : Resource + { + /// Initializes a new instance of PrivateLinkResource. + public PrivateLinkResource() + { + } + + /// Initializes a new instance of PrivateLinkResource. + /// Fully qualified identifier of the key vault resource. + /// Name of the key vault resource. + /// Resource type of the key vault resource. + /// Azure location of the key vault resource. + /// Tags assigned to the key vault resource. + /// Group identifier of private link resource. + /// Required member names of private link resource. + /// Required DNS zone names of the the private link resource. + internal PrivateLinkResource(string id, string name, string type, string location, IDictionary tags, string groupId, IList requiredMembers, IList requiredZoneNames) : base(id, name, type, location, tags) + { + GroupId = groupId; + RequiredMembers = requiredMembers; + RequiredZoneNames = requiredZoneNames; + } + + /// Group identifier of private link resource. + public string GroupId { get; } + /// Required member names of private link resource. + public IList RequiredMembers { get; } + /// Required DNS zone names of the the private link resource. + public IList RequiredZoneNames { get; set; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateLinkResourceListResult.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateLinkResourceListResult.Serialization.cs new file mode 100644 index 0000000000000..ff759f38e4e0a --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateLinkResourceListResult.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class PrivateLinkResourceListResult + { + internal static PrivateLinkResourceListResult DeserializePrivateLinkResourceListResult(JsonElement element) + { + IReadOnlyList value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(PrivateLinkResource.DeserializePrivateLinkResource(item)); + } + } + value = array; + continue; + } + } + return new PrivateLinkResourceListResult(value); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateLinkResourceListResult.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateLinkResourceListResult.cs new file mode 100644 index 0000000000000..585eaa76e17fb --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateLinkResourceListResult.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.KeyVault.Models +{ + /// A list of private link resources. + public partial class PrivateLinkResourceListResult + { + /// Initializes a new instance of PrivateLinkResourceListResult. + internal PrivateLinkResourceListResult() + { + } + + /// Initializes a new instance of PrivateLinkResourceListResult. + /// Array of private link resources. + internal PrivateLinkResourceListResult(IReadOnlyList value) + { + Value = value; + } + + /// Array of private link resources. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateLinkServiceConnectionState.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateLinkServiceConnectionState.Serialization.cs new file mode 100644 index 0000000000000..bfaa023536160 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateLinkServiceConnectionState.Serialization.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class PrivateLinkServiceConnectionState : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Status != null) + { + writer.WritePropertyName("status"); + writer.WriteStringValue(Status.Value.ToString()); + } + if (Description != null) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(Description); + } + if (ActionRequired != null) + { + writer.WritePropertyName("actionRequired"); + writer.WriteStringValue(ActionRequired); + } + writer.WriteEndObject(); + } + + internal static PrivateLinkServiceConnectionState DeserializePrivateLinkServiceConnectionState(JsonElement element) + { + PrivateEndpointServiceConnectionStatus? status = default; + string description = default; + string actionRequired = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("status")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new PrivateEndpointServiceConnectionStatus(property.Value.GetString()); + continue; + } + if (property.NameEquals("description")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("actionRequired")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + actionRequired = property.Value.GetString(); + continue; + } + } + return new PrivateLinkServiceConnectionState(status, description, actionRequired); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateLinkServiceConnectionState.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateLinkServiceConnectionState.cs new file mode 100644 index 0000000000000..65d279c489324 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/PrivateLinkServiceConnectionState.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.KeyVault.Models +{ + /// An object that represents the approval state of the private link connection. + public partial class PrivateLinkServiceConnectionState + { + /// Initializes a new instance of PrivateLinkServiceConnectionState. + public PrivateLinkServiceConnectionState() + { + } + + /// Initializes a new instance of PrivateLinkServiceConnectionState. + /// Indicates whether the connection has been approved, rejected or removed by the key vault owner. + /// The reason for approval or rejection. + /// A message indicating if changes on the service provider require any updates on the consumer. + internal PrivateLinkServiceConnectionState(PrivateEndpointServiceConnectionStatus? status, string description, string actionRequired) + { + Status = status; + Description = description; + ActionRequired = actionRequired; + } + + /// Indicates whether the connection has been approved, rejected or removed by the key vault owner. + public PrivateEndpointServiceConnectionStatus? Status { get; set; } + /// The reason for approval or rejection. + public string Description { get; set; } + /// A message indicating if changes on the service provider require any updates on the consumer. + public string ActionRequired { get; set; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Reason.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Reason.Serialization.cs new file mode 100644 index 0000000000000..755bb7266405d --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Reason.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Management.KeyVault.Models +{ + internal static class ReasonExtensions + { + public static string ToSerialString(this Reason value) => value switch + { + Reason.AccountNameInvalid => "AccountNameInvalid", + Reason.AlreadyExists => "AlreadyExists", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown Reason value.") + }; + + public static Reason ToReason(this string value) + { + if (string.Equals(value, "AccountNameInvalid", StringComparison.InvariantCultureIgnoreCase)) return Reason.AccountNameInvalid; + if (string.Equals(value, "AlreadyExists", StringComparison.InvariantCultureIgnoreCase)) return Reason.AlreadyExists; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown Reason value."); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Reason.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Reason.cs new file mode 100644 index 0000000000000..dfebb76d5c3ed --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Reason.cs @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.KeyVault.Models +{ + /// The reason that a vault name could not be used. The Reason element is only returned if NameAvailable is false. + public enum Reason + { + /// AccountNameInvalid. + AccountNameInvalid, + /// AlreadyExists. + AlreadyExists + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Resource.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Resource.Serialization.cs new file mode 100644 index 0000000000000..fcd92ff4c53ce --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Resource.Serialization.cs @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class Resource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Id != null) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } + if (Name != null) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + } + if (Type != null) + { + writer.WritePropertyName("type"); + writer.WriteStringValue(Type); + } + if (Location != null) + { + writer.WritePropertyName("location"); + writer.WriteStringValue(Location); + } + if (Tags != null) + { + writer.WritePropertyName("tags"); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WriteEndObject(); + } + + internal static Resource DeserializeResource(JsonElement element) + { + string id = default; + string name = default; + string type = default; + string location = default; + IDictionary tags = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("location")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + location = property.Value.GetString(); + continue; + } + if (property.NameEquals("tags")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(property0.Name, null); + } + else + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + } + tags = dictionary; + continue; + } + } + return new Resource(id, name, type, location, tags); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Resource.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Resource.cs new file mode 100644 index 0000000000000..ea8a721124ece --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Resource.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.KeyVault.Models +{ + /// Key Vault resource. + public partial class Resource + { + /// Initializes a new instance of Resource. + public Resource() + { + } + + /// Initializes a new instance of Resource. + /// Fully qualified identifier of the key vault resource. + /// Name of the key vault resource. + /// Resource type of the key vault resource. + /// Azure location of the key vault resource. + /// Tags assigned to the key vault resource. + internal Resource(string id, string name, string type, string location, IDictionary tags) + { + Id = id; + Name = name; + Type = type; + Location = location; + Tags = tags; + } + + /// Fully qualified identifier of the key vault resource. + public string Id { get; } + /// Name of the key vault resource. + public string Name { get; } + /// Resource type of the key vault resource. + public string Type { get; } + /// Azure location of the key vault resource. + public string Location { get; } + /// Tags assigned to the key vault resource. + public IDictionary Tags { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/ResourceListResult.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/ResourceListResult.Serialization.cs new file mode 100644 index 0000000000000..139f9511af5fe --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/ResourceListResult.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class ResourceListResult + { + internal static ResourceListResult DeserializeResourceListResult(JsonElement element) + { + IReadOnlyList value = default; + string nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(Resource.DeserializeResource(item)); + } + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = property.Value.GetString(); + continue; + } + } + return new ResourceListResult(value, nextLink); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/ResourceListResult.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/ResourceListResult.cs new file mode 100644 index 0000000000000..5e952853809cb --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/ResourceListResult.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.KeyVault.Models +{ + /// List of vault resources. + public partial class ResourceListResult + { + /// Initializes a new instance of ResourceListResult. + internal ResourceListResult() + { + } + + /// Initializes a new instance of ResourceListResult. + /// The list of vault resources. + /// The URL to get the next set of vault resources. + internal ResourceListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The list of vault resources. + public IReadOnlyList Value { get; } + /// The URL to get the next set of vault resources. + public string NextLink { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/SecretPermissions.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/SecretPermissions.cs new file mode 100644 index 0000000000000..23937164fd40c --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/SecretPermissions.cs @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Management.KeyVault.Models +{ + /// The SecretPermissions. + public readonly partial struct SecretPermissions : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + public SecretPermissions(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string GetValue = "get"; + private const string ListValue = "list"; + private const string SetValue = "set"; + private const string DeleteValue = "delete"; + private const string BackupValue = "backup"; + private const string RestoreValue = "restore"; + private const string RecoverValue = "recover"; + private const string PurgeValue = "purge"; + + /// get. + public static SecretPermissions Get { get; } = new SecretPermissions(GetValue); + /// list. + public static SecretPermissions List { get; } = new SecretPermissions(ListValue); + /// set. + public static SecretPermissions Set { get; } = new SecretPermissions(SetValue); + /// delete. + public static SecretPermissions Delete { get; } = new SecretPermissions(DeleteValue); + /// backup. + public static SecretPermissions Backup { get; } = new SecretPermissions(BackupValue); + /// restore. + public static SecretPermissions Restore { get; } = new SecretPermissions(RestoreValue); + /// recover. + public static SecretPermissions Recover { get; } = new SecretPermissions(RecoverValue); + /// purge. + public static SecretPermissions Purge { get; } = new SecretPermissions(PurgeValue); + /// Determines if two values are the same. + public static bool operator ==(SecretPermissions left, SecretPermissions right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(SecretPermissions left, SecretPermissions right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator SecretPermissions(string value) => new SecretPermissions(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SecretPermissions other && Equals(other); + /// + public bool Equals(SecretPermissions other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/ServiceSpecification.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/ServiceSpecification.Serialization.cs new file mode 100644 index 0000000000000..eb57c1f34f977 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/ServiceSpecification.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class ServiceSpecification + { + internal static ServiceSpecification DeserializeServiceSpecification(JsonElement element) + { + IReadOnlyList logSpecifications = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("logSpecifications")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(LogSpecification.DeserializeLogSpecification(item)); + } + } + logSpecifications = array; + continue; + } + } + return new ServiceSpecification(logSpecifications); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/ServiceSpecification.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/ServiceSpecification.cs new file mode 100644 index 0000000000000..d45f7145c2eb7 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/ServiceSpecification.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.KeyVault.Models +{ + /// One property of operation, include log specifications. + public partial class ServiceSpecification + { + /// Initializes a new instance of ServiceSpecification. + internal ServiceSpecification() + { + } + + /// Initializes a new instance of ServiceSpecification. + /// Log specifications of operation. + internal ServiceSpecification(IReadOnlyList logSpecifications) + { + LogSpecifications = logSpecifications; + } + + /// Log specifications of operation. + public IReadOnlyList LogSpecifications { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Sku.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Sku.Serialization.cs new file mode 100644 index 0000000000000..cb9306cd379ab --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Sku.Serialization.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class Sku : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("family"); + writer.WriteStringValue(Family); + writer.WritePropertyName("name"); + writer.WriteStringValue(Name.ToSerialString()); + writer.WriteEndObject(); + } + + internal static Sku DeserializeSku(JsonElement element) + { + string family = default; + SkuName name = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("family")) + { + family = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + name = property.Value.GetString().ToSkuName(); + continue; + } + } + return new Sku(family, name); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Sku.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Sku.cs new file mode 100644 index 0000000000000..3a85882dafd0d --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Sku.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.KeyVault.Models +{ + /// SKU details. + public partial class Sku + { + /// Initializes a new instance of Sku. + /// SKU name to specify whether the key vault is a standard vault or a premium vault. + public Sku(SkuName name) + { + Family = "A"; + Name = name; + } + + /// Initializes a new instance of Sku. + /// SKU family name. + /// SKU name to specify whether the key vault is a standard vault or a premium vault. + internal Sku(string family, SkuName name) + { + Family = family; + Name = name; + } + + /// SKU family name. + public string Family { get; set; } + /// SKU name to specify whether the key vault is a standard vault or a premium vault. + public SkuName Name { get; set; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/SkuName.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/SkuName.Serialization.cs new file mode 100644 index 0000000000000..0278ce2e16445 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/SkuName.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Management.KeyVault.Models +{ + internal static class SkuNameExtensions + { + public static string ToSerialString(this SkuName value) => value switch + { + SkuName.Standard => "standard", + SkuName.Premium => "premium", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SkuName value.") + }; + + public static SkuName ToSkuName(this string value) + { + if (string.Equals(value, "standard", StringComparison.InvariantCultureIgnoreCase)) return SkuName.Standard; + if (string.Equals(value, "premium", StringComparison.InvariantCultureIgnoreCase)) return SkuName.Premium; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SkuName value."); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/SkuName.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/SkuName.cs new file mode 100644 index 0000000000000..8aec04883fe07 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/SkuName.cs @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.KeyVault.Models +{ + /// SKU name to specify whether the key vault is a standard vault or a premium vault. + public enum SkuName + { + /// standard. + Standard, + /// premium. + Premium + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/StoragePermissions.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/StoragePermissions.cs new file mode 100644 index 0000000000000..bd37937e933e0 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/StoragePermissions.cs @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Management.KeyVault.Models +{ + /// The StoragePermissions. + public readonly partial struct StoragePermissions : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + public StoragePermissions(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string GetValue = "get"; + private const string ListValue = "list"; + private const string DeleteValue = "delete"; + private const string SetValue = "set"; + private const string UpdateValue = "update"; + private const string RegeneratekeyValue = "regeneratekey"; + private const string RecoverValue = "recover"; + private const string PurgeValue = "purge"; + private const string BackupValue = "backup"; + private const string RestoreValue = "restore"; + private const string SetsasValue = "setsas"; + private const string ListsasValue = "listsas"; + private const string GetsasValue = "getsas"; + private const string DeletesasValue = "deletesas"; + + /// get. + public static StoragePermissions Get { get; } = new StoragePermissions(GetValue); + /// list. + public static StoragePermissions List { get; } = new StoragePermissions(ListValue); + /// delete. + public static StoragePermissions Delete { get; } = new StoragePermissions(DeleteValue); + /// set. + public static StoragePermissions Set { get; } = new StoragePermissions(SetValue); + /// update. + public static StoragePermissions Update { get; } = new StoragePermissions(UpdateValue); + /// regeneratekey. + public static StoragePermissions Regeneratekey { get; } = new StoragePermissions(RegeneratekeyValue); + /// recover. + public static StoragePermissions Recover { get; } = new StoragePermissions(RecoverValue); + /// purge. + public static StoragePermissions Purge { get; } = new StoragePermissions(PurgeValue); + /// backup. + public static StoragePermissions Backup { get; } = new StoragePermissions(BackupValue); + /// restore. + public static StoragePermissions Restore { get; } = new StoragePermissions(RestoreValue); + /// setsas. + public static StoragePermissions Setsas { get; } = new StoragePermissions(SetsasValue); + /// listsas. + public static StoragePermissions Listsas { get; } = new StoragePermissions(ListsasValue); + /// getsas. + public static StoragePermissions Getsas { get; } = new StoragePermissions(GetsasValue); + /// deletesas. + public static StoragePermissions Deletesas { get; } = new StoragePermissions(DeletesasValue); + /// Determines if two values are the same. + public static bool operator ==(StoragePermissions left, StoragePermissions right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(StoragePermissions left, StoragePermissions right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator StoragePermissions(string value) => new StoragePermissions(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is StoragePermissions other && Equals(other); + /// + public bool Equals(StoragePermissions other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Vault.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Vault.Serialization.cs new file mode 100644 index 0000000000000..9c887bb93e40e --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Vault.Serialization.cs @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class Vault + { + internal static Vault DeserializeVault(JsonElement element) + { + string id = default; + string name = default; + string type = default; + string location = default; + IReadOnlyDictionary tags = default; + VaultProperties properties = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("location")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + location = property.Value.GetString(); + continue; + } + if (property.NameEquals("tags")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(property0.Name, null); + } + else + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + } + tags = dictionary; + continue; + } + if (property.NameEquals("properties")) + { + properties = VaultProperties.DeserializeVaultProperties(property.Value); + continue; + } + } + return new Vault(id, name, type, location, tags, properties); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Vault.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Vault.cs new file mode 100644 index 0000000000000..7d5fe871c74c2 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/Vault.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Management.KeyVault.Models +{ + /// Resource information with extended details. + public partial class Vault + { + /// Initializes a new instance of Vault. + /// Properties of the vault. + internal Vault(VaultProperties properties) + { + if (properties == null) + { + throw new ArgumentNullException(nameof(properties)); + } + + Properties = properties; + } + + /// Initializes a new instance of Vault. + /// Fully qualified identifier of the key vault resource. + /// Name of the key vault resource. + /// Resource type of the key vault resource. + /// Azure location of the key vault resource. + /// Tags assigned to the key vault resource. + /// Properties of the vault. + internal Vault(string id, string name, string type, string location, IReadOnlyDictionary tags, VaultProperties properties) + { + Id = id; + Name = name; + Type = type; + Location = location; + Tags = tags; + Properties = properties; + } + + /// Fully qualified identifier of the key vault resource. + public string Id { get; } + /// Name of the key vault resource. + public string Name { get; } + /// Resource type of the key vault resource. + public string Type { get; } + /// Azure location of the key vault resource. + public string Location { get; } + /// Tags assigned to the key vault resource. + public IReadOnlyDictionary Tags { get; } + /// Properties of the vault. + public VaultProperties Properties { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultAccessPolicyParameters.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultAccessPolicyParameters.Serialization.cs new file mode 100644 index 0000000000000..6c3a609f12d38 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultAccessPolicyParameters.Serialization.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class VaultAccessPolicyParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Id != null) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } + if (Name != null) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + } + if (Type != null) + { + writer.WritePropertyName("type"); + writer.WriteStringValue(Type); + } + if (Location != null) + { + writer.WritePropertyName("location"); + writer.WriteStringValue(Location); + } + writer.WritePropertyName("properties"); + writer.WriteObjectValue(Properties); + writer.WriteEndObject(); + } + + internal static VaultAccessPolicyParameters DeserializeVaultAccessPolicyParameters(JsonElement element) + { + string id = default; + string name = default; + string type = default; + string location = default; + VaultAccessPolicyProperties properties = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("location")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + location = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties")) + { + properties = VaultAccessPolicyProperties.DeserializeVaultAccessPolicyProperties(property.Value); + continue; + } + } + return new VaultAccessPolicyParameters(id, name, type, location, properties); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultAccessPolicyParameters.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultAccessPolicyParameters.cs new file mode 100644 index 0000000000000..f59c756c66c1c --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultAccessPolicyParameters.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Management.KeyVault.Models +{ + /// Parameters for updating the access policy in a vault. + public partial class VaultAccessPolicyParameters + { + /// Initializes a new instance of VaultAccessPolicyParameters. + /// Properties of the access policy. + public VaultAccessPolicyParameters(VaultAccessPolicyProperties properties) + { + if (properties == null) + { + throw new ArgumentNullException(nameof(properties)); + } + + Properties = properties; + } + + /// Initializes a new instance of VaultAccessPolicyParameters. + /// The resource id of the access policy. + /// The resource name of the access policy. + /// The resource name of the access policy. + /// The resource type of the access policy. + /// Properties of the access policy. + internal VaultAccessPolicyParameters(string id, string name, string type, string location, VaultAccessPolicyProperties properties) + { + Id = id; + Name = name; + Type = type; + Location = location; + Properties = properties; + } + + /// The resource id of the access policy. + public string Id { get; } + /// The resource name of the access policy. + public string Name { get; } + /// The resource name of the access policy. + public string Type { get; } + /// The resource type of the access policy. + public string Location { get; } + /// Properties of the access policy. + public VaultAccessPolicyProperties Properties { get; set; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultAccessPolicyProperties.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultAccessPolicyProperties.Serialization.cs new file mode 100644 index 0000000000000..45a639bc7e265 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultAccessPolicyProperties.Serialization.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class VaultAccessPolicyProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("accessPolicies"); + writer.WriteStartArray(); + foreach (var item in AccessPolicies) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + writer.WriteEndObject(); + } + + internal static VaultAccessPolicyProperties DeserializeVaultAccessPolicyProperties(JsonElement element) + { + IList accessPolicies = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("accessPolicies")) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(AccessPolicyEntry.DeserializeAccessPolicyEntry(item)); + } + } + accessPolicies = array; + continue; + } + } + return new VaultAccessPolicyProperties(accessPolicies); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultAccessPolicyProperties.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultAccessPolicyProperties.cs new file mode 100644 index 0000000000000..0facd187179b4 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultAccessPolicyProperties.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Management.KeyVault.Models +{ + /// Properties of the vault access policy. + public partial class VaultAccessPolicyProperties + { + /// Initializes a new instance of VaultAccessPolicyProperties. + /// An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID. + public VaultAccessPolicyProperties(IEnumerable accessPolicies) + { + if (accessPolicies == null) + { + throw new ArgumentNullException(nameof(accessPolicies)); + } + + AccessPolicies = accessPolicies.ToArray(); + } + + /// Initializes a new instance of VaultAccessPolicyProperties. + /// An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID. + internal VaultAccessPolicyProperties(IList accessPolicies) + { + AccessPolicies = accessPolicies; + } + + /// An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID. + public IList AccessPolicies { get; set; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultCheckNameAvailabilityParameters.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultCheckNameAvailabilityParameters.Serialization.cs new file mode 100644 index 0000000000000..128efff6b9e90 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultCheckNameAvailabilityParameters.Serialization.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class VaultCheckNameAvailabilityParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + writer.WritePropertyName("type"); + writer.WriteStringValue(Type); + writer.WriteEndObject(); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultCheckNameAvailabilityParameters.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultCheckNameAvailabilityParameters.cs new file mode 100644 index 0000000000000..db7db0f871268 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultCheckNameAvailabilityParameters.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Management.KeyVault.Models +{ + /// The parameters used to check the availability of the vault name. + public partial class VaultCheckNameAvailabilityParameters + { + /// Initializes a new instance of VaultCheckNameAvailabilityParameters. + /// The vault name. + public VaultCheckNameAvailabilityParameters(string name) + { + if (name == null) + { + throw new ArgumentNullException(nameof(name)); + } + + Name = name; + Type = "Microsoft.KeyVault/vaults"; + } + + /// Initializes a new instance of VaultCheckNameAvailabilityParameters. + /// The vault name. + /// The type of resource, Microsoft.KeyVault/vaults. + internal VaultCheckNameAvailabilityParameters(string name, string type) + { + Name = name; + Type = type; + } + + /// The vault name. + public string Name { get; } + /// The type of resource, Microsoft.KeyVault/vaults. + public string Type { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultCreateOrUpdateParameters.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultCreateOrUpdateParameters.Serialization.cs new file mode 100644 index 0000000000000..2d284535ca611 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultCreateOrUpdateParameters.Serialization.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class VaultCreateOrUpdateParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("location"); + writer.WriteStringValue(Location); + if (Tags != null) + { + writer.WritePropertyName("tags"); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WritePropertyName("properties"); + writer.WriteObjectValue(Properties); + writer.WriteEndObject(); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultCreateOrUpdateParameters.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultCreateOrUpdateParameters.cs new file mode 100644 index 0000000000000..5a6f6195b25f8 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultCreateOrUpdateParameters.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Management.KeyVault.Models +{ + /// Parameters for creating or updating a vault. + public partial class VaultCreateOrUpdateParameters + { + /// Initializes a new instance of VaultCreateOrUpdateParameters. + /// The supported Azure location where the key vault should be created. + /// Properties of the vault. + public VaultCreateOrUpdateParameters(string location, VaultProperties properties) + { + if (location == null) + { + throw new ArgumentNullException(nameof(location)); + } + if (properties == null) + { + throw new ArgumentNullException(nameof(properties)); + } + + Location = location; + Properties = properties; + } + + /// Initializes a new instance of VaultCreateOrUpdateParameters. + /// The supported Azure location where the key vault should be created. + /// The tags that will be assigned to the key vault. + /// Properties of the vault. + internal VaultCreateOrUpdateParameters(string location, IDictionary tags, VaultProperties properties) + { + Location = location; + Tags = tags; + Properties = properties; + } + + /// The supported Azure location where the key vault should be created. + public string Location { get; } + /// The tags that will be assigned to the key vault. + public IDictionary Tags { get; set; } + /// Properties of the vault. + public VaultProperties Properties { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultListResult.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultListResult.Serialization.cs new file mode 100644 index 0000000000000..142a8177b38e9 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultListResult.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class VaultListResult + { + internal static VaultListResult DeserializeVaultListResult(JsonElement element) + { + IReadOnlyList value = default; + string nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(Vault.DeserializeVault(item)); + } + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = property.Value.GetString(); + continue; + } + } + return new VaultListResult(value, nextLink); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultListResult.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultListResult.cs new file mode 100644 index 0000000000000..bd1c52d82912e --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultListResult.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.KeyVault.Models +{ + /// List of vaults. + public partial class VaultListResult + { + /// Initializes a new instance of VaultListResult. + internal VaultListResult() + { + } + + /// Initializes a new instance of VaultListResult. + /// The list of vaults. + /// The URL to get the next set of vaults. + internal VaultListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// The list of vaults. + public IReadOnlyList Value { get; } + /// The URL to get the next set of vaults. + public string NextLink { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultPatchParameters.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultPatchParameters.Serialization.cs new file mode 100644 index 0000000000000..a806c3b2be6f2 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultPatchParameters.Serialization.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class VaultPatchParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Tags != null) + { + writer.WritePropertyName("tags"); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + if (Properties != null) + { + writer.WritePropertyName("properties"); + writer.WriteObjectValue(Properties); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultPatchParameters.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultPatchParameters.cs new file mode 100644 index 0000000000000..74d707f69be3e --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultPatchParameters.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.KeyVault.Models +{ + /// Parameters for creating or updating a vault. + public partial class VaultPatchParameters + { + /// Initializes a new instance of VaultPatchParameters. + public VaultPatchParameters() + { + } + + /// Initializes a new instance of VaultPatchParameters. + /// The tags that will be assigned to the key vault. + /// Properties of the vault. + internal VaultPatchParameters(IDictionary tags, VaultPatchProperties properties) + { + Tags = tags; + Properties = properties; + } + + /// The tags that will be assigned to the key vault. + public IDictionary Tags { get; set; } + /// Properties of the vault. + public VaultPatchProperties Properties { get; set; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultPatchProperties.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultPatchProperties.Serialization.cs new file mode 100644 index 0000000000000..3bb00db1a46e7 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultPatchProperties.Serialization.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class VaultPatchProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (TenantId != null) + { + writer.WritePropertyName("tenantId"); + writer.WriteStringValue(TenantId.Value); + } + if (Sku != null) + { + writer.WritePropertyName("sku"); + writer.WriteObjectValue(Sku); + } + if (AccessPolicies != null) + { + writer.WritePropertyName("accessPolicies"); + writer.WriteStartArray(); + foreach (var item in AccessPolicies) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (EnabledForDeployment != null) + { + writer.WritePropertyName("enabledForDeployment"); + writer.WriteBooleanValue(EnabledForDeployment.Value); + } + if (EnabledForDiskEncryption != null) + { + writer.WritePropertyName("enabledForDiskEncryption"); + writer.WriteBooleanValue(EnabledForDiskEncryption.Value); + } + if (EnabledForTemplateDeployment != null) + { + writer.WritePropertyName("enabledForTemplateDeployment"); + writer.WriteBooleanValue(EnabledForTemplateDeployment.Value); + } + if (EnableSoftDelete != null) + { + writer.WritePropertyName("enableSoftDelete"); + writer.WriteBooleanValue(EnableSoftDelete.Value); + } + if (CreateMode != null) + { + writer.WritePropertyName("createMode"); + writer.WriteStringValue(CreateMode.Value.ToSerialString()); + } + if (EnablePurgeProtection != null) + { + writer.WritePropertyName("enablePurgeProtection"); + writer.WriteBooleanValue(EnablePurgeProtection.Value); + } + if (NetworkAcls != null) + { + writer.WritePropertyName("networkAcls"); + writer.WriteObjectValue(NetworkAcls); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultPatchProperties.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultPatchProperties.cs new file mode 100644 index 0000000000000..ab7b78a2e1dbe --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultPatchProperties.cs @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Management.KeyVault.Models +{ + /// Properties of the vault. + public partial class VaultPatchProperties + { + /// Initializes a new instance of VaultPatchProperties. + public VaultPatchProperties() + { + } + + /// Initializes a new instance of VaultPatchProperties. + /// The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault. + /// SKU details. + /// An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID. + /// Property to specify whether Azure Virtual Machines are permitted to retrieve certificates stored as secrets from the key vault. + /// Property to specify whether Azure Disk Encryption is permitted to retrieve secrets from the vault and unwrap keys. + /// Property to specify whether Azure Resource Manager is permitted to retrieve secrets from the key vault. + /// Property to specify whether the 'soft delete' functionality is enabled for this key vault. If omitted, assume true as default value. Once set to true, cannot be reverted to false. + /// The vault's create mode to indicate whether the vault need to be recovered or not. + /// Property specifying whether protection against purge is enabled for this vault. Setting this property to true activates protection against purge for this vault and its content - only the Key Vault service may initiate a hard, irrecoverable deletion. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible - that is, the property does not accept false as its value. + /// A collection of rules governing the accessibility of the vault from specific network locations. + internal VaultPatchProperties(Guid? tenantId, Sku sku, IList accessPolicies, bool? enabledForDeployment, bool? enabledForDiskEncryption, bool? enabledForTemplateDeployment, bool? enableSoftDelete, CreateMode? createMode, bool? enablePurgeProtection, NetworkRuleSet networkAcls) + { + TenantId = tenantId; + Sku = sku; + AccessPolicies = accessPolicies; + EnabledForDeployment = enabledForDeployment; + EnabledForDiskEncryption = enabledForDiskEncryption; + EnabledForTemplateDeployment = enabledForTemplateDeployment; + EnableSoftDelete = enableSoftDelete; + CreateMode = createMode; + EnablePurgeProtection = enablePurgeProtection; + NetworkAcls = networkAcls; + } + + /// The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault. + public Guid? TenantId { get; set; } + /// SKU details. + public Sku Sku { get; set; } + /// An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID. + public IList AccessPolicies { get; set; } + /// Property to specify whether Azure Virtual Machines are permitted to retrieve certificates stored as secrets from the key vault. + public bool? EnabledForDeployment { get; set; } + /// Property to specify whether Azure Disk Encryption is permitted to retrieve secrets from the vault and unwrap keys. + public bool? EnabledForDiskEncryption { get; set; } + /// Property to specify whether Azure Resource Manager is permitted to retrieve secrets from the key vault. + public bool? EnabledForTemplateDeployment { get; set; } + /// Property to specify whether the 'soft delete' functionality is enabled for this key vault. If omitted, assume true as default value. Once set to true, cannot be reverted to false. + public bool? EnableSoftDelete { get; set; } + /// The vault's create mode to indicate whether the vault need to be recovered or not. + public CreateMode? CreateMode { get; set; } + /// Property specifying whether protection against purge is enabled for this vault. Setting this property to true activates protection against purge for this vault and its content - only the Key Vault service may initiate a hard, irrecoverable deletion. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible - that is, the property does not accept false as its value. + public bool? EnablePurgeProtection { get; set; } + /// A collection of rules governing the accessibility of the vault from specific network locations. + public NetworkRuleSet NetworkAcls { get; set; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultProperties.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultProperties.Serialization.cs new file mode 100644 index 0000000000000..e2489df919812 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultProperties.Serialization.cs @@ -0,0 +1,231 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class VaultProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("tenantId"); + writer.WriteStringValue(TenantId); + writer.WritePropertyName("sku"); + writer.WriteObjectValue(Sku); + if (AccessPolicies != null) + { + writer.WritePropertyName("accessPolicies"); + writer.WriteStartArray(); + foreach (var item in AccessPolicies) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (VaultUri != null) + { + writer.WritePropertyName("vaultUri"); + writer.WriteStringValue(VaultUri); + } + if (EnabledForDeployment != null) + { + writer.WritePropertyName("enabledForDeployment"); + writer.WriteBooleanValue(EnabledForDeployment.Value); + } + if (EnabledForDiskEncryption != null) + { + writer.WritePropertyName("enabledForDiskEncryption"); + writer.WriteBooleanValue(EnabledForDiskEncryption.Value); + } + if (EnabledForTemplateDeployment != null) + { + writer.WritePropertyName("enabledForTemplateDeployment"); + writer.WriteBooleanValue(EnabledForTemplateDeployment.Value); + } + if (EnableSoftDelete != null) + { + writer.WritePropertyName("enableSoftDelete"); + writer.WriteBooleanValue(EnableSoftDelete.Value); + } + if (CreateMode != null) + { + writer.WritePropertyName("createMode"); + writer.WriteStringValue(CreateMode.Value.ToSerialString()); + } + if (EnablePurgeProtection != null) + { + writer.WritePropertyName("enablePurgeProtection"); + writer.WriteBooleanValue(EnablePurgeProtection.Value); + } + if (NetworkAcls != null) + { + writer.WritePropertyName("networkAcls"); + writer.WriteObjectValue(NetworkAcls); + } + if (PrivateEndpointConnections != null) + { + writer.WritePropertyName("privateEndpointConnections"); + writer.WriteStartArray(); + foreach (var item in PrivateEndpointConnections) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static VaultProperties DeserializeVaultProperties(JsonElement element) + { + Guid tenantId = default; + Sku sku = default; + IList accessPolicies = default; + string vaultUri = default; + bool? enabledForDeployment = default; + bool? enabledForDiskEncryption = default; + bool? enabledForTemplateDeployment = default; + bool? enableSoftDelete = default; + CreateMode? createMode = default; + bool? enablePurgeProtection = default; + NetworkRuleSet networkAcls = default; + IList privateEndpointConnections = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("tenantId")) + { + tenantId = property.Value.GetGuid(); + continue; + } + if (property.NameEquals("sku")) + { + sku = Sku.DeserializeSku(property.Value); + continue; + } + if (property.NameEquals("accessPolicies")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(AccessPolicyEntry.DeserializeAccessPolicyEntry(item)); + } + } + accessPolicies = array; + continue; + } + if (property.NameEquals("vaultUri")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + vaultUri = property.Value.GetString(); + continue; + } + if (property.NameEquals("enabledForDeployment")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enabledForDeployment = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("enabledForDiskEncryption")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enabledForDiskEncryption = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("enabledForTemplateDeployment")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enabledForTemplateDeployment = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("enableSoftDelete")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enableSoftDelete = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("createMode")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + createMode = property.Value.GetString().ToCreateMode(); + continue; + } + if (property.NameEquals("enablePurgeProtection")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enablePurgeProtection = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("networkAcls")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + networkAcls = NetworkRuleSet.DeserializeNetworkRuleSet(property.Value); + continue; + } + if (property.NameEquals("privateEndpointConnections")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(PrivateEndpointConnectionItem.DeserializePrivateEndpointConnectionItem(item)); + } + } + privateEndpointConnections = array; + continue; + } + } + return new VaultProperties(tenantId, sku, accessPolicies, vaultUri, enabledForDeployment, enabledForDiskEncryption, enabledForTemplateDeployment, enableSoftDelete, createMode, enablePurgeProtection, networkAcls, privateEndpointConnections); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultProperties.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultProperties.cs new file mode 100644 index 0000000000000..6fd8f37ba7176 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VaultProperties.cs @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Management.KeyVault.Models +{ + /// Properties of the vault. + public partial class VaultProperties + { + /// Initializes a new instance of VaultProperties. + /// The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault. + /// SKU details. + public VaultProperties(Guid tenantId, Sku sku) + { + if (sku == null) + { + throw new ArgumentNullException(nameof(sku)); + } + + TenantId = tenantId; + Sku = sku; + } + + /// Initializes a new instance of VaultProperties. + /// The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault. + /// SKU details. + /// An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID. When `createMode` is set to `recover`, access policies are not required. Otherwise, access policies are required. + /// The URI of the vault for performing operations on keys and secrets. + /// Property to specify whether Azure Virtual Machines are permitted to retrieve certificates stored as secrets from the key vault. + /// Property to specify whether Azure Disk Encryption is permitted to retrieve secrets from the vault and unwrap keys. + /// Property to specify whether Azure Resource Manager is permitted to retrieve secrets from the key vault. + /// Property to specify whether the 'soft delete' functionality is enabled for this key vault. If omitted, assume true as default value. Once set to true, cannot be reverted to false. + /// The vault's create mode to indicate whether the vault need to be recovered or not. + /// Property specifying whether protection against purge is enabled for this vault. Setting this property to true activates protection against purge for this vault and its content - only the Key Vault service may initiate a hard, irrecoverable deletion. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible - that is, the property does not accept false as its value. + /// Rules governing the accessibility of the key vault from specific network locations. + /// List of private endpoint connections associated with the key vault. + internal VaultProperties(Guid tenantId, Sku sku, IList accessPolicies, string vaultUri, bool? enabledForDeployment, bool? enabledForDiskEncryption, bool? enabledForTemplateDeployment, bool? enableSoftDelete, CreateMode? createMode, bool? enablePurgeProtection, NetworkRuleSet networkAcls, IList privateEndpointConnections) + { + TenantId = tenantId; + Sku = sku; + AccessPolicies = accessPolicies; + VaultUri = vaultUri; + EnabledForDeployment = enabledForDeployment; + EnabledForDiskEncryption = enabledForDiskEncryption; + EnabledForTemplateDeployment = enabledForTemplateDeployment; + EnableSoftDelete = enableSoftDelete; + CreateMode = createMode; + EnablePurgeProtection = enablePurgeProtection; + NetworkAcls = networkAcls; + PrivateEndpointConnections = privateEndpointConnections; + } + + /// The Azure Active Directory tenant ID that should be used for authenticating requests to the key vault. + public Guid TenantId { get; set; } + /// SKU details. + public Sku Sku { get; set; } + /// An array of 0 to 16 identities that have access to the key vault. All identities in the array must use the same tenant ID as the key vault's tenant ID. When `createMode` is set to `recover`, access policies are not required. Otherwise, access policies are required. + public IList AccessPolicies { get; set; } + /// The URI of the vault for performing operations on keys and secrets. + public string VaultUri { get; set; } + /// Property to specify whether Azure Virtual Machines are permitted to retrieve certificates stored as secrets from the key vault. + public bool? EnabledForDeployment { get; set; } + /// Property to specify whether Azure Disk Encryption is permitted to retrieve secrets from the vault and unwrap keys. + public bool? EnabledForDiskEncryption { get; set; } + /// Property to specify whether Azure Resource Manager is permitted to retrieve secrets from the key vault. + public bool? EnabledForTemplateDeployment { get; set; } + /// Property to specify whether the 'soft delete' functionality is enabled for this key vault. If omitted, assume true as default value. Once set to true, cannot be reverted to false. + public bool? EnableSoftDelete { get; set; } + /// The vault's create mode to indicate whether the vault need to be recovered or not. + public CreateMode? CreateMode { get; set; } + /// Property specifying whether protection against purge is enabled for this vault. Setting this property to true activates protection against purge for this vault and its content - only the Key Vault service may initiate a hard, irrecoverable deletion. The setting is effective only if soft delete is also enabled. Enabling this functionality is irreversible - that is, the property does not accept false as its value. + public bool? EnablePurgeProtection { get; set; } + /// Rules governing the accessibility of the key vault from specific network locations. + public NetworkRuleSet NetworkAcls { get; set; } + /// List of private endpoint connections associated with the key vault. + public IList PrivateEndpointConnections { get; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VirtualNetworkRule.Serialization.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VirtualNetworkRule.Serialization.cs new file mode 100644 index 0000000000000..c8649c5123912 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VirtualNetworkRule.Serialization.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.KeyVault.Models +{ + public partial class VirtualNetworkRule : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + writer.WriteEndObject(); + } + + internal static VirtualNetworkRule DeserializeVirtualNetworkRule(JsonElement element) + { + string id = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + } + return new VirtualNetworkRule(id); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VirtualNetworkRule.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VirtualNetworkRule.cs new file mode 100644 index 0000000000000..9abcd593ba116 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/Models/VirtualNetworkRule.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Management.KeyVault.Models +{ + /// A rule governing the accessibility of a vault from a specific virtual network. + public partial class VirtualNetworkRule + { + /// Initializes a new instance of VirtualNetworkRule. + /// Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'. + public VirtualNetworkRule(string id) + { + if (id == null) + { + throw new ArgumentNullException(nameof(id)); + } + + Id = id; + } + + /// Full resource id of a vnet subnet, such as '/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/test-vnet/subnets/subnet1'. + public string Id { get; set; } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/OperationsClient.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/OperationsClient.cs new file mode 100644 index 0000000000000..958297e434a07 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/OperationsClient.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.KeyVault.Models; + +namespace Azure.Management.KeyVault +{ + /// The Operations service client. + public partial class OperationsClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal OperationsRestClient RestClient { get; } + /// Initializes a new instance of OperationsClient for mocking. + protected OperationsClient() + { + } + /// Initializes a new instance of OperationsClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// server parameter. + /// Api Version. + internal OperationsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2019-09-01") + { + RestClient = new OperationsRestClient(clientDiagnostics, pipeline, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Lists all of the available Key Vault Rest API operations. + /// The cancellation token to use. + public virtual AsyncPageable ListAsync(CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("OperationsClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListAsync(cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("OperationsClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Lists all of the available Key Vault Rest API operations. + /// The cancellation token to use. + public virtual Pageable List(CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("OperationsClient.List"); + scope.Start(); + try + { + var response = RestClient.List(cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("OperationsClient.List"); + scope.Start(); + try + { + var response = RestClient.ListNextPage(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/OperationsRestClient.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/OperationsRestClient.cs new file mode 100644 index 0000000000000..040c71218dc32 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/OperationsRestClient.cs @@ -0,0 +1,191 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.KeyVault.Models; + +namespace Azure.Management.KeyVault +{ + internal partial class OperationsRestClient + { + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of OperationsRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public OperationsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Uri endpoint = null, string apiVersion = "2019-09-01") + { + endpoint ??= new Uri("https://management.azure.com"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateListRequest() + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.KeyVault/operations", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Lists all of the available Key Vault Rest API operations. + /// The cancellation token to use. + public async ValueTask> ListAsync(CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + OperationListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = OperationListResult.DeserializeOperationListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Lists all of the available Key Vault Rest API operations. + /// The cancellation token to use. + public Response List(CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + OperationListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = OperationListResult.DeserializeOperationListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// Lists all of the available Key Vault Rest API operations. + /// The URL to the next page of results. + /// The cancellation token to use. + public async ValueTask> ListNextPageAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + OperationListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = OperationListResult.DeserializeOperationListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Lists all of the available Key Vault Rest API operations. + /// The URL to the next page of results. + /// The cancellation token to use. + public Response ListNextPage(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + OperationListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = OperationListResult.DeserializeOperationListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/PrivateEndpointConnectionsClient.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/PrivateEndpointConnectionsClient.cs new file mode 100644 index 0000000000000..c11251fa7e60f --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/PrivateEndpointConnectionsClient.cs @@ -0,0 +1,190 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core.Pipeline; +using Azure.Management.KeyVault.Models; + +namespace Azure.Management.KeyVault +{ + /// The PrivateEndpointConnections service client. + public partial class PrivateEndpointConnectionsClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal PrivateEndpointConnectionsRestClient RestClient { get; } + /// Initializes a new instance of PrivateEndpointConnectionsClient for mocking. + protected PrivateEndpointConnectionsClient() + { + } + /// Initializes a new instance of PrivateEndpointConnectionsClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// server parameter. + /// Api Version. + internal PrivateEndpointConnectionsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null, string apiVersion = "2019-09-01") + { + RestClient = new PrivateEndpointConnectionsRestClient(clientDiagnostics, pipeline, subscriptionId, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Gets the specified private endpoint connection associated with the key vault. + /// Name of the resource group that contains the key vault. + /// The name of the key vault. + /// Name of the private endpoint connection associated with the key vault. + /// The cancellation token to use. + public virtual async Task> GetAsync(string resourceGroupName, string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("PrivateEndpointConnectionsClient.Get"); + scope.Start(); + try + { + return await RestClient.GetAsync(resourceGroupName, vaultName, privateEndpointConnectionName, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the specified private endpoint connection associated with the key vault. + /// Name of the resource group that contains the key vault. + /// The name of the key vault. + /// Name of the private endpoint connection associated with the key vault. + /// The cancellation token to use. + public virtual Response Get(string resourceGroupName, string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("PrivateEndpointConnectionsClient.Get"); + scope.Start(); + try + { + return RestClient.Get(resourceGroupName, vaultName, privateEndpointConnectionName, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Updates the specified private endpoint connection associated with the key vault. + /// Name of the resource group that contains the key vault. + /// The name of the key vault. + /// Name of the private endpoint connection associated with the key vault. + /// The intended state of private endpoint connection. + /// The cancellation token to use. + public virtual async Task> PutAsync(string resourceGroupName, string vaultName, string privateEndpointConnectionName, PrivateEndpointConnection properties, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("PrivateEndpointConnectionsClient.Put"); + scope.Start(); + try + { + return await RestClient.PutAsync(resourceGroupName, vaultName, privateEndpointConnectionName, properties, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Updates the specified private endpoint connection associated with the key vault. + /// Name of the resource group that contains the key vault. + /// The name of the key vault. + /// Name of the private endpoint connection associated with the key vault. + /// The intended state of private endpoint connection. + /// The cancellation token to use. + public virtual Response Put(string resourceGroupName, string vaultName, string privateEndpointConnectionName, PrivateEndpointConnection properties, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("PrivateEndpointConnectionsClient.Put"); + scope.Start(); + try + { + return RestClient.Put(resourceGroupName, vaultName, privateEndpointConnectionName, properties, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Deletes the specified private endpoint connection associated with the key vault. + /// Name of the resource group that contains the key vault. + /// The name of the key vault. + /// Name of the private endpoint connection associated with the key vault. + /// The cancellation token to use. + public virtual async ValueTask StartDeleteAsync(string resourceGroupName, string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (privateEndpointConnectionName == null) + { + throw new ArgumentNullException(nameof(privateEndpointConnectionName)); + } + + using var scope = _clientDiagnostics.CreateScope("PrivateEndpointConnectionsClient.StartDelete"); + scope.Start(); + try + { + var originalResponse = await RestClient.DeleteAsync(resourceGroupName, vaultName, privateEndpointConnectionName, cancellationToken).ConfigureAwait(false); + return new PrivateEndpointConnectionsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteRequest(resourceGroupName, vaultName, privateEndpointConnectionName).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Deletes the specified private endpoint connection associated with the key vault. + /// Name of the resource group that contains the key vault. + /// The name of the key vault. + /// Name of the private endpoint connection associated with the key vault. + /// The cancellation token to use. + public virtual PrivateEndpointConnectionsDeleteOperation StartDelete(string resourceGroupName, string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (privateEndpointConnectionName == null) + { + throw new ArgumentNullException(nameof(privateEndpointConnectionName)); + } + + using var scope = _clientDiagnostics.CreateScope("PrivateEndpointConnectionsClient.StartDelete"); + scope.Start(); + try + { + var originalResponse = RestClient.Delete(resourceGroupName, vaultName, privateEndpointConnectionName, cancellationToken); + return new PrivateEndpointConnectionsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteRequest(resourceGroupName, vaultName, privateEndpointConnectionName).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/PrivateEndpointConnectionsDeleteOperation.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/PrivateEndpointConnectionsDeleteOperation.cs new file mode 100644 index 0000000000000..997ff78ccc82a --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/PrivateEndpointConnectionsDeleteOperation.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.KeyVault.Models; + +namespace Azure.Management.KeyVault +{ + /// Deletes the specified private endpoint connection associated with the key vault. + public partial class PrivateEndpointConnectionsDeleteOperation : Operation, IOperationSource + { + private readonly ArmOperationHelpers _operation; + internal PrivateEndpointConnectionsDeleteOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + { + _operation = new ArmOperationHelpers(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "PrivateEndpointConnectionsDeleteOperation"); + } + /// + public override string Id => _operation.Id; + + /// + public override PrivateEndpointConnection Value => _operation.Value; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override bool HasValue => _operation.HasValue; + + /// + public override Response GetRawResponse() => _operation.GetRawResponse(); + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + + PrivateEndpointConnection IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + return null; + } + else + { + return PrivateEndpointConnection.DeserializePrivateEndpointConnection(document.RootElement); + } + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + return null; + } + else + { + return PrivateEndpointConnection.DeserializePrivateEndpointConnection(document.RootElement); + } + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/PrivateEndpointConnectionsPutHeaders.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/PrivateEndpointConnectionsPutHeaders.cs new file mode 100644 index 0000000000000..2a39ecb382f34 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/PrivateEndpointConnectionsPutHeaders.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure; +using Azure.Core; + +namespace Azure.Management.KeyVault +{ + internal class PrivateEndpointConnectionsPutHeaders + { + private readonly Response _response; + public PrivateEndpointConnectionsPutHeaders(Response response) + { + _response = response; + } + public int? RetryAfter => _response.Headers.TryGetValue("Retry-After", out int? value) ? value : null; + public string AzureAsyncOperation => _response.Headers.TryGetValue("Azure-AsyncOperation", out string value) ? value : null; + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/PrivateEndpointConnectionsRestClient.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/PrivateEndpointConnectionsRestClient.cs new file mode 100644 index 0000000000000..760582af3f369 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/PrivateEndpointConnectionsRestClient.cs @@ -0,0 +1,365 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.KeyVault.Models; + +namespace Azure.Management.KeyVault +{ + internal partial class PrivateEndpointConnectionsRestClient + { + private string subscriptionId; + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of PrivateEndpointConnectionsRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public PrivateEndpointConnectionsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null, string apiVersion = "2019-09-01") + { + if (subscriptionId == null) + { + throw new ArgumentNullException(nameof(subscriptionId)); + } + endpoint ??= new Uri("https://management.azure.com"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.subscriptionId = subscriptionId; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateGetRequest(string resourceGroupName, string vaultName, string privateEndpointConnectionName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.KeyVault/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets the specified private endpoint connection associated with the key vault. + /// Name of the resource group that contains the key vault. + /// The name of the key vault. + /// Name of the private endpoint connection associated with the key vault. + /// The cancellation token to use. + public async ValueTask> GetAsync(string resourceGroupName, string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (privateEndpointConnectionName == null) + { + throw new ArgumentNullException(nameof(privateEndpointConnectionName)); + } + + using var message = CreateGetRequest(resourceGroupName, vaultName, privateEndpointConnectionName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + PrivateEndpointConnection value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = PrivateEndpointConnection.DeserializePrivateEndpointConnection(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets the specified private endpoint connection associated with the key vault. + /// Name of the resource group that contains the key vault. + /// The name of the key vault. + /// Name of the private endpoint connection associated with the key vault. + /// The cancellation token to use. + public Response Get(string resourceGroupName, string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (privateEndpointConnectionName == null) + { + throw new ArgumentNullException(nameof(privateEndpointConnectionName)); + } + + using var message = CreateGetRequest(resourceGroupName, vaultName, privateEndpointConnectionName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + PrivateEndpointConnection value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = PrivateEndpointConnection.DeserializePrivateEndpointConnection(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreatePutRequest(string resourceGroupName, string vaultName, string privateEndpointConnectionName, PrivateEndpointConnection properties) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.KeyVault/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(properties); + request.Content = content; + return message; + } + + /// Updates the specified private endpoint connection associated with the key vault. + /// Name of the resource group that contains the key vault. + /// The name of the key vault. + /// Name of the private endpoint connection associated with the key vault. + /// The intended state of private endpoint connection. + /// The cancellation token to use. + public async ValueTask> PutAsync(string resourceGroupName, string vaultName, string privateEndpointConnectionName, PrivateEndpointConnection properties, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (privateEndpointConnectionName == null) + { + throw new ArgumentNullException(nameof(privateEndpointConnectionName)); + } + if (properties == null) + { + throw new ArgumentNullException(nameof(properties)); + } + + using var message = CreatePutRequest(resourceGroupName, vaultName, privateEndpointConnectionName, properties); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + var headers = new PrivateEndpointConnectionsPutHeaders(message.Response); + switch (message.Response.Status) + { + case 200: + { + PrivateEndpointConnection value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = PrivateEndpointConnection.DeserializePrivateEndpointConnection(document.RootElement); + } + return ResponseWithHeaders.FromValue(value, headers, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Updates the specified private endpoint connection associated with the key vault. + /// Name of the resource group that contains the key vault. + /// The name of the key vault. + /// Name of the private endpoint connection associated with the key vault. + /// The intended state of private endpoint connection. + /// The cancellation token to use. + public ResponseWithHeaders Put(string resourceGroupName, string vaultName, string privateEndpointConnectionName, PrivateEndpointConnection properties, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (privateEndpointConnectionName == null) + { + throw new ArgumentNullException(nameof(privateEndpointConnectionName)); + } + if (properties == null) + { + throw new ArgumentNullException(nameof(properties)); + } + + using var message = CreatePutRequest(resourceGroupName, vaultName, privateEndpointConnectionName, properties); + _pipeline.Send(message, cancellationToken); + var headers = new PrivateEndpointConnectionsPutHeaders(message.Response); + switch (message.Response.Status) + { + case 200: + { + PrivateEndpointConnection value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = PrivateEndpointConnection.DeserializePrivateEndpointConnection(document.RootElement); + } + return ResponseWithHeaders.FromValue(value, headers, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string resourceGroupName, string vaultName, string privateEndpointConnectionName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.KeyVault/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/privateEndpointConnections/", false); + uri.AppendPath(privateEndpointConnectionName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Deletes the specified private endpoint connection associated with the key vault. + /// Name of the resource group that contains the key vault. + /// The name of the key vault. + /// Name of the private endpoint connection associated with the key vault. + /// The cancellation token to use. + public async ValueTask DeleteAsync(string resourceGroupName, string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (privateEndpointConnectionName == null) + { + throw new ArgumentNullException(nameof(privateEndpointConnectionName)); + } + + using var message = CreateDeleteRequest(resourceGroupName, vaultName, privateEndpointConnectionName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 200: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Deletes the specified private endpoint connection associated with the key vault. + /// Name of the resource group that contains the key vault. + /// The name of the key vault. + /// Name of the private endpoint connection associated with the key vault. + /// The cancellation token to use. + public Response Delete(string resourceGroupName, string vaultName, string privateEndpointConnectionName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (privateEndpointConnectionName == null) + { + throw new ArgumentNullException(nameof(privateEndpointConnectionName)); + } + + using var message = CreateDeleteRequest(resourceGroupName, vaultName, privateEndpointConnectionName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 200: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/PrivateLinkResourcesClient.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/PrivateLinkResourcesClient.cs new file mode 100644 index 0000000000000..493bff51bff23 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/PrivateLinkResourcesClient.cs @@ -0,0 +1,78 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core.Pipeline; +using Azure.Management.KeyVault.Models; + +namespace Azure.Management.KeyVault +{ + /// The PrivateLinkResources service client. + public partial class PrivateLinkResourcesClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal PrivateLinkResourcesRestClient RestClient { get; } + /// Initializes a new instance of PrivateLinkResourcesClient for mocking. + protected PrivateLinkResourcesClient() + { + } + /// Initializes a new instance of PrivateLinkResourcesClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// server parameter. + /// Api Version. + internal PrivateLinkResourcesClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null, string apiVersion = "2019-09-01") + { + RestClient = new PrivateLinkResourcesRestClient(clientDiagnostics, pipeline, subscriptionId, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Gets the private link resources supported for the key vault. + /// Name of the resource group that contains the key vault. + /// The name of the key vault. + /// The cancellation token to use. + public virtual async Task> ListByVaultAsync(string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("PrivateLinkResourcesClient.ListByVault"); + scope.Start(); + try + { + return await RestClient.ListByVaultAsync(resourceGroupName, vaultName, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the private link resources supported for the key vault. + /// Name of the resource group that contains the key vault. + /// The name of the key vault. + /// The cancellation token to use. + public virtual Response ListByVault(string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("PrivateLinkResourcesClient.ListByVault"); + scope.Start(); + try + { + return RestClient.ListByVault(resourceGroupName, vaultName, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/PrivateLinkResourcesRestClient.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/PrivateLinkResourcesRestClient.cs new file mode 100644 index 0000000000000..46ee0d3f0ce63 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/PrivateLinkResourcesRestClient.cs @@ -0,0 +1,148 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.KeyVault.Models; + +namespace Azure.Management.KeyVault +{ + internal partial class PrivateLinkResourcesRestClient + { + private string subscriptionId; + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of PrivateLinkResourcesRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public PrivateLinkResourcesRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null, string apiVersion = "2019-09-01") + { + if (subscriptionId == null) + { + throw new ArgumentNullException(nameof(subscriptionId)); + } + endpoint ??= new Uri("https://management.azure.com"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.subscriptionId = subscriptionId; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateListByVaultRequest(string resourceGroupName, string vaultName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.KeyVault/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/privateLinkResources", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets the private link resources supported for the key vault. + /// Name of the resource group that contains the key vault. + /// The name of the key vault. + /// The cancellation token to use. + public async ValueTask> ListByVaultAsync(string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + + using var message = CreateListByVaultRequest(resourceGroupName, vaultName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + PrivateLinkResourceListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = PrivateLinkResourceListResult.DeserializePrivateLinkResourceListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets the private link resources supported for the key vault. + /// Name of the resource group that contains the key vault. + /// The name of the key vault. + /// The cancellation token to use. + public Response ListByVault(string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + + using var message = CreateListByVaultRequest(resourceGroupName, vaultName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + PrivateLinkResourceListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = PrivateLinkResourceListResult.DeserializePrivateLinkResourceListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/VaultsClient.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/VaultsClient.cs new file mode 100644 index 0000000000000..9404ea6c429a1 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/VaultsClient.cs @@ -0,0 +1,713 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.KeyVault.Models; + +namespace Azure.Management.KeyVault +{ + /// The Vaults service client. + public partial class VaultsClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal VaultsRestClient RestClient { get; } + /// Initializes a new instance of VaultsClient for mocking. + protected VaultsClient() + { + } + /// Initializes a new instance of VaultsClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// server parameter. + /// Api Version. + internal VaultsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null, string apiVersion = "2019-09-01") + { + RestClient = new VaultsRestClient(clientDiagnostics, pipeline, subscriptionId, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Update a key vault in the specified subscription. + /// The name of the Resource Group to which the server belongs. + /// Name of the vault. + /// Parameters to patch the vault. + /// The cancellation token to use. + public virtual async Task> UpdateAsync(string resourceGroupName, string vaultName, VaultPatchParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.Update"); + scope.Start(); + try + { + return await RestClient.UpdateAsync(resourceGroupName, vaultName, parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Update a key vault in the specified subscription. + /// The name of the Resource Group to which the server belongs. + /// Name of the vault. + /// Parameters to patch the vault. + /// The cancellation token to use. + public virtual Response Update(string resourceGroupName, string vaultName, VaultPatchParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.Update"); + scope.Start(); + try + { + return RestClient.Update(resourceGroupName, vaultName, parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Deletes the specified Azure key vault. + /// The name of the Resource Group to which the vault belongs. + /// The name of the vault to delete. + /// The cancellation token to use. + public virtual async Task DeleteAsync(string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.Delete"); + scope.Start(); + try + { + return await RestClient.DeleteAsync(resourceGroupName, vaultName, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Deletes the specified Azure key vault. + /// The name of the Resource Group to which the vault belongs. + /// The name of the vault to delete. + /// The cancellation token to use. + public virtual Response Delete(string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.Delete"); + scope.Start(); + try + { + return RestClient.Delete(resourceGroupName, vaultName, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the specified Azure key vault. + /// The name of the Resource Group to which the vault belongs. + /// The name of the vault. + /// The cancellation token to use. + public virtual async Task> GetAsync(string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.Get"); + scope.Start(); + try + { + return await RestClient.GetAsync(resourceGroupName, vaultName, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the specified Azure key vault. + /// The name of the Resource Group to which the vault belongs. + /// The name of the vault. + /// The cancellation token to use. + public virtual Response Get(string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.Get"); + scope.Start(); + try + { + return RestClient.Get(resourceGroupName, vaultName, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Update access policies in a key vault in the specified subscription. + /// The name of the Resource Group to which the vault belongs. + /// Name of the vault. + /// Name of the operation. + /// Access policy to merge into the vault. + /// The cancellation token to use. + public virtual async Task> UpdateAccessPolicyAsync(string resourceGroupName, string vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.UpdateAccessPolicy"); + scope.Start(); + try + { + return await RestClient.UpdateAccessPolicyAsync(resourceGroupName, vaultName, operationKind, parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Update access policies in a key vault in the specified subscription. + /// The name of the Resource Group to which the vault belongs. + /// Name of the vault. + /// Name of the operation. + /// Access policy to merge into the vault. + /// The cancellation token to use. + public virtual Response UpdateAccessPolicy(string resourceGroupName, string vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.UpdateAccessPolicy"); + scope.Start(); + try + { + return RestClient.UpdateAccessPolicy(resourceGroupName, vaultName, operationKind, parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the deleted Azure key vault. + /// The name of the vault. + /// The location of the deleted vault. + /// The cancellation token to use. + public virtual async Task> GetDeletedAsync(string vaultName, string location, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.GetDeleted"); + scope.Start(); + try + { + return await RestClient.GetDeletedAsync(vaultName, location, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the deleted Azure key vault. + /// The name of the vault. + /// The location of the deleted vault. + /// The cancellation token to use. + public virtual Response GetDeleted(string vaultName, string location, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.GetDeleted"); + scope.Start(); + try + { + return RestClient.GetDeleted(vaultName, location, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Checks that the vault name is valid and is not already in use. + /// The name of the vault. + /// The cancellation token to use. + public virtual async Task> CheckNameAvailabilityAsync(VaultCheckNameAvailabilityParameters vaultName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.CheckNameAvailability"); + scope.Start(); + try + { + return await RestClient.CheckNameAvailabilityAsync(vaultName, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Checks that the vault name is valid and is not already in use. + /// The name of the vault. + /// The cancellation token to use. + public virtual Response CheckNameAvailability(VaultCheckNameAvailabilityParameters vaultName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.CheckNameAvailability"); + scope.Start(); + try + { + return RestClient.CheckNameAvailability(vaultName, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// The List operation gets information about the vaults associated with the subscription and within the specified resource group. + /// The name of the Resource Group to which the vault belongs. + /// Maximum number of results to return. + /// The cancellation token to use. + public virtual AsyncPageable ListByResourceGroupAsync(string resourceGroupName, int? top = null, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.ListByResourceGroup"); + scope.Start(); + try + { + var response = await RestClient.ListByResourceGroupAsync(resourceGroupName, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.ListByResourceGroup"); + scope.Start(); + try + { + var response = await RestClient.ListByResourceGroupNextPageAsync(nextLink, resourceGroupName, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// The List operation gets information about the vaults associated with the subscription and within the specified resource group. + /// The name of the Resource Group to which the vault belongs. + /// Maximum number of results to return. + /// The cancellation token to use. + public virtual Pageable ListByResourceGroup(string resourceGroupName, int? top = null, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.ListByResourceGroup"); + scope.Start(); + try + { + var response = RestClient.ListByResourceGroup(resourceGroupName, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.ListByResourceGroup"); + scope.Start(); + try + { + var response = RestClient.ListByResourceGroupNextPage(nextLink, resourceGroupName, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// The List operation gets information about the vaults associated with the subscription. + /// Maximum number of results to return. + /// The cancellation token to use. + public virtual AsyncPageable ListBySubscriptionAsync(int? top = null, CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.ListBySubscription"); + scope.Start(); + try + { + var response = await RestClient.ListBySubscriptionAsync(top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.ListBySubscription"); + scope.Start(); + try + { + var response = await RestClient.ListBySubscriptionNextPageAsync(nextLink, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// The List operation gets information about the vaults associated with the subscription. + /// Maximum number of results to return. + /// The cancellation token to use. + public virtual Pageable ListBySubscription(int? top = null, CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.ListBySubscription"); + scope.Start(); + try + { + var response = RestClient.ListBySubscription(top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.ListBySubscription"); + scope.Start(); + try + { + var response = RestClient.ListBySubscriptionNextPage(nextLink, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets information about the deleted vaults in a subscription. + /// The cancellation token to use. + public virtual AsyncPageable ListDeletedAsync(CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.ListDeleted"); + scope.Start(); + try + { + var response = await RestClient.ListDeletedAsync(cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.ListDeleted"); + scope.Start(); + try + { + var response = await RestClient.ListDeletedNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets information about the deleted vaults in a subscription. + /// The cancellation token to use. + public virtual Pageable ListDeleted(CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.ListDeleted"); + scope.Start(); + try + { + var response = RestClient.ListDeleted(cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.ListDeleted"); + scope.Start(); + try + { + var response = RestClient.ListDeletedNextPage(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// The List operation gets information about the vaults associated with the subscription. + /// Maximum number of results to return. + /// The cancellation token to use. + public virtual AsyncPageable ListAsync(int? top = null, CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListAsync(top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListNextPageAsync(nextLink, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// The List operation gets information about the vaults associated with the subscription. + /// Maximum number of results to return. + /// The cancellation token to use. + public virtual Pageable List(int? top = null, CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.List"); + scope.Start(); + try + { + var response = RestClient.List(top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("VaultsClient.List"); + scope.Start(); + try + { + var response = RestClient.ListNextPage(nextLink, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Create or update a key vault in the specified subscription. + /// The name of the Resource Group to which the server belongs. + /// Name of the vault. + /// Parameters to create or update the vault. + /// The cancellation token to use. + public virtual async ValueTask StartCreateOrUpdateAsync(string resourceGroupName, string vaultName, VaultCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var scope = _clientDiagnostics.CreateScope("VaultsClient.StartCreateOrUpdate"); + scope.Start(); + try + { + var originalResponse = await RestClient.CreateOrUpdateAsync(resourceGroupName, vaultName, parameters, cancellationToken).ConfigureAwait(false); + return new VaultsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreateOrUpdateRequest(resourceGroupName, vaultName, parameters).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Create or update a key vault in the specified subscription. + /// The name of the Resource Group to which the server belongs. + /// Name of the vault. + /// Parameters to create or update the vault. + /// The cancellation token to use. + public virtual VaultsCreateOrUpdateOperation StartCreateOrUpdate(string resourceGroupName, string vaultName, VaultCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var scope = _clientDiagnostics.CreateScope("VaultsClient.StartCreateOrUpdate"); + scope.Start(); + try + { + var originalResponse = RestClient.CreateOrUpdate(resourceGroupName, vaultName, parameters, cancellationToken); + return new VaultsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreateOrUpdateRequest(resourceGroupName, vaultName, parameters).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Permanently deletes the specified vault. aka Purges the deleted Azure key vault. + /// The name of the soft-deleted vault. + /// The location of the soft-deleted vault. + /// The cancellation token to use. + public virtual async ValueTask StartPurgeDeletedAsync(string vaultName, string location, CancellationToken cancellationToken = default) + { + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (location == null) + { + throw new ArgumentNullException(nameof(location)); + } + + using var scope = _clientDiagnostics.CreateScope("VaultsClient.StartPurgeDeleted"); + scope.Start(); + try + { + var originalResponse = await RestClient.PurgeDeletedAsync(vaultName, location, cancellationToken).ConfigureAwait(false); + return new VaultsPurgeDeletedOperation(_clientDiagnostics, _pipeline, RestClient.CreatePurgeDeletedRequest(vaultName, location).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Permanently deletes the specified vault. aka Purges the deleted Azure key vault. + /// The name of the soft-deleted vault. + /// The location of the soft-deleted vault. + /// The cancellation token to use. + public virtual VaultsPurgeDeletedOperation StartPurgeDeleted(string vaultName, string location, CancellationToken cancellationToken = default) + { + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (location == null) + { + throw new ArgumentNullException(nameof(location)); + } + + using var scope = _clientDiagnostics.CreateScope("VaultsClient.StartPurgeDeleted"); + scope.Start(); + try + { + var originalResponse = RestClient.PurgeDeleted(vaultName, location, cancellationToken); + return new VaultsPurgeDeletedOperation(_clientDiagnostics, _pipeline, RestClient.CreatePurgeDeletedRequest(vaultName, location).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/VaultsCreateOrUpdateOperation.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/VaultsCreateOrUpdateOperation.cs new file mode 100644 index 0000000000000..83779b035adf9 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/VaultsCreateOrUpdateOperation.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.KeyVault.Models; + +namespace Azure.Management.KeyVault +{ + /// Create or update a key vault in the specified subscription. + public partial class VaultsCreateOrUpdateOperation : Operation, IOperationSource + { + private readonly ArmOperationHelpers _operation; + internal VaultsCreateOrUpdateOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + { + _operation = new ArmOperationHelpers(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VaultsCreateOrUpdateOperation"); + } + /// + public override string Id => _operation.Id; + + /// + public override Vault Value => _operation.Value; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override bool HasValue => _operation.HasValue; + + /// + public override Response GetRawResponse() => _operation.GetRawResponse(); + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + + Vault IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + return null; + } + else + { + return Vault.DeserializeVault(document.RootElement); + } + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + return null; + } + else + { + return Vault.DeserializeVault(document.RootElement); + } + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/VaultsPurgeDeletedOperation.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/VaultsPurgeDeletedOperation.cs new file mode 100644 index 0000000000000..e097d0a618d49 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/VaultsPurgeDeletedOperation.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.Management.KeyVault +{ + /// Permanently deletes the specified vault. aka Purges the deleted Azure key vault. + public partial class VaultsPurgeDeletedOperation : Operation, IOperationSource + { + private readonly ArmOperationHelpers _operation; + internal VaultsPurgeDeletedOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + { + _operation = new ArmOperationHelpers(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "VaultsPurgeDeletedOperation"); + } + /// + public override string Id => _operation.Id; + + /// + public override Response Value => _operation.Value; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override bool HasValue => _operation.HasValue; + + /// + public override Response GetRawResponse() => _operation.GetRawResponse(); + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + + Response IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + return response; + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + return await new ValueTask(response).ConfigureAwait(false); + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Generated/VaultsRestClient.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/VaultsRestClient.cs new file mode 100644 index 0000000000000..57f0193da6e4f --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Generated/VaultsRestClient.cs @@ -0,0 +1,1416 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.KeyVault.Models; + +namespace Azure.Management.KeyVault +{ + internal partial class VaultsRestClient + { + private string subscriptionId; + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of VaultsRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public VaultsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null, string apiVersion = "2019-09-01") + { + if (subscriptionId == null) + { + throw new ArgumentNullException(nameof(subscriptionId)); + } + endpoint ??= new Uri("https://management.azure.com"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.subscriptionId = subscriptionId; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateCreateOrUpdateRequest(string resourceGroupName, string vaultName, VaultCreateOrUpdateParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.KeyVault/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Create or update a key vault in the specified subscription. + /// The name of the Resource Group to which the server belongs. + /// Name of the vault. + /// Parameters to create or update the vault. + /// The cancellation token to use. + public async ValueTask CreateOrUpdateAsync(string resourceGroupName, string vaultName, VaultCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateCreateOrUpdateRequest(resourceGroupName, vaultName, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 201: + case 200: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Create or update a key vault in the specified subscription. + /// The name of the Resource Group to which the server belongs. + /// Name of the vault. + /// Parameters to create or update the vault. + /// The cancellation token to use. + public Response CreateOrUpdate(string resourceGroupName, string vaultName, VaultCreateOrUpdateParameters parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateCreateOrUpdateRequest(resourceGroupName, vaultName, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 201: + case 200: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdateRequest(string resourceGroupName, string vaultName, VaultPatchParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.KeyVault/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Update a key vault in the specified subscription. + /// The name of the Resource Group to which the server belongs. + /// Name of the vault. + /// Parameters to patch the vault. + /// The cancellation token to use. + public async ValueTask> UpdateAsync(string resourceGroupName, string vaultName, VaultPatchParameters parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdateRequest(resourceGroupName, vaultName, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + Vault value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = Vault.DeserializeVault(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Update a key vault in the specified subscription. + /// The name of the Resource Group to which the server belongs. + /// Name of the vault. + /// Parameters to patch the vault. + /// The cancellation token to use. + public Response Update(string resourceGroupName, string vaultName, VaultPatchParameters parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdateRequest(resourceGroupName, vaultName, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + Vault value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = Vault.DeserializeVault(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string resourceGroupName, string vaultName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.KeyVault/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Deletes the specified Azure key vault. + /// The name of the Resource Group to which the vault belongs. + /// The name of the vault to delete. + /// The cancellation token to use. + public async ValueTask DeleteAsync(string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + + using var message = CreateDeleteRequest(resourceGroupName, vaultName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Deletes the specified Azure key vault. + /// The name of the Resource Group to which the vault belongs. + /// The name of the vault to delete. + /// The cancellation token to use. + public Response Delete(string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + + using var message = CreateDeleteRequest(resourceGroupName, vaultName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string resourceGroupName, string vaultName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.KeyVault/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets the specified Azure key vault. + /// The name of the Resource Group to which the vault belongs. + /// The name of the vault. + /// The cancellation token to use. + public async ValueTask> GetAsync(string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + + using var message = CreateGetRequest(resourceGroupName, vaultName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + Vault value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = Vault.DeserializeVault(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets the specified Azure key vault. + /// The name of the Resource Group to which the vault belongs. + /// The name of the vault. + /// The cancellation token to use. + public Response Get(string resourceGroupName, string vaultName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + + using var message = CreateGetRequest(resourceGroupName, vaultName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + Vault value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = Vault.DeserializeVault(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdateAccessPolicyRequest(string resourceGroupName, string vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.KeyVault/vaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/accessPolicies/", false); + uri.AppendPath(operationKind.ToSerialString(), true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Update access policies in a key vault in the specified subscription. + /// The name of the Resource Group to which the vault belongs. + /// Name of the vault. + /// Name of the operation. + /// Access policy to merge into the vault. + /// The cancellation token to use. + public async ValueTask> UpdateAccessPolicyAsync(string resourceGroupName, string vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyParameters parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdateAccessPolicyRequest(resourceGroupName, vaultName, operationKind, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + VaultAccessPolicyParameters value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = VaultAccessPolicyParameters.DeserializeVaultAccessPolicyParameters(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Update access policies in a key vault in the specified subscription. + /// The name of the Resource Group to which the vault belongs. + /// Name of the vault. + /// Name of the operation. + /// Access policy to merge into the vault. + /// The cancellation token to use. + public Response UpdateAccessPolicy(string resourceGroupName, string vaultName, AccessPolicyUpdateKind operationKind, VaultAccessPolicyParameters parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdateAccessPolicyRequest(resourceGroupName, vaultName, operationKind, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + VaultAccessPolicyParameters value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = VaultAccessPolicyParameters.DeserializeVaultAccessPolicyParameters(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByResourceGroupRequest(string resourceGroupName, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.KeyVault/vaults", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// The List operation gets information about the vaults associated with the subscription and within the specified resource group. + /// The name of the Resource Group to which the vault belongs. + /// Maximum number of results to return. + /// The cancellation token to use. + public async ValueTask> ListByResourceGroupAsync(string resourceGroupName, int? top = null, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var message = CreateListByResourceGroupRequest(resourceGroupName, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + VaultListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = VaultListResult.DeserializeVaultListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// The List operation gets information about the vaults associated with the subscription and within the specified resource group. + /// The name of the Resource Group to which the vault belongs. + /// Maximum number of results to return. + /// The cancellation token to use. + public Response ListByResourceGroup(string resourceGroupName, int? top = null, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var message = CreateListByResourceGroupRequest(resourceGroupName, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + VaultListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = VaultListResult.DeserializeVaultListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListBySubscriptionRequest(int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.KeyVault/vaults", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// The List operation gets information about the vaults associated with the subscription. + /// Maximum number of results to return. + /// The cancellation token to use. + public async ValueTask> ListBySubscriptionAsync(int? top = null, CancellationToken cancellationToken = default) + { + using var message = CreateListBySubscriptionRequest(top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + VaultListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = VaultListResult.DeserializeVaultListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// The List operation gets information about the vaults associated with the subscription. + /// Maximum number of results to return. + /// The cancellation token to use. + public Response ListBySubscription(int? top = null, CancellationToken cancellationToken = default) + { + using var message = CreateListBySubscriptionRequest(top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + VaultListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = VaultListResult.DeserializeVaultListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListDeletedRequest() + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.KeyVault/deletedVaults", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets information about the deleted vaults in a subscription. + /// The cancellation token to use. + public async ValueTask> ListDeletedAsync(CancellationToken cancellationToken = default) + { + using var message = CreateListDeletedRequest(); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DeletedVaultListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeletedVaultListResult.DeserializeDeletedVaultListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets information about the deleted vaults in a subscription. + /// The cancellation token to use. + public Response ListDeleted(CancellationToken cancellationToken = default) + { + using var message = CreateListDeletedRequest(); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DeletedVaultListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeletedVaultListResult.DeserializeDeletedVaultListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetDeletedRequest(string vaultName, string location) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.KeyVault/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/deletedVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets the deleted Azure key vault. + /// The name of the vault. + /// The location of the deleted vault. + /// The cancellation token to use. + public async ValueTask> GetDeletedAsync(string vaultName, string location, CancellationToken cancellationToken = default) + { + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (location == null) + { + throw new ArgumentNullException(nameof(location)); + } + + using var message = CreateGetDeletedRequest(vaultName, location); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DeletedVault value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeletedVault.DeserializeDeletedVault(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets the deleted Azure key vault. + /// The name of the vault. + /// The location of the deleted vault. + /// The cancellation token to use. + public Response GetDeleted(string vaultName, string location, CancellationToken cancellationToken = default) + { + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (location == null) + { + throw new ArgumentNullException(nameof(location)); + } + + using var message = CreateGetDeletedRequest(vaultName, location); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DeletedVault value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeletedVault.DeserializeDeletedVault(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreatePurgeDeletedRequest(string vaultName, string location) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.KeyVault/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/deletedVaults/", false); + uri.AppendPath(vaultName, true); + uri.AppendPath("/purge", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Permanently deletes the specified vault. aka Purges the deleted Azure key vault. + /// The name of the soft-deleted vault. + /// The location of the soft-deleted vault. + /// The cancellation token to use. + public async ValueTask PurgeDeletedAsync(string vaultName, string location, CancellationToken cancellationToken = default) + { + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (location == null) + { + throw new ArgumentNullException(nameof(location)); + } + + using var message = CreatePurgeDeletedRequest(vaultName, location); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 200: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Permanently deletes the specified vault. aka Purges the deleted Azure key vault. + /// The name of the soft-deleted vault. + /// The location of the soft-deleted vault. + /// The cancellation token to use. + public Response PurgeDeleted(string vaultName, string location, CancellationToken cancellationToken = default) + { + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + if (location == null) + { + throw new ArgumentNullException(nameof(location)); + } + + using var message = CreatePurgeDeletedRequest(vaultName, location); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 200: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListRequest(int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resources", false); + uri.AppendQuery("$filter", "resourceType eq 'Microsoft.KeyVault/vaults'", true); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// The List operation gets information about the vaults associated with the subscription. + /// Maximum number of results to return. + /// The cancellation token to use. + public async ValueTask> ListAsync(int? top = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ResourceListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceListResult.DeserializeResourceListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// The List operation gets information about the vaults associated with the subscription. + /// Maximum number of results to return. + /// The cancellation token to use. + public Response List(int? top = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ResourceListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceListResult.DeserializeResourceListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCheckNameAvailabilityRequest(VaultCheckNameAvailabilityParameters vaultName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.KeyVault/checkNameAvailability", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(vaultName); + request.Content = content; + return message; + } + + /// Checks that the vault name is valid and is not already in use. + /// The name of the vault. + /// The cancellation token to use. + public async ValueTask> CheckNameAvailabilityAsync(VaultCheckNameAvailabilityParameters vaultName, CancellationToken cancellationToken = default) + { + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + + using var message = CreateCheckNameAvailabilityRequest(vaultName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + CheckNameAvailabilityResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = CheckNameAvailabilityResult.DeserializeCheckNameAvailabilityResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Checks that the vault name is valid and is not already in use. + /// The name of the vault. + /// The cancellation token to use. + public Response CheckNameAvailability(VaultCheckNameAvailabilityParameters vaultName, CancellationToken cancellationToken = default) + { + if (vaultName == null) + { + throw new ArgumentNullException(nameof(vaultName)); + } + + using var message = CreateCheckNameAvailabilityRequest(vaultName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + CheckNameAvailabilityResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = CheckNameAvailabilityResult.DeserializeCheckNameAvailabilityResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string resourceGroupName, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// The List operation gets information about the vaults associated with the subscription and within the specified resource group. + /// The URL to the next page of results. + /// The name of the Resource Group to which the vault belongs. + /// Maximum number of results to return. + /// The cancellation token to use. + public async ValueTask> ListByResourceGroupNextPageAsync(string nextLink, string resourceGroupName, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var message = CreateListByResourceGroupNextPageRequest(nextLink, resourceGroupName, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + VaultListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = VaultListResult.DeserializeVaultListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// The List operation gets information about the vaults associated with the subscription and within the specified resource group. + /// The URL to the next page of results. + /// The name of the Resource Group to which the vault belongs. + /// Maximum number of results to return. + /// The cancellation token to use. + public Response ListByResourceGroupNextPage(string nextLink, string resourceGroupName, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var message = CreateListByResourceGroupNextPageRequest(nextLink, resourceGroupName, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + VaultListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = VaultListResult.DeserializeVaultListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListBySubscriptionNextPageRequest(string nextLink, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// The List operation gets information about the vaults associated with the subscription. + /// The URL to the next page of results. + /// Maximum number of results to return. + /// The cancellation token to use. + public async ValueTask> ListBySubscriptionNextPageAsync(string nextLink, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListBySubscriptionNextPageRequest(nextLink, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + VaultListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = VaultListResult.DeserializeVaultListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// The List operation gets information about the vaults associated with the subscription. + /// The URL to the next page of results. + /// Maximum number of results to return. + /// The cancellation token to use. + public Response ListBySubscriptionNextPage(string nextLink, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListBySubscriptionNextPageRequest(nextLink, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + VaultListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = VaultListResult.DeserializeVaultListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListDeletedNextPageRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// Gets information about the deleted vaults in a subscription. + /// The URL to the next page of results. + /// The cancellation token to use. + public async ValueTask> ListDeletedNextPageAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListDeletedNextPageRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DeletedVaultListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeletedVaultListResult.DeserializeDeletedVaultListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets information about the deleted vaults in a subscription. + /// The URL to the next page of results. + /// The cancellation token to use. + public Response ListDeletedNextPage(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListDeletedNextPageRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DeletedVaultListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeletedVaultListResult.DeserializeDeletedVaultListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// The List operation gets information about the vaults associated with the subscription. + /// The URL to the next page of results. + /// Maximum number of results to return. + /// The cancellation token to use. + public async ValueTask> ListNextPageAsync(string nextLink, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ResourceListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceListResult.DeserializeResourceListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// The List operation gets information about the vaults associated with the subscription. + /// The URL to the next page of results. + /// Maximum number of results to return. + /// The cancellation token to use. + public Response ListNextPage(string nextLink, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ResourceListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceListResult.DeserializeResourceListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/Properties/AssemblyInfo.cs b/sdk/keyvault/Azure.Management.KeyVault/src/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000000..e17ff59c8d10e --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/Properties/AssemblyInfo.cs @@ -0,0 +1,8 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Runtime.CompilerServices; + +[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.KeyVault")] + +[assembly: InternalsVisibleTo("Azure.Management.KeyVault.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] diff --git a/sdk/keyvault/Azure.Management.KeyVault/src/autorest.md b/sdk/keyvault/Azure.Management.KeyVault/src/autorest.md new file mode 100644 index 0000000000000..e801c42afe2e6 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/src/autorest.md @@ -0,0 +1,8 @@ +# Generated code configuration + +Run `dotnet msbuild /t:GenerateCode` to generate code. + +``` yaml +azure-arm: true +require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/2253a5d2281258c3fea76a11a837bd1ac2413056/specification/keyvault/resource-manager/readme.md +``` \ No newline at end of file diff --git a/sdk/keyvault/Azure.Management.KeyVault/tests/Azure.Management.KeyVault.Tests.csproj b/sdk/keyvault/Azure.Management.KeyVault/tests/Azure.Management.KeyVault.Tests.csproj new file mode 100644 index 0000000000000..858988d69dd33 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/tests/Azure.Management.KeyVault.Tests.csproj @@ -0,0 +1,7 @@ + + + + + + + diff --git a/sdk/keyvault/Azure.Management.KeyVault/tests/Extensions.cs b/sdk/keyvault/Azure.Management.KeyVault/tests/Extensions.cs new file mode 100644 index 0000000000000..5d8e77e6bb985 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/tests/Extensions.cs @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; +using Azure.Management.KeyVault.Models; + +using NUnit.Framework; + +namespace Azure.Management.KeyVault.Tests +{ + public static class Extensions + { + public static bool DictionaryEqual(this IReadOnlyDictionary first, IReadOnlyDictionary second) + { + return first.DictionaryEqual(second, null); + } + + public static bool DictionaryEqual( + this IReadOnlyDictionary first, IReadOnlyDictionary second, + IEqualityComparer valueComparer) + { + if (first == second) + return true; + if ((first == null) || (second == null)) + return false; + if (first.Count != second.Count) + return false; + + valueComparer = valueComparer ?? EqualityComparer.Default; + + foreach (var kvp in first) + { + TValue secondValue; + if (!second.TryGetValue(kvp.Key, out secondValue)) + return false; + if (!valueComparer.Equals(kvp.Value, secondValue)) + return false; + } + return true; + } + + public static bool IsEqual(this DeletedVault deletedVault, Vault createdVault) + { + Assert.AreEqual(createdVault.Location, deletedVault.Properties.Location); + Assert.AreEqual(createdVault.Name, deletedVault.Name); + Assert.AreEqual(createdVault.Id, deletedVault.Properties.VaultId); + Assert.AreEqual("Microsoft.KeyVault/deletedVaults", deletedVault.Type); + Assert.True(createdVault.Tags.DictionaryEqual(deletedVault.Properties.Tags)); + Assert.NotNull(deletedVault.Properties.ScheduledPurgeDate); + Assert.NotNull(deletedVault.Properties.DeletionDate); + Assert.NotNull(deletedVault.Id); + return true; + } + public static bool IsEqual(this Vault vault1, Vault vault2) + { + Assert.AreEqual(vault2.Location, vault1.Location); + Assert.AreEqual(vault2.Name, vault1.Name); + Assert.AreEqual(vault2.Id, vault1.Id); + Assert.True(vault2.Tags.DictionaryEqual(vault1.Tags)); + + Assert.AreEqual(vault2.Properties.VaultUri.TrimEnd('/'), vault1.Properties.VaultUri.TrimEnd('/')); + Assert.AreEqual(vault2.Properties.TenantId, vault1.Properties.TenantId); + Assert.AreEqual(vault2.Properties.Sku.Name, vault1.Properties.Sku.Name); + Assert.AreEqual(vault2.Properties.EnableSoftDelete, vault1.Properties.EnableSoftDelete); + Assert.AreEqual(vault2.Properties.EnabledForTemplateDeployment, vault1.Properties.EnabledForTemplateDeployment); + Assert.AreEqual(vault2.Properties.EnabledForDiskEncryption, vault1.Properties.EnabledForDiskEncryption); + Assert.AreEqual(vault2.Properties.EnabledForDeployment, vault1.Properties.EnabledForDeployment); + Assert.True(vault2.Properties.AccessPolicies.IsEqual(vault1.Properties.AccessPolicies)); + return true; + } + + public static bool IsEqual(this IList expected, IList actual) + { + if (expected == null && actual == null) + return true; + + if (expected == null || actual == null) + return false; + + if (expected.Count != actual.Count) + return false; + + AccessPolicyEntry[] expectedCopy = new AccessPolicyEntry[expected.Count]; + expected.CopyTo(expectedCopy, 0); + + foreach (AccessPolicyEntry a in actual) + { + var match = expectedCopy.Where(e => + e.TenantId == a.TenantId && + e.ObjectId == a.ObjectId && + e.ApplicationId == a.ApplicationId && + ((a.Permissions.Secrets == null && e.Permissions.Secrets == null) || + Enumerable.SequenceEqual(a.Permissions.Secrets, e.Permissions.Secrets)) && + ((a.Permissions.Keys == null && e.Permissions.Keys == null) || + Enumerable.SequenceEqual(a.Permissions.Keys, e.Permissions.Keys)) && + ((a.Permissions.Certificates == null && e.Permissions.Certificates == null) || + Enumerable.SequenceEqual(a.Permissions.Certificates, e.Permissions.Certificates)) && + ((a.Permissions.Storage == null && e.Permissions.Storage == null) || + Enumerable.SequenceEqual(a.Permissions.Storage, e.Permissions.Storage)) + ).FirstOrDefault(); + if (match == null) + return false; + + expectedCopy = expectedCopy.Where(e => e != match).ToArray(); + } + if (expectedCopy.Length > 0) + return false; + + return true; + } + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/tests/KeyVaultManagementTestEnvironment.cs b/sdk/keyvault/Azure.Management.KeyVault/tests/KeyVaultManagementTestEnvironment.cs new file mode 100644 index 0000000000000..39fd3eb66a85e --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/tests/KeyVaultManagementTestEnvironment.cs @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using Azure.Core.TestFramework; + +namespace Azure.Management.KeyVault.Tests +{ + public class KeyVaultManagementTestEnvironment : TestEnvironment + { + private const string TenantIdKey = "TenantId"; + private const string SubIdKey = "SubId"; + private const string ApplicationIdKey = "ApplicationId"; + + public KeyVaultManagementTestEnvironment() : base("keyvalutmgmt") + { + } + + //Do not need to save to session record + public string UserName => GetVariable("AZURE_USER_NAME"); + + public string TenantIdTrack1 => GetRecordedVariable(TenantIdKey); + + public string SubscriptionIdTrack1 => GetRecordedVariable(SubIdKey); + + public string ApplicationIdTrack1 => GetRecordedVariable(ApplicationIdKey); + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/CreateKeyVaultDisableSoftDelete.json b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/CreateKeyVaultDisableSoftDelete.json new file mode 100644 index 0000000000000..56a68eaab691d --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/CreateKeyVaultDisableSoftDelete.json @@ -0,0 +1,2610 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-506d4c88c158cc419063ecefd11f56eb-01aaefcc2c00a742-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8212a445eb5fed4a5dcc886110c1c007", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7496", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:07:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "60faf036-b921-49cb-a991-7053b3ca591c", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "60faf036-b921-49cb-a991-7053b3ca591c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080707Z:60faf036-b921-49cb-a991-7053b3ca591c" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault", + "namespace": "Microsoft.KeyVault", + "authorizations": [ + { + "applicationId": "cfa8b339-82a2-471a-a3c9-0fc0be7a4093", + "roleDefinitionId": "1cf9858a-28a2-4228-abba-94e606305b95" + }, + { + "applicationId": "589d5083-6f11-4d30-a62a-a4b316a14abf" + } + ], + "resourceTypes": [ + { + "resourceType": "vaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove" + }, + { + "resourceType": "vaults/secrets", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/accessPolicies", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "operations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01", + "2014-12-19-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "checkNameAvailability", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deleteVirtualNetworkOrSubnets", + "locations": [ + "East US", + "North Central US", + "West Europe", + "North Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West Central US", + "West US 2", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Central US EUAP", + "East US 2 EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ] + }, + { + "resourceType": "locations/operationResults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/eventGridFilters", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14" + ] + } + ], + "registrationState": "Registered" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg1634?api-version=2017-05-10", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "31", + "Content-Type": "application/json", + "traceparent": "00-7807322456ce394dbf4709fc42cfbbc6-a5a52284c8eba540-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f9ad2f0ea1f4d6eb2331b9064a92982f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "239", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:07:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bff2267a-c422-412e-be24-7eba17cfceef", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "bff2267a-c422-412e-be24-7eba17cfceef", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080711Z:bff2267a-c422-412e-be24-7eba17cfceef" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634", + "name": "sdktestrg1634", + "location": "northcentralus", + "tags": { + "StorageType": "Standard_LRS", + "type": "test" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "716", + "Content-Type": "application/json", + "traceparent": "00-e67ae5f8969cfc498f85da9bd1b432c5-feebf55d015e6143-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "02c70a5b7177bda15c11d93c3ecc2d86", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1020", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:07:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9e7e6a5f-c2f9-4e31-8ed0-3f4c44ea66aa", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "748131b8-0ade-4879-a52c-657cac0a76af", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080720Z:9e7e6a5f-c2f9-4e31-8ed0-3f4c44ea66aa", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420", + "name": "sdktestvault4420", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault4420.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b6669a315d3fbd960c3b988f119ae464", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:07:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d45521b8-5173-4215-86f0-d8891cc6b8c4", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "61baf993-2b0e-437e-87ab-82edc30d4861", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080721Z:d45521b8-5173-4215-86f0-d8891cc6b8c4", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420", + "name": "sdktestvault4420", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault4420.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "79307f8b21990a9e07a0563bb70fd64a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:07:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ffb8190e-c3b8-49a2-ab30-21e3ec763fbb", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "20ff1b48-3534-4256-bfb0-b5750820f0b3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080723Z:ffb8190e-c3b8-49a2-ab30-21e3ec763fbb", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420", + "name": "sdktestvault4420", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault4420.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a30ae9d77766bb468341009bb8731510", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:07:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d619789d-2b12-4e5f-8c41-afa4174479f6", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "93a6a17b-a8b6-4a81-b8d3-3bc464b5ba41", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080724Z:d619789d-2b12-4e5f-8c41-afa4174479f6", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420", + "name": "sdktestvault4420", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault4420.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "67055657c1e11056fc5baf9f065a06fc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:07:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "82c101bd-b6ed-4ee1-8c4a-75f960fd799d", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "52a9d0d8-58bb-434b-8822-125ebce87bd2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080725Z:82c101bd-b6ed-4ee1-8c4a-75f960fd799d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420", + "name": "sdktestvault4420", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault4420.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "28b84d65409014fd3975f55820025293", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:07:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "008ae15e-3a07-47c9-bffa-de6dd305e9da", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "e50eb666-a0ea-4cfe-9724-952ad072937f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080727Z:008ae15e-3a07-47c9-bffa-de6dd305e9da", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420", + "name": "sdktestvault4420", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault4420.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "61e4458b6f09166892faa70ac8a7b528", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:07:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7f807576-2e4b-41bf-becb-0ac07550c09c", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "4f5afd71-cf59-414a-86d4-dcd659a5d6fb", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080728Z:7f807576-2e4b-41bf-becb-0ac07550c09c", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420", + "name": "sdktestvault4420", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault4420.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6a36043aedbb168058f12d6ccbfdeff9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:07:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "826491e4-07f4-4bde-974f-bea2def34800", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "f00a1a6f-b5d7-45d3-a540-0966bea9f27b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080729Z:826491e4-07f4-4bde-974f-bea2def34800", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420", + "name": "sdktestvault4420", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault4420.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c0141b09a475f5f3e5a2969699f24c92", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:07:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9d15349b-0936-4d97-9e41-f15e20b2b9ad", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "9fc1278a-3835-40e6-832a-3e705f2e123f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080730Z:9d15349b-0936-4d97-9e41-f15e20b2b9ad", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420", + "name": "sdktestvault4420", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault4420.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1c1dccbfe7cc9dd7c5cd081841fb4a94", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:07:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ce99bac3-aac2-45b8-b952-21e307c2e11d", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "d406769b-2072-4e6a-a71c-d0a7c0632a46", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080732Z:ce99bac3-aac2-45b8-b952-21e307c2e11d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420", + "name": "sdktestvault4420", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault4420.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ac00ad0af49296b21140841957e97d65", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:07:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bc7769e7-a8d5-4bf2-b2ba-29bbef6bfad5", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "54fe744e-1d26-43bd-bcbe-90d458adc14b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080733Z:bc7769e7-a8d5-4bf2-b2ba-29bbef6bfad5", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420", + "name": "sdktestvault4420", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault4420.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "feac9ba5d2e0222d4476faa89bdab3ea", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1016", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:07:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "40eb04f4-2cae-4cc2-a2f5-025a062c401c", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "d237664b-ab02-4046-bfc5-54b539aef1fb", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080734Z:40eb04f4-2cae-4cc2-a2f5-025a062c401c", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420", + "name": "sdktestvault4420", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault4420.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg1634/providers/Microsoft.KeyVault/vaults/sdktestvault4420?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a1f505d6f68dbb41a74ba1d887590be5-7c0a1c1d864ec445-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ec8b0157a0f2cbff19870b8b62be46dc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:07:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "69aba35e-1cfb-48ca-a00a-78be75f19e02", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-request-id": "5e9ab79a-0fe1-4af3-ae5c-df63f6a3f64c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080739Z:69aba35e-1cfb-48ca-a00a-78be75f19e02", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg1634?api-version=2017-05-10", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0da735477fee1e4291812bca4a80d4e8-3fe52c7e6ec84c44-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a672a34f4c4e38b47fde671cf90afa36", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:07:43 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "581b2e73-bd5c-40da-be45-0bb889d2ea30", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "581b2e73-bd5c-40da-be45-0bb889d2ea30", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080743Z:581b2e73-bd5c-40da-be45-0bb889d2ea30" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f8581e2f0d670a9b4d536c1338e2d20f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:07:43 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "64e26d77-b18d-49f0-8790-e817fb9abf22", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "64e26d77-b18d-49f0-8790-e817fb9abf22", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080744Z:64e26d77-b18d-49f0-8790-e817fb9abf22" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c7fed58cf1fcbe7f2f6d0a6d675b71dd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:07:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8c122752-0784-4249-abde-020f128931c5", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "8c122752-0784-4249-abde-020f128931c5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080745Z:8c122752-0784-4249-abde-020f128931c5" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "daede11e02b17fceffb707092560cdb9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:07:46 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e0288543-ea35-4952-a340-c9aa47097266", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "e0288543-ea35-4952-a340-c9aa47097266", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080747Z:e0288543-ea35-4952-a340-c9aa47097266" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f1ccd50ef8a23d899f9ac8fa032ea3f2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:07:48 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c4c6ff1f-de9b-48cc-be5b-f511a7e5dec8", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "c4c6ff1f-de9b-48cc-be5b-f511a7e5dec8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080748Z:c4c6ff1f-de9b-48cc-be5b-f511a7e5dec8" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "56f48ee2f7f58a5d067fc845e97598cf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:07:49 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "07d44396-c36b-4a23-a5a5-17f36c753257", + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-request-id": "07d44396-c36b-4a23-a5a5-17f36c753257", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080750Z:07d44396-c36b-4a23-a5a5-17f36c753257" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "925f51a07f8f263b57af3b1739d37cd1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:07:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4e335155-62e4-469b-ad08-863e09057bc2", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-request-id": "4e335155-62e4-469b-ad08-863e09057bc2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080751Z:4e335155-62e4-469b-ad08-863e09057bc2" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "96271513766b16c37741ea232f445429", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:07:52 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "522312c9-cf08-4e95-9f66-0acb0c721415", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-request-id": "522312c9-cf08-4e95-9f66-0acb0c721415", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080753Z:522312c9-cf08-4e95-9f66-0acb0c721415" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b159f80110ce626353cdff46bc465033", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:07:54 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3671e043-a12f-4ef7-8683-85594d43e96e", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-request-id": "3671e043-a12f-4ef7-8683-85594d43e96e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080754Z:3671e043-a12f-4ef7-8683-85594d43e96e" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d331f703014e2a648d481a4d9417f712", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:07:55 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "11464955-99b3-4528-88bb-7ef1ac1c70af", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-request-id": "11464955-99b3-4528-88bb-7ef1ac1c70af", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080756Z:11464955-99b3-4528-88bb-7ef1ac1c70af" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "4015115bca7a0302b2c4439d777d5a31", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:07:57 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "014e2e89-be45-4d9e-a4f1-7bb085fcace0", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-request-id": "014e2e89-be45-4d9e-a4f1-7bb085fcace0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080757Z:014e2e89-be45-4d9e-a4f1-7bb085fcace0" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "371fb7f18013ffdb942f2386f515ce3b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:07:58 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "844c7ade-9771-4b7e-ab6e-1d63840f18d1", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-request-id": "844c7ade-9771-4b7e-ab6e-1d63840f18d1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080759Z:844c7ade-9771-4b7e-ab6e-1d63840f18d1" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "aaebecd60f3038b8f52d2189bec6b310", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:08:00 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7bf7f9f3-6a91-4f92-a197-4998b0627b36", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-request-id": "7bf7f9f3-6a91-4f92-a197-4998b0627b36", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080800Z:7bf7f9f3-6a91-4f92-a197-4998b0627b36" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "dc5ce9eebff7daff3515ab4aa67b0d9c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:08:01 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fc1220e1-37a8-408c-a8ff-04b69bb67340", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-request-id": "fc1220e1-37a8-408c-a8ff-04b69bb67340", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080802Z:fc1220e1-37a8-408c-a8ff-04b69bb67340" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8ac708f6af92e101ffe642e55f5241ce", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:08:03 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9beb0e4a-a798-447c-afa6-e9197a3e5588", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-request-id": "9beb0e4a-a798-447c-afa6-e9197a3e5588", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080803Z:9beb0e4a-a798-447c-afa6-e9197a3e5588" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0c97137cf1b91643ec10741a636d9279", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:08:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "389a0c34-bb84-4102-8126-0f3c0bd2d3af", + "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-request-id": "389a0c34-bb84-4102-8126-0f3c0bd2d3af", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080805Z:389a0c34-bb84-4102-8126-0f3c0bd2d3af" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b693842028ff3f7ee77bdd117d197be3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:08:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5a05e560-532f-4478-b2e6-2ba2342557d9", + "x-ms-ratelimit-remaining-subscription-reads": "11972", + "x-ms-request-id": "5a05e560-532f-4478-b2e6-2ba2342557d9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080806Z:5a05e560-532f-4478-b2e6-2ba2342557d9" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "93ceddd401e405e3c4b09d813ae77d91", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:08:07 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "afc4cafd-2b33-4bcd-9513-87d031a7af22", + "x-ms-ratelimit-remaining-subscription-reads": "11971", + "x-ms-request-id": "afc4cafd-2b33-4bcd-9513-87d031a7af22", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080808Z:afc4cafd-2b33-4bcd-9513-87d031a7af22" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "dac5c8548bbf53ce9558243e133299d3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:08:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "930425c0-a179-4a1d-94a7-ce2231621117", + "x-ms-ratelimit-remaining-subscription-reads": "11970", + "x-ms-request-id": "930425c0-a179-4a1d-94a7-ce2231621117", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080809Z:930425c0-a179-4a1d-94a7-ce2231621117" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "86459094ff9e1e95a18df14f8afc0400", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:08:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5cf20677-c784-4a20-94f1-1a16f05d2b2c", + "x-ms-ratelimit-remaining-subscription-reads": "11969", + "x-ms-request-id": "5cf20677-c784-4a20-94f1-1a16f05d2b2c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080811Z:5cf20677-c784-4a20-94f1-1a16f05d2b2c" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b4bc4cfda15448240e7bfe8cdda4f292", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:08:12 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f84707fe-70a3-449e-9286-2f6d8b0ec817", + "x-ms-ratelimit-remaining-subscription-reads": "11968", + "x-ms-request-id": "f84707fe-70a3-449e-9286-2f6d8b0ec817", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080813Z:f84707fe-70a3-449e-9286-2f6d8b0ec817" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a9edca17f6a155f233a638319a7fc898", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:08:13 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "17ec63d1-9123-405a-89d3-ef8478f6a7e8", + "x-ms-ratelimit-remaining-subscription-reads": "11967", + "x-ms-request-id": "17ec63d1-9123-405a-89d3-ef8478f6a7e8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080814Z:17ec63d1-9123-405a-89d3-ef8478f6a7e8" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c6402353e476f37e6cfd7723000841fd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:08:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e5814ff6-3b25-44a1-b41b-b11331404a59", + "x-ms-ratelimit-remaining-subscription-reads": "11966", + "x-ms-request-id": "e5814ff6-3b25-44a1-b41b-b11331404a59", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080816Z:e5814ff6-3b25-44a1-b41b-b11331404a59" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c0375f9b5a0f075f5a6681ad68f3ae8f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:08:16 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "582d98d9-7489-4308-a8cb-0379c48d5ba5", + "x-ms-ratelimit-remaining-subscription-reads": "11965", + "x-ms-request-id": "582d98d9-7489-4308-a8cb-0379c48d5ba5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080817Z:582d98d9-7489-4308-a8cb-0379c48d5ba5" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b93865b22b63321c4cf93da37fce542a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:08:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7b922ea8-dbd1-4df3-9c58-cbf0808577b2", + "x-ms-ratelimit-remaining-subscription-reads": "11964", + "x-ms-request-id": "7b922ea8-dbd1-4df3-9c58-cbf0808577b2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080819Z:7b922ea8-dbd1-4df3-9c58-cbf0808577b2" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3a953b650847f989c3396c0f62d08a79", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:08:19 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e95fe8b0-214c-4f4d-9661-e590ee915c49", + "x-ms-ratelimit-remaining-subscription-reads": "11963", + "x-ms-request-id": "e95fe8b0-214c-4f4d-9661-e590ee915c49", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080820Z:e95fe8b0-214c-4f4d-9661-e590ee915c49" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcxNjM0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9b71e84e87d07099430573151cbb878b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:08:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "92356376-a477-4d6f-bb19-c88270124e10", + "x-ms-ratelimit-remaining-subscription-reads": "11962", + "x-ms-request-id": "92356376-a477-4d6f-bb19-c88270124e10", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080822Z:92356376-a477-4d6f-bb19-c88270124e10" + }, + "ResponseBody": [] + } + ], + "Variables": { + "CLIENT_ID": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "ObjectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "RandomSeed": "1295911705", + "SUBSCRIPTION_ID": "0b1f6471-1bf0-4dda-aec3-cb9272f09590", + "TENANT_ID": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a" + } +} \ No newline at end of file diff --git a/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/CreateKeyVaultDisableSoftDeleteAsync.json b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/CreateKeyVaultDisableSoftDeleteAsync.json new file mode 100644 index 0000000000000..04af14307a3f1 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/CreateKeyVaultDisableSoftDeleteAsync.json @@ -0,0 +1,2610 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-dd139d5a0377ab41b952d52e4a4019f5-4e9e130a1089274b-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "01172e8fd9041d6edc753cef6a96fecd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7496", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:16:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d377f162-acde-49f1-8547-c3b4a482e712", + "x-ms-ratelimit-remaining-subscription-reads": "11684", + "x-ms-request-id": "d377f162-acde-49f1-8547-c3b4a482e712", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081650Z:d377f162-acde-49f1-8547-c3b4a482e712" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault", + "namespace": "Microsoft.KeyVault", + "authorizations": [ + { + "applicationId": "cfa8b339-82a2-471a-a3c9-0fc0be7a4093", + "roleDefinitionId": "1cf9858a-28a2-4228-abba-94e606305b95" + }, + { + "applicationId": "589d5083-6f11-4d30-a62a-a4b316a14abf" + } + ], + "resourceTypes": [ + { + "resourceType": "vaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove" + }, + { + "resourceType": "vaults/secrets", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/accessPolicies", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "operations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01", + "2014-12-19-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "checkNameAvailability", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deleteVirtualNetworkOrSubnets", + "locations": [ + "East US", + "North Central US", + "West Europe", + "North Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West Central US", + "West US 2", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Central US EUAP", + "East US 2 EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ] + }, + { + "resourceType": "locations/operationResults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/eventGridFilters", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14" + ] + } + ], + "registrationState": "Registered" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg2912?api-version=2017-05-10", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "31", + "Content-Type": "application/json", + "traceparent": "00-ea93049e6b098d44b82a3182888e00f8-dc42b8e2c8e68343-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8566a3dcdd9795471a1c3df703a089ce", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "239", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:16:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b28847a1-06ac-4f28-8615-b64d14328d54", + "x-ms-ratelimit-remaining-subscription-writes": "1180", + "x-ms-request-id": "b28847a1-06ac-4f28-8615-b64d14328d54", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081652Z:b28847a1-06ac-4f28-8615-b64d14328d54" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912", + "name": "sdktestrg2912", + "location": "northcentralus", + "tags": { + "StorageType": "Standard_LRS", + "type": "test" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "716", + "Content-Type": "application/json", + "traceparent": "00-fe03d542ebb0c74fa5bc5dfa1936506a-a0ba55ba071e264b-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ce2cadec4c851ab2ae9692753e0b03e0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1020", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:16:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "af34a079-261b-418e-8a71-1c9a90349651", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1179", + "x-ms-request-id": "fb8e71b9-48cf-42eb-9865-a384f38d2344", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081657Z:af34a079-261b-418e-8a71-1c9a90349651", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966", + "name": "sdktestvault8966", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault8966.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "50a94e21d0a15756b36ae846b420dc10", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:16:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "74e11560-0ff0-4f7a-a1c4-13dabe58f29d", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11683", + "x-ms-request-id": "7e2e8afe-e873-48e2-b797-9fede966bd45", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081658Z:74e11560-0ff0-4f7a-a1c4-13dabe58f29d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966", + "name": "sdktestvault8966", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault8966.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "52de173a32e6f4525b5b629b8f82f3d6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:16:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1c31e4ce-d5d4-4e17-81f1-d0b0bc5fb8c3", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11682", + "x-ms-request-id": "91d2c70e-3986-43df-b742-a48f496b901a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081659Z:1c31e4ce-d5d4-4e17-81f1-d0b0bc5fb8c3", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966", + "name": "sdktestvault8966", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault8966.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ef53dfc1b261543ef64ae85f0f0b1b4b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:17:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "005ce4a0-af38-4e06-be47-c7644643b309", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11681", + "x-ms-request-id": "3a82303f-b31f-4459-a2f7-ede6821df39a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081701Z:005ce4a0-af38-4e06-be47-c7644643b309", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966", + "name": "sdktestvault8966", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault8966.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0ff6ab0d82f9efccfcb4f5466ebbc731", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:17:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7fd16089-3483-41ed-a4a1-40d3ea298928", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11680", + "x-ms-request-id": "e86ae920-7eb5-446f-ac97-b0cb7e72d55b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081702Z:7fd16089-3483-41ed-a4a1-40d3ea298928", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966", + "name": "sdktestvault8966", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault8966.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d4851276eccc87aed88a5c9c49f3e54f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:17:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1c78b0fe-8aaa-411c-a98b-ee10530446d9", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11679", + "x-ms-request-id": "eb389ad7-9522-4b3d-9d60-805217080d70", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081703Z:1c78b0fe-8aaa-411c-a98b-ee10530446d9", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966", + "name": "sdktestvault8966", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault8966.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e48e1640e48c3edc1364f3adbcf8e53b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:17:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "edfcb3ab-9579-449d-aacf-e7b193c99ec8", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11678", + "x-ms-request-id": "4d70ceef-8f5b-4d19-b69b-f256a793046c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081705Z:edfcb3ab-9579-449d-aacf-e7b193c99ec8", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966", + "name": "sdktestvault8966", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault8966.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "fce8b7824686207efc6e366f2530a509", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:17:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4bb37e6f-8f9c-4346-a74c-e08c1d0062c6", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11677", + "x-ms-request-id": "13ecdff3-8ec5-428f-bf93-f3b8bcdc8f6c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081706Z:4bb37e6f-8f9c-4346-a74c-e08c1d0062c6", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966", + "name": "sdktestvault8966", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault8966.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5705a6cfe32d92a43646c168f901cbe0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:17:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1c32cb41-ade2-4a8b-8657-5457466d7360", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11676", + "x-ms-request-id": "8a213c75-594d-47bb-a9de-70b1ab40157d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081707Z:1c32cb41-ade2-4a8b-8657-5457466d7360", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966", + "name": "sdktestvault8966", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault8966.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "911921a4e80af9c9986de71ead6c19e3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:17:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fed304a6-45ae-454b-80e1-c1b6cf922617", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11675", + "x-ms-request-id": "745ef726-8c0a-4b72-981d-883f8db34bf7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081709Z:fed304a6-45ae-454b-80e1-c1b6cf922617", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966", + "name": "sdktestvault8966", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault8966.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "16deeabe8ef29f0d1256c63f851627fa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1021", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:17:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9ce5188a-aa51-46b3-abe8-d75ca53ec299", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11674", + "x-ms-request-id": "a834977b-12b6-44b5-85f9-7e577b31c895", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081710Z:9ce5188a-aa51-46b3-abe8-d75ca53ec299", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966", + "name": "sdktestvault8966", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault8966.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "04cb55a21316e6fedc0cbfbffb86e4c9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1016", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:17:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "05f432f9-77ce-4859-890d-07963f950df3", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11673", + "x-ms-request-id": "5ea60944-fde2-4def-ba2e-6febd2221387", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081711Z:05f432f9-77ce-4859-890d-07963f950df3", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966", + "name": "sdktestvault8966", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": false, + "vaultUri": "https://sdktestvault8966.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2912/providers/Microsoft.KeyVault/vaults/sdktestvault8966?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-facdc8524c95844381f487a1f942878c-5f84cf19a17d4b4e-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0ea9de2db42315ee137a7fb422897481", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3eba21c8-3120-446a-812d-c08dd9afa9d8", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14981", + "x-ms-request-id": "672413b1-eb5a-40cf-ba8a-dee417d32565", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081715Z:3eba21c8-3120-446a-812d-c08dd9afa9d8", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg2912?api-version=2017-05-10", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3d5b1c23bfe5f647b4634ceca48629fd-81f201c21f62bf4c-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "577bed4614a0aaccebf73ae5cf4ea38b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "32283e6f-0d13-436d-b91f-4425b75f5495", + "x-ms-ratelimit-remaining-subscription-deletes": "14980", + "x-ms-request-id": "32283e6f-0d13-436d-b91f-4425b75f5495", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081717Z:32283e6f-0d13-436d-b91f-4425b75f5495" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0e793d988c0b182811fe222b7a0846c4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "66505aff-b912-423d-84bb-943882030826", + "x-ms-ratelimit-remaining-subscription-reads": "11672", + "x-ms-request-id": "66505aff-b912-423d-84bb-943882030826", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081718Z:66505aff-b912-423d-84bb-943882030826" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "2542f3d7cd772d14168df0eb243016a1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8dfc9742-231d-432e-8003-c09fe3c17d9b", + "x-ms-ratelimit-remaining-subscription-reads": "11671", + "x-ms-request-id": "8dfc9742-231d-432e-8003-c09fe3c17d9b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081719Z:8dfc9742-231d-432e-8003-c09fe3c17d9b" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "914de73494d5e580d3f9956ef6ab735e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:20 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fee5b74e-fa0f-45d8-86a0-2d072dda7de1", + "x-ms-ratelimit-remaining-subscription-reads": "11670", + "x-ms-request-id": "fee5b74e-fa0f-45d8-86a0-2d072dda7de1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081721Z:fee5b74e-fa0f-45d8-86a0-2d072dda7de1" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a0c52b6e9e08cadb294cf87e9b3df4e1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "765bd3cd-12f2-42c3-81ca-4c5cdb02454d", + "x-ms-ratelimit-remaining-subscription-reads": "11669", + "x-ms-request-id": "765bd3cd-12f2-42c3-81ca-4c5cdb02454d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081722Z:765bd3cd-12f2-42c3-81ca-4c5cdb02454d" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "93f780e7b5bb43ef735c517d37a5376a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "af0184e3-cf1b-4d9f-98d5-4077fc23f71a", + "x-ms-ratelimit-remaining-subscription-reads": "11668", + "x-ms-request-id": "af0184e3-cf1b-4d9f-98d5-4077fc23f71a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081724Z:af0184e3-cf1b-4d9f-98d5-4077fc23f71a" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f87c9119756a95990b8268899b014a96", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:24 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f26e048a-f869-453c-8227-95879649d470", + "x-ms-ratelimit-remaining-subscription-reads": "11667", + "x-ms-request-id": "f26e048a-f869-453c-8227-95879649d470", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081725Z:f26e048a-f869-453c-8227-95879649d470" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7586b405e0b3b9a23b822cab4c5e9383", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:26 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ab489a0b-bc08-4ad5-ae99-d73f753757e2", + "x-ms-ratelimit-remaining-subscription-reads": "11666", + "x-ms-request-id": "ab489a0b-bc08-4ad5-ae99-d73f753757e2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081727Z:ab489a0b-bc08-4ad5-ae99-d73f753757e2" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "09658e14fbc17276e76287394d66a772", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:28 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4ccecc46-123d-46fd-b2d3-ee535d16c8de", + "x-ms-ratelimit-remaining-subscription-reads": "11665", + "x-ms-request-id": "4ccecc46-123d-46fd-b2d3-ee535d16c8de", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081728Z:4ccecc46-123d-46fd-b2d3-ee535d16c8de" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8377bb12c11e39b6eec2bce848ed48ad", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:30 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c736372a-e19a-4981-9412-48c236c84418", + "x-ms-ratelimit-remaining-subscription-reads": "11664", + "x-ms-request-id": "c736372a-e19a-4981-9412-48c236c84418", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081730Z:c736372a-e19a-4981-9412-48c236c84418" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0d74e4ef409c0ad43d148d5158696cd5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:31 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fb5ff6b4-7bbe-4006-aab7-41fc17cb54a9", + "x-ms-ratelimit-remaining-subscription-reads": "11663", + "x-ms-request-id": "fb5ff6b4-7bbe-4006-aab7-41fc17cb54a9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081731Z:fb5ff6b4-7bbe-4006-aab7-41fc17cb54a9" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9199bada0fe65364d72b1afe3e8d29f9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "38ded3c4-5f34-43e5-84e4-9bc5d65c9dc5", + "x-ms-ratelimit-remaining-subscription-reads": "11662", + "x-ms-request-id": "38ded3c4-5f34-43e5-84e4-9bc5d65c9dc5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081733Z:38ded3c4-5f34-43e5-84e4-9bc5d65c9dc5" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6849da199af2d2d6e66d46093365e185", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:34 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4f12c9e1-ce2b-4644-ab8d-bcdcbfb60ef4", + "x-ms-ratelimit-remaining-subscription-reads": "11661", + "x-ms-request-id": "4f12c9e1-ce2b-4644-ab8d-bcdcbfb60ef4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081734Z:4f12c9e1-ce2b-4644-ab8d-bcdcbfb60ef4" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8e0ee756b654dfc77f21357025d5cbb0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:36 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "827a7e7a-826f-4b50-9a6b-f025f4893c2a", + "x-ms-ratelimit-remaining-subscription-reads": "11660", + "x-ms-request-id": "827a7e7a-826f-4b50-9a6b-f025f4893c2a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081736Z:827a7e7a-826f-4b50-9a6b-f025f4893c2a" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7d3894eb031f3fe3e4c7ab79c95a1f72", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:37 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ae835bdd-6f3d-451e-bbe9-ae12db2c90ef", + "x-ms-ratelimit-remaining-subscription-reads": "11659", + "x-ms-request-id": "ae835bdd-6f3d-451e-bbe9-ae12db2c90ef", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081737Z:ae835bdd-6f3d-451e-bbe9-ae12db2c90ef" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "57a8954a9b7f62a5136ae9d06465ac10", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:39 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e34f4efb-6cfb-4f4a-a6b3-6497dc537243", + "x-ms-ratelimit-remaining-subscription-reads": "11658", + "x-ms-request-id": "e34f4efb-6cfb-4f4a-a6b3-6497dc537243", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081739Z:e34f4efb-6cfb-4f4a-a6b3-6497dc537243" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9f1e95a1632c536504cea98c0b4d1624", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:40 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "786bf8c4-b0de-4a68-a6a0-62d613557727", + "x-ms-ratelimit-remaining-subscription-reads": "11657", + "x-ms-request-id": "786bf8c4-b0de-4a68-a6a0-62d613557727", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081740Z:786bf8c4-b0de-4a68-a6a0-62d613557727" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8f25c302742d5031efd66ab51a12db7e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:42 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1085d5ad-03c4-4c0d-9be2-bf334e35bde5", + "x-ms-ratelimit-remaining-subscription-reads": "11656", + "x-ms-request-id": "1085d5ad-03c4-4c0d-9be2-bf334e35bde5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081742Z:1085d5ad-03c4-4c0d-9be2-bf334e35bde5" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "33d79a1a7f3ce745305553b0f11856c5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:43 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0935a5f7-98f0-4b00-ac05-72b556b51e66", + "x-ms-ratelimit-remaining-subscription-reads": "11655", + "x-ms-request-id": "0935a5f7-98f0-4b00-ac05-72b556b51e66", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081743Z:0935a5f7-98f0-4b00-ac05-72b556b51e66" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a1cec4531d402ce364cdaf56f8af38f1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d3479d3a-0c30-4220-92bd-c8c271aaaf28", + "x-ms-ratelimit-remaining-subscription-reads": "11654", + "x-ms-request-id": "d3479d3a-0c30-4220-92bd-c8c271aaaf28", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081745Z:d3479d3a-0c30-4220-92bd-c8c271aaaf28" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "71722af3e37582e77d3d5fd821805fd7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:46 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0f668253-a9f1-423d-b2a2-c336531af107", + "x-ms-ratelimit-remaining-subscription-reads": "11653", + "x-ms-request-id": "0f668253-a9f1-423d-b2a2-c336531af107", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081746Z:0f668253-a9f1-423d-b2a2-c336531af107" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5561a47f3944fd3eb7aace6fcfefee80", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:47 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "417d1cba-2975-4b10-ade6-dc398d1f311f", + "x-ms-ratelimit-remaining-subscription-reads": "11652", + "x-ms-request-id": "417d1cba-2975-4b10-ade6-dc398d1f311f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081748Z:417d1cba-2975-4b10-ade6-dc398d1f311f" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c6bd611ce5a6704fdc4c2302bd0a0be4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:49 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c74b1dd8-82b5-4a54-9124-fd896d375328", + "x-ms-ratelimit-remaining-subscription-reads": "11651", + "x-ms-request-id": "c74b1dd8-82b5-4a54-9124-fd896d375328", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081749Z:c74b1dd8-82b5-4a54-9124-fd896d375328" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "53d7d86ee34eb9adec74baca1478b28e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:50 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "22b9e74d-6c16-4108-a2a9-f17f9b43c498", + "x-ms-ratelimit-remaining-subscription-reads": "11650", + "x-ms-request-id": "22b9e74d-6c16-4108-a2a9-f17f9b43c498", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081751Z:22b9e74d-6c16-4108-a2a9-f17f9b43c498" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "bfbbdf4f98c39a3055f178f7163c3fac", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:52 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "beaf97d5-68ad-410d-a042-ed7c50b35e7d", + "x-ms-ratelimit-remaining-subscription-reads": "11649", + "x-ms-request-id": "beaf97d5-68ad-410d-a042-ed7c50b35e7d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081752Z:beaf97d5-68ad-410d-a042-ed7c50b35e7d" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f600ea9f9b173832b403da312a845c63", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:53 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "23d40e6a-3207-4fef-b95f-5652443736db", + "x-ms-ratelimit-remaining-subscription-reads": "11648", + "x-ms-request-id": "23d40e6a-3207-4fef-b95f-5652443736db", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081754Z:23d40e6a-3207-4fef-b95f-5652443736db" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyOTEyLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "deb394994b4fd521a83cfe5c6ab5a3af", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:17:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "01decf49-b342-4eea-8ccb-8b17a83d64c3", + "x-ms-ratelimit-remaining-subscription-reads": "11647", + "x-ms-request-id": "01decf49-b342-4eea-8ccb-8b17a83d64c3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081755Z:01decf49-b342-4eea-8ccb-8b17a83d64c3" + }, + "ResponseBody": [] + } + ], + "Variables": { + "CLIENT_ID": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "ObjectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "RandomSeed": "1935008473", + "SUBSCRIPTION_ID": "0b1f6471-1bf0-4dda-aec3-cb9272f09590", + "TENANT_ID": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a" + } +} \ No newline at end of file diff --git a/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementListDeletedVaults.json b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementListDeletedVaults.json new file mode 100644 index 0000000000000..95a910d37d255 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementListDeletedVaults.json @@ -0,0 +1,7199 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3987081cddd8e94880ff97b54599bf93-a10567599eb08e41-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5e1118cd85b66b9419ad40774b2122c6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7496", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:08:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4b3230f0-6e68-4b8b-a9ec-36b8a3dcb300", + "x-ms-ratelimit-remaining-subscription-reads": "11961", + "x-ms-request-id": "4b3230f0-6e68-4b8b-a9ec-36b8a3dcb300", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080823Z:4b3230f0-6e68-4b8b-a9ec-36b8a3dcb300" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault", + "namespace": "Microsoft.KeyVault", + "authorizations": [ + { + "applicationId": "cfa8b339-82a2-471a-a3c9-0fc0be7a4093", + "roleDefinitionId": "1cf9858a-28a2-4228-abba-94e606305b95" + }, + { + "applicationId": "589d5083-6f11-4d30-a62a-a4b316a14abf" + } + ], + "resourceTypes": [ + { + "resourceType": "vaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove" + }, + { + "resourceType": "vaults/secrets", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/accessPolicies", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "operations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01", + "2014-12-19-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "checkNameAvailability", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deleteVirtualNetworkOrSubnets", + "locations": [ + "East US", + "North Central US", + "West Europe", + "North Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West Central US", + "West US 2", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Central US EUAP", + "East US 2 EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ] + }, + { + "resourceType": "locations/operationResults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/eventGridFilters", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14" + ] + } + ], + "registrationState": "Registered" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg8554?api-version=2017-05-10", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "31", + "Content-Type": "application/json", + "traceparent": "00-847f03d3d711ee48867f87daf47e54be-41fe11e44dbb1f40-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8a980e758e193bab59d55db441e8220a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "239", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:08:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "eef46833-db30-4135-8214-66297eb6c630", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "eef46833-db30-4135-8214-66297eb6c630", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080826Z:eef46833-db30-4135-8214-66297eb6c630" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554", + "name": "sdktestrg8554", + "location": "northcentralus", + "tags": { + "StorageType": "Standard_LRS", + "type": "test" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "660", + "Content-Type": "application/json", + "traceparent": "00-465b51549350904594696bc83d612527-a64c77e786fb8f4b-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d6ff2e0fbb5e8aecf28786b63d0521f3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:08:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5a5f0e17-9563-4f83-bf05-fc3e0f92b41d", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "f578409a-8c17-435e-9abe-071ded250364", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080833Z:5a5f0e17-9563-4f83-bf05-fc3e0f92b41d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995", + "name": "sdktestvault3995", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3995.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9812826a9ee0dcaf9e8e9c23b5a29857", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:08:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fdcaf4e2-b292-4987-a9c1-dea788c431c1", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11960", + "x-ms-request-id": "172465fb-b569-4751-b6a9-bd58bacedff4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080834Z:fdcaf4e2-b292-4987-a9c1-dea788c431c1", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995", + "name": "sdktestvault3995", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3995.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "54e04d933b6085ebc7dd79ae8435b22d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:08:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c42b2096-cf5c-4db7-a6ed-22d02d8c7432", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11959", + "x-ms-request-id": "35e13c46-3e04-4672-a452-e7acd55e43f7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080836Z:c42b2096-cf5c-4db7-a6ed-22d02d8c7432", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995", + "name": "sdktestvault3995", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3995.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "bb4c1a6a88f369131ecd0625ed426cba", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:08:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "791d4a19-a9d0-468b-b7c6-5112f8d3ba78", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11958", + "x-ms-request-id": "afbd16c3-4ca1-4c1b-97e1-1f0a1fd788ce", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080837Z:791d4a19-a9d0-468b-b7c6-5112f8d3ba78", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995", + "name": "sdktestvault3995", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3995.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8b23df17c8e42f0b968dd00325015868", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:08:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f71609be-116b-46af-9499-98dac24939d0", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11957", + "x-ms-request-id": "9f2a2afc-c676-4e8a-8886-1b0cba7823b4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080838Z:f71609be-116b-46af-9499-98dac24939d0", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995", + "name": "sdktestvault3995", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3995.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9ab86edcdd560a643976369334c59785", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:08:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b79c535f-f77f-4552-8d0d-4227dd1af043", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11956", + "x-ms-request-id": "ae965a8d-76e8-4dc6-ab8b-91d7777a551e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080840Z:b79c535f-f77f-4552-8d0d-4227dd1af043", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995", + "name": "sdktestvault3995", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3995.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a597bf702712a2490f1c2465b810441d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:08:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e0d08d09-8cee-4c8a-bcd1-395f3b81cd87", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11955", + "x-ms-request-id": "f671a8df-033b-4bc7-bf54-e351e272a844", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080841Z:e0d08d09-8cee-4c8a-bcd1-395f3b81cd87", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995", + "name": "sdktestvault3995", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3995.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7e499e74d28a3a637a18516d9277fad1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:08:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4b57e199-49a5-4e5f-ba35-2824cdf7dfdd", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11954", + "x-ms-request-id": "64b933b7-8bf5-450f-912a-d2010a611535", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080842Z:4b57e199-49a5-4e5f-ba35-2824cdf7dfdd", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995", + "name": "sdktestvault3995", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3995.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "65924bf5b36ab45625168b39b9fe5229", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:08:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f3778782-7119-4141-bdb1-d967990aa498", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11953", + "x-ms-request-id": "b1762ced-59d5-4df6-ab10-8c162159e398", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080844Z:f3778782-7119-4141-bdb1-d967990aa498", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995", + "name": "sdktestvault3995", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3995.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "961f1931187b9efa5c5d2af9d5db0f97", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:08:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "18d0d042-d3c2-4fd9-8fc4-22a15a4c4bb1", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11952", + "x-ms-request-id": "855e6a9b-ac86-409e-b7d0-67275931df3d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080845Z:18d0d042-d3c2-4fd9-8fc4-22a15a4c4bb1", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995", + "name": "sdktestvault3995", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3995.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6c705222df7dc1b347945973462a807b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "960", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:08:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "75a46259-d671-4f49-9749-4b347ac31762", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11951", + "x-ms-request-id": "da58e0c8-a50c-4e8c-873d-f216ee8c7fe7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080846Z:75a46259-d671-4f49-9749-4b347ac31762", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995", + "name": "sdktestvault3995", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3995.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-85911cc00e2e2e4985f7c95f381b0e21-9cd4526d9c1e864a-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "793b27c56357dc5650f4090d885dde49", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:08:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "26b117e6-ce4c-49d0-bfbf-af589ed73a21", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14997", + "x-ms-request-id": "a667ca76-8519-43b0-a55b-ea0705fbdcdc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080850Z:26b117e6-ce4c-49d0-bfbf-af589ed73a21", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/North%20Central%20US/deletedVaults/sdktestvault3995?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-722a18ea881d30439d755097f71f3250-f26a81bf56a14148-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6617f306e68e52ac665e4fe6bf875732", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "543", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:08:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f046a7ac-7a7c-433e-983c-e69abcb92c8b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11950", + "x-ms-request-id": "66a48e37-e787-49c6-83a1-13b9c04d6dfd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080851Z:f046a7ac-7a7c-433e-983c-e69abcb92c8b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/sdktestvault3995", + "name": "sdktestvault3995", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "deletionDate": "2020-05-18T08:08:47Z", + "scheduledPurgeDate": "2020-08-16T08:08:47Z" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "660", + "Content-Type": "application/json", + "traceparent": "00-ada79d505d803d4c92fd89475ea5d51d-143448782977144d-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9fae33af4096fcbe931b88d6a538eab5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:08:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ab4e9c62-e6e9-4c0b-a607-58f1f1e79cdd", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "d89f8ab0-d665-4b3b-99bb-3e6ae52624b6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080855Z:ab4e9c62-e6e9-4c0b-a607-58f1f1e79cdd", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188", + "name": "sdktestvault2188", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault2188.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "29d930d7aa30b370586afaca247bc025", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:08:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "82b6ce5b-2571-4e03-8b69-14ec9f221ffe", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11949", + "x-ms-request-id": "f3fe5471-ca3f-4e11-907d-e7d5718e3284", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080856Z:82b6ce5b-2571-4e03-8b69-14ec9f221ffe", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188", + "name": "sdktestvault2188", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault2188.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1aaf30651f03c1c25334b68346aa8c77", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:08:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "27f0b063-8063-4bbb-a1a7-f938869f2c3f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11948", + "x-ms-request-id": "bf86c3f9-de97-4cc9-b7e8-2f1c3066645b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080857Z:27f0b063-8063-4bbb-a1a7-f938869f2c3f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188", + "name": "sdktestvault2188", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault2188.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "75ffea52c05f6585fca0baaff315556d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:08:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "94401f4a-4c8d-4855-9cf7-37f8bb2ffe34", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11947", + "x-ms-request-id": "7943ef3d-72c3-4db4-87fc-a399c220a98c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080859Z:94401f4a-4c8d-4855-9cf7-37f8bb2ffe34", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188", + "name": "sdktestvault2188", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault2188.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3faed353ae6db79a6e17d6fcf4ec6cad", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9f872060-be1a-4562-90c8-da78e810f2f2", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11946", + "x-ms-request-id": "44765784-b210-45ac-8668-21e17c01c8aa", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080900Z:9f872060-be1a-4562-90c8-da78e810f2f2", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188", + "name": "sdktestvault2188", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault2188.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3a7783dd4b7ca5c6aa4a1d636412ce3e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2e031362-4662-410a-bc6b-ca0c6d80ec60", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11945", + "x-ms-request-id": "64937f99-b8a0-4082-b8ce-eb954aa9ce64", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080901Z:2e031362-4662-410a-bc6b-ca0c6d80ec60", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188", + "name": "sdktestvault2188", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault2188.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "733048de4dfca30a50470647ea897110", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bb895a08-fbe2-4049-a6f2-39f71fc04fbe", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11944", + "x-ms-request-id": "0c30415d-ee62-44f0-9eb1-8620cec97332", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080903Z:bb895a08-fbe2-4049-a6f2-39f71fc04fbe", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188", + "name": "sdktestvault2188", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault2188.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "70d20d331b9e08f10c0994229036535c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "18ad01ed-5aee-4c8a-91c5-903c30423a1b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11943", + "x-ms-request-id": "e9f8c114-fafd-4917-81ee-a8cbb68f62cb", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080904Z:18ad01ed-5aee-4c8a-91c5-903c30423a1b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188", + "name": "sdktestvault2188", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault2188.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ab1d9848f8bb8fb079d3e935447eba21", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "548aeb15-7639-4903-a4e5-732914a4881f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11942", + "x-ms-request-id": "d2aad7af-b51a-4c01-99d0-43eea60db09f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080905Z:548aeb15-7639-4903-a4e5-732914a4881f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188", + "name": "sdktestvault2188", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault2188.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "572f0dd85e3fc29f572866f3b9e71319", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "43657e06-c11a-45c9-9ad3-78d0452a886c", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11941", + "x-ms-request-id": "68ea91a9-3ad4-4107-88a7-e6f2df4ee2bb", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080907Z:43657e06-c11a-45c9-9ad3-78d0452a886c", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188", + "name": "sdktestvault2188", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault2188.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "52ffa9f4c56b3a545c42f6ca32bbc38e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "dc5b465c-6808-4e7a-b4ad-8466f21935ab", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11940", + "x-ms-request-id": "3ec5fc95-643c-4846-9eac-e446d4e94e85", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080908Z:dc5b465c-6808-4e7a-b4ad-8466f21935ab", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188", + "name": "sdktestvault2188", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault2188.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8349724efb06ea1cf85b549392bdd691", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "960", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "85631fa9-6e16-4761-a40c-ddf574839b24", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11939", + "x-ms-request-id": "e9e79442-2831-431f-a51d-c1b252ba6aa2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080909Z:85631fa9-6e16-4761-a40c-ddf574839b24", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188", + "name": "sdktestvault2188", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault2188.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d006acadc0f35943b7095a27b6c1c38d-8a78d5bddb094343-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9b40cfc0687f12b5b9f5fafd67d5909b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:09:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "19072fd1-bf4e-4350-9266-2900b41acd17", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14996", + "x-ms-request-id": "51fefbcc-a585-43fa-a7ce-f3a95c83b236", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080913Z:19072fd1-bf4e-4350-9266-2900b41acd17", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/North%20Central%20US/deletedVaults/sdktestvault2188?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-775b805ff554ef47845f0b5eba2c5cad-bcad15cdfb96d44b-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "47a4d8658f9df8138c145a1071c0a89e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "543", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7bcde592-9ee4-4fbb-8f9b-a22a4b27072d", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11938", + "x-ms-request-id": "167fa17d-5c22-4e52-b092-68501467a9a0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080913Z:7bcde592-9ee4-4fbb-8f9b-a22a4b27072d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/sdktestvault2188", + "name": "sdktestvault2188", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "deletionDate": "2020-05-18T08:09:10Z", + "scheduledPurgeDate": "2020-08-16T08:09:10Z" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "660", + "Content-Type": "application/json", + "traceparent": "00-953eca1a6fa5d94486afc73eba5f2932-a66f4c3111f7ef46-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7b6209650e27bce537c911001f8222cb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6b72a20f-ece4-4c2c-b51a-49dba258664d", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "7a991b25-2169-4909-be5b-01d29eed9941", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080917Z:6b72a20f-ece4-4c2c-b51a-49dba258664d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519", + "name": "sdktestvault1519", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1519.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cb02915b202dc93dbe8a66c601f76d91", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3ddfc41a-49d1-4797-9275-b4572c074847", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11937", + "x-ms-request-id": "a60c3cbf-eb49-47a8-9462-f31b747f0691", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080918Z:3ddfc41a-49d1-4797-9275-b4572c074847", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519", + "name": "sdktestvault1519", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1519.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "92b8453785ee70ddd9a63219a3d71796", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7077c8fc-7ff6-4934-9aeb-d9f539256cb3", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11936", + "x-ms-request-id": "8ba9f4ad-c7f3-41e5-a865-abfd94cd426d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080919Z:7077c8fc-7ff6-4934-9aeb-d9f539256cb3", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519", + "name": "sdktestvault1519", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1519.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8ea4c5d15780989df1ef5a048e6aba50", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e7a14f1a-df55-4ec9-ac19-322d8acafdaf", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11935", + "x-ms-request-id": "abbc9c09-94fb-47d5-830f-2ae3ee0844be", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080921Z:e7a14f1a-df55-4ec9-ac19-322d8acafdaf", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519", + "name": "sdktestvault1519", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1519.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "60d7d8a166e8d65db491f287ed2325e7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bda5b404-4655-44f9-ae92-208ae044e739", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11934", + "x-ms-request-id": "a1ae28ac-68d4-4024-bf2b-f52fb5d96542", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080922Z:bda5b404-4655-44f9-ae92-208ae044e739", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519", + "name": "sdktestvault1519", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1519.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3cf4d073df52e011a820a1fe2bd8e26f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d9b8da8f-6fc4-4975-9f26-b328b669bda1", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11933", + "x-ms-request-id": "1c21888d-f10a-47ef-868e-717252cc1dd1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080923Z:d9b8da8f-6fc4-4975-9f26-b328b669bda1", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519", + "name": "sdktestvault1519", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1519.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cb77e2ebb7ff6bad67ced9ee6515aacd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9a112dd3-042e-433d-aa30-c557720a364c", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11932", + "x-ms-request-id": "8fe5ab26-4666-41e8-82aa-05064e1a9a48", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080925Z:9a112dd3-042e-433d-aa30-c557720a364c", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519", + "name": "sdktestvault1519", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1519.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "be9172ca7e75c2fdc7f7b8c8c45eabdb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "145930ea-6b58-4a89-af11-23cc05076a40", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11931", + "x-ms-request-id": "42b01b32-307c-4104-b2d7-04487fc5f981", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080926Z:145930ea-6b58-4a89-af11-23cc05076a40", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519", + "name": "sdktestvault1519", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1519.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0a9c82af5aabbce72289d48405227a92", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2079f799-e8da-40ba-a506-3ad75c9b5d63", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11930", + "x-ms-request-id": "37b88c69-840a-4006-8007-4fca627e696f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080927Z:2079f799-e8da-40ba-a506-3ad75c9b5d63", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519", + "name": "sdktestvault1519", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1519.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b834d37523476cf9e5b50308ffe5a608", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "690bbece-281c-43fe-b8c5-a140230fb1bc", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11929", + "x-ms-request-id": "14df0aba-afbb-4e7a-a330-f7f304da9580", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080929Z:690bbece-281c-43fe-b8c5-a140230fb1bc", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519", + "name": "sdktestvault1519", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1519.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e23ffd23a0796f218bd59beca978bca5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f3162f26-7183-4f72-8c4f-a9b662b6ef12", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11928", + "x-ms-request-id": "69a1ddab-0aa3-45a8-853a-b01f9cf9fcd6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080930Z:f3162f26-7183-4f72-8c4f-a9b662b6ef12", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519", + "name": "sdktestvault1519", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1519.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f152257cf2298b94893025f557dfbc3d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "960", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e309cda3-2560-4d44-97e8-34ac420a603d", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11927", + "x-ms-request-id": "4a40cb8c-a6fe-4e23-9453-06f1f89145eb", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080931Z:e309cda3-2560-4d44-97e8-34ac420a603d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519", + "name": "sdktestvault1519", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1519.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c399d39f788abf4bb39f560e51b3c126-8a2986625ea81c4d-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0760cce298e2d519b2c52d71880dc26c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:09:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "22e7b470-3805-4bbc-99f4-9c32d665126e", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14995", + "x-ms-request-id": "f66a0815-9389-425d-9dd7-46a1f02bafa5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080935Z:22e7b470-3805-4bbc-99f4-9c32d665126e", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/North%20Central%20US/deletedVaults/sdktestvault1519?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-390529744cebe54a89f6a161eaad0124-45375e400e0c954b-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d98c5ef9b59230de69b458497b2b17ac", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "543", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c28dba54-4dfe-4bbf-9554-b608a09a5e1b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11926", + "x-ms-request-id": "33babaa5-3f84-486c-9fd7-39168ee7355b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080935Z:c28dba54-4dfe-4bbf-9554-b608a09a5e1b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/sdktestvault1519", + "name": "sdktestvault1519", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "deletionDate": "2020-05-18T08:09:32Z", + "scheduledPurgeDate": "2020-08-16T08:09:32Z" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/deletedVaults?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "dd095e18b517e3c20c7d3f64c523037c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "25694", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "72160157-919b-434e-bc1c-7ed49c24c3d2", + "x-ms-original-request-ids": [ + "6ee55774-56df-452f-8154-c56208d3fb2c", + "3f5b83d2-b681-4575-9cff-9289c53d2269", + "85481c75-5252-4497-83d3-2fe312b43387", + "202ba1c4-e894-4de7-80ab-efa0ec56c0bc", + "e4519547-9ca9-49e6-9673-f7d9a1db1075", + "e2b7a6fa-aa3c-4197-9e33-6fe5cf6d0a90", + "b74b2462-53ea-47d4-bb93-8ac7ad8c45f5", + "6f6e301c-3c6a-47e7-b49f-fb14c4f9b415", + "698edb30-aa07-4ab7-a588-47e115905375", + "1c798a4f-71ac-44fa-ad3f-a31cc3df313d", + "083f7faa-21ef-4ac8-b1b6-8036c5639690", + "536a0daa-0f86-467d-9421-45f619aa8950", + "76b5b6e2-aac9-49ad-8da1-4c9f0498af93", + "1ec2470c-3e99-4aa4-b0d0-a5786fae9db1", + "abacf9aa-b9bf-487a-8c69-719afb1576be", + "7cecee16-dc30-4075-9214-44a6c6c66e9b", + "9d720617-96fb-4eba-9273-ee8ee1d9d75c", + "0a7629cf-4c44-41fa-9a77-7b54e4273d88", + "bae3a609-ceab-4d5d-9613-3defe89f47ca", + "38c51222-86be-4d38-ba97-38b73140479d", + "de9df512-598d-4954-b77d-eb367ff44eb6", + "f4dcd8f9-3c8d-47a7-9e3c-ec28e6a2ff5e", + "09f74013-6b9c-46e8-b329-7087d7f2fe9b", + "e1648123-cbe5-42e3-bdd5-3588656d1761", + "b15d70e6-369c-4d9f-9914-de8c4ddbd233", + "bc2c1d8b-a92d-4206-a0ca-4f089f046ea4", + "2bab4442-b9ff-4846-a16a-9753a4edd06d", + "3d4c25c6-41e2-4dbd-9cb9-20f6025b851c", + "c86740a6-3611-41ec-b046-696054554378", + "af690c05-83e2-4016-9ff2-ba997025e136", + "18795175-bb64-4710-a960-4f45b2989aa2", + "f4311464-e8d1-4f91-85cf-5517874bb107", + "f51c02fd-fdca-4313-8b37-54a84a1c1bd2", + "b52191cf-a4fa-465e-bd4d-e9cc5ae8aaeb", + "3abac863-1793-4f39-8cbe-eba7322aa91d" + ], + "x-ms-ratelimit-remaining-subscription-reads": "11925", + "x-ms-request-id": "72160157-919b-434e-bc1c-7ed49c24c3d2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080937Z:72160157-919b-434e-bc1c-7ed49c24c3d2" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/sdktestvault1519", + "name": "sdktestvault1519", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault1519", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "deletionDate": "2020-05-18T08:09:32Z", + "scheduledPurgeDate": "2020-08-16T08:09:32Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/sdktestvault2188", + "name": "sdktestvault2188", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault2188", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "deletionDate": "2020-05-18T08:09:10Z", + "scheduledPurgeDate": "2020-08-16T08:09:10Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/sdktestvault3995", + "name": "sdktestvault3995", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8554/providers/Microsoft.KeyVault/vaults/sdktestvault3995", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "deletionDate": "2020-05-18T08:08:47Z", + "scheduledPurgeDate": "2020-08-16T08:08:47Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/sdktestvault9905", + "name": "sdktestvault9905", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2493/providers/Microsoft.KeyVault/vaults/sdktestvault9905", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "deletionDate": "2020-05-18T06:34:59Z", + "scheduledPurgeDate": "2020-08-16T06:34:59Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/sdktestvault4583", + "name": "sdktestvault4583", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4831/providers/Microsoft.KeyVault/vaults/sdktestvault4583", + "location": "North Central US", + "tags": {}, + "deletionDate": "2020-05-18T06:34:35Z", + "scheduledPurgeDate": "2020-08-16T06:34:35Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus/deletedVaults/mysqljhilwhpmaii32pnguv5", + "name": "mysqljhilwhpmaii32pnguv5", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgxwmpnupm5fxfx2lgnuayxrylighipskpgpbw4sfli7k2dmpzzq47rerd6mlu3hzap/providers/Microsoft.KeyVault/vaults/mysqljhilwhpmaii32pnguv5", + "location": "eastus", + "tags": {}, + "deletionDate": "2020-05-16T02:48:02Z", + "scheduledPurgeDate": "2020-08-14T02:48:02Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus/deletedVaults/pgsqlzev7oihpvc73cgwzjaw", + "name": "pgsqlzev7oihpvc73cgwzjaw", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgnzrpogu26v5z7uravh53ra5yqyme3765v7xsfaukoupbokeahpksexsdf4inmdqys/providers/Microsoft.KeyVault/vaults/pgsqlzev7oihpvc73cgwzjaw", + "location": "eastus", + "tags": {}, + "deletionDate": "2020-05-16T02:47:03Z", + "scheduledPurgeDate": "2020-08-14T02:47:03Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus/deletedVaults/pgsqlha7p5d6mvqk67sjqwzy", + "name": "pgsqlha7p5d6mvqk67sjqwzy", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgetvwoel4i7alblv237hh6fnaotrxsd6pxyzzgbdthlogulne4meuvc2dq5wm76kzw/providers/Microsoft.KeyVault/vaults/pgsqlha7p5d6mvqk67sjqwzy", + "location": "eastus", + "tags": {}, + "deletionDate": "2020-05-16T02:22:17Z", + "scheduledPurgeDate": "2020-08-14T02:22:17Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus/deletedVaults/cmk-test-keyvaultauuq5k2", + "name": "cmk-test-keyvaultauuq5k2", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgn3rjttncusnm35ovddkqaxg24umalpfgmta3tehl2rsvbelhi6tommpnzyt6agx7g/providers/Microsoft.KeyVault/vaults/cmk-test-keyvaultauuq5k2", + "location": "eastus", + "tags": {}, + "deletionDate": "2020-05-16T01:06:52Z", + "scheduledPurgeDate": "2020-08-14T01:06:52Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus/deletedVaults/mysqle4trgg6blzplrbbucp3", + "name": "mysqle4trgg6blzplrbbucp3", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgqrjgqxtopmpdnkogpcdthr275qclj3for7jrrf3cvkuigtpvfnnhfvmk7c2r34ija/providers/Microsoft.KeyVault/vaults/mysqle4trgg6blzplrbbucp3", + "location": "eastus", + "tags": {}, + "deletionDate": "2020-05-16T00:39:09Z", + "scheduledPurgeDate": "2020-08-14T00:39:09Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westeurope/deletedVaults/kv-ssl-testnxipwcxkp", + "name": "kv-ssl-testnxipwcxkp", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgwrmacym5h6fabd4xlhgdg7dhodwcewaojyspzwyzr7fxte6ucglnibv3snuy4gwd2/providers/Microsoft.KeyVault/vaults/kv-ssl-testnxipwcxkp", + "location": "westeurope", + "tags": {}, + "deletionDate": "2020-05-16T01:21:26Z", + "scheduledPurgeDate": "2020-08-14T01:21:26Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westeurope/deletedVaults/kv-ssl-testr3ng4shub", + "name": "kv-ssl-testr3ng4shub", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgnuf7fd3qk5b5owzis5whz3v54bplsf3pouj6a6v2ud5ps6yc2wprjouapbhjsyhhn/providers/Microsoft.KeyVault/vaults/kv-ssl-testr3ng4shub", + "location": "westeurope", + "tags": {}, + "deletionDate": "2020-05-16T01:19:57Z", + "scheduledPurgeDate": "2020-08-14T01:19:57Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westeurope/deletedVaults/kv-ssl-testio4mgeeuu", + "name": "kv-ssl-testio4mgeeuu", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgutafmq47scnrgumrcrtkt4hqcowq2fnxnmohna5gu3ymkuo3vrsjx7bjn6yr6at43/providers/Microsoft.KeyVault/vaults/kv-ssl-testio4mgeeuu", + "location": "westeurope", + "tags": {}, + "deletionDate": "2020-05-10T06:51:57Z", + "scheduledPurgeDate": "2020-08-08T06:51:57Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westeurope/deletedVaults/kv-ssl-testydsv4xrmz", + "name": "kv-ssl-testydsv4xrmz", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgk4dg6xko3izdzx6p66dfvgeup3ifpme2g3wkqozcyg42jvndf66tni7ujhtfkndvz/providers/Microsoft.KeyVault/vaults/kv-ssl-testydsv4xrmz", + "location": "westeurope", + "tags": {}, + "deletionDate": "2020-04-12T14:58:03Z", + "scheduledPurgeDate": "2020-07-11T14:58:03Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westeurope/deletedVaults/kv-ssl-testhdqnz6hfp", + "name": "kv-ssl-testhdqnz6hfp", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rggheeyxbbukigkygd767sv6pzl4rrao3tdn5mfpioj4xisayjwxgchlcceziserokz/providers/Microsoft.KeyVault/vaults/kv-ssl-testhdqnz6hfp", + "location": "westeurope", + "tags": {}, + "deletionDate": "2020-04-10T18:08:56Z", + "scheduledPurgeDate": "2020-07-09T18:08:56Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastasia/deletedVaults/xxj-jedi-1", + "name": "xxj-jedi-1", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/xiaojianxu/providers/Microsoft.KeyVault/vaults/xxj-jedi-1", + "location": "eastasia", + "tags": {}, + "deletionDate": "2020-03-06T15:27:15Z", + "scheduledPurgeDate": "2020-06-04T15:27:15Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/cli-test-kv-nr-3i5vgh64r", + "name": "cli-test-kv-nr-3i5vgh64r", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_keyvault_network_ruleilizoid6zcw5623hn3zxaldjfz2ksfatapvm4unlkrz7a/providers/Microsoft.KeyVault/vaults/cli-test-kv-nr-3i5vgh64r", + "location": "eastus2", + "tags": {}, + "deletionDate": "2020-05-16T01:32:19Z", + "scheduledPurgeDate": "2020-08-14T01:32:19Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/cli-test-kv-nr-qs6xiyecv", + "name": "cli-test-kv-nr-qs6xiyecv", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_keyvault_network_ruleilizoid6zcw5623hn3zxaldjfz2ksfatapvm4unlkrz7a/providers/Microsoft.KeyVault/vaults/cli-test-kv-nr-qs6xiyecv", + "location": "eastus2", + "tags": {}, + "deletionDate": "2020-05-16T01:31:49Z", + "scheduledPurgeDate": "2020-08-14T01:31:49Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/cli-test-kv-nr-njfoofsrx", + "name": "cli-test-kv-nr-njfoofsrx", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_keyvault_network_ruleilizoid6zcw5623hn3zxaldjfz2ksfatapvm4unlkrz7a/providers/Microsoft.KeyVault/vaults/cli-test-kv-nr-njfoofsrx", + "location": "eastus2", + "tags": {}, + "deletionDate": "2020-05-16T01:31:49Z", + "scheduledPurgeDate": "2020-08-14T01:31:49Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/cli-test-kv-nr-bzduehjqq", + "name": "cli-test-kv-nr-bzduehjqq", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_keyvault_network_ruleilizoid6zcw5623hn3zxaldjfz2ksfatapvm4unlkrz7a/providers/Microsoft.KeyVault/vaults/cli-test-kv-nr-bzduehjqq", + "location": "eastus2", + "tags": {}, + "deletionDate": "2020-05-16T01:31:49Z", + "scheduledPurgeDate": "2020-08-14T01:31:49Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/southcentralus/deletedVaults/clitestm77cvjw3mk434onln", + "name": "clitestm77cvjw3mk434onln", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgqqpwattpn2pwmf7umyv4kh2krrbzymcnclswtzhcsuqdzcuksdab5wim2s4pbxcr4/providers/Microsoft.KeyVault/vaults/clitestm77cvjw3mk434onln", + "location": "southcentralus", + "tags": {}, + "deletionDate": "2020-05-16T01:31:11Z", + "scheduledPurgeDate": "2020-08-14T01:31:11Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/southcentralus/deletedVaults/clitest7cnlr74gle2sy5763", + "name": "clitest7cnlr74gle2sy5763", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgy74nkcjixj6k5hyt7lmf7m3mjgbjziql7phsimpqgb62q4b5c6tewksqkhkicfnwi/providers/Microsoft.KeyVault/vaults/clitest7cnlr74gle2sy5763", + "location": "southcentralus", + "tags": {}, + "deletionDate": "2020-05-10T07:06:39Z", + "scheduledPurgeDate": "2020-08-08T07:06:39Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/southcentralus/deletedVaults/yu-vault-1", + "name": "yu-vault-1", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/azure-cli-test-scus/providers/Microsoft.KeyVault/vaults/yu-vault-1", + "location": "southcentralus", + "tags": {}, + "deletionDate": "2020-05-06T10:48:53Z", + "scheduledPurgeDate": "2020-08-04T10:48:53Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/southcentralus/deletedVaults/clitesttzvz2wkttvw44ktmg", + "name": "clitesttzvz2wkttvw44ktmg", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rg4wqk7k5yqalmrakknpbum7ctzw2baurfjr4kbl6ctbqlroif5qq3qtwktptk36jg4/providers/Microsoft.KeyVault/vaults/clitesttzvz2wkttvw44ktmg", + "location": "southcentralus", + "tags": {}, + "deletionDate": "2020-04-26T10:48:51Z", + "scheduledPurgeDate": "2020-07-25T10:48:51Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/southcentralus/deletedVaults/clitestf3vy6hyh3whcucma4", + "name": "clitestf3vy6hyh3whcucma4", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rg2ysf7ttutrjle7qemglkbppovvkzdnjjs7mlc6mlidbragzrpeqwkhceuoxtpeqc4/providers/Microsoft.KeyVault/vaults/clitestf3vy6hyh3whcucma4", + "location": "southcentralus", + "tags": {}, + "deletionDate": "2020-04-25T10:48:54Z", + "scheduledPurgeDate": "2020-07-24T10:48:54Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westus/deletedVaults/clitestrgerq2fmg5x2lq", + "name": "clitestrgerq2fmg5x2lq", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgerq2fmg5x2lqifhdlypbpdi3cho7aquthxflqvw3sv7bage35iinrfq2jixelhapx/providers/Microsoft.KeyVault/vaults/clitestrgerq2fmg5x2lq", + "location": "westus", + "tags": {}, + "deletionDate": "2020-05-18T05:16:55Z", + "scheduledPurgeDate": "2020-08-16T05:16:55Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westus/deletedVaults/clitestrgszctattv5fld", + "name": "clitestrgszctattv5fld", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgszctattv5fld4hcollzfkb7mcyu2rajq5cno5h3j4xl2szwghnoro3abvlwwqzrat/providers/Microsoft.KeyVault/vaults/clitestrgszctattv5fld", + "location": "westus", + "tags": {}, + "deletionDate": "2020-05-16T02:53:04Z", + "scheduledPurgeDate": "2020-08-14T02:53:04Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westus/deletedVaults/vaultje6cw", + "name": "vaultje6cw", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_encryptionim3cjy4fvbyohyvx4orvqaianzhulpyyh7ghbmehkbn65d33vmo/providers/Microsoft.KeyVault/vaults/vaultje6cw", + "location": "westus", + "tags": {}, + "deletionDate": "2020-05-16T01:58:29Z", + "scheduledPurgeDate": "2020-08-14T01:58:29Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westus/deletedVaults/vaultq7wfi", + "name": "vaultq7wfi", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vm_encryptionw4g4a2ns7las3fiiwdo32lzi4kp2kw6gw2e5vzobkq42n3xpqcly4/providers/Microsoft.KeyVault/vaults/vaultq7wfi", + "location": "westus", + "tags": {}, + "deletionDate": "2020-05-16T01:58:17Z", + "scheduledPurgeDate": "2020-08-14T01:58:17Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westus/deletedVaults/vmsecretkvwfslqdyuhn", + "name": "vmsecretkvwfslqdyuhn", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vm_secretsezc5ixkgucw4jh7oinanqs7d3f42abhpzif547y6shlsiysewix5zacy/providers/Microsoft.KeyVault/vaults/vmsecretkvwfslqdyuhn", + "location": "westus", + "tags": {}, + "deletionDate": "2020-05-16T01:51:22Z", + "scheduledPurgeDate": "2020-08-14T01:51:22Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westcentralus/deletedVaults/vault4-iio4wmraznv4q", + "name": "vault4-iio4wmraznv4q", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_disk_encryption_set_snapshot_ebcahx2q7azrdrfws2bzyzl4sde27s5n4jnmd/providers/Microsoft.KeyVault/vaults/vault4-iio4wmraznv4q", + "location": "westcentralus", + "tags": {}, + "deletionDate": "2020-05-16T02:03:32Z", + "scheduledPurgeDate": "2020-08-14T02:03:32Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westcentralus/deletedVaults/vault-6m5kviuxj2oxae", + "name": "vault-6m5kviuxj2oxae", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_disk_encryption_set_volxrsmrmorqs33fbvkjm5wwxv3so5fsowgfruyr7xjm3d/providers/Microsoft.KeyVault/vaults/vault-6m5kviuxj2oxae", + "location": "westcentralus", + "tags": {}, + "deletionDate": "2020-05-16T02:02:40Z", + "scheduledPurgeDate": "2020-08-14T02:02:40Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westcentralus/deletedVaults/vault3-4nghge3bkcgj4", + "name": "vault3-4nghge3bkcgj4", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_disk_encryption_set_disk_update_4bjdrwrrscmdw45yx44tidsopvkvecsdg7/providers/Microsoft.KeyVault/vaults/vault3-4nghge3bkcgj4", + "location": "westcentralus", + "tags": {}, + "deletionDate": "2020-05-16T02:01:18Z", + "scheduledPurgeDate": "2020-08-14T02:01:18Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westcentralus/deletedVaults/vault-dxxlvoocuh3ffb", + "name": "vault-dxxlvoocuh3ffb", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_disk_encryption_set_cmmzl7mh67l6logzfax5lmdeibp6hgxdxxjcbhuxpa2brg/providers/Microsoft.KeyVault/vaults/vault-dxxlvoocuh3ffb", + "location": "westcentralus", + "tags": {}, + "deletionDate": "2020-05-10T07:36:27Z", + "scheduledPurgeDate": "2020-08-08T07:36:27Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westcentralus/deletedVaults/vault4-pz42mju35uj3s", + "name": "vault4-pz42mju35uj3s", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_disk_encryption_set_snapshot_eszfbu4r357vmn57tijyhnffndzgjhp2oyuto/providers/Microsoft.KeyVault/vaults/vault4-pz42mju35uj3s", + "location": "westcentralus", + "tags": {}, + "deletionDate": "2020-05-10T07:35:52Z", + "scheduledPurgeDate": "2020-08-08T07:35:52Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus2euap/deletedVaults/yemingkv2", + "name": "yemingkv2", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yeming2/providers/Microsoft.KeyVault/vaults/yemingkv2", + "location": "East US 2 EUAP", + "tags": {}, + "deletionDate": "2020-04-29T10:48:52Z", + "scheduledPurgeDate": "2020-07-28T10:48:52Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus2euap/deletedVaults/zuhvault1", + "name": "zuhvault1", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/zuh/providers/Microsoft.KeyVault/vaults/zuhvault1", + "location": "eastus2euap", + "tags": {}, + "deletionDate": "2020-03-12T15:12:04Z", + "scheduledPurgeDate": "2020-06-10T15:12:04Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus2euap/deletedVaults/zuhvault2", + "name": "zuhvault2", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/zuh/providers/Microsoft.KeyVault/vaults/zuhvault2", + "location": "eastus2euap", + "tags": {}, + "deletionDate": "2020-03-12T15:12:04Z", + "scheduledPurgeDate": "2020-06-10T15:12:04Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus2euap/deletedVaults/zuhvault", + "name": "zuhvault", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/zuh/providers/Microsoft.KeyVault/vaults/zuhvault", + "location": "eastus2euap", + "tags": {}, + "deletionDate": "2020-03-12T15:12:04Z", + "scheduledPurgeDate": "2020-06-10T15:12:04Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus2euap/deletedVaults/ygtestkv", + "name": "ygtestkv", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/test/providers/Microsoft.KeyVault/vaults/ygtestkv", + "location": "eastus2euap", + "tags": {}, + "deletionDate": "2020-03-02T04:46:15Z", + "scheduledPurgeDate": "2020-05-31T04:46:15Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/centraluseuap/deletedVaults/cli-test-kv-plr-73kbxaer", + "name": "cli-test-kv-plr-73kbxaer", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_keyvault_plrkbvmfl4bbtpafmp6f7siv2lecopddqksnwswrqrnsef5rd42mqec3t/providers/Microsoft.KeyVault/vaults/cli-test-kv-plr-73kbxaer", + "location": "centraluseuap", + "tags": {}, + "deletionDate": "2020-05-16T02:24:54Z", + "scheduledPurgeDate": "2020-08-14T02:24:54Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/centraluseuap/deletedVaults/cli-test-kv-pe-utov4p6c4", + "name": "cli-test-kv-pe-utov4p6c4", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_keyvault_pe2rwb57zw6rp7pdwck5l2ujyzgzpezotce6sackqqspkfbutn553nhzw/providers/Microsoft.KeyVault/vaults/cli-test-kv-pe-utov4p6c4", + "location": "centraluseuap", + "tags": {}, + "deletionDate": "2020-05-16T02:24:16Z", + "scheduledPurgeDate": "2020-08-14T02:24:16Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/centraluseuap/deletedVaults/cli-test-kv-pe-qxpvv57to", + "name": "cli-test-kv-pe-qxpvv57to", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_keyvault_pehyki3yqvgcsqejmr2a7owsaehuoxwkqr5avnw4os7vgwbc7bseuywzn/providers/Microsoft.KeyVault/vaults/cli-test-kv-pe-qxpvv57to", + "location": "centraluseuap", + "tags": {}, + "deletionDate": "2020-04-28T03:24:08Z", + "scheduledPurgeDate": "2020-07-27T03:24:08Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/centraluseuap/deletedVaults/cli-test-kv-pe-eijekvli7", + "name": "cli-test-kv-pe-eijekvli7", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_keyvault_pejvdz7sc7oxxgottvy7ikf7qwwj3f4hsmc4nsjftuckqgzpm3wtmv37o/providers/Microsoft.KeyVault/vaults/cli-test-kv-pe-eijekvli7", + "location": "centraluseuap", + "tags": {}, + "deletionDate": "2020-04-28T03:21:04Z", + "scheduledPurgeDate": "2020-07-27T03:21:04Z" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/deletedVaults?api-version=2019-09-01\u0026%24skiptoken=3ZbRbuI4FIbfBY32ailOIDtQaTQK2GHT7TkeG5tRuKMhpNgUKkInwaN59zmsuvsORYkUJYoS5ct%2fvt8%2fe4eqOz%2fuDr7p3f%2fsodTm75lAo9NHu%2bjd957P59fmfjB4WR%2fWdfVSHc536%2fB2qu7K48ugeXtqytPu9bw7HpoBe4q2f40%2bR%2f3oacv6o81m3V9X5bBfPk3iz%2fGWTZIJG7yejj92m%2brUDGBXno7NcXu%2b%2b6e6LNdv%2b%2fNgU%2b2rc7X596T5un7d9X%2fQnfTwLzGLJn1Ge%2fTHp8bTG4%2b%2bOnyxfvldLx%2bMtjozYmkXdiIf7d5ueR6BqTtwtsMgLsjrIZh0hG4zViZnaJ6FFkUHoY6RqyEIEbQvOuUgVqyIFMs4hrL3Z0%2bkC3MLHMoODDHhRYLcDtHpsTbI0aFAlwZp6cjrC%2foHjuJhjhYC2OKimGqBFcThu1gYYbX8Jj56JtCUkeRFTP%2begYMWzHKsOW02m6GBjlhMkZct%2bowrtpyDgEQLMVTBt9rU75lIF3n60UlIXiZEgCbARxjSgO55DAxn6LIpGBGjLwKlZaRMnWBQdM%2bKA7NEyFKa%2fiNhF%2fFHBwGubCVPE%2bC%2bA65GEDSBEK1ydC2kMakhQSGiqybAr0gdiiEXjMZIIAOKxELaG9ImKXEkTRrTOCTS5Bcw12AUkTbPU2l8i6Gg71%2fNKDhDus6UV6OrTpTzFxqrd13chDZbdJ4qxA%2bRFx3VBmkzHQFbZeCvtbLPkOdDKcSVV0fVkkgLyXV4KEvvHG6nTUPeEgZGrojB1YSDzGkE04La0qOAkJMvVrR4qDvNM6Hdak6NOwe3mlGrvpuTfCFs%2bu2jO0MaQTWqKAOeBAoBzf5aIxlYEaHN5tLUlJkN%2bSGbSqtpOVHHBGQKTk%2bVswTj%2f1zcAg4agwhdOaRcJJIDrTRWY%2bUwQ5N32l7PFWESF21FLG1OOs07QkhN%2fCCUgd6vX78B" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/North%20Central%20US/deletedVaults/sdktestvault1519/purge?api-version=2019-09-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d27bad4f42b7a043b57daab5354868f4-8259e80e50210642-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f9fcb86de3522daaed309e2e40cf5a86", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:09:37 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "83edfddc-0d63-4604-9554-1b904d4aaffc", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "466d7fb2-b454-46ef-8f07-a507aaf4bd2d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080938Z:83edfddc-0d63-4604-9554-1b904d4aaffc", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c2dbdcb01e2e3559b4dbf0e71793a33c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:37 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "14f04ca0-a732-46ae-a5d7-f475e491eeba", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11924", + "x-ms-request-id": "cc25598a-ac33-4770-ac69-976641de54af", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080938Z:14f04ca0-a732-46ae-a5d7-f475e491eeba", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:37Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "44b6b823d9ca887863b85da91695b772", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:39 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4801ecb5-7992-4153-90d4-69bc63b350a2", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11923", + "x-ms-request-id": "42f44446-0bdf-41d2-a48c-e2d68a6bcfd8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080939Z:4801ecb5-7992-4153-90d4-69bc63b350a2", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:37Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "637e58c597f48f5727237528f46d2c08", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:40 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3b31b74c-fde0-4ae5-8dd8-ba45860fc807", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11922", + "x-ms-request-id": "189baaba-c572-455e-a877-4e768507116d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080941Z:3b31b74c-fde0-4ae5-8dd8-ba45860fc807", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:37Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "bdf1900526c3d77b63535e76c0af1f1f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:41 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5076d86d-66f2-4e71-92d3-478357a1ba0f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11921", + "x-ms-request-id": "49c1cfdb-664c-4271-8cf3-e968f3bd34cc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080942Z:5076d86d-66f2-4e71-92d3-478357a1ba0f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:37Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "be227d243f158b4861271ca6645093f6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:43 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b448d1e6-a225-4446-b0bc-49d4d323f0d5", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11920", + "x-ms-request-id": "0539f759-9720-4dd6-93ad-65c20012c186", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080943Z:b448d1e6-a225-4446-b0bc-49d4d323f0d5", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:37Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "85a3558cf9a39faedca600a039e1ce77", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:44 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "12041c24-b0e1-495e-b062-44a1d9240f6f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11919", + "x-ms-request-id": "ef39ba06-ddf0-4049-8c72-74261bced63f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080945Z:12041c24-b0e1-495e-b062-44a1d9240f6f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:37Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "770356046e4bc6f248655c9c09d57213", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "68a02ba1-fca3-4d79-a1c5-ef460a2b3a77", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11918", + "x-ms-request-id": "ce293fbb-f9e9-44b5-8d13-ec9708b76b42", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080946Z:68a02ba1-fca3-4d79-a1c5-ef460a2b3a77", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:37Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6be967c0990c2a7bce82e26e3fa7527f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:47 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9f46b742-f971-4717-ba61-282b4e68eb7f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11917", + "x-ms-request-id": "56851fbb-0339-4a1c-b733-de0189ab3978", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080947Z:9f46b742-f971-4717-ba61-282b4e68eb7f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:37Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0ea1a4591b4c1eab62dd3d3d9d129506", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:48 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fc3b5487-7c83-462e-b5f5-cb95871473bb", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11916", + "x-ms-request-id": "fb536ccb-d06a-4d7f-9808-91f16baf0e2c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080949Z:fc3b5487-7c83-462e-b5f5-cb95871473bb", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:37Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d1e0ec3462f76b6bdad9a9c88b8386a0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:49 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b42e6127-43cc-42bc-a0b7-42fcfc1be891", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11915", + "x-ms-request-id": "798bce01-16f2-4d55-813a-84b7fb9db191", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080950Z:b42e6127-43cc-42bc-a0b7-42fcfc1be891", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:37Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6443dc136433a4c6bccb082e5b3e8dbb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "15856398-c387-4fdf-ad64-8d0052141ab0", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11914", + "x-ms-request-id": "051d3f60-02ea-4935-a775-18f0ac7994ed", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080951Z:15856398-c387-4fdf-ad64-8d0052141ab0", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:37Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "523adbed81c7f6883936337372e392de", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:52 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "99ab2334-7687-40da-8ad5-bb8516a3bb4f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11913", + "x-ms-request-id": "db5a3e85-3fa8-4eb3-a8ec-79b01b3e5fb1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080953Z:99ab2334-7687-40da-8ad5-bb8516a3bb4f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:37Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTc4OTQ4NDM3MXwwRDA1OEEwRDZFNzA0NzQyQjY4NzBGNjdGQUNEMjJCNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c02a9d5730ced0d3263c152b593d0f9c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3ab992d1-2695-44c3-80f4-ea2776e62d3c", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11912", + "x-ms-request-id": "060a5919-a005-420a-bafa-23e25ce94b37", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080954Z:3ab992d1-2695-44c3-80f4-ea2776e62d3c", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:37Z", + "lastActionDateTime": "2020-05-18 08:09:53Z", + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/North%20Central%20US/deletedVaults/sdktestvault1519?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2d5ef07867f7e3488f5f6cdc0d45a487-36a68cac59dc3c42-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "afdaed4c334991d8544d2bfd305331d8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "88", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e13052a5-b241-44e9-af3d-68dc38df8043", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11911", + "x-ms-request-id": "1fbf21c4-eaec-4062-aff1-65985ab44358", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080954Z:e13052a5-b241-44e9-af3d-68dc38df8043", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "error": { + "code": "ResourceNotFound", + "message": "The specified resource does not exist." + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/North%20Central%20US/deletedVaults/sdktestvault2188/purge?api-version=2019-09-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-97379f1e4c3c6a42875cd2b607112a5a-96bd0f4790325e4e-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "bdd72a39cc13bded086a2c8a6c5c9cfb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:09:54 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2e4dd1ce-4ea6-47c7-a9ab-211923cb00b6", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "c64ccf26-d7b6-415d-a24b-880ad74de93f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080955Z:2e4dd1ce-4ea6-47c7-a9ab-211923cb00b6", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "2ff23c0a52667f88001da7df074d25f7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:54 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7a97f0ee-4d26-4185-b500-1992aa70e663", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11910", + "x-ms-request-id": "bcae85a5-97cc-466e-b822-2bfd634c5b9a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080955Z:7a97f0ee-4d26-4185-b500-1992aa70e663", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:55Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "99d630b0ac2c56cf95b3f97b606bb832", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2c5b5405-0f44-4e90-8f75-79a9d0dc264b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11909", + "x-ms-request-id": "27b950be-5a75-4168-9b66-805ab06d8eb7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080956Z:2c5b5405-0f44-4e90-8f75-79a9d0dc264b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:55Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "2f8059ca6c6ad4950ea785eb3bb51c76", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:57 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a5fb5286-69c8-4842-b620-627f2d090108", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11908", + "x-ms-request-id": "27923c43-3e84-4265-a042-c8e6e69df723", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080958Z:a5fb5286-69c8-4842-b620-627f2d090108", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:55Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d4d1747206ff5ea66d9b9ab2580d1f94", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:58 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e12faf1a-856e-4137-8de8-14062b1559c9", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11907", + "x-ms-request-id": "f9f87de7-6310-4066-8ff3-ae1da2b45b47", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T080959Z:e12faf1a-856e-4137-8de8-14062b1559c9", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:55Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ae157464f6cd438c9b028a8427e31adf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:09:59 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "53d9ae39-fe00-4a6d-a24c-65f45d0c2353", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11906", + "x-ms-request-id": "19c9f050-3a3e-4f7c-8a86-6de329d34bbe", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081000Z:53d9ae39-fe00-4a6d-a24c-65f45d0c2353", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:55Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "eb088297e49ac333b221c1cfd2e27b01", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:01 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "20f09bb4-710d-4a13-b42c-f649418e803f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11905", + "x-ms-request-id": "07a6e3fa-0abb-481a-8ac8-b114009c5b52", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081002Z:20f09bb4-710d-4a13-b42c-f649418e803f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:55Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c786f0876d9f7ca8e78d38fd7b223789", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:02 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "78327424-c30c-4a0b-9de1-26a9243275e2", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11904", + "x-ms-request-id": "7ee8db30-3a8e-4f55-816e-9e809e6aa52b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081003Z:78327424-c30c-4a0b-9de1-26a9243275e2", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:55Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d61bba80340480f94151fbab34bd71b9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:03 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e21e051b-90ab-4880-b799-29550c79fa43", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11903", + "x-ms-request-id": "ea38a3d6-b47d-4a64-918e-b7c8b1840b94", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081004Z:e21e051b-90ab-4880-b799-29550c79fa43", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:55Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "36fd8986535c2940d98c030dab364790", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:05 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5f71bfb8-98a8-4857-b74c-d8f1a8814f29", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11902", + "x-ms-request-id": "78e61446-ea89-4d3b-a6b7-eea08eb48b65", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081006Z:5f71bfb8-98a8-4857-b74c-d8f1a8814f29", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:55Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "174e37eaa5c653fdf606854e72fd4729", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1f4c639b-8545-43f3-8762-2bd4445f816f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11901", + "x-ms-request-id": "bec71f37-796a-4bc4-8858-35118c256a82", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081007Z:1f4c639b-8545-43f3-8762-2bd4445f816f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:55Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f2767f1c00252c2c7af1fd7731ecd40b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:07 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e672836c-2bf8-4ba5-a97a-1b75798d2321", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11900", + "x-ms-request-id": "d47bcb75-66d2-43bc-b7d0-ce3e806c5e6f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081008Z:e672836c-2bf8-4ba5-a97a-1b75798d2321", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:55Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MTk2MDA5NDE5MXwzMjAwNjQwNEZDNTI0RkIzOUU5NzQzQjQ4RUM5MkUzOQ?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "fcc16b095a6fe1f28ca93f56cef1b7dc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c98735b1-653e-41a3-9b4d-521248ebc1ba", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11899", + "x-ms-request-id": "ef343382-aef6-4566-8f99-e929eaa143e0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081009Z:c98735b1-653e-41a3-9b4d-521248ebc1ba", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:09:55Z", + "lastActionDateTime": "2020-05-18 08:10:08Z", + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/North%20Central%20US/deletedVaults/sdktestvault2188?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-cee327cfa3c8964d8dd3a5e8d85a2ad8-3f5dcb4a3d91e948-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "2bf0d94555bfea6b0a219cd4a885210a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "88", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "325328e4-a26c-47e5-83bf-c9d7339204ce", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11898", + "x-ms-request-id": "98f39f10-daf4-4e16-b325-94bd4d01a735", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081010Z:325328e4-a26c-47e5-83bf-c9d7339204ce", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "error": { + "code": "ResourceNotFound", + "message": "The specified resource does not exist." + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/North%20Central%20US/deletedVaults/sdktestvault3995/purge?api-version=2019-09-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0955e66b5dfb454abd6561c720433f78-c750f2eae3230641-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "06447a314a3bc2ba8c94667bc0d65e88", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7d6d473b-f151-4838-a497-908a2f3e3ac0", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "295e3aab-44a9-4966-8059-0b136786fdce", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081010Z:7d6d473b-f151-4838-a497-908a2f3e3ac0", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "54253588b0adfaa01e2e9f2aeef02934", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b4ac0c19-7e50-492c-a02a-2ee57ad65b93", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11897", + "x-ms-request-id": "a2037a75-e3cb-4b27-928d-9d910e3bc69e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081010Z:b4ac0c19-7e50-492c-a02a-2ee57ad65b93", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:10:10Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "879a13c2c952880e2e8f0664586c046e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:11 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5bd7274c-6c2f-455c-b6f7-ea84f0c9ae3b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11896", + "x-ms-request-id": "54218a6f-b1c9-4308-a4e2-9ca79ad53a93", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081012Z:5bd7274c-6c2f-455c-b6f7-ea84f0c9ae3b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:10:10Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8bf2605b0ab08adb803839cc0921c60f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:12 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "84c1f018-ebe6-4c21-a7e9-74ba148a7f11", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11895", + "x-ms-request-id": "83574cbb-fe5d-4b22-b7f0-a87604b89104", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081013Z:84c1f018-ebe6-4c21-a7e9-74ba148a7f11", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:10:10Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "aa8bbdadb283beb3279d261ea93ba1b2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:13 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bc532064-f98a-4a07-859c-79b25cded959", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11894", + "x-ms-request-id": "c349770a-0b54-4e53-b0b7-63cb85e31c44", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081014Z:bc532064-f98a-4a07-859c-79b25cded959", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:10:10Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8ecf302a9dfdb8833810071a90417e0c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2465d82d-1987-4ba9-9d4b-c7d04ed7bca8", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11893", + "x-ms-request-id": "9e539c68-553f-484a-8f9f-19db16cd50f1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081016Z:2465d82d-1987-4ba9-9d4b-c7d04ed7bca8", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:10:10Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9bb7f7c85ae0a9ebac346413e4bce044", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f5fabd6f-b10d-49ba-8f3b-99d1c150e098", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11892", + "x-ms-request-id": "ec5fcae7-e553-421f-86f4-98a4291ac1f0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081017Z:f5fabd6f-b10d-49ba-8f3b-99d1c150e098", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:10:10Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d9a2869638510f1239d37173aa992de5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "39facb2c-e351-4f1e-934d-226671fa3d9c", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11891", + "x-ms-request-id": "6e29b020-374d-48bd-bf33-84c12f34de70", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081018Z:39facb2c-e351-4f1e-934d-226671fa3d9c", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:10:10Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b255191e0584d0d24426e1c83970d47b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:20 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6af61ee4-d682-4411-9023-9b90702584de", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11890", + "x-ms-request-id": "bfd54a3e-4627-40e6-9c80-76bd8ee722e2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081020Z:6af61ee4-d682-4411-9023-9b90702584de", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:10:10Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0a83c22fa49f90bbe4a7620de878fe12", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "80dd1f1a-1d5c-4e7b-bbb5-cdbb23667c58", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11889", + "x-ms-request-id": "d67e15f7-6374-4ac2-8bf7-476b786ebb26", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081021Z:80dd1f1a-1d5c-4e7b-bbb5-cdbb23667c58", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:10:10Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cbf57e062e6791c0b4d2952b5649d5c9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:22 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1641bbf0-eb20-4baf-8829-2fe14ee83307", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11888", + "x-ms-request-id": "36131279-839b-4383-a399-414ab00b4913", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081022Z:1641bbf0-eb20-4baf-8829-2fe14ee83307", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:10:10Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e843f6fe231679465ec5cddda2c4e7cc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "35eb018d-f8ae-477a-9757-021202134c0b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11887", + "x-ms-request-id": "4065b2e8-3efd-4293-ac21-56dc32881521", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081024Z:35eb018d-f8ae-477a-9757-021202134c0b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:10:10Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2MjExNDg5NTQwN3xFM0VBQTE3NjhDNjQ0MDg3QTJEQzMxMUMxMkFERjFDQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "bbc1ce28097a011402f155cc0f8f399b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f1d16a66-0088-41c5-ac93-5f56a1ceda07", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11886", + "x-ms-request-id": "2a47b227-921e-4cda-9d4b-e36804862918", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081025Z:f1d16a66-0088-41c5-ac93-5f56a1ceda07", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:10:10Z", + "lastActionDateTime": "2020-05-18 08:10:24Z", + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/North%20Central%20US/deletedVaults/sdktestvault3995?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ced3e63ac9399043980f4112cf293e75-7d57e71978dd2f41-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f20e99d11534e3fc377b6ca161e3eeef", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "88", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:10:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e3c6c2ba-edc6-4462-8faf-0c5d97ce1758", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11885", + "x-ms-request-id": "f8084fe0-8924-4f8f-a223-7677d952be3f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081025Z:e3c6c2ba-edc6-4462-8faf-0c5d97ce1758", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "error": { + "code": "ResourceNotFound", + "message": "The specified resource does not exist." + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg8554?api-version=2017-05-10", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95133ce2710bcc4380e8a078a4ac2273-c167526f7550ea4e-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8703c8ea1a88f54ee242e524cd7a6ace", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:31 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "97c5669c-27bb-4732-b879-67d0af051f08", + "x-ms-ratelimit-remaining-subscription-deletes": "14994", + "x-ms-request-id": "97c5669c-27bb-4732-b879-67d0af051f08", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081031Z:97c5669c-27bb-4732-b879-67d0af051f08" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "47e16603b18bb7134b190ff130d816bd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:32 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "23df4fcb-d67d-447b-94c8-6873f4e8db30", + "x-ms-ratelimit-remaining-subscription-reads": "11884", + "x-ms-request-id": "23df4fcb-d67d-447b-94c8-6873f4e8db30", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081032Z:23df4fcb-d67d-447b-94c8-6873f4e8db30" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "2f159d11e5d7f53a2ff1b5a9954f596f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c74b6bc0-39e1-49b1-aee5-6d43aab95897", + "x-ms-ratelimit-remaining-subscription-reads": "11883", + "x-ms-request-id": "c74b6bc0-39e1-49b1-aee5-6d43aab95897", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081034Z:c74b6bc0-39e1-49b1-aee5-6d43aab95897" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6720c6a22298db431e54be9ce5a6e2fa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:35 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8d963fae-7900-452e-bcda-693a5221510d", + "x-ms-ratelimit-remaining-subscription-reads": "11882", + "x-ms-request-id": "8d963fae-7900-452e-bcda-693a5221510d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081035Z:8d963fae-7900-452e-bcda-693a5221510d" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "feedc7c7705d1d472bec179afb6921fb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:36 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b299ed84-ad97-47ee-bfc0-82de675fb3e0", + "x-ms-ratelimit-remaining-subscription-reads": "11881", + "x-ms-request-id": "b299ed84-ad97-47ee-bfc0-82de675fb3e0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081037Z:b299ed84-ad97-47ee-bfc0-82de675fb3e0" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "694e9fbfafb7ee245a391082279e0f88", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:38 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "86c44243-d76c-487c-aff7-089cba301b50", + "x-ms-ratelimit-remaining-subscription-reads": "11880", + "x-ms-request-id": "86c44243-d76c-487c-aff7-089cba301b50", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081038Z:86c44243-d76c-487c-aff7-089cba301b50" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cee2bb0f5a6132127e023bac0ba8dfb5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:39 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "322d9e4e-51a9-4b46-9bee-dd080b953a6f", + "x-ms-ratelimit-remaining-subscription-reads": "11879", + "x-ms-request-id": "322d9e4e-51a9-4b46-9bee-dd080b953a6f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081040Z:322d9e4e-51a9-4b46-9bee-dd080b953a6f" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "45dcc23378581842a2fea32360c5f68d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:41 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "793a13a2-6c2a-466d-b41c-22661752dbc9", + "x-ms-ratelimit-remaining-subscription-reads": "11878", + "x-ms-request-id": "793a13a2-6c2a-466d-b41c-22661752dbc9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081041Z:793a13a2-6c2a-466d-b41c-22661752dbc9" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "408b8edc5286649a8d1ceab47378e3b2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:42 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1ec356ff-d746-4961-95b8-f4a5bd40ee99", + "x-ms-ratelimit-remaining-subscription-reads": "11877", + "x-ms-request-id": "1ec356ff-d746-4961-95b8-f4a5bd40ee99", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081043Z:1ec356ff-d746-4961-95b8-f4a5bd40ee99" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "654f5a59cac1963078c92c62b7eed1b9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:44 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "02315e08-5c40-433a-8592-3864a0daba55", + "x-ms-ratelimit-remaining-subscription-reads": "11876", + "x-ms-request-id": "02315e08-5c40-433a-8592-3864a0daba55", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081044Z:02315e08-5c40-433a-8592-3864a0daba55" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7ccfae0c9f1de02e2877b83b8d8ea529", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4e17701a-e4b7-41fb-8728-f79b2edf761a", + "x-ms-ratelimit-remaining-subscription-reads": "11875", + "x-ms-request-id": "4e17701a-e4b7-41fb-8728-f79b2edf761a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081046Z:4e17701a-e4b7-41fb-8728-f79b2edf761a" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "05c9f01b917512cb5df4c7bd2637ad9f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:47 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b8a455c8-1d21-436a-b32b-25c35dd97460", + "x-ms-ratelimit-remaining-subscription-reads": "11874", + "x-ms-request-id": "b8a455c8-1d21-436a-b32b-25c35dd97460", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081047Z:b8a455c8-1d21-436a-b32b-25c35dd97460" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c5a8314b67a8ba952b6e3d4a12f508ea", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:48 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f46539c8-b940-432c-b9ae-038a525187aa", + "x-ms-ratelimit-remaining-subscription-reads": "11873", + "x-ms-request-id": "f46539c8-b940-432c-b9ae-038a525187aa", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081049Z:f46539c8-b940-432c-b9ae-038a525187aa" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c6470224cb247a43e2bd1e28d771baf0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:50 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a537aa7b-0971-4dca-9414-17233b4295b5", + "x-ms-ratelimit-remaining-subscription-reads": "11872", + "x-ms-request-id": "a537aa7b-0971-4dca-9414-17233b4295b5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081050Z:a537aa7b-0971-4dca-9414-17233b4295b5" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5cf018cae0e6b4805b0fda0754810068", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:52 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0f2e9211-5be1-4544-9a4c-ee4ba2bf7f29", + "x-ms-ratelimit-remaining-subscription-reads": "11871", + "x-ms-request-id": "0f2e9211-5be1-4544-9a4c-ee4ba2bf7f29", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081052Z:0f2e9211-5be1-4544-9a4c-ee4ba2bf7f29" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "2499ddece6ef7f7bee2de2eb486ce2ba", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:53 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e7afa8df-50b5-45c2-849e-7efad77195bd", + "x-ms-ratelimit-remaining-subscription-reads": "11870", + "x-ms-request-id": "e7afa8df-50b5-45c2-849e-7efad77195bd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081053Z:e7afa8df-50b5-45c2-849e-7efad77195bd" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f9804cb4ac05440481936a15f13b2660", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:54 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "94458dfa-c0cf-4355-ab15-0d54751471dc", + "x-ms-ratelimit-remaining-subscription-reads": "11869", + "x-ms-request-id": "94458dfa-c0cf-4355-ab15-0d54751471dc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081055Z:94458dfa-c0cf-4355-ab15-0d54751471dc" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "fa3cb6bc96d8e3019d706db8fd956bee", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9fa86bd0-f71e-4fa6-93a6-0fa70c0e23fd", + "x-ms-ratelimit-remaining-subscription-reads": "11868", + "x-ms-request-id": "9fa86bd0-f71e-4fa6-93a6-0fa70c0e23fd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081056Z:9fa86bd0-f71e-4fa6-93a6-0fa70c0e23fd" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0853202c06013f63d855a25c7c668eb2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:57 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "84f37f50-2da5-4896-8dfc-ed3231868f1f", + "x-ms-ratelimit-remaining-subscription-reads": "11867", + "x-ms-request-id": "84f37f50-2da5-4896-8dfc-ed3231868f1f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081058Z:84f37f50-2da5-4896-8dfc-ed3231868f1f" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "922e8206e8301ee14b9d5b943e4b46ec", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:10:59 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2420bb28-697e-4c86-9470-6d01f58af1ef", + "x-ms-ratelimit-remaining-subscription-reads": "11866", + "x-ms-request-id": "2420bb28-697e-4c86-9470-6d01f58af1ef", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081100Z:2420bb28-697e-4c86-9470-6d01f58af1ef" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d0e87b271ee8b55e53fc2183f3a46637", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:11:01 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5330042a-99b1-48cb-b145-50fc5cda341c", + "x-ms-ratelimit-remaining-subscription-reads": "11865", + "x-ms-request-id": "5330042a-99b1-48cb-b145-50fc5cda341c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081101Z:5330042a-99b1-48cb-b145-50fc5cda341c" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7ab2bbe1d96644be3e35bd64abce008d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:11:02 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3f13fd14-ea7c-426b-91a5-3ccd531825fb", + "x-ms-ratelimit-remaining-subscription-reads": "11864", + "x-ms-request-id": "3f13fd14-ea7c-426b-91a5-3ccd531825fb", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081103Z:3f13fd14-ea7c-426b-91a5-3ccd531825fb" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0034b60ebd7de8c923783e33c65e2ba6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:11:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fa271c26-b4cf-4ad9-8be8-628dd3c36b9a", + "x-ms-ratelimit-remaining-subscription-reads": "11863", + "x-ms-request-id": "fa271c26-b4cf-4ad9-8be8-628dd3c36b9a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081104Z:fa271c26-b4cf-4ad9-8be8-628dd3c36b9a" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NTU0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "83b32436cb994e85bda392b361fa0a85", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:11:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "276c2e48-f483-4034-9595-59a0ea1169d4", + "x-ms-ratelimit-remaining-subscription-reads": "11862", + "x-ms-request-id": "276c2e48-f483-4034-9595-59a0ea1169d4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081106Z:276c2e48-f483-4034-9595-59a0ea1169d4" + }, + "ResponseBody": [] + } + ], + "Variables": { + "CLIENT_ID": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "ObjectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "RandomSeed": "1067057456", + "SUBSCRIPTION_ID": "0b1f6471-1bf0-4dda-aec3-cb9272f09590", + "TENANT_ID": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a" + } +} \ No newline at end of file diff --git a/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementListDeletedVaultsAsync.json b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementListDeletedVaultsAsync.json new file mode 100644 index 0000000000000..8692dfb02d701 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementListDeletedVaultsAsync.json @@ -0,0 +1,7394 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-3680048cc7442645b373618905714449-212b23e1db372c4a-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f201a86de736ef43b36664ecbebb836d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7496", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:17:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fcdc5282-419d-4e3c-83ca-01b4fe526108", + "x-ms-ratelimit-remaining-subscription-reads": "11646", + "x-ms-request-id": "fcdc5282-419d-4e3c-83ca-01b4fe526108", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081757Z:fcdc5282-419d-4e3c-83ca-01b4fe526108" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault", + "namespace": "Microsoft.KeyVault", + "authorizations": [ + { + "applicationId": "cfa8b339-82a2-471a-a3c9-0fc0be7a4093", + "roleDefinitionId": "1cf9858a-28a2-4228-abba-94e606305b95" + }, + { + "applicationId": "589d5083-6f11-4d30-a62a-a4b316a14abf" + } + ], + "resourceTypes": [ + { + "resourceType": "vaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove" + }, + { + "resourceType": "vaults/secrets", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/accessPolicies", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "operations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01", + "2014-12-19-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "checkNameAvailability", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deleteVirtualNetworkOrSubnets", + "locations": [ + "East US", + "North Central US", + "West Europe", + "North Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West Central US", + "West US 2", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Central US EUAP", + "East US 2 EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ] + }, + { + "resourceType": "locations/operationResults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/eventGridFilters", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14" + ] + } + ], + "registrationState": "Registered" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg542?api-version=2017-05-10", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "31", + "Content-Type": "application/json", + "traceparent": "00-6fc44306fddf5c4cad5ad450db2a1fac-307008460f895c46-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "923f7547f0b3ea98c8420b9a6c3e837c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "237", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:17:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2f3f0850-2548-4754-a442-c66b9aa2bd77", + "x-ms-ratelimit-remaining-subscription-writes": "1178", + "x-ms-request-id": "2f3f0850-2548-4754-a442-c66b9aa2bd77", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081759Z:2f3f0850-2548-4754-a442-c66b9aa2bd77" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542", + "name": "sdktestrg542", + "location": "northcentralus", + "tags": { + "StorageType": "Standard_LRS", + "type": "test" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "660", + "Content-Type": "application/json", + "traceparent": "00-45c1fd02b5f881459256eba40d9f4528-1e41fc863f99a544-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a73e9d96ad27115c414f0ce7cd87062f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "963", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cd144640-36f5-454e-85e2-7ce23036956b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1177", + "x-ms-request-id": "7945b3aa-d931-45c7-94e7-efc094182878", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081806Z:cd144640-36f5-454e-85e2-7ce23036956b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099", + "name": "sdktestvault6099", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault6099.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d0ecd957a0f4924d35a2ae49dee07584", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d6845dce-f5b1-4996-8ba2-66bb5a9d641b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11645", + "x-ms-request-id": "85ffc3ab-901e-4be1-ac20-7a4341d4622c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081807Z:d6845dce-f5b1-4996-8ba2-66bb5a9d641b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099", + "name": "sdktestvault6099", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault6099.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1af33c93fef6de29343639827507c918", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c7f309f5-a1d6-424f-b8a4-2814ddcc6d40", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11644", + "x-ms-request-id": "64f79704-f1ba-43fd-9307-3777d0b8df88", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081808Z:c7f309f5-a1d6-424f-b8a4-2814ddcc6d40", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099", + "name": "sdktestvault6099", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault6099.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f4909b6e369aaa3a1bf233160920288d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9c93dc10-a19b-430f-8d24-18bd350d7c77", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11643", + "x-ms-request-id": "187bc699-4e35-4e39-9b14-ff7c8f5564ba", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081810Z:9c93dc10-a19b-430f-8d24-18bd350d7c77", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099", + "name": "sdktestvault6099", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault6099.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0bc2b42fc6355879af0e9cbe66cb1d2e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:10 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ed19624d-66c7-4904-9af4-340c1b178a4d", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11642", + "x-ms-request-id": "c7f0a166-4901-43a9-a6f8-0dfcd3612a92", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081811Z:ed19624d-66c7-4904-9af4-340c1b178a4d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099", + "name": "sdktestvault6099", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault6099.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "43da96d8804f5ce90249ff03cb12d414", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9cc36084-d473-4721-a275-c7654ff9f9d4", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11641", + "x-ms-request-id": "5d789bc8-365a-4aac-b889-d8efd61afa87", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081812Z:9cc36084-d473-4721-a275-c7654ff9f9d4", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099", + "name": "sdktestvault6099", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault6099.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c053ab0ebe45a8e32238448c9a7c4350", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:13 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ed826d48-539f-4eaa-88cf-ac38ff9f3a8e", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11640", + "x-ms-request-id": "d93bf36b-8dd1-451c-bcba-734417d2bf39", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081814Z:ed826d48-539f-4eaa-88cf-ac38ff9f3a8e", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099", + "name": "sdktestvault6099", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault6099.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "733d04d5e546ae3eca6508ebc6758d9d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7a9e2a7d-c5dd-4d09-b21b-b0c2117cea34", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11639", + "x-ms-request-id": "c613a1bd-c427-452b-ab73-0605ec75dcf8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081815Z:7a9e2a7d-c5dd-4d09-b21b-b0c2117cea34", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099", + "name": "sdktestvault6099", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault6099.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "baaf88395c771ae9b23120163b5dc285", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fcd295c9-6cba-48f2-856f-839759b69d01", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11638", + "x-ms-request-id": "422f7b15-a3af-4c68-b588-c051fb3315c6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081816Z:fcd295c9-6cba-48f2-856f-839759b69d01", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099", + "name": "sdktestvault6099", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault6099.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c62eae0661d428cd6da4f6e0b5f7e1ac", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7c536a61-d04d-44bc-a9b6-3b4d3413efb5", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11637", + "x-ms-request-id": "66bc00e7-8413-40c0-bfaf-29efdaa89e99", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081818Z:7c536a61-d04d-44bc-a9b6-3b4d3413efb5", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099", + "name": "sdktestvault6099", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault6099.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1253a7ab88cc78d81b23c014c427726d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "828f7bf2-7d66-472f-81ae-a31641734907", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11636", + "x-ms-request-id": "ee5daabd-a378-4ecb-be7d-adb4fb4c3786", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081819Z:828f7bf2-7d66-472f-81ae-a31641734907", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099", + "name": "sdktestvault6099", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault6099.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "18e583a2c647d8c8ba874dd2660964ba", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "959", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fc483c4f-70fc-4625-94df-18db6c3751e7", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11635", + "x-ms-request-id": "1e11a48a-b05c-4b49-bf1f-da5d64426034", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081820Z:fc483c4f-70fc-4625-94df-18db6c3751e7", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099", + "name": "sdktestvault6099", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault6099.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-613a4e68d7d0af46bfdea0aa357dc47d-7d81bd8bf27be44f-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "946b744faf0a7db9d6b5aab1a0b96346", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:18:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6f591184-0e24-4d2a-a961-4a56b9b88a42", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14979", + "x-ms-request-id": "a531a4af-1365-4ddb-93e0-c4d033f4ea91", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081823Z:6f591184-0e24-4d2a-a961-4a56b9b88a42", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/North%20Central%20US/deletedVaults/sdktestvault6099?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-9eb41e0b86f059439827fd6d9fd0a416-865f200b23a11c4a-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "323d8932c912e465df7b58453b051212", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "542", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ac6850e2-6677-4426-8cee-bc51d80a789c", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11634", + "x-ms-request-id": "c263170a-671b-4f65-8939-0cc00280b811", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081824Z:ac6850e2-6677-4426-8cee-bc51d80a789c", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/sdktestvault6099", + "name": "sdktestvault6099", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "deletionDate": "2020-05-18T08:18:21Z", + "scheduledPurgeDate": "2020-08-16T08:18:21Z" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "660", + "Content-Type": "application/json", + "traceparent": "00-563615a8b0e80048945a6605520f99f0-ded6459a0a501a47-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "bb50c50563dec9f26741911c17370123", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "960", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cca94d2c-e01f-4bbc-b034-b9c93bd4646d", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1176", + "x-ms-request-id": "2552ebf9-b880-45fa-a448-bf2259f16bcb", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081827Z:cca94d2c-e01f-4bbc-b034-b9c93bd4646d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557", + "name": "sdktestvault557", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault557.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f39bf2978a1325534a68aa87d3c7c743", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "961", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d888b5ca-0baa-4e7f-a717-5fe1cdbc5ba8", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11633", + "x-ms-request-id": "47ded731-99c0-4917-b8b0-bcbc1599ce69", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081828Z:d888b5ca-0baa-4e7f-a717-5fe1cdbc5ba8", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557", + "name": "sdktestvault557", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault557.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6434225746355d8d3f413429d49b5625", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "961", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "508ec04b-b74f-4541-8d04-9e4f26be3873", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11632", + "x-ms-request-id": "e5992b3a-ed33-4ac2-a68d-6bc1c7f75361", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081830Z:508ec04b-b74f-4541-8d04-9e4f26be3873", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557", + "name": "sdktestvault557", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault557.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "2584ee710d9b7c0f4db681c9fdfd3bbf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "961", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6962f83a-5e43-43bf-9491-fbef3e15e88f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11631", + "x-ms-request-id": "bfb1914e-fdbc-430f-9234-cb69aa80696c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081831Z:6962f83a-5e43-43bf-9491-fbef3e15e88f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557", + "name": "sdktestvault557", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault557.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "51004bec6b0e516c643eb3d1552951ae", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "961", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8541467f-cedf-47e2-b872-be2f53f96960", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11630", + "x-ms-request-id": "ec60ec16-3d21-44ca-a512-6264fbe0e0c4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081832Z:8541467f-cedf-47e2-b872-be2f53f96960", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557", + "name": "sdktestvault557", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault557.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e4168412a24349a812b7177fc4c45f42", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "961", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "dfc45d88-8c58-46cc-95a7-474614f13369", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11629", + "x-ms-request-id": "69dd9b6e-5d54-47df-8e28-37b783655804", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081834Z:dfc45d88-8c58-46cc-95a7-474614f13369", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557", + "name": "sdktestvault557", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault557.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "883c7506059a05178233c05d5a3e2623", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "961", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "afc11358-181a-431e-bfff-705cd8da871b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11628", + "x-ms-request-id": "d0db96f0-af6f-45f4-8448-8435a488b80a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081835Z:afc11358-181a-431e-bfff-705cd8da871b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557", + "name": "sdktestvault557", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault557.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "78b6d26556e74a7ba3b73e5653ed8ca0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "961", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fce5fd30-8b40-4b33-95cb-63cfbe65f062", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11627", + "x-ms-request-id": "dd418943-c942-418e-a610-a230cfe92d04", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081836Z:fce5fd30-8b40-4b33-95cb-63cfbe65f062", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557", + "name": "sdktestvault557", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault557.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e0ca71dec8ec0c146d106210e24aefd4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "961", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4d22045e-83e0-4695-9925-21f464b2a824", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11626", + "x-ms-request-id": "99adfef1-894e-4d51-87c4-89ace747a30e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081837Z:4d22045e-83e0-4695-9925-21f464b2a824", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557", + "name": "sdktestvault557", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault557.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f119f390e60db05bf9f2e5e3c6c1b194", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "961", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:38 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a2935d1c-1bbb-49ce-9df5-5100621cd595", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11625", + "x-ms-request-id": "a7c40935-9e24-455f-9fe2-9d7a06a69862", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081839Z:a2935d1c-1bbb-49ce-9df5-5100621cd595", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557", + "name": "sdktestvault557", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault557.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e87f1fa646739c36beaa0bd6f36b6858", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "961", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9bbc7501-3822-40a2-86f5-35f4629bd245", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11624", + "x-ms-request-id": "636449fa-377a-4451-843b-d75e60efaa84", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081840Z:9bbc7501-3822-40a2-86f5-35f4629bd245", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557", + "name": "sdktestvault557", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault557.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5fc56ac79ad3f893161ae7fae33045ac", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "956", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cb40c343-7a2e-417b-8744-424deb3a6aa1", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11623", + "x-ms-request-id": "a69e7088-d216-4283-82a3-ba7f77b53530", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081841Z:cb40c343-7a2e-417b-8744-424deb3a6aa1", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557", + "name": "sdktestvault557", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault557.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f9a536ad3c616a4490f469421d82b162-cefe3bb486e3b147-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c269ce5e06cb4a60bc7d3263da84bc8d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:18:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "27c670de-efea-44f8-b7a2-d5db0cf27654", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14978", + "x-ms-request-id": "d07d4e18-0a1b-458b-9447-4ced06a6fa72", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081845Z:27c670de-efea-44f8-b7a2-d5db0cf27654", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/North%20Central%20US/deletedVaults/sdktestvault557?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f2617e9c94f6a4459ce4a90c4818eb9d-ef30a9aa45e3ac44-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5c1b8c8a51fb0bc08c86d2585e3cb98e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "539", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "74f9e716-0b55-421b-bd5c-363dd106f59b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11622", + "x-ms-request-id": "28407750-280c-45c3-9e6d-b6f2db5e1e05", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081845Z:74f9e716-0b55-421b-bd5c-363dd106f59b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/sdktestvault557", + "name": "sdktestvault557", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "deletionDate": "2020-05-18T08:18:42Z", + "scheduledPurgeDate": "2020-08-16T08:18:42Z" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "660", + "Content-Type": "application/json", + "traceparent": "00-b25925215464d544865e4c1ed25c54ae-6d94f8f02f5b344b-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0225775f8da509c17ba25668301d915d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "963", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7294be0f-6cf0-4d73-a622-4e3f8d493979", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1175", + "x-ms-request-id": "dfd8f161-6539-44cd-8ebc-21b88998d3ea", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081848Z:7294be0f-6cf0-4d73-a622-4e3f8d493979", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231", + "name": "sdktestvault1231", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1231.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0d7bfea48a97ffe45a5280ae6aa35b69", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "003d9d83-1c32-494e-b509-a44ee253e78f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11621", + "x-ms-request-id": "c7a4c98c-38dc-4b72-a784-0e76fe0d2cab", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081850Z:003d9d83-1c32-494e-b509-a44ee253e78f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231", + "name": "sdktestvault1231", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1231.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cd04fb407962af7a6a17a46f498d028f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4ede431e-8650-40e3-9009-93d5ea27f66d", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11620", + "x-ms-request-id": "12ad1d3d-3fd6-4771-93a5-fe783b695c41", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081851Z:4ede431e-8650-40e3-9009-93d5ea27f66d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231", + "name": "sdktestvault1231", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1231.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "31c3912284a1cfc58b56b997305ea3ba", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "70b50fae-ba26-447c-808d-0f8afc58395a", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11619", + "x-ms-request-id": "c1728248-2aa6-4247-940b-f3b95da4f9f0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081852Z:70b50fae-ba26-447c-808d-0f8afc58395a", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231", + "name": "sdktestvault1231", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1231.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0cf2dadab3e62a6184cca27fe674b6cd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7c76518d-9751-4d4f-ae18-35bd5384d51d", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11618", + "x-ms-request-id": "0cc5d6cf-d02e-4b8d-9832-a04f7406563b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081854Z:7c76518d-9751-4d4f-ae18-35bd5384d51d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231", + "name": "sdktestvault1231", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1231.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d88cf0502ae0bcc83535410bbfe37e0c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1e37c69f-0df2-48d3-b90e-3a5023e73de4", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11617", + "x-ms-request-id": "22515d06-e2dd-43bf-b3fa-5f747a43ce03", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081855Z:1e37c69f-0df2-48d3-b90e-3a5023e73de4", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231", + "name": "sdktestvault1231", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1231.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6e95ea74f69a6fa83098acd5e146e816", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e0a9ae7a-3208-40da-8fa4-91f5fd7684bb", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11616", + "x-ms-request-id": "d7f70414-a3a8-4ad1-819d-027dfeaacedc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081857Z:e0a9ae7a-3208-40da-8fa4-91f5fd7684bb", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231", + "name": "sdktestvault1231", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1231.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "4047eca0cad2afda1236d6b171556ba1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "105407fa-b7d4-4257-928b-a8888900fda1", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11615", + "x-ms-request-id": "48f5887a-9fcf-4021-8388-f4861f252e5f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081858Z:105407fa-b7d4-4257-928b-a8888900fda1", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231", + "name": "sdktestvault1231", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1231.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "fb0b964d47de5933471ca8477df2dbef", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:18:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4be29654-5900-4c00-87d1-2ecfdbb08473", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11614", + "x-ms-request-id": "3d6d7147-9d07-471c-854b-4b1b2c6c2b66", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081859Z:4be29654-5900-4c00-87d1-2ecfdbb08473", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231", + "name": "sdktestvault1231", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1231.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d36b2b4c3e9baa3a10e65c631ff7feda", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0eef83f4-93a6-4279-9104-7913d99a13e3", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11613", + "x-ms-request-id": "0d5ae0cb-aca7-478f-9576-f90dab817da8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081901Z:0eef83f4-93a6-4279-9104-7913d99a13e3", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231", + "name": "sdktestvault1231", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1231.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "4a870b2ded3a5937b9edf8b52192311f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e095145f-052d-491a-8057-51995e6b9d5c", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11612", + "x-ms-request-id": "6b9c2331-1431-411f-8a99-db9c132ceab3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081902Z:e095145f-052d-491a-8057-51995e6b9d5c", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231", + "name": "sdktestvault1231", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1231.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "4564e75b97ea0f055c60ebf8ebcf3a50", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "959", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9feda322-d9c6-4548-b71e-9c1595722629", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11611", + "x-ms-request-id": "f437c2a3-ae69-4c67-a7e6-5c670c2f5fe5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081903Z:9feda322-d9c6-4548-b71e-9c1595722629", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231", + "name": "sdktestvault1231", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1231.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f4e1d5d512959f4091bd449166d01575-3484777d73eeed4a-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7219ce1d906b5fb4f31119ae4584887d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:19:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0ca4a491-166e-4538-8c72-fbe466eb3562", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14977", + "x-ms-request-id": "a355b7c3-e63e-4de0-afc2-8abbf8a207e8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081906Z:0ca4a491-166e-4538-8c72-fbe466eb3562", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/North%20Central%20US/deletedVaults/sdktestvault1231?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-4e1556d830af7b4da8454002336a24cd-2d9db7ca98de7b40-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "37083cb4b89295f00577eeda023e6ee9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "542", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b880f675-8180-4f10-a113-bf6b8f06a3a5", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11610", + "x-ms-request-id": "b1d2f8b6-5bed-49a2-9fd4-9912c4818824", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081907Z:b880f675-8180-4f10-a113-bf6b8f06a3a5", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/sdktestvault1231", + "name": "sdktestvault1231", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "deletionDate": "2020-05-18T08:19:04Z", + "scheduledPurgeDate": "2020-08-16T08:19:04Z" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/deletedVaults?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5398a7b2bf78cab4330551d87d57c9d8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "25728", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "43dfa0e5-66a3-4b22-ae7d-8af16fc8cde0", + "x-ms-original-request-ids": [ + "72229876-bc0d-47d8-86b6-5cdc40992733", + "34bd70ef-dfdc-4af5-845f-0a5fa3435253", + "a03bcdfc-b17a-4eb9-858a-d9cdd2d28a47", + "163286b0-6ea2-459b-9eb9-4e1e3e64e03e", + "65a91452-6b62-4e15-9f3c-e8f87ac069ea", + "b98cfee7-d5ae-41f2-9d6d-e0c91736a670", + "5294ed0f-be69-49a9-995b-71fa605533c1", + "ae809f06-a2eb-4791-ac43-b37d192a8c3c", + "d297e3ec-9df1-48ed-b918-b7d3351c37de", + "9a6147fc-1155-4efb-8c19-f0b0e1cc99e5", + "84111197-5de8-4741-b036-2f013456a64f", + "76bb88e8-bf06-4965-b228-3092da500074", + "88487c4a-d950-48c9-b0af-794e05add7fd", + "ba857d82-1ebb-44a8-bf32-6bddf5aea7ad", + "fced40d6-a89f-4e9a-a6af-324461312c3c", + "fd0b6116-239f-43aa-860b-416cb199cf48", + "10f103a0-2317-4500-835e-4f0d077aad30", + "af00bd63-8777-4f09-b197-2ab63179b134", + "62c948ab-ff86-4b91-9f90-eab1915b83a7", + "c2390971-4ff2-48f5-9ba0-60daedf9e2f0", + "3cc641bb-bae8-4238-b63d-c3b5db1da6d9", + "9f244cd6-404d-4cee-8e1a-9bd0c7ef8f68", + "126fcf28-a9e8-4cb5-94ab-5602314722f3", + "ca3539fd-40fe-4738-941f-83cf4806ce45", + "173ce17a-c734-4a37-b3ab-c17903c02fbd", + "330e3441-4da1-4549-a089-845b6221151a", + "4ea9fe48-3ef4-4b9a-9836-4b2a2f631077", + "2740e237-d963-422e-b0c4-2258991baf3a", + "680e93dd-82f4-4427-b9b5-1814d6729528", + "fedaea95-4551-483e-b5c2-20ea5a762f39", + "502fb26e-8576-42f1-a499-daa576dd0b0e", + "fdce5c9c-0980-4437-a0d1-cc4239b36313", + "73878320-7de7-4e32-a263-ea83ca8f210a", + "9f8d19af-06aa-42df-9e87-aec90aa24554", + "c3884c1a-8099-4675-9cad-e32e84540818" + ], + "x-ms-ratelimit-remaining-subscription-reads": "11609", + "x-ms-request-id": "43dfa0e5-66a3-4b22-ae7d-8af16fc8cde0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081911Z:43dfa0e5-66a3-4b22-ae7d-8af16fc8cde0" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/sdktestvault1231", + "name": "sdktestvault1231", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault1231", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "deletionDate": "2020-05-18T08:19:04Z", + "scheduledPurgeDate": "2020-08-16T08:19:04Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/sdktestvault557", + "name": "sdktestvault557", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault557", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "deletionDate": "2020-05-18T08:18:42Z", + "scheduledPurgeDate": "2020-08-16T08:18:42Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/sdktestvault6099", + "name": "sdktestvault6099", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg542/providers/Microsoft.KeyVault/vaults/sdktestvault6099", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "deletionDate": "2020-05-18T08:18:21Z", + "scheduledPurgeDate": "2020-08-16T08:18:21Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/sdktestvault7780", + "name": "sdktestvault7780", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "deletionDate": "2020-05-18T08:16:06Z", + "scheduledPurgeDate": "2020-08-16T08:16:06Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/deletedVaults/sdktestvault5737", + "name": "sdktestvault5737", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "deletionDate": "2020-05-18T08:14:57Z", + "scheduledPurgeDate": "2020-08-16T08:14:57Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus/deletedVaults/mysqljhilwhpmaii32pnguv5", + "name": "mysqljhilwhpmaii32pnguv5", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgxwmpnupm5fxfx2lgnuayxrylighipskpgpbw4sfli7k2dmpzzq47rerd6mlu3hzap/providers/Microsoft.KeyVault/vaults/mysqljhilwhpmaii32pnguv5", + "location": "eastus", + "tags": {}, + "deletionDate": "2020-05-16T02:48:02Z", + "scheduledPurgeDate": "2020-08-14T02:48:02Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus/deletedVaults/pgsqlzev7oihpvc73cgwzjaw", + "name": "pgsqlzev7oihpvc73cgwzjaw", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgnzrpogu26v5z7uravh53ra5yqyme3765v7xsfaukoupbokeahpksexsdf4inmdqys/providers/Microsoft.KeyVault/vaults/pgsqlzev7oihpvc73cgwzjaw", + "location": "eastus", + "tags": {}, + "deletionDate": "2020-05-16T02:47:03Z", + "scheduledPurgeDate": "2020-08-14T02:47:03Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus/deletedVaults/pgsqlha7p5d6mvqk67sjqwzy", + "name": "pgsqlha7p5d6mvqk67sjqwzy", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgetvwoel4i7alblv237hh6fnaotrxsd6pxyzzgbdthlogulne4meuvc2dq5wm76kzw/providers/Microsoft.KeyVault/vaults/pgsqlha7p5d6mvqk67sjqwzy", + "location": "eastus", + "tags": {}, + "deletionDate": "2020-05-16T02:22:17Z", + "scheduledPurgeDate": "2020-08-14T02:22:17Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus/deletedVaults/cmk-test-keyvaultauuq5k2", + "name": "cmk-test-keyvaultauuq5k2", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgn3rjttncusnm35ovddkqaxg24umalpfgmta3tehl2rsvbelhi6tommpnzyt6agx7g/providers/Microsoft.KeyVault/vaults/cmk-test-keyvaultauuq5k2", + "location": "eastus", + "tags": {}, + "deletionDate": "2020-05-16T01:06:52Z", + "scheduledPurgeDate": "2020-08-14T01:06:52Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus/deletedVaults/mysqle4trgg6blzplrbbucp3", + "name": "mysqle4trgg6blzplrbbucp3", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgqrjgqxtopmpdnkogpcdthr275qclj3for7jrrf3cvkuigtpvfnnhfvmk7c2r34ija/providers/Microsoft.KeyVault/vaults/mysqle4trgg6blzplrbbucp3", + "location": "eastus", + "tags": {}, + "deletionDate": "2020-05-16T00:39:09Z", + "scheduledPurgeDate": "2020-08-14T00:39:09Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westeurope/deletedVaults/kv-ssl-testnxipwcxkp", + "name": "kv-ssl-testnxipwcxkp", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgwrmacym5h6fabd4xlhgdg7dhodwcewaojyspzwyzr7fxte6ucglnibv3snuy4gwd2/providers/Microsoft.KeyVault/vaults/kv-ssl-testnxipwcxkp", + "location": "westeurope", + "tags": {}, + "deletionDate": "2020-05-16T01:21:26Z", + "scheduledPurgeDate": "2020-08-14T01:21:26Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westeurope/deletedVaults/kv-ssl-testr3ng4shub", + "name": "kv-ssl-testr3ng4shub", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgnuf7fd3qk5b5owzis5whz3v54bplsf3pouj6a6v2ud5ps6yc2wprjouapbhjsyhhn/providers/Microsoft.KeyVault/vaults/kv-ssl-testr3ng4shub", + "location": "westeurope", + "tags": {}, + "deletionDate": "2020-05-16T01:19:57Z", + "scheduledPurgeDate": "2020-08-14T01:19:57Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westeurope/deletedVaults/kv-ssl-testio4mgeeuu", + "name": "kv-ssl-testio4mgeeuu", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgutafmq47scnrgumrcrtkt4hqcowq2fnxnmohna5gu3ymkuo3vrsjx7bjn6yr6at43/providers/Microsoft.KeyVault/vaults/kv-ssl-testio4mgeeuu", + "location": "westeurope", + "tags": {}, + "deletionDate": "2020-05-10T06:51:57Z", + "scheduledPurgeDate": "2020-08-08T06:51:57Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westeurope/deletedVaults/kv-ssl-testydsv4xrmz", + "name": "kv-ssl-testydsv4xrmz", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgk4dg6xko3izdzx6p66dfvgeup3ifpme2g3wkqozcyg42jvndf66tni7ujhtfkndvz/providers/Microsoft.KeyVault/vaults/kv-ssl-testydsv4xrmz", + "location": "westeurope", + "tags": {}, + "deletionDate": "2020-04-12T14:58:03Z", + "scheduledPurgeDate": "2020-07-11T14:58:03Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westeurope/deletedVaults/kv-ssl-testhdqnz6hfp", + "name": "kv-ssl-testhdqnz6hfp", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rggheeyxbbukigkygd767sv6pzl4rrao3tdn5mfpioj4xisayjwxgchlcceziserokz/providers/Microsoft.KeyVault/vaults/kv-ssl-testhdqnz6hfp", + "location": "westeurope", + "tags": {}, + "deletionDate": "2020-04-10T18:08:56Z", + "scheduledPurgeDate": "2020-07-09T18:08:56Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastasia/deletedVaults/xxj-jedi-1", + "name": "xxj-jedi-1", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/xiaojianxu/providers/Microsoft.KeyVault/vaults/xxj-jedi-1", + "location": "eastasia", + "tags": {}, + "deletionDate": "2020-03-06T15:27:15Z", + "scheduledPurgeDate": "2020-06-04T15:27:15Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/cli-test-kv-nr-3i5vgh64r", + "name": "cli-test-kv-nr-3i5vgh64r", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_keyvault_network_ruleilizoid6zcw5623hn3zxaldjfz2ksfatapvm4unlkrz7a/providers/Microsoft.KeyVault/vaults/cli-test-kv-nr-3i5vgh64r", + "location": "eastus2", + "tags": {}, + "deletionDate": "2020-05-16T01:32:19Z", + "scheduledPurgeDate": "2020-08-14T01:32:19Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/cli-test-kv-nr-qs6xiyecv", + "name": "cli-test-kv-nr-qs6xiyecv", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_keyvault_network_ruleilizoid6zcw5623hn3zxaldjfz2ksfatapvm4unlkrz7a/providers/Microsoft.KeyVault/vaults/cli-test-kv-nr-qs6xiyecv", + "location": "eastus2", + "tags": {}, + "deletionDate": "2020-05-16T01:31:49Z", + "scheduledPurgeDate": "2020-08-14T01:31:49Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/cli-test-kv-nr-njfoofsrx", + "name": "cli-test-kv-nr-njfoofsrx", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_keyvault_network_ruleilizoid6zcw5623hn3zxaldjfz2ksfatapvm4unlkrz7a/providers/Microsoft.KeyVault/vaults/cli-test-kv-nr-njfoofsrx", + "location": "eastus2", + "tags": {}, + "deletionDate": "2020-05-16T01:31:49Z", + "scheduledPurgeDate": "2020-08-14T01:31:49Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus2/deletedVaults/cli-test-kv-nr-bzduehjqq", + "name": "cli-test-kv-nr-bzduehjqq", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_keyvault_network_ruleilizoid6zcw5623hn3zxaldjfz2ksfatapvm4unlkrz7a/providers/Microsoft.KeyVault/vaults/cli-test-kv-nr-bzduehjqq", + "location": "eastus2", + "tags": {}, + "deletionDate": "2020-05-16T01:31:49Z", + "scheduledPurgeDate": "2020-08-14T01:31:49Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/southcentralus/deletedVaults/clitestm77cvjw3mk434onln", + "name": "clitestm77cvjw3mk434onln", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgqqpwattpn2pwmf7umyv4kh2krrbzymcnclswtzhcsuqdzcuksdab5wim2s4pbxcr4/providers/Microsoft.KeyVault/vaults/clitestm77cvjw3mk434onln", + "location": "southcentralus", + "tags": {}, + "deletionDate": "2020-05-16T01:31:11Z", + "scheduledPurgeDate": "2020-08-14T01:31:11Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/southcentralus/deletedVaults/clitest7cnlr74gle2sy5763", + "name": "clitest7cnlr74gle2sy5763", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgy74nkcjixj6k5hyt7lmf7m3mjgbjziql7phsimpqgb62q4b5c6tewksqkhkicfnwi/providers/Microsoft.KeyVault/vaults/clitest7cnlr74gle2sy5763", + "location": "southcentralus", + "tags": {}, + "deletionDate": "2020-05-10T07:06:39Z", + "scheduledPurgeDate": "2020-08-08T07:06:39Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/southcentralus/deletedVaults/yu-vault-1", + "name": "yu-vault-1", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/azure-cli-test-scus/providers/Microsoft.KeyVault/vaults/yu-vault-1", + "location": "southcentralus", + "tags": {}, + "deletionDate": "2020-05-06T10:48:53Z", + "scheduledPurgeDate": "2020-08-04T10:48:53Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/southcentralus/deletedVaults/clitesttzvz2wkttvw44ktmg", + "name": "clitesttzvz2wkttvw44ktmg", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rg4wqk7k5yqalmrakknpbum7ctzw2baurfjr4kbl6ctbqlroif5qq3qtwktptk36jg4/providers/Microsoft.KeyVault/vaults/clitesttzvz2wkttvw44ktmg", + "location": "southcentralus", + "tags": {}, + "deletionDate": "2020-04-26T10:48:51Z", + "scheduledPurgeDate": "2020-07-25T10:48:51Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/southcentralus/deletedVaults/clitestf3vy6hyh3whcucma4", + "name": "clitestf3vy6hyh3whcucma4", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rg2ysf7ttutrjle7qemglkbppovvkzdnjjs7mlc6mlidbragzrpeqwkhceuoxtpeqc4/providers/Microsoft.KeyVault/vaults/clitestf3vy6hyh3whcucma4", + "location": "southcentralus", + "tags": {}, + "deletionDate": "2020-04-25T10:48:54Z", + "scheduledPurgeDate": "2020-07-24T10:48:54Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westus/deletedVaults/clitestrgerq2fmg5x2lq", + "name": "clitestrgerq2fmg5x2lq", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgerq2fmg5x2lqifhdlypbpdi3cho7aquthxflqvw3sv7bage35iinrfq2jixelhapx/providers/Microsoft.KeyVault/vaults/clitestrgerq2fmg5x2lq", + "location": "westus", + "tags": {}, + "deletionDate": "2020-05-18T05:16:55Z", + "scheduledPurgeDate": "2020-08-16T05:16:55Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westus/deletedVaults/clitestrgszctattv5fld", + "name": "clitestrgszctattv5fld", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/clitest.rgszctattv5fld4hcollzfkb7mcyu2rajq5cno5h3j4xl2szwghnoro3abvlwwqzrat/providers/Microsoft.KeyVault/vaults/clitestrgszctattv5fld", + "location": "westus", + "tags": {}, + "deletionDate": "2020-05-16T02:53:04Z", + "scheduledPurgeDate": "2020-08-14T02:53:04Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westus/deletedVaults/vaultje6cw", + "name": "vaultje6cw", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vmss_encryptionim3cjy4fvbyohyvx4orvqaianzhulpyyh7ghbmehkbn65d33vmo/providers/Microsoft.KeyVault/vaults/vaultje6cw", + "location": "westus", + "tags": {}, + "deletionDate": "2020-05-16T01:58:29Z", + "scheduledPurgeDate": "2020-08-14T01:58:29Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westus/deletedVaults/vaultq7wfi", + "name": "vaultq7wfi", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vm_encryptionw4g4a2ns7las3fiiwdo32lzi4kp2kw6gw2e5vzobkq42n3xpqcly4/providers/Microsoft.KeyVault/vaults/vaultq7wfi", + "location": "westus", + "tags": {}, + "deletionDate": "2020-05-16T01:58:17Z", + "scheduledPurgeDate": "2020-08-14T01:58:17Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westus/deletedVaults/vmsecretkvwfslqdyuhn", + "name": "vmsecretkvwfslqdyuhn", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_vm_secretsezc5ixkgucw4jh7oinanqs7d3f42abhpzif547y6shlsiysewix5zacy/providers/Microsoft.KeyVault/vaults/vmsecretkvwfslqdyuhn", + "location": "westus", + "tags": {}, + "deletionDate": "2020-05-16T01:51:22Z", + "scheduledPurgeDate": "2020-08-14T01:51:22Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westcentralus/deletedVaults/vault4-iio4wmraznv4q", + "name": "vault4-iio4wmraznv4q", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_disk_encryption_set_snapshot_ebcahx2q7azrdrfws2bzyzl4sde27s5n4jnmd/providers/Microsoft.KeyVault/vaults/vault4-iio4wmraznv4q", + "location": "westcentralus", + "tags": {}, + "deletionDate": "2020-05-16T02:03:32Z", + "scheduledPurgeDate": "2020-08-14T02:03:32Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westcentralus/deletedVaults/vault-6m5kviuxj2oxae", + "name": "vault-6m5kviuxj2oxae", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_disk_encryption_set_volxrsmrmorqs33fbvkjm5wwxv3so5fsowgfruyr7xjm3d/providers/Microsoft.KeyVault/vaults/vault-6m5kviuxj2oxae", + "location": "westcentralus", + "tags": {}, + "deletionDate": "2020-05-16T02:02:40Z", + "scheduledPurgeDate": "2020-08-14T02:02:40Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westcentralus/deletedVaults/vault3-4nghge3bkcgj4", + "name": "vault3-4nghge3bkcgj4", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_disk_encryption_set_disk_update_4bjdrwrrscmdw45yx44tidsopvkvecsdg7/providers/Microsoft.KeyVault/vaults/vault3-4nghge3bkcgj4", + "location": "westcentralus", + "tags": {}, + "deletionDate": "2020-05-16T02:01:18Z", + "scheduledPurgeDate": "2020-08-14T02:01:18Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westcentralus/deletedVaults/vault-dxxlvoocuh3ffb", + "name": "vault-dxxlvoocuh3ffb", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_disk_encryption_set_cmmzl7mh67l6logzfax5lmdeibp6hgxdxxjcbhuxpa2brg/providers/Microsoft.KeyVault/vaults/vault-dxxlvoocuh3ffb", + "location": "westcentralus", + "tags": {}, + "deletionDate": "2020-05-10T07:36:27Z", + "scheduledPurgeDate": "2020-08-08T07:36:27Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/westcentralus/deletedVaults/vault4-pz42mju35uj3s", + "name": "vault4-pz42mju35uj3s", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_disk_encryption_set_snapshot_eszfbu4r357vmn57tijyhnffndzgjhp2oyuto/providers/Microsoft.KeyVault/vaults/vault4-pz42mju35uj3s", + "location": "westcentralus", + "tags": {}, + "deletionDate": "2020-05-10T07:35:52Z", + "scheduledPurgeDate": "2020-08-08T07:35:52Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus2euap/deletedVaults/yemingkv2", + "name": "yemingkv2", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/yeming2/providers/Microsoft.KeyVault/vaults/yemingkv2", + "location": "East US 2 EUAP", + "tags": {}, + "deletionDate": "2020-04-29T10:48:52Z", + "scheduledPurgeDate": "2020-07-28T10:48:52Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus2euap/deletedVaults/zuhvault1", + "name": "zuhvault1", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/zuh/providers/Microsoft.KeyVault/vaults/zuhvault1", + "location": "eastus2euap", + "tags": {}, + "deletionDate": "2020-03-12T15:12:04Z", + "scheduledPurgeDate": "2020-06-10T15:12:04Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus2euap/deletedVaults/zuhvault2", + "name": "zuhvault2", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/zuh/providers/Microsoft.KeyVault/vaults/zuhvault2", + "location": "eastus2euap", + "tags": {}, + "deletionDate": "2020-03-12T15:12:04Z", + "scheduledPurgeDate": "2020-06-10T15:12:04Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus2euap/deletedVaults/zuhvault", + "name": "zuhvault", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/zuh/providers/Microsoft.KeyVault/vaults/zuhvault", + "location": "eastus2euap", + "tags": {}, + "deletionDate": "2020-03-12T15:12:04Z", + "scheduledPurgeDate": "2020-06-10T15:12:04Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/eastus2euap/deletedVaults/ygtestkv", + "name": "ygtestkv", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/test/providers/Microsoft.KeyVault/vaults/ygtestkv", + "location": "eastus2euap", + "tags": {}, + "deletionDate": "2020-03-02T04:46:15Z", + "scheduledPurgeDate": "2020-05-31T04:46:15Z", + "purgeProtectionEnabled": true + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/centraluseuap/deletedVaults/cli-test-kv-plr-73kbxaer", + "name": "cli-test-kv-plr-73kbxaer", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_keyvault_plrkbvmfl4bbtpafmp6f7siv2lecopddqksnwswrqrnsef5rd42mqec3t/providers/Microsoft.KeyVault/vaults/cli-test-kv-plr-73kbxaer", + "location": "centraluseuap", + "tags": {}, + "deletionDate": "2020-05-16T02:24:54Z", + "scheduledPurgeDate": "2020-08-14T02:24:54Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/centraluseuap/deletedVaults/cli-test-kv-pe-utov4p6c4", + "name": "cli-test-kv-pe-utov4p6c4", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_keyvault_pe2rwb57zw6rp7pdwck5l2ujyzgzpezotce6sackqqspkfbutn553nhzw/providers/Microsoft.KeyVault/vaults/cli-test-kv-pe-utov4p6c4", + "location": "centraluseuap", + "tags": {}, + "deletionDate": "2020-05-16T02:24:16Z", + "scheduledPurgeDate": "2020-08-14T02:24:16Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/centraluseuap/deletedVaults/cli-test-kv-pe-qxpvv57to", + "name": "cli-test-kv-pe-qxpvv57to", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_keyvault_pehyki3yqvgcsqejmr2a7owsaehuoxwkqr5avnw4os7vgwbc7bseuywzn/providers/Microsoft.KeyVault/vaults/cli-test-kv-pe-qxpvv57to", + "location": "centraluseuap", + "tags": {}, + "deletionDate": "2020-04-28T03:24:08Z", + "scheduledPurgeDate": "2020-07-27T03:24:08Z" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/centraluseuap/deletedVaults/cli-test-kv-pe-eijekvli7", + "name": "cli-test-kv-pe-eijekvli7", + "type": "Microsoft.KeyVault/deletedVaults", + "properties": { + "vaultId": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/cli_test_keyvault_pejvdz7sc7oxxgottvy7ikf7qwwj3f4hsmc4nsjftuckqgzpm3wtmv37o/providers/Microsoft.KeyVault/vaults/cli-test-kv-pe-eijekvli7", + "location": "centraluseuap", + "tags": {}, + "deletionDate": "2020-04-28T03:21:04Z", + "scheduledPurgeDate": "2020-07-27T03:21:04Z" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/deletedVaults?api-version=2019-09-01\u0026%24skiptoken=3Zbhjto6EIXfBVX3V1mcQFpYqaoCdmi4O%2bPa2FThHxsCi83CCtgmuOq730lv23dYlEiRrVEifznnzPzoHKrm8rA7%2bHPn%2fkcHpTZfJgKNTh%2fsvHPfebpcXs73vd7z6rDaVs%2fV4XK3Cq%2bn6q48PvfOr4%2fn8rR7ueyOh3OPPUabD4OPUTd63LDuYL1edVdV2e%2bWj6P4Y7xho2TEei%2bn4%2ffdujqde7ArT8fzcXO5%2b7e6Llav%2b0tvXe2rS7X%2btTh%2fXr3sut%2bpkl7%2bKWbRqMvojv55d%2fb0xaOvDp%2bsX3zTi5nRVmdGLOzcjuSD3dsNzyMw2wacbcCIGpxv0BRXOtYQbdEom18xLKcQ9ASF6is2E1TXV6FopIEB%2bOIKYdt53xHp3NwCh5I4EBNeJMhtH50eaoMcHQp0aZCWnnx7RT%2fjKGZTtBDAFlfFVA2sIA7fxNwIq%2bVX8dY1gaaMJC9i%2br8MHNRgFkPN6bLZBA00xGKMvKzRZ1yxxRQEJFq02vC1Nn80kc7z9K2TkLxMiECM3EcY0oDuaQgMJ%2biyMbkhRl8EUstAmW2CQVHNkgOzRKh11R8Sdh6%2fdRDgylryNAHuG%2bBqQLFAIEStHO2FNNaebCNEBEIE8EuhhWLIBSMbCWRA9phLe0OxicRAmjQmOyTS5FcwrTCKSJunsTS%2bxlDQ%2bZcTEk6f9pnyatDGiXL%2bd2y2cXETsVlj2zqC7yMvqIU8UWymA2DLDLy4It9nyPO%2bFKLl1SiTJ9JC0pqHtPQ7Nm%2bnm4a8JgyMsiIGtyUclJxGMC0yjh4FhJzyYknDw7bRPBPaLafo1lNwy4n61UX%2b76axsOnXt54ZksYFdIo04ClAIaDZt20kAysitNlUmi1pZk35kI2l1RzDNiYgY3B6rJwlbfzVxS3gIBtE6Mo%2b6SKRHGjSWA6VwwxN3mjbrhVhEldtRSxtTnGa06QlqBPPhDLQ%2bfnzPw%3d%3d" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/North%20Central%20US/deletedVaults/sdktestvault1231/purge?api-version=2019-09-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f55284cd649e1548a90d6d6c457aef32-bdbd6b56bf022e4c-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ae446dd802c664bedd836cf3a2da5db5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:19:11 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6369e81b-3ace-4922-94bd-77581e882827", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "dc33eb68-68eb-49c7-938d-00162bb8ca51", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081911Z:6369e81b-3ace-4922-94bd-77581e882827", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "940215aebffab023e93375f552c12859", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:11 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ba79e281-9196-458b-a8ad-f84296a91fef", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11608", + "x-ms-request-id": "309bd8df-eff0-47a1-8931-4a7744b603e9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081911Z:ba79e281-9196-458b-a8ad-f84296a91fef", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:11Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "4d359ca82b5ba3ec684f2688fd31fdc6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:13 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "75a4f5bb-3c98-495e-839e-b470f8b9f339", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11607", + "x-ms-request-id": "f7bcedc6-5e01-4f6f-bd3d-d95cc6ed2b71", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081913Z:75a4f5bb-3c98-495e-839e-b470f8b9f339", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:11Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8c45be6bc8d7e4ba0c4bb4b8bf0fa1c6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:14 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ac29194e-6b2b-432c-b4db-46e8e32cee38", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11606", + "x-ms-request-id": "fedde5b9-2780-48c5-be24-4f01516619ab", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081914Z:ac29194e-6b2b-432c-b4db-46e8e32cee38", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:11Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cae4ab15cae28253295f2caa989ab2b8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f27be0ba-a369-4b63-9dca-092dcef299d0", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11605", + "x-ms-request-id": "0414cedf-dd15-4d9c-be30-cae206341501", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081915Z:f27be0ba-a369-4b63-9dca-092dcef299d0", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:11Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9489af369c7bdf81e250410f7734e358", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a9a64cdf-18cd-4c0d-b29c-4cb2428303fb", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11604", + "x-ms-request-id": "3fcfc72d-baa6-4fc7-816d-2973e3571f2f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081917Z:a9a64cdf-18cd-4c0d-b29c-4cb2428303fb", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:11Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "527260ad334ca1e46ac262789b104b71", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "63386cca-e79f-403a-a41e-b5c99cb4047f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11603", + "x-ms-request-id": "b70153f4-2599-4a1b-aa3d-3602318f2418", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081918Z:63386cca-e79f-403a-a41e-b5c99cb4047f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:11Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1082fc990d86794a2a04e89188430af5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:19 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6837886e-0e54-4b0a-9544-8556c338bda3", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11602", + "x-ms-request-id": "5d73db10-1097-40fc-99b9-c446e1e2807e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081919Z:6837886e-0e54-4b0a-9544-8556c338bda3", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:11Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "38fcd47b5f28026bcae72ab9390843d1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:20 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "88663acf-0d8c-4d79-8e59-7a841fe7da6b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11601", + "x-ms-request-id": "c1cde370-9628-414c-ad30-b7d5e1268f16", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081921Z:88663acf-0d8c-4d79-8e59-7a841fe7da6b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:11Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7b75cf04d3b1a0d115f927484b521926", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:22 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c784e3ef-4623-42bc-aad9-ed19dcf80862", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11600", + "x-ms-request-id": "70d831ac-0933-4331-9f3e-b8c50c79ff16", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081922Z:c784e3ef-4623-42bc-aad9-ed19dcf80862", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:11Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c7fd6db713133949907f459fe2914021", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "393b5f35-f04e-4b18-aec9-a71114aa7314", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11599", + "x-ms-request-id": "2867c485-6907-4136-aa04-0ff038d7b476", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081923Z:393b5f35-f04e-4b18-aec9-a71114aa7314", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:11Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b88c16c08fcea743025c232e3722b778", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:24 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6deb8dc1-e390-4aef-a7d8-ce03ea4cab74", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11598", + "x-ms-request-id": "013fc362-007e-49de-ae53-03cb931abfe7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081924Z:6deb8dc1-e390-4aef-a7d8-ce03ea4cab74", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:11Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cb0103ce7c0bf1be863bea328e32bd83", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:26 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "85cc8946-698e-4412-9eff-f4e56d4ebb51", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11597", + "x-ms-request-id": "43d20a50-7dd8-47ef-95d7-427e92c964e6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081926Z:85cc8946-698e-4412-9eff-f4e56d4ebb51", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:11Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "358706b860c528582955c4b7f01a016e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:27 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1e0e2f56-f5d8-45f6-a427-e165a894b6aa", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11596", + "x-ms-request-id": "263a53c3-6104-4ae8-8773-e64a7bfc194b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081927Z:1e0e2f56-f5d8-45f6-a427-e165a894b6aa", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:11Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzUyNDgwODU4OXxERTJFMzFEODNCQTE0QkUyODgxMTRDNjgxQUEyQTAwNw?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "dfd1ccc874904416579b3292a51119d0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e92a9fd1-aea4-4290-9337-e1252f342035", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11595", + "x-ms-request-id": "3e6f307f-3e38-4697-9221-7458c7e2bfd6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081928Z:e92a9fd1-aea4-4290-9337-e1252f342035", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:11Z", + "lastActionDateTime": "2020-05-18 08:19:27Z", + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/North%20Central%20US/deletedVaults/sdktestvault1231?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-cb156303ec09da468a692e4a0276e9c9-91cd8af195a89b45-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "31769f9e819b6eb2aad8a2b6b707016b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "88", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "991ee00a-2a98-473f-a12f-9cf55b650b29", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11594", + "x-ms-request-id": "6322f1b1-cd96-4c6c-95d1-0bf94ab1c4e3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081929Z:991ee00a-2a98-473f-a12f-9cf55b650b29", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "error": { + "code": "ResourceNotFound", + "message": "The specified resource does not exist." + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/North%20Central%20US/deletedVaults/sdktestvault557/purge?api-version=2019-09-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f895da70bd40a244b4882b1202c20a47-00162eb4f5064446-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c1697c39de6044f3f043dd2a2dc68217", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:19:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ec9a1f4e-d2cc-4162-985d-961aef62a748", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "9d52f9ed-0d2b-404e-a51f-dfe330e3d34d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081929Z:ec9a1f4e-d2cc-4162-985d-961aef62a748", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "2958c79a58a7bf6fac314158a38840e4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "173363ed-86de-42ea-9db6-5cdec2229599", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11593", + "x-ms-request-id": "2dff552f-757f-4155-be6e-7c2e42e31ecc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081929Z:173363ed-86de-42ea-9db6-5cdec2229599", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:29Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c27a8a56afee69c6a923a7fea93b7290", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:30 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "47f5f191-157f-4af9-8984-56cf58bf945b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11592", + "x-ms-request-id": "0ee75f0f-6728-4361-8f62-48380a122bf5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081931Z:47f5f191-157f-4af9-8984-56cf58bf945b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:29Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "66908db5596ee3708459a5728e7aa292", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:32 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "608a3055-fda8-4e39-8482-8933973129f4", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11591", + "x-ms-request-id": "c8518018-fc99-48b2-8100-a6099c92d618", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081932Z:608a3055-fda8-4e39-8482-8933973129f4", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:29Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "47615022cae4ea6200ee7f84b1711670", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9b59e38a-6f82-40b9-9bfb-8893e861e6d9", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11590", + "x-ms-request-id": "f24b7bbd-9ce0-4816-b81c-0fa7a00496ad", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081933Z:9b59e38a-6f82-40b9-9bfb-8893e861e6d9", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:29Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "16a2b0bfdaf8fc761a973e940a53da2e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:34 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4450de3d-038b-46d5-985c-d44bafd2d36a", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11589", + "x-ms-request-id": "20f0bb32-f198-4dd0-a221-65f95e076f08", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081935Z:4450de3d-038b-46d5-985c-d44bafd2d36a", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:29Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "59db15802adaebac2ba5667fdaeb3212", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:36 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1c811100-0406-487d-a4de-9da7bed5144b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11588", + "x-ms-request-id": "e91d6410-72d9-4447-bcbc-dc41a08c177b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081936Z:1c811100-0406-487d-a4de-9da7bed5144b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:29Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "deb334438cd84899da652d4d8bcddfac", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:37 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c8d83d1e-a277-47c8-8376-a09eee29dca4", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11587", + "x-ms-request-id": "af2bd1f5-94a9-4844-b94d-9f65f4ce475e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081937Z:c8d83d1e-a277-47c8-8376-a09eee29dca4", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:29Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9b045014bd96949604b7ea5274f7212e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:38 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8c7375c6-e504-471d-86ec-ba133b91de72", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11586", + "x-ms-request-id": "e84bcb34-e203-445b-8c46-a3481d9b3bb9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081939Z:8c7375c6-e504-471d-86ec-ba133b91de72", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:29Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d6512b65fca0f3567b937e74fd5e5f5e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:39 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c8974d1d-1f94-43f2-9b42-35c16f9a87a3", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11585", + "x-ms-request-id": "5a02e34d-e7a5-42f4-bd78-a646d4bb3343", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081940Z:c8974d1d-1f94-43f2-9b42-35c16f9a87a3", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:29Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "896bb9c696e7867c9e1ed920a247d4e3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:41 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e72ec211-c6e2-4108-bb17-17cc07cb5ec3", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11584", + "x-ms-request-id": "77d2ecda-bfa2-49fc-b900-83d8162a7e1f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081941Z:e72ec211-c6e2-4108-bb17-17cc07cb5ec3", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:29Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "60e7fe43097b170bfa1020023e2197a5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:42 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8fc33da1-eb29-4700-81d7-29fc3287477a", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11583", + "x-ms-request-id": "87c09565-8dc5-47b6-8067-443f100c5b9c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081943Z:8fc33da1-eb29-4700-81d7-29fc3287477a", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:29Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2NzcwNDU1NDgxMnw4MjVFNjlGRTc4NkE0NEVBQjM4MDg3RjY2QTY0NDJCQg?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ba8c8b58988bce47aecb378123355134", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "60352cc7-a5a0-4311-bc99-3fcdcfd47917", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11582", + "x-ms-request-id": "0f550966-7ab9-4af6-8a10-5c503124ead8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081944Z:60352cc7-a5a0-4311-bc99-3fcdcfd47917", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:29Z", + "lastActionDateTime": "2020-05-18 08:19:43Z", + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/North%20Central%20US/deletedVaults/sdktestvault557?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a37971f1c5369646ba75630bc0b7d46e-5d1bc14c2f10be4f-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ff319bbffe77bce3ae538fd6757a487d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "88", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2f8a5d3d-03a9-416f-8245-09e351d6828d", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11581", + "x-ms-request-id": "e3e23ce9-16fc-473a-a9f9-d33be996707b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081944Z:2f8a5d3d-03a9-416f-8245-09e351d6828d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "error": { + "code": "ResourceNotFound", + "message": "The specified resource does not exist." + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/North%20Central%20US/deletedVaults/sdktestvault6099/purge?api-version=2019-09-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-48f3db9cbc0e4643bb77c42087594e8e-c073984862e11444-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "16c8338719baab57b719b1afd289f4c4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:19:44 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a81a2487-2ff8-42c1-9c2d-1e24cd2b98e5", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "feaf8c92-23ee-4fb6-a639-a05a2f922f2f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081945Z:a81a2487-2ff8-42c1-9c2d-1e24cd2b98e5", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "effaba833b6ca5794485475e4d34ea24", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:44 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "90badf60-ea8a-4fff-b7ef-8a13ad983c31", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11580", + "x-ms-request-id": "8cde44be-8b1c-42fe-8bb5-0b0aa3eca917", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081945Z:90badf60-ea8a-4fff-b7ef-8a13ad983c31", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:44Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8917ca5fa537ef8c056f6dea0e1fa246", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:46 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ac156ee1-1373-45a6-a27c-ffccb3ce8a6a", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11579", + "x-ms-request-id": "9057bc0b-69ff-4223-bf67-3eea783f6942", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081946Z:ac156ee1-1373-45a6-a27c-ffccb3ce8a6a", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:44Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "182b7cbf058f8357739d5d6a50d00b74", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:47 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e7a00538-2d1a-4c10-85e5-7771b733400d", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11578", + "x-ms-request-id": "f37981db-3c7b-4c67-b4ad-5ee216c79bfe", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081947Z:e7a00538-2d1a-4c10-85e5-7771b733400d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:44Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3ed8e7e5d058defd2d0aeafdcd8e9725", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:48 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c3c8d5a1-cea9-4e21-a1b9-dfdd3cfae925", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11577", + "x-ms-request-id": "8bb826e3-0646-4a95-9d71-1e1e37fb1671", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081949Z:c3c8d5a1-cea9-4e21-a1b9-dfdd3cfae925", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:44Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d09e01e3d2085a947294159a48229f34", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:49 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "55843614-2acc-4bbb-b710-e1de3bd75896", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11576", + "x-ms-request-id": "481a6ad4-5869-4611-867b-174b2d71ee8c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081950Z:55843614-2acc-4bbb-b710-e1de3bd75896", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:44Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "2604f9646346efed7f4dea841a5ab6e4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ea8f947e-8e6a-44f8-8304-32b6979a2ed0", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11575", + "x-ms-request-id": "1c5ba58d-a551-4a22-9d6a-1a1950ca73fa", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081951Z:ea8f947e-8e6a-44f8-8304-32b6979a2ed0", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:44Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "4e8738053a32136b527eccc4ba62950a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:52 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fe155693-8e9d-404c-90ed-e8a42247bed4", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11574", + "x-ms-request-id": "2d256d05-d0c0-44f7-a3b4-259836e109db", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081953Z:fe155693-8e9d-404c-90ed-e8a42247bed4", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:44Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d398b56b708980de13ae51bbe70f3f17", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:53 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b149424a-3269-461a-be2a-27923f963baa", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11573", + "x-ms-request-id": "4dce6bc1-4b5b-414d-af9d-884405ed1458", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081954Z:b149424a-3269-461a-be2a-27923f963baa", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:44Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0f9431dd509b29028ef0d3c89728351c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:55 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3a784519-64dd-41d7-8877-edf7c1d50d98", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11572", + "x-ms-request-id": "8c919cc8-8b6c-450b-9b39-fae352fc68a4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081955Z:3a784519-64dd-41d7-8877-edf7c1d50d98", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:44Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6519e0b7e2c1955a5a063a84e9b02c43", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1793ff3b-7bdf-46c9-ac3f-d5d547553daa", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11571", + "x-ms-request-id": "618ef12c-5a4d-45d8-9f09-d51c98539000", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081957Z:1793ff3b-7bdf-46c9-ac3f-d5d547553daa", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:44Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "89e7b43f86ce1b6fb36f45989d16e8ea", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "64", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:57 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "Pragma": "no-cache", + "Retry-After": "5", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f7fbdab1-29fd-42ff-b1af-5ab4543d5635", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11570", + "x-ms-request-id": "2d0b5462-06d8-4702-b61b-35f05d5796fa", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081958Z:f7fbdab1-29fd-42ff-b1af-5ab4543d5635", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:44Z", + "status": "NotStarted" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/northcentralus/operationResults/VVR8MDYzNzI1Mzg2Nzg1ODUxMTg5MnwzMkMwQTZBRDRFNUM0Njg0QkNFNEIzQjZGMEI2OEM3RA?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "06033478d9f6fb55d6ffb594157d40dd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1fc88114-ea5b-40c0-8d29-22193b76e3e6", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11569", + "x-ms-request-id": "98afa320-3cd4-42f2-a5a1-afb69d54edda", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081959Z:1fc88114-ea5b-40c0-8d29-22193b76e3e6", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "createdDateTime": "2020-05-18 08:19:44Z", + "lastActionDateTime": "2020-05-18 08:19:59Z", + "status": "Succeeded" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault/locations/North%20Central%20US/deletedVaults/sdktestvault6099?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f45459cddbd4084fa222088be15ecfef-d700392a63085c42-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e38990c4ac41304e70feb2529cc1f743", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "88", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:19:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c7c1473d-d81c-4afe-892b-233c7d6a9336", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11568", + "x-ms-request-id": "25638a55-fb90-47aa-a51b-62044bdad09d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081959Z:c7c1473d-d81c-4afe-892b-233c7d6a9336", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "error": { + "code": "ResourceNotFound", + "message": "The specified resource does not exist." + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg542?api-version=2017-05-10", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-da20db72998bf343a7044fc87c08b8b8-9ca80b24bc2dfe4d-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b50b501e25ac654c5eebb3ced1db0535", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "270504d6-ef3c-4d66-8665-521a0ad9e8aa", + "x-ms-ratelimit-remaining-subscription-deletes": "14976", + "x-ms-request-id": "270504d6-ef3c-4d66-8665-521a0ad9e8aa", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082005Z:270504d6-ef3c-4d66-8665-521a0ad9e8aa" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c57671078b729e3144238456f97f5f95", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4a5765d9-9c79-4a1d-8f2e-94d7d63f62d2", + "x-ms-ratelimit-remaining-subscription-reads": "11567", + "x-ms-request-id": "4a5765d9-9c79-4a1d-8f2e-94d7d63f62d2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082005Z:4a5765d9-9c79-4a1d-8f2e-94d7d63f62d2" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "34237cf8ebed18b6a63fcfd98f543d5a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "29eb0655-5b38-4702-a179-d2fbdba98391", + "x-ms-ratelimit-remaining-subscription-reads": "11566", + "x-ms-request-id": "29eb0655-5b38-4702-a179-d2fbdba98391", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082007Z:29eb0655-5b38-4702-a179-d2fbdba98391" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "60c79e8d4065a4c33636c8698053d265", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:07 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3190e089-9c82-4b12-8c70-dd744ef8096b", + "x-ms-ratelimit-remaining-subscription-reads": "11565", + "x-ms-request-id": "3190e089-9c82-4b12-8c70-dd744ef8096b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082008Z:3190e089-9c82-4b12-8c70-dd744ef8096b" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "abff017329e01b27ba5d1e33bb570eef", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d49b7bf5-75e0-440e-94d3-1f2fc01b29e2", + "x-ms-ratelimit-remaining-subscription-reads": "11564", + "x-ms-request-id": "d49b7bf5-75e0-440e-94d3-1f2fc01b29e2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082010Z:d49b7bf5-75e0-440e-94d3-1f2fc01b29e2" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5ac82ae6ffb8b82fb97ffdb6234d9753", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2d859643-c5e1-4c64-8b65-5fbc5d1f5f8b", + "x-ms-ratelimit-remaining-subscription-reads": "11563", + "x-ms-request-id": "2d859643-c5e1-4c64-8b65-5fbc5d1f5f8b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082011Z:2d859643-c5e1-4c64-8b65-5fbc5d1f5f8b" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8d666a6c9254637a77aba507218fe8df", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:12 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cec7ee7a-ec4b-4391-9f68-5634b1e72cf1", + "x-ms-ratelimit-remaining-subscription-reads": "11562", + "x-ms-request-id": "cec7ee7a-ec4b-4391-9f68-5634b1e72cf1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082012Z:cec7ee7a-ec4b-4391-9f68-5634b1e72cf1" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5682d827788a73acd147f1602c70f86d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:13 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ba9c7db0-f9b0-4b53-8edd-fb529ce8c016", + "x-ms-ratelimit-remaining-subscription-reads": "11561", + "x-ms-request-id": "ba9c7db0-f9b0-4b53-8edd-fb529ce8c016", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082014Z:ba9c7db0-f9b0-4b53-8edd-fb529ce8c016" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "51c6cac581f1549baf65e30d5a279629", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4af73b81-d60d-4ea6-8b83-36a06659a4cc", + "x-ms-ratelimit-remaining-subscription-reads": "11560", + "x-ms-request-id": "4af73b81-d60d-4ea6-8b83-36a06659a4cc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082015Z:4af73b81-d60d-4ea6-8b83-36a06659a4cc" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "4a8e1e9641caf4c9bdf2bc0ca01a3706", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:16 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5bc1111a-c9cd-4614-a54a-ae0fa42802de", + "x-ms-ratelimit-remaining-subscription-reads": "11559", + "x-ms-request-id": "5bc1111a-c9cd-4614-a54a-ae0fa42802de", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082017Z:5bc1111a-c9cd-4614-a54a-ae0fa42802de" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "574237b297c9a6ed3c2ea724949f19a9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2cf696df-66fa-4e4c-821f-bef8cabc66fd", + "x-ms-ratelimit-remaining-subscription-reads": "11558", + "x-ms-request-id": "2cf696df-66fa-4e4c-821f-bef8cabc66fd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082018Z:2cf696df-66fa-4e4c-821f-bef8cabc66fd" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0dc9c8b1ade284a300d294fec48eb395", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:19 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0628251a-f07a-40f1-a1d9-5e449f8355ef", + "x-ms-ratelimit-remaining-subscription-reads": "11557", + "x-ms-request-id": "0628251a-f07a-40f1-a1d9-5e449f8355ef", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082020Z:0628251a-f07a-40f1-a1d9-5e449f8355ef" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "225add2e3fe5ff6030e80e9b99a45f1d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "313013ab-e000-4613-8532-cf30a63e4f91", + "x-ms-ratelimit-remaining-subscription-reads": "11556", + "x-ms-request-id": "313013ab-e000-4613-8532-cf30a63e4f91", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082021Z:313013ab-e000-4613-8532-cf30a63e4f91" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d85b12d92a50052494be56f602efe1ad", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:22 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a4d28baa-6f49-4ed8-b821-119a68bb439d", + "x-ms-ratelimit-remaining-subscription-reads": "11555", + "x-ms-request-id": "a4d28baa-6f49-4ed8-b821-119a68bb439d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082023Z:a4d28baa-6f49-4ed8-b821-119a68bb439d" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b7f6127af64572c467cadcfa9f07ea5c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "435bde10-59cb-476e-af3a-0bda74ac66dd", + "x-ms-ratelimit-remaining-subscription-reads": "11553", + "x-ms-request-id": "435bde10-59cb-476e-af3a-0bda74ac66dd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082024Z:435bde10-59cb-476e-af3a-0bda74ac66dd" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b2247773db330445b9548e26e869fc41", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:25 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cf26a8ac-5c38-4b2c-883c-1f71f1c851f2", + "x-ms-ratelimit-remaining-subscription-reads": "11552", + "x-ms-request-id": "cf26a8ac-5c38-4b2c-883c-1f71f1c851f2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082026Z:cf26a8ac-5c38-4b2c-883c-1f71f1c851f2" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "87216006a7aee3d74de970854d29668c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:26 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "877d4495-94ec-4f31-a0ee-7467d10d3684", + "x-ms-ratelimit-remaining-subscription-reads": "11551", + "x-ms-request-id": "877d4495-94ec-4f31-a0ee-7467d10d3684", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082027Z:877d4495-94ec-4f31-a0ee-7467d10d3684" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8b83fad42ecb9e7accf1fef0689e89fe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:28 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c82f589d-48e9-4f70-a6bb-8e45b67be310", + "x-ms-ratelimit-remaining-subscription-reads": "11550", + "x-ms-request-id": "c82f589d-48e9-4f70-a6bb-8e45b67be310", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082029Z:c82f589d-48e9-4f70-a6bb-8e45b67be310" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3ff39acd62e6cbad9f41654a6bbfb68f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d1f159f8-a4e3-45b5-8abe-144483a6c130", + "x-ms-ratelimit-remaining-subscription-reads": "11549", + "x-ms-request-id": "d1f159f8-a4e3-45b5-8abe-144483a6c130", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082030Z:d1f159f8-a4e3-45b5-8abe-144483a6c130" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ee5101ee71e5d776e582bbbca8e67aaf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:31 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6870f2e2-ded5-43fb-b344-9a910dc1b160", + "x-ms-ratelimit-remaining-subscription-reads": "11548", + "x-ms-request-id": "6870f2e2-ded5-43fb-b344-9a910dc1b160", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082032Z:6870f2e2-ded5-43fb-b344-9a910dc1b160" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b3b7715f263572a64cb7ec89c930330d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b7ccbc20-ffa2-41a5-a552-4480b125a4df", + "x-ms-ratelimit-remaining-subscription-reads": "11547", + "x-ms-request-id": "b7ccbc20-ffa2-41a5-a552-4480b125a4df", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082033Z:b7ccbc20-ffa2-41a5-a552-4480b125a4df" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "67026f3b9a4c5c18241c5964a6f023b8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:35 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "97c956bf-dc96-41b7-b576-6af60977a5ff", + "x-ms-ratelimit-remaining-subscription-reads": "11546", + "x-ms-request-id": "97c956bf-dc96-41b7-b576-6af60977a5ff", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082035Z:97c956bf-dc96-41b7-b576-6af60977a5ff" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f9eab5c70307c8595adfa12e85ec0db5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:36 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a3b7cb3a-a14f-42ff-943f-67f43026f6ff", + "x-ms-ratelimit-remaining-subscription-reads": "11545", + "x-ms-request-id": "a3b7cb3a-a14f-42ff-943f-67f43026f6ff", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082036Z:a3b7cb3a-a14f-42ff-943f-67f43026f6ff" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3981ad4e12e4c463595b8e19cd41cb5c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:38 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ca617877-9d33-4030-bd85-edde56d2df42", + "x-ms-ratelimit-remaining-subscription-reads": "11544", + "x-ms-request-id": "ca617877-9d33-4030-bd85-edde56d2df42", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082038Z:ca617877-9d33-4030-bd85-edde56d2df42" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "13c233943a45380516390c6cf9ead738", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:39 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a7e064fe-1f1c-45ba-ba01-1c6adbdb24b0", + "x-ms-ratelimit-remaining-subscription-reads": "11543", + "x-ms-request-id": "a7e064fe-1f1c-45ba-ba01-1c6adbdb24b0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082039Z:a7e064fe-1f1c-45ba-ba01-1c6adbdb24b0" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc1NDItTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f916a30fe96fb4d452259fac7440fa18", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:20:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c7b07e2c-3287-4a17-ae54-64e2bf9faf4b", + "x-ms-ratelimit-remaining-subscription-reads": "11542", + "x-ms-request-id": "c7b07e2c-3287-4a17-ae54-64e2bf9faf4b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082041Z:c7b07e2c-3287-4a17-ae54-64e2bf9faf4b" + }, + "ResponseBody": [] + } + ], + "Variables": { + "CLIENT_ID": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "ObjectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "RandomSeed": "1542581924", + "SUBSCRIPTION_ID": "0b1f6471-1bf0-4dda-aec3-cb9272f09590", + "TENANT_ID": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a" + } +} \ No newline at end of file diff --git a/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementListVaults.json b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementListVaults.json new file mode 100644 index 0000000000000..b09a13c84c303 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementListVaults.json @@ -0,0 +1,4933 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c44520f4495f68468ffd34621dbb1ef8-0bdcebecd22c8541-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5743e681603b458efe9c8ee769ecb36a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7496", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "70e9417f-6202-4c91-9635-0e4777888047", + "x-ms-ratelimit-remaining-subscription-reads": "11861", + "x-ms-request-id": "70e9417f-6202-4c91-9635-0e4777888047", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081108Z:70e9417f-6202-4c91-9635-0e4777888047" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault", + "namespace": "Microsoft.KeyVault", + "authorizations": [ + { + "applicationId": "cfa8b339-82a2-471a-a3c9-0fc0be7a4093", + "roleDefinitionId": "1cf9858a-28a2-4228-abba-94e606305b95" + }, + { + "applicationId": "589d5083-6f11-4d30-a62a-a4b316a14abf" + } + ], + "resourceTypes": [ + { + "resourceType": "vaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove" + }, + { + "resourceType": "vaults/secrets", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/accessPolicies", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "operations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01", + "2014-12-19-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "checkNameAvailability", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deleteVirtualNetworkOrSubnets", + "locations": [ + "East US", + "North Central US", + "West Europe", + "North Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West Central US", + "West US 2", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Central US EUAP", + "East US 2 EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ] + }, + { + "resourceType": "locations/operationResults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/eventGridFilters", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14" + ] + } + ], + "registrationState": "Registered" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg4406?api-version=2017-05-10", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "31", + "Content-Type": "application/json", + "traceparent": "00-28fd8c4923e4364eb11dd7425583e31c-2496257d4140ba42-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8884d62820d58e547c4fe83a7bac9dfc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "239", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "96e65a29-5f09-498c-9c46-0665f0c22c53", + "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-request-id": "96e65a29-5f09-498c-9c46-0665f0c22c53", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081110Z:96e65a29-5f09-498c-9c46-0665f0c22c53" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406", + "name": "sdktestrg4406", + "location": "northcentralus", + "tags": { + "StorageType": "Standard_LRS", + "type": "test" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "636", + "Content-Type": "application/json", + "traceparent": "00-50a18ec2ab2d4846a310109d0c6a6331-858fa25c0bc1c946-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c2c405ce986041f5eede72e13b498e17", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4c941105-7f01-40a9-acf0-778904ead246", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1192", + "x-ms-request-id": "f30514a3-c85c-422e-8e29-112cb63164df", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081117Z:4c941105-7f01-40a9-acf0-778904ead246", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221", + "name": "sdktestvault3221", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3221.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "65e42d9065fcec76929432751c9a149e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e9002dd7-ae4f-418f-b613-256187bb5de8", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11860", + "x-ms-request-id": "2394ba00-b8e1-4b50-9722-78b492aa2511", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081118Z:e9002dd7-ae4f-418f-b613-256187bb5de8", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221", + "name": "sdktestvault3221", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3221.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8a6f63ab11bd081215fa034ff2eabefe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2dcbfed7-e3bf-4d39-9d1d-8515dc6a1c39", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11859", + "x-ms-request-id": "e704c719-074a-47f2-95ef-9ec18b41862d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081119Z:2dcbfed7-e3bf-4d39-9d1d-8515dc6a1c39", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221", + "name": "sdktestvault3221", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3221.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0d5186ed2965d71b9b523417937aac23", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "95ac649c-1805-42d2-ae44-6669f6e7e796", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11858", + "x-ms-request-id": "cabed9e7-8e51-41be-b0dc-af569017df35", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081121Z:95ac649c-1805-42d2-ae44-6669f6e7e796", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221", + "name": "sdktestvault3221", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3221.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1e6006fb66807f2d1bdc4f016127f9a8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "26ac1525-a5fb-40ea-a7cc-28e1384e293b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11857", + "x-ms-request-id": "b63720ab-350e-4fe1-a06a-18107cf3df29", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081122Z:26ac1525-a5fb-40ea-a7cc-28e1384e293b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221", + "name": "sdktestvault3221", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3221.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "958734d5074981394897ef6adcfa749b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "dc713368-e398-4b71-ab2f-2fab21b4e4d7", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11856", + "x-ms-request-id": "f99d14fd-bf12-4339-b877-982855032708", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081123Z:dc713368-e398-4b71-ab2f-2fab21b4e4d7", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221", + "name": "sdktestvault3221", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3221.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "eb54df4ea089877d59d1f189da1a7574", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "86a4ac7e-9c89-43e2-bcf2-a487c37e4c79", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11855", + "x-ms-request-id": "cd3460ae-1235-46c5-80f1-fa25f30a3ea9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081125Z:86a4ac7e-9c89-43e2-bcf2-a487c37e4c79", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221", + "name": "sdktestvault3221", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3221.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5f418b5917f2f4dacdded6e977c3a220", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2c87b1a0-1c99-431e-8d24-5ce959012cdf", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11854", + "x-ms-request-id": "a657faa3-83e1-4472-b36b-0e292d7a05f4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081126Z:2c87b1a0-1c99-431e-8d24-5ce959012cdf", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221", + "name": "sdktestvault3221", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3221.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "82b2b3670dd2351eb6003c7815b0a72e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "01a36282-e71d-46f5-ac14-b81e246dff5d", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11853", + "x-ms-request-id": "2d0bfcb9-5f03-464a-a8de-7e096dcb285a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081127Z:01a36282-e71d-46f5-ac14-b81e246dff5d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221", + "name": "sdktestvault3221", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3221.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "50117a2215b837a9055f1eabca941096", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "feb67602-bae9-459c-beaa-c8c5bb69af99", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11852", + "x-ms-request-id": "1f958c2f-7470-452e-9dfd-f717a99adb14", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081129Z:feb67602-bae9-459c-beaa-c8c5bb69af99", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221", + "name": "sdktestvault3221", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3221.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "2621d12ef3674ba16d0ca9f2da61df1c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "960", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "48f78502-9603-493f-9498-fe0d6bad2ef9", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11851", + "x-ms-request-id": "919749fc-6df2-43a8-8b3c-4df4ecfa77f4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081130Z:48f78502-9603-493f-9498-fe0d6bad2ef9", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221", + "name": "sdktestvault3221", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3221.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "636", + "Content-Type": "application/json", + "traceparent": "00-353f280ea4b18047bdf6e781c8228481-bed346ed64d6904e-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b1fcc6a768520a517b7c73ee726a21ef", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6246b3b1-9926-41fb-9a4e-59c650d88382", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1191", + "x-ms-request-id": "dc420339-c85b-4dfd-9e38-7ed9eeeebcdd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081134Z:6246b3b1-9926-41fb-9a4e-59c650d88382", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238", + "name": "sdktestvault4238", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4238.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cd227502e41368dcd01beb772e5cfaa1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bd076868-731a-41f1-862d-1e380c288a67", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11850", + "x-ms-request-id": "4f3ef70c-6bff-42ee-b64c-f0539daa6fdd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081136Z:bd076868-731a-41f1-862d-1e380c288a67", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238", + "name": "sdktestvault4238", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4238.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "183402878d9be1b59824ec6ebbe5531e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7d8c947f-4a91-417a-bd0d-c53bad726ebc", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11849", + "x-ms-request-id": "f062f3be-5dfe-4dfd-992c-c2a595b6e536", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081137Z:7d8c947f-4a91-417a-bd0d-c53bad726ebc", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238", + "name": "sdktestvault4238", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4238.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "fdecf3d85448c2dc6ddbbe65dbb7a968", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6028acb5-2e57-4ad1-80f4-65d9cee967b9", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11848", + "x-ms-request-id": "881e1656-c071-493f-b04c-f4956450c462", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081138Z:6028acb5-2e57-4ad1-80f4-65d9cee967b9", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238", + "name": "sdktestvault4238", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4238.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b4e40ae98b2874e4c04135eef76dadea", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25a7f48d-3a6f-4ee9-b7c0-23c210ddf626", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11847", + "x-ms-request-id": "b2f5e36b-36a1-4311-a229-942e569422a2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081140Z:25a7f48d-3a6f-4ee9-b7c0-23c210ddf626", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238", + "name": "sdktestvault4238", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4238.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3a9fccc8fc7033592572abbfcf4f05e0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "84d72d3a-23c6-4b08-a2fb-87da783c093b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11846", + "x-ms-request-id": "5125e67a-cb11-4838-a1ca-a1bba17b6bb9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081141Z:84d72d3a-23c6-4b08-a2fb-87da783c093b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238", + "name": "sdktestvault4238", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4238.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b185847b9e014cf60e783d061eedcaff", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5da53a84-e53d-428d-8f77-fe26b7d5a0e1", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11845", + "x-ms-request-id": "e3eae943-265d-4247-ad29-30de1a61fafa", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081142Z:5da53a84-e53d-428d-8f77-fe26b7d5a0e1", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238", + "name": "sdktestvault4238", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4238.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0e9cd42e6f18ecf8b1b08fb6e024a570", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b0b85912-51b6-47be-839f-6224a20ee344", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11844", + "x-ms-request-id": "e64f2d8d-6e4c-4fe3-be1a-0fd720e81e11", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081144Z:b0b85912-51b6-47be-839f-6224a20ee344", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238", + "name": "sdktestvault4238", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4238.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7373543bfbe729e8d5532bf8bf521438", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "53c40655-32ab-4b96-826b-6027b9387e74", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11843", + "x-ms-request-id": "3dd1864f-3d9b-406a-a899-408160447554", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081145Z:53c40655-32ab-4b96-826b-6027b9387e74", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238", + "name": "sdktestvault4238", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4238.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "fb91aba7f7b20bc88b9800510f406be9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ef57ff18-df0e-43a0-92ac-e3fb6ef959e0", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11842", + "x-ms-request-id": "463150b4-be88-4231-9298-5a3a03c7c956", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081146Z:ef57ff18-df0e-43a0-92ac-e3fb6ef959e0", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238", + "name": "sdktestvault4238", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4238.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cacbccd2567a3217eb7338c543ff2d5e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2de40ddd-21cb-4239-b069-def33bb9311e", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11841", + "x-ms-request-id": "d8ff77a8-d48a-4fdf-aad9-d719b5f55e4e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081148Z:2de40ddd-21cb-4239-b069-def33bb9311e", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238", + "name": "sdktestvault4238", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4238.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "350e579ba99243bd8c67e74ffb971a95", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "960", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "67988098-bad7-4d46-91d1-69086c077f19", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11840", + "x-ms-request-id": "ac994c92-0c2d-4e79-884a-1c52d6886bf2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081149Z:67988098-bad7-4d46-91d1-69086c077f19", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238", + "name": "sdktestvault4238", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4238.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "636", + "Content-Type": "application/json", + "traceparent": "00-ca394c3ba93ddb4dbaa901c7973987cd-8452202323f4f54a-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "86f22542bd4a93515f0f3fbe03c88c6b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ecf38476-043f-4f34-897b-956a4709ed14", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1190", + "x-ms-request-id": "a4510840-c74f-4d31-876e-a8318f6dd702", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081153Z:ecf38476-043f-4f34-897b-956a4709ed14", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087", + "name": "sdktestvault7087", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7087.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "da00dda3d73a9950bca233997d84889e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "06374eb0-783a-41cb-b8a3-cb79bd4b07f3", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11839", + "x-ms-request-id": "f484996a-45a2-48c9-825a-f01950b606ed", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081154Z:06374eb0-783a-41cb-b8a3-cb79bd4b07f3", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087", + "name": "sdktestvault7087", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7087.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e25ae45b6362ebb1fce3ff0cabe2ca29", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bca0c446-8dba-4d91-9b50-fc9864319379", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11838", + "x-ms-request-id": "4155b2f8-9f21-4d6d-8741-0c403e4e76aa", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081156Z:bca0c446-8dba-4d91-9b50-fc9864319379", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087", + "name": "sdktestvault7087", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7087.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "261be7bcb1c7c930641e7593238f9102", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "de3776c7-ebd2-4fff-a139-10a65ff3cd71", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11837", + "x-ms-request-id": "d2948682-ca32-4ccc-8e0c-615688ee65f9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081158Z:de3776c7-ebd2-4fff-a139-10a65ff3cd71", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087", + "name": "sdktestvault7087", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7087.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e41373b571dc40f62b15de57d844edda", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:11:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25c10b77-9784-4e82-9150-34dda5c51b2d", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11836", + "x-ms-request-id": "d0d266f0-7fcb-4410-882d-e18676288878", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081159Z:25c10b77-9784-4e82-9150-34dda5c51b2d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087", + "name": "sdktestvault7087", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7087.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "96dd0ad76269a9d7b4907e43ed1ec76d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:12:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6f2cf23e-ecc7-446e-b83d-9ea65b0a63c0", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11835", + "x-ms-request-id": "4a7848db-fdca-4959-89f3-16e832557ccc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081200Z:6f2cf23e-ecc7-446e-b83d-9ea65b0a63c0", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087", + "name": "sdktestvault7087", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7087.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3757fc52e6cf4b4cf0dbfab1d3d8f01f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:12:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b8c90089-5431-4f0c-bf47-e4655af1edad", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11834", + "x-ms-request-id": "889e6fbc-560c-4092-ae91-ec84ad3c5c35", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081202Z:b8c90089-5431-4f0c-bf47-e4655af1edad", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087", + "name": "sdktestvault7087", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7087.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "19bb9b31fab153999c69304cf2b3520c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:12:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0f54002d-447c-4193-8271-cb0a7e927753", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11833", + "x-ms-request-id": "d4c4d511-9f46-4e95-b8be-cd26be4d0252", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081203Z:0f54002d-447c-4193-8271-cb0a7e927753", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087", + "name": "sdktestvault7087", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7087.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "dc05704eb5edf10abd92a58d6725d6db", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:12:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9d50a9d2-9e3b-467d-9b45-09b29949494f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11832", + "x-ms-request-id": "ae0e7f1b-3dbe-471e-9bb3-afd1cfa8ad22", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081204Z:9d50a9d2-9e3b-467d-9b45-09b29949494f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087", + "name": "sdktestvault7087", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7087.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "51125e9fad6357bb62039b66b600583d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:12:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1e8ddf8c-6a4b-4167-b8c3-e015204c3021", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11831", + "x-ms-request-id": "8ea194a8-2854-4c71-a83c-216ae4297962", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081206Z:1e8ddf8c-6a4b-4167-b8c3-e015204c3021", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087", + "name": "sdktestvault7087", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7087.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6263ee8814d37b3290ca5c1e540cec77", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "960", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:12:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c0265470-12d9-48a0-812e-096475c2d3dd", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11830", + "x-ms-request-id": "a038c509-1cd6-44e7-a7a1-027465bf35f8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081207Z:c0265470-12d9-48a0-812e-096475c2d3dd", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087", + "name": "sdktestvault7087", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7087.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults?$top=2\u0026api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "94ac549200a1a1a9b4ad7ae91aa43abd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "3147", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:12:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c8c1fcc3-dff0-47d3-8318-c9e6f3f20275", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11829", + "x-ms-request-id": "ac764b0a-312f-4e02-94fc-596f2a63a4cc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081207Z:c8c1fcc3-dff0-47d3-8318-c9e6f3f20275", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221", + "name": "sdktestvault3221", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault3221.vault.azure.net/", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238", + "name": "sdktestvault4238", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4238.vault.azure.net/", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087", + "name": "sdktestvault7087", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7087.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults?$top=2\u0026api-version=2019-09-01\u0026$skiptoken=ServiceBased,Tm9uZSxjMlJyZEdWemRIWmhkV3gwTnpBNE53PT0=" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults?$top=2\u0026api-version=2019-09-01\u0026$skiptoken=ServiceBased,Tm9uZSxjMlJyZEdWemRIWmhkV3gwTnpBNE53PT0=", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7904683a73c18b082b96c198519c0256", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:12:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "46de6c32-1dd4-4719-995d-9bed8f6fb106", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11828", + "x-ms-request-id": "59195df6-a987-49dc-bfc2-8ad3fc155e12", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081208Z:46de6c32-1dd4-4719-995d-9bed8f6fb106", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "value": [] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault3221?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-c8bcf2ff63d06f449b50ab0aa6096dfb-72ce8d49d90f0447-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "61d32317c353889c44c2ae25994860ec", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "24ae2902-a510-4d23-9582-0a8ecdafbb7c", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14993", + "x-ms-request-id": "3556aa4f-41d4-4d5e-ba93-81f05e78d8e7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081211Z:24ae2902-a510-4d23-9582-0a8ecdafbb7c", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault4238?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d685407b8d7f394ca7e7f801c791105e-500131eddc9ead48-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ece49f8f73081fb54c20690a3f104f18", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3a60c97d-b319-4efa-802b-8e13f7949128", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14992", + "x-ms-request-id": "7dbae7ca-b5ec-4bed-a0f5-25947fda77bc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081215Z:3a60c97d-b319-4efa-802b-8e13f7949128", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg4406/providers/Microsoft.KeyVault/vaults/sdktestvault7087?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-fa19b400d6da704693daf5f982f2f4fb-0bec0bcd12682e42-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f6d224abd8d17669cb7c34ffc5e2f1e2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a233fcd8-f3f8-4524-96bf-8e3da944dac9", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14991", + "x-ms-request-id": "e8ac8e9e-7f04-4125-b2e8-87b0a2a946bb", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081219Z:a233fcd8-f3f8-4524-96bf-8e3da944dac9", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg4406?api-version=2017-05-10", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-fa0a92d3ab5e96498d8edd8160f104d5-2f6e22115b663246-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b209d43616b8a44d6eb315335a924833", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7642cfef-0757-41e4-acf8-4165f1224c38", + "x-ms-ratelimit-remaining-subscription-deletes": "14990", + "x-ms-request-id": "7642cfef-0757-41e4-acf8-4165f1224c38", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081223Z:7642cfef-0757-41e4-acf8-4165f1224c38" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6ad3862e9d07945fd62e881dc3361c39", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "94467767-99f8-45dc-a625-af0dd44cb9e6", + "x-ms-ratelimit-remaining-subscription-reads": "11827", + "x-ms-request-id": "94467767-99f8-45dc-a625-af0dd44cb9e6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081224Z:94467767-99f8-45dc-a625-af0dd44cb9e6" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "2f8d00337c68cc6cb9527c49f5c265b8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:24 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bf0e90da-bbd3-4c12-af59-4e03b90f40ce", + "x-ms-ratelimit-remaining-subscription-reads": "11826", + "x-ms-request-id": "bf0e90da-bbd3-4c12-af59-4e03b90f40ce", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081225Z:bf0e90da-bbd3-4c12-af59-4e03b90f40ce" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d404ab59ddbed42c36e59f48e1fef3ff", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:26 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fa3d4c13-5c87-46cb-bc8f-edaf9fb02ce1", + "x-ms-ratelimit-remaining-subscription-reads": "11825", + "x-ms-request-id": "fa3d4c13-5c87-46cb-bc8f-edaf9fb02ce1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081227Z:fa3d4c13-5c87-46cb-bc8f-edaf9fb02ce1" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3e58e7522b28b2011a07b1b521169e14", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:27 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e1426f3d-25a9-4080-b083-cb702cd4cd68", + "x-ms-ratelimit-remaining-subscription-reads": "11824", + "x-ms-request-id": "e1426f3d-25a9-4080-b083-cb702cd4cd68", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081228Z:e1426f3d-25a9-4080-b083-cb702cd4cd68" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "18c3d0c84732557bd3b8f983dd23eabb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2e80dd5d-aa38-4dff-96df-cb8b0418dc78", + "x-ms-ratelimit-remaining-subscription-reads": "11823", + "x-ms-request-id": "2e80dd5d-aa38-4dff-96df-cb8b0418dc78", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081230Z:2e80dd5d-aa38-4dff-96df-cb8b0418dc78" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0ef77c5f26692e8fa951bab62c77b220", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:30 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "48627124-61c0-4ca9-a3e4-398037633622", + "x-ms-ratelimit-remaining-subscription-reads": "11822", + "x-ms-request-id": "48627124-61c0-4ca9-a3e4-398037633622", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081231Z:48627124-61c0-4ca9-a3e4-398037633622" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "117f8b46db3a0acd6b026a70327ed5f6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:32 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "25ecfb86-ea84-4f16-a1a4-7a8f29e0382c", + "x-ms-ratelimit-remaining-subscription-reads": "11821", + "x-ms-request-id": "25ecfb86-ea84-4f16-a1a4-7a8f29e0382c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081233Z:25ecfb86-ea84-4f16-a1a4-7a8f29e0382c" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a556f51d8f1ea1aa40956ee08dc4285c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "40e7bac5-f93d-4001-8b8c-0b3722ee85c4", + "x-ms-ratelimit-remaining-subscription-reads": "11820", + "x-ms-request-id": "40e7bac5-f93d-4001-8b8c-0b3722ee85c4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081234Z:40e7bac5-f93d-4001-8b8c-0b3722ee85c4" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "513cd905d8a48481aeeda367bc1ffc2b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:35 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "942d0adc-9dde-4749-afdd-349b6ba04e66", + "x-ms-ratelimit-remaining-subscription-reads": "11819", + "x-ms-request-id": "942d0adc-9dde-4749-afdd-349b6ba04e66", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081236Z:942d0adc-9dde-4749-afdd-349b6ba04e66" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3799c37c0d20b601e0ddd1a46ced7ca7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:36 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6c47376b-0f1b-40a3-93c4-55236445c018", + "x-ms-ratelimit-remaining-subscription-reads": "11818", + "x-ms-request-id": "6c47376b-0f1b-40a3-93c4-55236445c018", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081237Z:6c47376b-0f1b-40a3-93c4-55236445c018" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "596a0dd98342445174d2f730ec43e521", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:38 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5ba2dbb2-4e69-4718-8800-5cdd0f79fd34", + "x-ms-ratelimit-remaining-subscription-reads": "11817", + "x-ms-request-id": "5ba2dbb2-4e69-4718-8800-5cdd0f79fd34", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081239Z:5ba2dbb2-4e69-4718-8800-5cdd0f79fd34" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ca644299f12bf83cd78571c607dc17c1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:39 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f0cf5c52-af69-4eb4-9b65-eeddcb36afd7", + "x-ms-ratelimit-remaining-subscription-reads": "11816", + "x-ms-request-id": "f0cf5c52-af69-4eb4-9b65-eeddcb36afd7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081240Z:f0cf5c52-af69-4eb4-9b65-eeddcb36afd7" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ae8dfb71a2b4f8e97254c24e16d1ca9d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:41 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "485caaa0-60db-49c2-9ec1-828e73ee16ee", + "x-ms-ratelimit-remaining-subscription-reads": "11815", + "x-ms-request-id": "485caaa0-60db-49c2-9ec1-828e73ee16ee", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081242Z:485caaa0-60db-49c2-9ec1-828e73ee16ee" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "2a0aaff8b289e87cd17182bc128b3c97", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:42 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "976bf33b-738b-4ea6-a7ef-83551d758089", + "x-ms-ratelimit-remaining-subscription-reads": "11814", + "x-ms-request-id": "976bf33b-738b-4ea6-a7ef-83551d758089", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081243Z:976bf33b-738b-4ea6-a7ef-83551d758089" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f0be35bb36b5f66c596b57d62eede205", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:44 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d0e2913c-3ec9-4cf9-98f5-e902cb18d45c", + "x-ms-ratelimit-remaining-subscription-reads": "11813", + "x-ms-request-id": "d0e2913c-3ec9-4cf9-98f5-e902cb18d45c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081245Z:d0e2913c-3ec9-4cf9-98f5-e902cb18d45c" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "58ced3baedd1bf377fa5dd43202ce6e7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "904e9048-0229-4a0e-931f-2aa18dd6ee9a", + "x-ms-ratelimit-remaining-subscription-reads": "11812", + "x-ms-request-id": "904e9048-0229-4a0e-931f-2aa18dd6ee9a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081246Z:904e9048-0229-4a0e-931f-2aa18dd6ee9a" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e0932b18d913c2e74214d01d5aa5b9e4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:47 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c45d07fa-cb6f-4987-b4f7-ebff51543c04", + "x-ms-ratelimit-remaining-subscription-reads": "11811", + "x-ms-request-id": "c45d07fa-cb6f-4987-b4f7-ebff51543c04", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081248Z:c45d07fa-cb6f-4987-b4f7-ebff51543c04" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3e017c8fe4bccdc5fdfe71105929d52c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:48 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c73edfc5-944d-46cd-871a-1504f9ccb401", + "x-ms-ratelimit-remaining-subscription-reads": "11810", + "x-ms-request-id": "c73edfc5-944d-46cd-871a-1504f9ccb401", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081249Z:c73edfc5-944d-46cd-871a-1504f9ccb401" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "03be70840259e1f2eb0c15bd1c1a65d9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:50 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9b7baf3c-9d36-4d9e-b9a1-a286bc178419", + "x-ms-ratelimit-remaining-subscription-reads": "11809", + "x-ms-request-id": "9b7baf3c-9d36-4d9e-b9a1-a286bc178419", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081251Z:9b7baf3c-9d36-4d9e-b9a1-a286bc178419" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a4b4f9eca72a332a65c5e21467d76818", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8b71da5f-fab3-4219-972f-e456d4cbba59", + "x-ms-ratelimit-remaining-subscription-reads": "11808", + "x-ms-request-id": "8b71da5f-fab3-4219-972f-e456d4cbba59", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081252Z:8b71da5f-fab3-4219-972f-e456d4cbba59" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e998a43eb5e78c8a8a2053b0ce07b1e3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:53 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2d471089-6730-426e-a9a5-9ff97c560992", + "x-ms-ratelimit-remaining-subscription-reads": "11807", + "x-ms-request-id": "2d471089-6730-426e-a9a5-9ff97c560992", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081254Z:2d471089-6730-426e-a9a5-9ff97c560992" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "602497993175dd02468a9d941fdd7914", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:54 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6bd2def9-d8b2-4072-9952-0aa2536d39cf", + "x-ms-ratelimit-remaining-subscription-reads": "11806", + "x-ms-request-id": "6bd2def9-d8b2-4072-9952-0aa2536d39cf", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081255Z:6bd2def9-d8b2-4072-9952-0aa2536d39cf" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "787ffca37b8136f26e27190a5479655e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "06bf1199-8933-4be6-89ed-b4059f3272e1", + "x-ms-ratelimit-remaining-subscription-reads": "11805", + "x-ms-request-id": "06bf1199-8933-4be6-89ed-b4059f3272e1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081257Z:06bf1199-8933-4be6-89ed-b4059f3272e1" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0NDA2LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cf7bfe1308b30ca3a1bba35c17f56dad", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:12:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bba5c45a-bf4f-4296-a373-7cf1678ab4c5", + "x-ms-ratelimit-remaining-subscription-reads": "11804", + "x-ms-request-id": "bba5c45a-bf4f-4296-a373-7cf1678ab4c5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081258Z:bba5c45a-bf4f-4296-a373-7cf1678ab4c5" + }, + "ResponseBody": [] + } + ], + "Variables": { + "CLIENT_ID": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "ObjectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "RandomSeed": "1669840309", + "SUBSCRIPTION_ID": "0b1f6471-1bf0-4dda-aec3-cb9272f09590", + "TENANT_ID": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a" + } +} \ No newline at end of file diff --git a/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementListVaultsAsync.json b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementListVaultsAsync.json new file mode 100644 index 0000000000000..d594b91c20f78 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementListVaultsAsync.json @@ -0,0 +1,4601 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-fa502882aada9b43b964023c5c2f1ff1-da0c253afde90049-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "28fc6e63372677cad082e1cf1acff86c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7496", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:20:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "23b31a41-dd19-46a0-a041-fb019096e91d", + "x-ms-ratelimit-remaining-subscription-reads": "11541", + "x-ms-request-id": "23b31a41-dd19-46a0-a041-fb019096e91d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082043Z:23b31a41-dd19-46a0-a041-fb019096e91d" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault", + "namespace": "Microsoft.KeyVault", + "authorizations": [ + { + "applicationId": "cfa8b339-82a2-471a-a3c9-0fc0be7a4093", + "roleDefinitionId": "1cf9858a-28a2-4228-abba-94e606305b95" + }, + { + "applicationId": "589d5083-6f11-4d30-a62a-a4b316a14abf" + } + ], + "resourceTypes": [ + { + "resourceType": "vaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove" + }, + { + "resourceType": "vaults/secrets", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/accessPolicies", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "operations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01", + "2014-12-19-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "checkNameAvailability", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deleteVirtualNetworkOrSubnets", + "locations": [ + "East US", + "North Central US", + "West Europe", + "North Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West Central US", + "West US 2", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Central US EUAP", + "East US 2 EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ] + }, + { + "resourceType": "locations/operationResults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/eventGridFilters", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14" + ] + } + ], + "registrationState": "Registered" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg6397?api-version=2017-05-10", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "31", + "Content-Type": "application/json", + "traceparent": "00-413828b02e4f7f429b6dbc45fa5af30d-480b022343415f42-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0203234b76c1a18970a77004696688d1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "239", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:20:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f31ae94c-a674-490a-be8f-b270c77bed36", + "x-ms-ratelimit-remaining-subscription-writes": "1174", + "x-ms-request-id": "f31ae94c-a674-490a-be8f-b270c77bed36", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082046Z:f31ae94c-a674-490a-be8f-b270c77bed36" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397", + "name": "sdktestrg6397", + "location": "northcentralus", + "tags": { + "StorageType": "Standard_LRS", + "type": "test" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "636", + "Content-Type": "application/json", + "traceparent": "00-e61b4acfa851404f999c73f77d155a6b-0dce3072b5c88e40-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "057cf2be77b64ffc636c4dbc631dc237", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:20:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "66c8c208-920b-48fb-b128-a23b2f0b7af8", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1173", + "x-ms-request-id": "dfdc580f-8797-4d52-b3cc-1c314ac25550", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082053Z:66c8c208-920b-48fb-b128-a23b2f0b7af8", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110", + "name": "sdktestvault4110", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4110.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "79391048461a8c6d0672121d53b44352", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:20:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "81c3aab2-aeb7-4a72-8ddf-333ab838ee7a", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11540", + "x-ms-request-id": "48d378d8-e8f9-4e9d-8660-16ad1690d653", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082054Z:81c3aab2-aeb7-4a72-8ddf-333ab838ee7a", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110", + "name": "sdktestvault4110", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4110.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5c5f32428760c61d80f54f271d89e747", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:20:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d13d7ac0-74e4-48bb-9f32-a59e05f6dd39", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11539", + "x-ms-request-id": "012a15de-b3fa-4efa-a91f-2ed050e76c0e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082055Z:d13d7ac0-74e4-48bb-9f32-a59e05f6dd39", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110", + "name": "sdktestvault4110", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4110.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5374501448e4c01cbfe4432fe5553301", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:20:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7afe1661-e533-42bf-be90-2bb6ead6aa60", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11538", + "x-ms-request-id": "5c22a902-16e0-47a7-8715-32d6051cbb53", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082057Z:7afe1661-e533-42bf-be90-2bb6ead6aa60", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110", + "name": "sdktestvault4110", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4110.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3530074bfcbcc09cf272f925f7466e7d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:20:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8ec37f88-9faf-4f40-b0d4-d5cb67dc5b9b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11537", + "x-ms-request-id": "3491badc-94b0-4d49-92a5-24c48a0df753", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082058Z:8ec37f88-9faf-4f40-b0d4-d5cb67dc5b9b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110", + "name": "sdktestvault4110", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4110.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0308cb8aef40f96d159f9c7c44eee12b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:20:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ad604e91-04eb-46ed-af23-4a5945c4e738", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11536", + "x-ms-request-id": "8b85fe16-1f1d-4bf4-99ed-e7d9ae025819", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082059Z:ad604e91-04eb-46ed-af23-4a5945c4e738", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110", + "name": "sdktestvault4110", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4110.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "16db4dc1b258178ab3b361724ff7c979", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "97d605c9-b0ab-49e1-aa37-a69a6aab0579", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11535", + "x-ms-request-id": "81c9ca5a-7b3b-4333-bd9a-b2448e0b3dfe", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082101Z:97d605c9-b0ab-49e1-aa37-a69a6aab0579", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110", + "name": "sdktestvault4110", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4110.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1aa4c5762f4c5bc199371f1d5f207c03", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2e7cce6b-2ab9-4450-97aa-c85cc98e6815", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11534", + "x-ms-request-id": "5198e768-c24d-4dfb-b555-f5e63e82c402", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082102Z:2e7cce6b-2ab9-4450-97aa-c85cc98e6815", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110", + "name": "sdktestvault4110", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4110.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a963cd90586ad72440f0508c8efbaa1d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "00865a58-5302-42de-9d43-c33da1a95440", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11533", + "x-ms-request-id": "6acd3fd8-a7e5-471b-869b-36539bdc3e24", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082103Z:00865a58-5302-42de-9d43-c33da1a95440", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110", + "name": "sdktestvault4110", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4110.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7e0623d6c74a92df8c7f7c21926db893", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d7cc2026-423f-4992-ae97-bfe6ba641145", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11532", + "x-ms-request-id": "4da26275-6589-4169-b508-d833c3f94e93", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082105Z:d7cc2026-423f-4992-ae97-bfe6ba641145", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110", + "name": "sdktestvault4110", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4110.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "81e15e371f931d0ea1ccd95bdf34cd9d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:06 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cc8ca510-3d3d-4565-a949-ca0ce18c3b5a", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11531", + "x-ms-request-id": "3482b46c-f5f0-4bae-ae3a-d2c88196262b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082106Z:cc8ca510-3d3d-4565-a949-ca0ce18c3b5a", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110", + "name": "sdktestvault4110", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4110.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3c46028dfe1ac9b9eed11ceadb0345d2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "960", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:07 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "45668c19-88b2-4b3f-ae69-d607017d6cde", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11530", + "x-ms-request-id": "49a4431e-5211-4e30-aa46-4150e4658675", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082107Z:45668c19-88b2-4b3f-ae69-d607017d6cde", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110", + "name": "sdktestvault4110", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4110.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "636", + "Content-Type": "application/json", + "traceparent": "00-a8c13561680ffa49ac7327d92c934cb2-7e704ba155b0ff43-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1a3055bd8a2814b6e8dd7ded83b257b2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:11 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "64bb13fc-41be-4ed1-82d5-20b593945c32", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1172", + "x-ms-request-id": "d8c62c57-d468-4046-a3d4-cc19740f4eeb", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082112Z:64bb13fc-41be-4ed1-82d5-20b593945c32", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530", + "name": "sdktestvault4530", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4530.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "df222206829d7864902731213bdb6a1e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7d616863-2cef-41ad-93da-8e1cd8c7cb3c", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11529", + "x-ms-request-id": "a4a7f2e8-fd82-466e-a390-74400e48ca51", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082113Z:7d616863-2cef-41ad-93da-8e1cd8c7cb3c", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530", + "name": "sdktestvault4530", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4530.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6ffb38c4acb444bc1c8a0295c7b3f0a6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fe9499ea-33c6-4bc1-b7f2-aa9222ff4078", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11528", + "x-ms-request-id": "9e094fd8-864b-4f37-9b95-e4dbfbcb2c6e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082114Z:fe9499ea-33c6-4bc1-b7f2-aa9222ff4078", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530", + "name": "sdktestvault4530", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4530.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "60e7f63f78905c142f1895544617693c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d83ff20b-dabe-4f39-b5d8-ceb6ce224ec3", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11527", + "x-ms-request-id": "385e034a-3692-4552-a9c1-511f2b1c8a1d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082115Z:d83ff20b-dabe-4f39-b5d8-ceb6ce224ec3", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530", + "name": "sdktestvault4530", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4530.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "eb3ea3282e465ad366ddc21280cfb0dd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0d065f7c-7c57-4568-891b-d7cd44ca31c7", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11526", + "x-ms-request-id": "90ca201c-7bc0-4904-bac9-14d73661b6c2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082117Z:0d065f7c-7c57-4568-891b-d7cd44ca31c7", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530", + "name": "sdktestvault4530", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4530.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "44e18b3709f44c8e239f3f9b1667fd04", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "659f653a-9115-440b-b681-8934bfc69b45", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11525", + "x-ms-request-id": "a1599d7a-b56d-48c2-b626-b4e0392b9ec7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082118Z:659f653a-9115-440b-b681-8934bfc69b45", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530", + "name": "sdktestvault4530", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4530.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "236cc52104741160238cfab2b602dc5f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f0069214-cc7b-4ec6-8ee3-8c6e8e03d2e5", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11524", + "x-ms-request-id": "7d541bfd-6757-45bb-bea5-6f472a9b33fe", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082119Z:f0069214-cc7b-4ec6-8ee3-8c6e8e03d2e5", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530", + "name": "sdktestvault4530", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4530.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "bb1db86824361e4815f2c7a7ee3744ff", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5a1e2dd2-28b9-4e39-8dd4-105d3af2667c", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11523", + "x-ms-request-id": "bf77751e-9f73-4d88-9017-2fb064c8e1d5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082121Z:5a1e2dd2-28b9-4e39-8dd4-105d3af2667c", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530", + "name": "sdktestvault4530", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4530.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "baf1bde08c6232682bcf21670fdb9521", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "75bb83ec-d61d-4b94-b3ef-fd76214d028f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11522", + "x-ms-request-id": "d16080a5-fa12-4710-8661-8a165dcd72af", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082122Z:75bb83ec-d61d-4b94-b3ef-fd76214d028f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530", + "name": "sdktestvault4530", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4530.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5d33dfc2424afcce7d4e0e823cb922eb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "dd5560bc-4037-495f-8014-d64f197c70f6", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11521", + "x-ms-request-id": "4c2d68e7-043a-48da-b022-d1cd4b40f423", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082123Z:dd5560bc-4037-495f-8014-d64f197c70f6", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530", + "name": "sdktestvault4530", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4530.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f8d2fa482210dbfd4fea906603e00e3a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6c7521f3-3979-4dcb-b44a-943df59dbcd6", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11520", + "x-ms-request-id": "aaac0787-0d64-4c41-9ed2-24d557ab275d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082125Z:6c7521f3-3979-4dcb-b44a-943df59dbcd6", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530", + "name": "sdktestvault4530", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4530.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0fe4a65ce6039eb5eff43c147ee6f571", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "960", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "094f7790-6873-4b84-a02f-a3c3c430535c", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11519", + "x-ms-request-id": "f704d73c-409c-499c-85bd-bdb91d3440b4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082126Z:094f7790-6873-4b84-a02f-a3c3c430535c", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530", + "name": "sdktestvault4530", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4530.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault1811?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "636", + "Content-Type": "application/json", + "traceparent": "00-9df607bb64513c41b9ea6b6d6ea03bd3-de76fe10230c154c-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "09141f35109de29f580e5fb168f99c3f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "15795b69-1a05-46a6-a8ae-ca597f270a9b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1171", + "x-ms-request-id": "27df44e9-2f15-49ca-946f-404d4d030c35", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082130Z:15795b69-1a05-46a6-a8ae-ca597f270a9b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault1811", + "name": "sdktestvault1811", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1811.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault1811?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c0cdb91e30fa95bf452caad855ec87fb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e345edea-58b2-49aa-83fd-0c5017b5c3ad", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11518", + "x-ms-request-id": "6263f5b7-94f3-4a7a-80ca-4a6c8a8878a5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082131Z:e345edea-58b2-49aa-83fd-0c5017b5c3ad", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault1811", + "name": "sdktestvault1811", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1811.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault1811?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "bfaad5a09d5e4d99beced593f4b9fafb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bf8fbf5e-a3bc-4653-b5d8-e72da46ec0e4", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11517", + "x-ms-request-id": "2fc20b0f-5ffe-4ec8-b45a-d24fe2b6c3ca", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082132Z:bf8fbf5e-a3bc-4653-b5d8-e72da46ec0e4", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault1811", + "name": "sdktestvault1811", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1811.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault1811?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ae9369a4db2ca34567018fe73d89f047", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8026b8ee-b2a7-4617-82f4-51b30a459f07", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11516", + "x-ms-request-id": "de6b7fdc-fa3c-4297-9756-5b845597bd10", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082134Z:8026b8ee-b2a7-4617-82f4-51b30a459f07", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault1811", + "name": "sdktestvault1811", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1811.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault1811?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "12452082a9b281961f7f022b5a2ba08b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c81e9b67-b909-423b-8f02-02bd023f1a3b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11515", + "x-ms-request-id": "186ec600-eb37-44dc-b88a-e6da78a2e6ef", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082135Z:c81e9b67-b909-423b-8f02-02bd023f1a3b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault1811", + "name": "sdktestvault1811", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1811.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault1811?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "eb33ae32d859c4cf9006585d0db20f34", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5193897c-1de8-423b-946b-1027f3269e1a", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11514", + "x-ms-request-id": "581d39b0-1f71-486d-a83f-47db5a454fb1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082136Z:5193897c-1de8-423b-946b-1027f3269e1a", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault1811", + "name": "sdktestvault1811", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1811.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault1811?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d3118edee774fa49d3118eacd919483b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "960", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:21:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "14970dbb-70ba-45d9-ba73-bbc014e64412", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "8251abd9-90f6-402e-8567-eecdd1872489", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082157Z:14970dbb-70ba-45d9-ba73-bbc014e64412", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault1811", + "name": "sdktestvault1811", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1811.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults?$top=2\u0026api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8eb404600455a9ed518182ab5039736d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "3118", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:22:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5e416d58-2253-4edd-8082-d0537e746178", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "5446936c-8d4b-4bbf-a73b-e44b315e2ccd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082203Z:5e416d58-2253-4edd-8082-d0537e746178", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "value": [ + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault1811", + "name": "sdktestvault1811", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1811.vault.azure.net/", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110", + "name": "sdktestvault4110", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4110.vault.azure.net/", + "provisioningState": "Succeeded" + } + }, + { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530", + "name": "sdktestvault4530", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4530.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + ], + "nextLink": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults?$top=2\u0026api-version=2019-09-01\u0026$skiptoken=c2RrdGVzdHZhdWx0NDUzMA==" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults?$top=2\u0026api-version=2019-09-01\u0026$skiptoken=c2RrdGVzdHZhdWx0NDUzMA==", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cc4ccd70cd194b16643818474922eb76", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "12", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:22:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "75be32ce-a593-4c6f-a561-d492a0684d8f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "281e0c73-896e-49b9-8974-fe1e95d97aed", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082203Z:75be32ce-a593-4c6f-a561-d492a0684d8f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "value": [] + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4110?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5521306b85ee0b4797840968e981167a-824f0cd51e4ac146-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "09fd1dbd80fddadfa06882f2649eaa9a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:12 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2cc04ece-aea2-46ef-ba3f-c49edcafa5db", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14999", + "x-ms-request-id": "6b0a42da-7daa-47eb-9ee4-a4db0ad8d073", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082212Z:2cc04ece-aea2-46ef-ba3f-c49edcafa5db", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault4530?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-4ae5688429b7b44daa923542c3f9f058-794f97d57afad643-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0b3b219d7ccd9322ed69291ceba6602e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:16 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "031d5631-f613-41a2-acd5-900ce4130fc1", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14998", + "x-ms-request-id": "a01a392d-6d7f-427e-9b2a-0ab8c764bf6c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082217Z:031d5631-f613-41a2-acd5-900ce4130fc1", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg6397/providers/Microsoft.KeyVault/vaults/sdktestvault1811?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-95fdad701f45334bbdc9e15e3af80ecb-9126ff2abc888840-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "33ed0c966a3bef6fee712bb14b24e6c5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5e772d65-7076-4a7c-82dc-09e61563471f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14997", + "x-ms-request-id": "0063a3e0-cd80-4fcd-9f51-17f81b75bb75", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082220Z:5e772d65-7076-4a7c-82dc-09e61563471f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg6397?api-version=2017-05-10", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-47e87908efe9c34880a204478ff18b7c-8771d02f4c0a9b4b-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "27aa7e8edfe641a9fa6a1b9456c2effa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:28 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a8be05eb-ee99-4910-9077-e0ba6b3f6d30", + "x-ms-ratelimit-remaining-subscription-deletes": "14996", + "x-ms-request-id": "a8be05eb-ee99-4910-9077-e0ba6b3f6d30", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082229Z:a8be05eb-ee99-4910-9077-e0ba6b3f6d30" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6d8e648238fbb64763ab39d14fdb982b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a3331244-c69c-4655-a2ad-ce9fa8673bb5", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "a3331244-c69c-4655-a2ad-ce9fa8673bb5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082229Z:a3331244-c69c-4655-a2ad-ce9fa8673bb5" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f7a931828ec718142077769ac24df089", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:30 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c90671d1-34fd-4e19-bf84-891b31ec564c", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "c90671d1-34fd-4e19-bf84-891b31ec564c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082231Z:c90671d1-34fd-4e19-bf84-891b31ec564c" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f21152228234cffe0ba5f5063d8ce3d6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:32 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "27536b8f-4fcc-4aa2-8368-0088591bf6ec", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "27536b8f-4fcc-4aa2-8368-0088591bf6ec", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082232Z:27536b8f-4fcc-4aa2-8368-0088591bf6ec" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1fd8f1b350c7f3014f754c83c2adf415", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e11701a1-a7f9-410d-83f9-7c27361343e9", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "e11701a1-a7f9-410d-83f9-7c27361343e9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082234Z:e11701a1-a7f9-410d-83f9-7c27361343e9" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "fdafafbba6c900f732daec21990dda93", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:35 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cae87bdf-4927-4301-add9-e85e8a5d7a79", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "cae87bdf-4927-4301-add9-e85e8a5d7a79", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082235Z:cae87bdf-4927-4301-add9-e85e8a5d7a79" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d1e79f94d175d1c2501da2be357a0d5e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:36 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c12c10f4-e77c-4854-bfa4-8cc6b8e506f8", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "c12c10f4-e77c-4854-bfa4-8cc6b8e506f8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082237Z:c12c10f4-e77c-4854-bfa4-8cc6b8e506f8" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8d4bdfb1e6dd0c0cfad8eced63e05a41", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:38 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0fb8d1b9-636a-471d-9ca2-313dd867007d", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "0fb8d1b9-636a-471d-9ca2-313dd867007d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082238Z:0fb8d1b9-636a-471d-9ca2-313dd867007d" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "22efb99a23c5e9a0edddacac0338cbb7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:39 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "87b7749f-c44b-4fde-acb2-74835acbe1f4", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "87b7749f-c44b-4fde-acb2-74835acbe1f4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082240Z:87b7749f-c44b-4fde-acb2-74835acbe1f4" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b9708ecc4cc2adb693dad69ce5d46d70", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:41 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "290fd659-cd20-464d-be6d-099521a774c1", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "290fd659-cd20-464d-be6d-099521a774c1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082241Z:290fd659-cd20-464d-be6d-099521a774c1" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7b2360c3ea8b8e983f61a0ff396009c2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:42 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bb492290-b963-431c-b9b8-edaa5109d884", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "bb492290-b963-431c-b9b8-edaa5109d884", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082243Z:bb492290-b963-431c-b9b8-edaa5109d884" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d520340da06f4e7f03418feb4c030418", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:44 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "24d0ddee-a3a3-44c5-b2a5-cb4245c8a457", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "24d0ddee-a3a3-44c5-b2a5-cb4245c8a457", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082244Z:24d0ddee-a3a3-44c5-b2a5-cb4245c8a457" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a2e83c6f4f14e22cf5e17961acb67433", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5c344d27-bf78-4a69-bde5-fe583fc87e11", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "5c344d27-bf78-4a69-bde5-fe583fc87e11", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082246Z:5c344d27-bf78-4a69-bde5-fe583fc87e11" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b08f14d197b42200e1d578495bad413c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:47 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1e028e14-e512-4516-8d16-74148c80b963", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "1e028e14-e512-4516-8d16-74148c80b963", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082248Z:1e028e14-e512-4516-8d16-74148c80b963" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "fc8f885c6677bdad073ee08e271da14c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:48 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2df41f28-443a-43a3-b15b-447c2a852f7f", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "2df41f28-443a-43a3-b15b-447c2a852f7f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082249Z:2df41f28-443a-43a3-b15b-447c2a852f7f" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "37195ccd5473d7643cc6c13ed7e38648", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:50 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0ff2515a-bd19-4614-aacb-22bc8e7adcd5", + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-request-id": "0ff2515a-bd19-4614-aacb-22bc8e7adcd5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082251Z:0ff2515a-bd19-4614-aacb-22bc8e7adcd5" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "23043d9f77266abb66d2a875b772fbc4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b8f4a0fd-5e03-49bc-83a2-6beeede9f657", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-request-id": "b8f4a0fd-5e03-49bc-83a2-6beeede9f657", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082252Z:b8f4a0fd-5e03-49bc-83a2-6beeede9f657" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ff7b2b330a9308c823b7c0b1a56fe624", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:53 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9b061ab2-3ff2-452c-bf21-8afd83c6f335", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-request-id": "9b061ab2-3ff2-452c-bf21-8afd83c6f335", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082254Z:9b061ab2-3ff2-452c-bf21-8afd83c6f335" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e9ee97b77d185625a0afd1a1abee20c9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:54 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9caeea9b-5b1a-4865-a56b-6d787d265e2d", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-request-id": "9caeea9b-5b1a-4865-a56b-6d787d265e2d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082255Z:9caeea9b-5b1a-4865-a56b-6d787d265e2d" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ab0afcca866795b474fb006fb60ac5f7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "39db135d-5275-4715-a8c7-78242b6b2c40", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-request-id": "39db135d-5275-4715-a8c7-78242b6b2c40", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082257Z:39db135d-5275-4715-a8c7-78242b6b2c40" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "20be84eb1183b6ab05255fe438265d35", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:57 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2ac727c9-5b1b-4f65-8af7-a4067650f4e1", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-request-id": "2ac727c9-5b1b-4f65-8af7-a4067650f4e1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082258Z:2ac727c9-5b1b-4f65-8af7-a4067650f4e1" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a8e6f6973a6430bce358741d7db69f96", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:22:59 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5d2011a2-69e3-46c4-b24e-cfab79e59832", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-request-id": "5d2011a2-69e3-46c4-b24e-cfab79e59832", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082300Z:5d2011a2-69e3-46c4-b24e-cfab79e59832" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc2Mzk3LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "26b6d9e90030b9455154a64227cf5c4e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:23:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c1cf2428-adc1-400d-8fc1-f8849f6b895d", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-request-id": "c1cf2428-adc1-400d-8fc1-f8849f6b895d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082301Z:c1cf2428-adc1-400d-8fc1-f8849f6b895d" + }, + "ResponseBody": [] + } + ], + "Variables": { + "CLIENT_ID": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "ObjectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "RandomSeed": "1949756256", + "SUBSCRIPTION_ID": "0b1f6471-1bf0-4dda-aec3-cb9272f09590", + "TENANT_ID": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a" + } +} \ No newline at end of file diff --git a/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementRecoverDeletedVault.json b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementRecoverDeletedVault.json new file mode 100644 index 0000000000000..c0b552e6d66a0 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementRecoverDeletedVault.json @@ -0,0 +1,3128 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-29e6514c8d6abe42a39ab886294f3791-4665d58832369a49-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3dd462e481d1fcf518dac154f5b9ce5d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7496", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7e9507fa-aaba-4b4e-8450-59376c1fdb62", + "x-ms-ratelimit-remaining-subscription-reads": "11803", + "x-ms-request-id": "7e9507fa-aaba-4b4e-8450-59376c1fdb62", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081300Z:7e9507fa-aaba-4b4e-8450-59376c1fdb62" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault", + "namespace": "Microsoft.KeyVault", + "authorizations": [ + { + "applicationId": "cfa8b339-82a2-471a-a3c9-0fc0be7a4093", + "roleDefinitionId": "1cf9858a-28a2-4228-abba-94e606305b95" + }, + { + "applicationId": "589d5083-6f11-4d30-a62a-a4b316a14abf" + } + ], + "resourceTypes": [ + { + "resourceType": "vaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove" + }, + { + "resourceType": "vaults/secrets", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/accessPolicies", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "operations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01", + "2014-12-19-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "checkNameAvailability", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deleteVirtualNetworkOrSubnets", + "locations": [ + "East US", + "North Central US", + "West Europe", + "North Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West Central US", + "West US 2", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Central US EUAP", + "East US 2 EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ] + }, + { + "resourceType": "locations/operationResults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/eventGridFilters", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14" + ] + } + ], + "registrationState": "Registered" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg8681?api-version=2017-05-10", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "31", + "Content-Type": "application/json", + "traceparent": "00-a573fff86614124a89b00c018bb2a902-19b3771566637a40-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0b00a7ae5d96c96a079ff2e9a08d59ac", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "239", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bb01b4da-0aee-423c-aa06-13d21214619a", + "x-ms-ratelimit-remaining-subscription-writes": "1189", + "x-ms-request-id": "bb01b4da-0aee-423c-aa06-13d21214619a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081302Z:bb01b4da-0aee-423c-aa06-13d21214619a" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681", + "name": "sdktestrg8681", + "location": "northcentralus", + "tags": { + "StorageType": "Standard_LRS", + "type": "test" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "660", + "Content-Type": "application/json", + "traceparent": "00-0390a6d9e7fdef48b61f96167fd36c26-5b9b8488e944d74c-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3305b7a9ad5e127f62bb41acd6f86354", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:21 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e99dcc2b-75da-4fe9-80c1-575b2a70c5e0", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1188", + "x-ms-request-id": "67ce4a82-a995-42ed-979b-91b57d88a78a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081321Z:e99dcc2b-75da-4fe9-80c1-575b2a70c5e0", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946", + "name": "sdktestvault8946", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault8946.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1710f5a8e657fa4f81f933a2281c30a6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b7467189-dbdf-4400-b50f-fbc53497216b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11802", + "x-ms-request-id": "a3ef3e3e-ecaf-439f-a774-0cb33a823c29", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081323Z:b7467189-dbdf-4400-b50f-fbc53497216b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946", + "name": "sdktestvault8946", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault8946.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1473958efaf55b60b29abf93ca7cffea", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f5c66c84-b27b-4877-9f58-bf2e40741f39", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11801", + "x-ms-request-id": "c3d9685a-2f36-4d23-b21d-e6e88ed217bf", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081324Z:f5c66c84-b27b-4877-9f58-bf2e40741f39", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946", + "name": "sdktestvault8946", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault8946.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e103d96e4ce746fc296930a619624257", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:25 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c3d18954-bbbd-42cb-b19a-c0846c5e5059", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11800", + "x-ms-request-id": "d8a41641-9692-4ec5-a854-7143426bb22c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081325Z:c3d18954-bbbd-42cb-b19a-c0846c5e5059", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946", + "name": "sdktestvault8946", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault8946.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7d743c993804ad7295b564bc26bc2f05", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1266fd4e-7464-42fd-b399-03592c7d1ec4", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11799", + "x-ms-request-id": "844ef92b-54d8-478d-b424-79fcda133bff", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081327Z:1266fd4e-7464-42fd-b399-03592c7d1ec4", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946", + "name": "sdktestvault8946", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault8946.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "4e3349f94f1842be992cea8ccab9414f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d7ff65d8-7d2b-4ab6-b44e-365f5b62df4d", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11798", + "x-ms-request-id": "d7931158-7f7d-475f-a5e7-676c8be7cd07", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081328Z:d7ff65d8-7d2b-4ab6-b44e-365f5b62df4d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946", + "name": "sdktestvault8946", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault8946.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8efa6858820735e567564b32e73f1f6d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:29 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "315c1aef-bc12-4526-be30-784fdd5f53c4", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11797", + "x-ms-request-id": "f42cee57-690d-47bd-9055-92c75b3e6d71", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081329Z:315c1aef-bc12-4526-be30-784fdd5f53c4", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946", + "name": "sdktestvault8946", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault8946.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d0ad2a39f32e4a3e7e31e3d74ee6e2dc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:30 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3298327b-a9cd-41c4-8f12-77f837d7c3cd", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11796", + "x-ms-request-id": "fae3bdb5-9cc8-486b-8053-48ddf6b902ce", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081330Z:3298327b-a9cd-41c4-8f12-77f837d7c3cd", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946", + "name": "sdktestvault8946", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault8946.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "be641473a1c177fd63fee7c2038b5b5a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:31 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9bdc4263-ce34-49d8-809d-cced62abe9ce", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11795", + "x-ms-request-id": "2605f060-b071-4356-87a8-7dd07da54526", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081332Z:9bdc4263-ce34-49d8-809d-cced62abe9ce", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946", + "name": "sdktestvault8946", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault8946.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a0527c0d700c652129b010d69e0de780", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0055b103-90c9-48aa-878b-a74be99772e8", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11794", + "x-ms-request-id": "05d156f1-a5df-4d8b-a3a6-9c12f4a21235", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081333Z:0055b103-90c9-48aa-878b-a74be99772e8", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946", + "name": "sdktestvault8946", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault8946.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d2be6f7361db98ab2d356d300c7c46f2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "df2581c7-8f7b-43fe-98d4-9b2f0e33fd34", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11793", + "x-ms-request-id": "bd78c807-60e1-4e4f-a061-cef55e67ef2a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081334Z:df2581c7-8f7b-43fe-98d4-9b2f0e33fd34", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946", + "name": "sdktestvault8946", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault8946.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d1ca89d5429403cff3fe94119027d855", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "960", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "85a12b36-333f-48e8-a0be-33188b556828", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11792", + "x-ms-request-id": "152e6ff7-0736-41a4-b432-51f5655894ee", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081336Z:85a12b36-333f-48e8-a0be-33188b556828", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946", + "name": "sdktestvault8946", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault8946.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a420f07367d4ae47907b5f042a00687e-4cc608a19830714f-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "944e661689cdab7fd0b972d603f058ad", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:13:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9042de75-cde3-458c-9a42-eed3c89aadb5", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14989", + "x-ms-request-id": "09f8c5c0-9efc-454c-9c3b-214d35193ff0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081340Z:9042de75-cde3-458c-9a42-eed3c89aadb5", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-82cddb89e1aeec4c8db92936c0534cbc-bbf4405926be3049-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "15001d6a154331ec9fbbdedccc9a0705", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "159", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "eb0b0740-a50e-4ca8-ab94-29bfac6c1fb1", + "x-ms-failure-cause": "gateway", + "x-ms-request-id": "eb0b0740-a50e-4ca8-ab94-29bfac6c1fb1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081340Z:eb0b0740-a50e-4ca8-ab94-29bfac6c1fb1" + }, + "ResponseBody": { + "error": { + "code": "ResourceNotFound", + "message": "The Resource \u0027Microsoft.KeyVault/vaults/sdktestvault8946\u0027 under resource group \u0027sdktestrg8681\u0027 was not found." + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "660", + "Content-Type": "application/json", + "traceparent": "00-ad29caec96c91842971c7c154660bef1-e207ffea7c765043-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a519185db12d4c250a1f00dacff9ff02", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "960", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cd036832-b9c3-47d3-a5a3-6586b9c41f35", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1187", + "x-ms-request-id": "3e7006cc-1046-4ce6-901b-79e4a69a7721", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081343Z:cd036832-b9c3-47d3-a5a3-6586b9c41f35", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946", + "name": "sdktestvault8946", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault8946.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ac9cd7fd6fc4a64686811f9eefe4ee06-9b1eb6e70302ba45-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "eb796cb1b3d6b87ff8b30a23141261a6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "960", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a6d22e9c-3a01-4aad-ae48-f0999d2ad3ac", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11790", + "x-ms-request-id": "aa53484a-4933-46ae-b739-f0a0bb5dca30", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081343Z:a6d22e9c-3a01-4aad-ae48-f0999d2ad3ac", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946", + "name": "sdktestvault8946", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault8946.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-9ef1847009ff774aa0a784a775c181ed-83acf2856a94b44d-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e436dbbb94f299de06182b10bd13a267", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:13:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "888f1479-6aed-4170-b430-66b93c6d7255", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14988", + "x-ms-request-id": "185a925a-7aef-4f6c-b78e-0fa12783e3c3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081347Z:888f1479-6aed-4170-b430-66b93c6d7255", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "626", + "Content-Type": "application/json", + "traceparent": "00-f094382232b5a7448848452e68074e76-70b5fa555093a247-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6228ca3f147ff22c68ef7a73b8eeec68", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "createMode": "recover", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "913", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "71717095-1011-443b-9fb3-72048ffe6bf5", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1186", + "x-ms-request-id": "957d339d-833b-458e-8b33-f9d75a6e118f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081350Z:71717095-1011-443b-9fb3-72048ffe6bf5", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946", + "name": "sdktestvault8946", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": {}, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault8946.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-0e7ecf0a80e7214b91c4ca38eae37594-8c5bc9e4e724d04a-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "4ae4a311fee9a727af437c031a6be017", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "913", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:13:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f5ef90ed-32c7-405a-9a1c-61bd5930424a", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11789", + "x-ms-request-id": "7bf79ea8-26a0-4d3e-b16c-34a324f54544", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081350Z:f5ef90ed-32c7-405a-9a1c-61bd5930424a", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946", + "name": "sdktestvault8946", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": {}, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault8946.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg8681/providers/Microsoft.KeyVault/vaults/sdktestvault8946?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-90850808a4e058488141f9a24769a916-1f256d1a1c69e342-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6f55c22bd3bd45fa860bd49f2f6d6afa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:13:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5447f9c0-8ff9-4480-9971-081643f41eec", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14987", + "x-ms-request-id": "f4ca1c15-9ba6-4a6b-8e86-372edbb91b0a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081352Z:5447f9c0-8ff9-4480-9971-081643f41eec", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg8681?api-version=2017-05-10", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-b66c01dd78a92b419104aff5647eaa0a-c340a2f67b5af44a-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "156295f4a20abc7e26ae1f297e3f0222", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:13:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bc2c5a90-7a33-4610-babb-6f5ba9c7462d", + "x-ms-ratelimit-remaining-subscription-deletes": "14986", + "x-ms-request-id": "bc2c5a90-7a33-4610-babb-6f5ba9c7462d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081357Z:bc2c5a90-7a33-4610-babb-6f5ba9c7462d" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "850f81d8ca08890d4498480fb4d0c647", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:13:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f952b1cd-b65c-481c-81e7-7a458e2f2489", + "x-ms-ratelimit-remaining-subscription-reads": "11788", + "x-ms-request-id": "f952b1cd-b65c-481c-81e7-7a458e2f2489", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081357Z:f952b1cd-b65c-481c-81e7-7a458e2f2489" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "619fb209a5db68e16e246c6bdfa0939f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:13:58 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c1a1af6a-f185-4b80-8eef-8265ddb13c20", + "x-ms-ratelimit-remaining-subscription-reads": "11787", + "x-ms-request-id": "c1a1af6a-f185-4b80-8eef-8265ddb13c20", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081359Z:c1a1af6a-f185-4b80-8eef-8265ddb13c20" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "fc51dd367d2f351ac0098080431889d9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:13:59 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "39677642-fc7d-448e-98d6-30e28e06c438", + "x-ms-ratelimit-remaining-subscription-reads": "11786", + "x-ms-request-id": "39677642-fc7d-448e-98d6-30e28e06c438", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081400Z:39677642-fc7d-448e-98d6-30e28e06c438" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "77d57bd816e83266a0a717e45ea2a9a3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:01 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4f60af8f-aafb-4bc1-867f-b9e4b42093f7", + "x-ms-ratelimit-remaining-subscription-reads": "11785", + "x-ms-request-id": "4f60af8f-aafb-4bc1-867f-b9e4b42093f7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081402Z:4f60af8f-aafb-4bc1-867f-b9e4b42093f7" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d6d8a905c97e8b17976aa1d124602455", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:02 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "06cf0430-604d-4020-b4ea-fcc527ae293f", + "x-ms-ratelimit-remaining-subscription-reads": "11784", + "x-ms-request-id": "06cf0430-604d-4020-b4ea-fcc527ae293f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081403Z:06cf0430-604d-4020-b4ea-fcc527ae293f" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6392939b1bcb20b6761e5c886535d61e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1b9aa5ee-6a83-46c9-9713-a326af322723", + "x-ms-ratelimit-remaining-subscription-reads": "11783", + "x-ms-request-id": "1b9aa5ee-6a83-46c9-9713-a326af322723", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081405Z:1b9aa5ee-6a83-46c9-9713-a326af322723" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9a7bdd5fb23f0e5a6449df7e74940d40", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:05 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9155d2d6-3409-4d04-a4b8-1682cb475597", + "x-ms-ratelimit-remaining-subscription-reads": "11782", + "x-ms-request-id": "9155d2d6-3409-4d04-a4b8-1682cb475597", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081406Z:9155d2d6-3409-4d04-a4b8-1682cb475597" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cb49c182460fe9d7f2b760606d8e2562", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:07 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7bda5ee4-5094-463f-a581-e28d07d3f89a", + "x-ms-ratelimit-remaining-subscription-reads": "11781", + "x-ms-request-id": "7bda5ee4-5094-463f-a581-e28d07d3f89a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081408Z:7bda5ee4-5094-463f-a581-e28d07d3f89a" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "477283938ae4e8163883ff823b38ace1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "14d73729-aa66-4da8-bf4b-be3a7dfeeab7", + "x-ms-ratelimit-remaining-subscription-reads": "11780", + "x-ms-request-id": "14d73729-aa66-4da8-bf4b-be3a7dfeeab7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081409Z:14d73729-aa66-4da8-bf4b-be3a7dfeeab7" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a4051c100aec190e0591a78752f9a1d5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "623272ae-d5fd-444c-b3ff-ca57d69661e4", + "x-ms-ratelimit-remaining-subscription-reads": "11779", + "x-ms-request-id": "623272ae-d5fd-444c-b3ff-ca57d69661e4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081411Z:623272ae-d5fd-444c-b3ff-ca57d69661e4" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f0ea7d23c622f85baa60928b4655adba", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:12 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3daa988e-e1c2-466b-a852-7b66b23bbfd3", + "x-ms-ratelimit-remaining-subscription-reads": "11778", + "x-ms-request-id": "3daa988e-e1c2-466b-a852-7b66b23bbfd3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081412Z:3daa988e-e1c2-466b-a852-7b66b23bbfd3" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "514f7e0b8189897574584153e38e963f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:14 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5b855fca-a701-4d64-97f2-af725ae715bf", + "x-ms-ratelimit-remaining-subscription-reads": "11777", + "x-ms-request-id": "5b855fca-a701-4d64-97f2-af725ae715bf", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081414Z:5b855fca-a701-4d64-97f2-af725ae715bf" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "be5e29e2bc4d4abfc00df98b7783d2af", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b9c53fa1-3cce-4101-8e68-b4152ae1211c", + "x-ms-ratelimit-remaining-subscription-reads": "11776", + "x-ms-request-id": "b9c53fa1-3cce-4101-8e68-b4152ae1211c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081415Z:b9c53fa1-3cce-4101-8e68-b4152ae1211c" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d37cede450aaa24c08617bc98408141c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cffe0f59-e35a-4ebd-a137-9915d96e5b2c", + "x-ms-ratelimit-remaining-subscription-reads": "11775", + "x-ms-request-id": "cffe0f59-e35a-4ebd-a137-9915d96e5b2c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081417Z:cffe0f59-e35a-4ebd-a137-9915d96e5b2c" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1da853caeff64f6cbf04907b87e911f1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "78114e84-a54c-4964-bd2e-4c3602494bf9", + "x-ms-ratelimit-remaining-subscription-reads": "11774", + "x-ms-request-id": "78114e84-a54c-4964-bd2e-4c3602494bf9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081418Z:78114e84-a54c-4964-bd2e-4c3602494bf9" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f66e9286c2129194ddbcb5ec40f5c6b8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:20 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "845e6c51-f64d-41a4-9837-4de7769a2e74", + "x-ms-ratelimit-remaining-subscription-reads": "11773", + "x-ms-request-id": "845e6c51-f64d-41a4-9837-4de7769a2e74", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081420Z:845e6c51-f64d-41a4-9837-4de7769a2e74" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "24c1ddf8b5daf4b9802c14a6c0d01b1e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "144c2107-7c70-4782-bb0b-2abb6f38a5f6", + "x-ms-ratelimit-remaining-subscription-reads": "11772", + "x-ms-request-id": "144c2107-7c70-4782-bb0b-2abb6f38a5f6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081421Z:144c2107-7c70-4782-bb0b-2abb6f38a5f6" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f2438a501e990709bf173f3939800eca", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e6dbca6e-c55e-4e63-acd9-dbd598fac911", + "x-ms-ratelimit-remaining-subscription-reads": "11771", + "x-ms-request-id": "e6dbca6e-c55e-4e63-acd9-dbd598fac911", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081423Z:e6dbca6e-c55e-4e63-acd9-dbd598fac911" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a983d73eec27d016d97a75e5aeeed00d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:24 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8d2cb484-2e32-4614-9ddb-4b9ecf447050", + "x-ms-ratelimit-remaining-subscription-reads": "11770", + "x-ms-request-id": "8d2cb484-2e32-4614-9ddb-4b9ecf447050", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081424Z:8d2cb484-2e32-4614-9ddb-4b9ecf447050" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b69b97a1d3b1d91fd3b964c3757fba00", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:26 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "77c30170-1999-4aac-99fb-6d8c2d6bfd2b", + "x-ms-ratelimit-remaining-subscription-reads": "11769", + "x-ms-request-id": "77c30170-1999-4aac-99fb-6d8c2d6bfd2b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081426Z:77c30170-1999-4aac-99fb-6d8c2d6bfd2b" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e967491e714c63f67472191ea92459d1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:27 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bc304240-8789-40f1-8e23-d57a2bc219da", + "x-ms-ratelimit-remaining-subscription-reads": "11768", + "x-ms-request-id": "bc304240-8789-40f1-8e23-d57a2bc219da", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081427Z:bc304240-8789-40f1-8e23-d57a2bc219da" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a298324658e46a19b7a9d56e87525b59", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:28 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4cbad13e-73f2-4381-8f52-0227773c4f9b", + "x-ms-ratelimit-remaining-subscription-reads": "11767", + "x-ms-request-id": "4cbad13e-73f2-4381-8f52-0227773c4f9b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081429Z:4cbad13e-73f2-4381-8f52-0227773c4f9b" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "64c775c0e78630c0a038413eba0130af", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:30 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2fdb8188-6ad5-4250-8fc2-25f1553768b1", + "x-ms-ratelimit-remaining-subscription-reads": "11766", + "x-ms-request-id": "2fdb8188-6ad5-4250-8fc2-25f1553768b1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081430Z:2fdb8188-6ad5-4250-8fc2-25f1553768b1" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "427d936018e6c51c30fd31a39b88db21", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:31 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4079bb58-eecf-469c-baca-d04fe3775cda", + "x-ms-ratelimit-remaining-subscription-reads": "11765", + "x-ms-request-id": "4079bb58-eecf-469c-baca-d04fe3775cda", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081432Z:4079bb58-eecf-469c-baca-d04fe3775cda" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc4NjgxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "335ebf17f45d5e4b726801ab17daafb6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a9a5629b-c298-4b8e-897c-85a9103989ef", + "x-ms-ratelimit-remaining-subscription-reads": "11764", + "x-ms-request-id": "a9a5629b-c298-4b8e-897c-85a9103989ef", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081433Z:a9a5629b-c298-4b8e-897c-85a9103989ef" + }, + "ResponseBody": [] + } + ], + "Variables": { + "CLIENT_ID": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "ObjectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "RandomSeed": "943391013", + "SUBSCRIPTION_ID": "0b1f6471-1bf0-4dda-aec3-cb9272f09590", + "TENANT_ID": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a" + } +} \ No newline at end of file diff --git a/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementRecoverDeletedVaultAsync.json b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementRecoverDeletedVaultAsync.json new file mode 100644 index 0000000000000..9814cda9a1d3e --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementRecoverDeletedVaultAsync.json @@ -0,0 +1,3097 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-be180135105b564bb8e03f0ace6bc64f-aa6548db3d4bcf4e-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1ef8a659943beeb909ce1570921168c2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7496", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:03 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fc99421e-e2c2-49d8-ada7-c382aed90e94", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-request-id": "fc99421e-e2c2-49d8-ada7-c382aed90e94", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082304Z:fc99421e-e2c2-49d8-ada7-c382aed90e94" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault", + "namespace": "Microsoft.KeyVault", + "authorizations": [ + { + "applicationId": "cfa8b339-82a2-471a-a3c9-0fc0be7a4093", + "roleDefinitionId": "1cf9858a-28a2-4228-abba-94e606305b95" + }, + { + "applicationId": "589d5083-6f11-4d30-a62a-a4b316a14abf" + } + ], + "resourceTypes": [ + { + "resourceType": "vaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove" + }, + { + "resourceType": "vaults/secrets", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/accessPolicies", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "operations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01", + "2014-12-19-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "checkNameAvailability", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deleteVirtualNetworkOrSubnets", + "locations": [ + "East US", + "North Central US", + "West Europe", + "North Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West Central US", + "West US 2", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Central US EUAP", + "East US 2 EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ] + }, + { + "resourceType": "locations/operationResults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/eventGridFilters", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14" + ] + } + ], + "registrationState": "Registered" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg3744?api-version=2017-05-10", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "31", + "Content-Type": "application/json", + "traceparent": "00-927f3f0cc280364aa35cd66bd4b9f472-1653f52d5230554b-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8457039b239e2a21b51b36bf4bb13dfa", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "239", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "094a260d-c92c-48ad-b1a3-28ee94bcd5ec", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "094a260d-c92c-48ad-b1a3-28ee94bcd5ec", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082306Z:094a260d-c92c-48ad-b1a3-28ee94bcd5ec" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744", + "name": "sdktestrg3744", + "location": "northcentralus", + "tags": { + "StorageType": "Standard_LRS", + "type": "test" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "660", + "Content-Type": "application/json", + "traceparent": "00-563cac2a36ebb34dad25dc94412080ab-adf86a51dd5ee649-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3efbcafd8d38999f9f358d3a35372bd9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:14 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "49d010b5-31e0-47a6-9a44-a42dd3697238", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "cde764bb-d2d5-4cbc-8369-7d70ff881b1f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082314Z:49d010b5-31e0-47a6-9a44-a42dd3697238", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731", + "name": "sdktestvault9731", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault9731.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9e13397500c77662b8eaffee93f07fe3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:15 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e06e8919-007a-4e65-9ec8-9423405f3425", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-request-id": "ab805662-50e9-4cdd-917c-75c66eea064f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082315Z:e06e8919-007a-4e65-9ec8-9423405f3425", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731", + "name": "sdktestvault9731", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault9731.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1ac9e50b98ad43e047234bb3131c6ae1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:17 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "eb07151b-2667-4a11-a429-814904c055c0", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-request-id": "35d77916-29e6-48bf-84cf-5875543a8ab8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082317Z:eb07151b-2667-4a11-a429-814904c055c0", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731", + "name": "sdktestvault9731", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault9731.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "fcc4b5188c2381113419a98dbb944303", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:18 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fb712440-539a-4700-8482-3099afb5be70", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11972", + "x-ms-request-id": "44a15427-4744-443f-b19b-90228613c794", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082318Z:fb712440-539a-4700-8482-3099afb5be70", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731", + "name": "sdktestvault9731", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault9731.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "4976950502f5dd2a58cf56a3b5af629b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:19 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d3336cdf-df2a-42b9-922e-e4e5d92e2bc1", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11971", + "x-ms-request-id": "3106836c-6c82-4d03-9a27-1db1e60bec7a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082319Z:d3336cdf-df2a-42b9-922e-e4e5d92e2bc1", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731", + "name": "sdktestvault9731", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault9731.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ddd51d7f832c7fc0d347e693ee5288b3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:20 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "357831f0-bf66-4b3c-9d9a-b077f155edf8", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11970", + "x-ms-request-id": "af85f9e8-e6a4-498a-a941-bff3f327c511", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082321Z:357831f0-bf66-4b3c-9d9a-b077f155edf8", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731", + "name": "sdktestvault9731", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault9731.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7ead48df21a616eb8be6a354356ecc84", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:22 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "df7f47ad-2511-4181-b016-8e90c99fdf7d", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11969", + "x-ms-request-id": "59ae4b9c-f587-422e-9823-8603b17cb3c6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082322Z:df7f47ad-2511-4181-b016-8e90c99fdf7d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731", + "name": "sdktestvault9731", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault9731.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9d0e0eb766be82d6d5f775ae1c96ee05", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f1f52d43-dce8-4d5d-9d6f-19875220c01c", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11968", + "x-ms-request-id": "fdf51e3f-fe35-490e-a278-29ecce02abae", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082323Z:f1f52d43-dce8-4d5d-9d6f-19875220c01c", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731", + "name": "sdktestvault9731", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault9731.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6dc3a347e4015ef531bf5245df6b4965", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:24 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "26abd861-0bf9-4942-958d-c44d1570ac2f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11967", + "x-ms-request-id": "bfcc35b5-fe9a-4063-8165-1277ef82859b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082325Z:26abd861-0bf9-4942-958d-c44d1570ac2f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731", + "name": "sdktestvault9731", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault9731.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e0dc617aea4479f4712ba8afac3dfaf4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0da688e1-d798-4695-839f-c5b9512f9712", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11966", + "x-ms-request-id": "9bf7a95e-8274-4436-b321-5e8afa4f8761", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082326Z:0da688e1-d798-4695-839f-c5b9512f9712", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731", + "name": "sdktestvault9731", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault9731.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "910c9ef75faad28319b06bfe1491a269", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:27 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c81d672e-74a7-49ad-b687-bb9f8f0da3e9", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11965", + "x-ms-request-id": "a9f4f814-79dd-450f-8e6f-1af3a2cacb3e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082327Z:c81d672e-74a7-49ad-b687-bb9f8f0da3e9", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731", + "name": "sdktestvault9731", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault9731.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ba330fad0eba5cc1af4afcd53c45b2f3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "960", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "638b5f53-49fd-4a6d-b378-0e52dcaea198", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11964", + "x-ms-request-id": "da5ec604-1913-4c97-8a46-15237517271d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082329Z:638b5f53-49fd-4a6d-b378-0e52dcaea198", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731", + "name": "sdktestvault9731", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault9731.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-852cd7f45af8234887a9016addaee16a-8c56569ee91b1347-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "414d5dc5b75f1bbbde0ac6947ff665df", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:23:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4ba08a7f-c53e-4ef3-b388-a6f452f19113", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14995", + "x-ms-request-id": "1259cc94-bc02-43da-ac51-feb27f28b291", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082332Z:4ba08a7f-c53e-4ef3-b388-a6f452f19113", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-d7e6314cbaa3c94a8c2c52dddd5606b5-165648d831d23746-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9c013e893f0ae83adcafe26063ad96d3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "159", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:33 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f41f0ff8-bf74-4c7c-85d7-ad8a448e2de5", + "x-ms-failure-cause": "gateway", + "x-ms-request-id": "f41f0ff8-bf74-4c7c-85d7-ad8a448e2de5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082333Z:f41f0ff8-bf74-4c7c-85d7-ad8a448e2de5" + }, + "ResponseBody": { + "error": { + "code": "ResourceNotFound", + "message": "The Resource \u0027Microsoft.KeyVault/vaults/sdktestvault9731\u0027 under resource group \u0027sdktestrg3744\u0027 was not found." + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "660", + "Content-Type": "application/json", + "traceparent": "00-b32a984cdc046244a4bc071775178f9f-818094b43ffdb546-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b63877fd6143f60a5417dcaf482dddb9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "960", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c27ff046-589d-4475-942e-8306bfc49e06", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1197", + "x-ms-request-id": "bd46057f-7144-4f0c-b8b8-45e51ec86945", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082336Z:c27ff046-589d-4475-942e-8306bfc49e06", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731", + "name": "sdktestvault9731", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault9731.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-36d256e2b2c0b34db2c877a2c809352b-5b4e30e03f053844-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0796f373aebd279c340a48f2638aa0af", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "960", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ea36ce66-a6d3-40cb-84c4-07b272472101", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11962", + "x-ms-request-id": "d6a4d0b6-6084-4e09-9d12-a4dc89a6c068", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082337Z:ea36ce66-a6d3-40cb-84c4-07b272472101", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731", + "name": "sdktestvault9731", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault9731.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-6ffa4fb1b80b464db0974bfb548e1c98-4764df86a281a547-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "467b29d29861e88e8eb293dffc5a21f9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:23:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b728d17f-7f23-49f0-92fd-e5c293c53cc2", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14994", + "x-ms-request-id": "de0b4dba-128c-4aa7-acc1-40ccc79363e1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082340Z:b728d17f-7f23-49f0-92fd-e5c293c53cc2", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "626", + "Content-Type": "application/json", + "traceparent": "00-65273d893aca954c9471fa84ea8130fa-2802c36eba0dd548-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "543cab5fd69635fb8024c939cdf62297", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "createMode": "recover", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "913", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b260cb72-09ec-4995-8526-078afa83346d", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1196", + "x-ms-request-id": "47fc01fe-f78c-4e11-a395-941a4fa71b44", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082343Z:b260cb72-09ec-4995-8526-078afa83346d", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731", + "name": "sdktestvault9731", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": {}, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault9731.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-def6869b4b320c478730c87c8291d2c5-11195bad0887b044-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b8934ee94c4efb182d46c63dcf541b97", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "913", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:23:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "15aa0208-973b-49e3-ba2c-5d9ac7bfbfe2", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11961", + "x-ms-request-id": "2041e14a-7bab-45f9-b254-336cc868090f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082344Z:15aa0208-973b-49e3-ba2c-5d9ac7bfbfe2", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731", + "name": "sdktestvault9731", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": {}, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault9731.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg3744/providers/Microsoft.KeyVault/vaults/sdktestvault9731?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ec12799b52858649ac62a1283a4415c4-bd0d37ed507b0248-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "461bfb90757ced1adc60efe85df11ac3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:23:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2b07fab6-0a1f-4496-b0c6-1ff6abffc8a7", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14993", + "x-ms-request-id": "b0e4f496-5494-45d7-bcfb-20b225b3978c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082346Z:2b07fab6-0a1f-4496-b0c6-1ff6abffc8a7", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg3744?api-version=2017-05-10", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-da43c4a9028ffa43a53dbca3c780668d-18fa40ac969a4a48-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7e50eff86a6277499ce17d99ab920b10", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:23:49 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1c00a3f1-1ab5-4a89-a30f-7985dc70b82b", + "x-ms-ratelimit-remaining-subscription-deletes": "14992", + "x-ms-request-id": "1c00a3f1-1ab5-4a89-a30f-7985dc70b82b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082349Z:1c00a3f1-1ab5-4a89-a30f-7985dc70b82b" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e044032b9c042534b2a4aa9bf781414a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:23:49 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ca706ce6-a63b-4e16-ae53-baf3900afd9b", + "x-ms-ratelimit-remaining-subscription-reads": "11960", + "x-ms-request-id": "ca706ce6-a63b-4e16-ae53-baf3900afd9b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082349Z:ca706ce6-a63b-4e16-ae53-baf3900afd9b" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7b55df55fb76142192dc49bc8e5b1a6c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:23:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d16de768-ebbb-49a5-96ab-8d956aaec758", + "x-ms-ratelimit-remaining-subscription-reads": "11959", + "x-ms-request-id": "d16de768-ebbb-49a5-96ab-8d956aaec758", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082351Z:d16de768-ebbb-49a5-96ab-8d956aaec758" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a86d41432b4df60bac546cfd3ac17bb3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:23:52 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "695e6c2c-db50-4d10-8835-27667455f965", + "x-ms-ratelimit-remaining-subscription-reads": "11958", + "x-ms-request-id": "695e6c2c-db50-4d10-8835-27667455f965", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082352Z:695e6c2c-db50-4d10-8835-27667455f965" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7d98916523da2fc6e12f4d2852789757", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:23:53 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ba0c15e2-780c-40a8-aeb3-5374928d90a8", + "x-ms-ratelimit-remaining-subscription-reads": "11957", + "x-ms-request-id": "ba0c15e2-780c-40a8-aeb3-5374928d90a8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082354Z:ba0c15e2-780c-40a8-aeb3-5374928d90a8" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b6573d8a991329fcd35fce218f24d9d0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:23:55 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6c90f1fe-eb83-4e15-aac5-f48351b914de", + "x-ms-ratelimit-remaining-subscription-reads": "11956", + "x-ms-request-id": "6c90f1fe-eb83-4e15-aac5-f48351b914de", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082356Z:6c90f1fe-eb83-4e15-aac5-f48351b914de" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "fc5696609cc220927b3dc61edde3a333", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:23:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "874b24b9-03f9-4950-8074-67146db74d96", + "x-ms-ratelimit-remaining-subscription-reads": "11955", + "x-ms-request-id": "874b24b9-03f9-4950-8074-67146db74d96", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082357Z:874b24b9-03f9-4950-8074-67146db74d96" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "fc7215bdc569cba0956ea97b54a4a0bc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:23:58 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "51438281-ed14-4203-9c81-63c3985d683b", + "x-ms-ratelimit-remaining-subscription-reads": "11954", + "x-ms-request-id": "51438281-ed14-4203-9c81-63c3985d683b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082359Z:51438281-ed14-4203-9c81-63c3985d683b" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "bcc87d569a21ed94ab373bd5d2de4cf0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:23:59 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "07aeae80-84cf-4c81-b978-9a7560360bfd", + "x-ms-ratelimit-remaining-subscription-reads": "11953", + "x-ms-request-id": "07aeae80-84cf-4c81-b978-9a7560360bfd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082400Z:07aeae80-84cf-4c81-b978-9a7560360bfd" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7a649bbbddb29a66f58b6753f217cbd6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:01 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a329931c-fb50-4ada-92bd-f408339793b4", + "x-ms-ratelimit-remaining-subscription-reads": "11952", + "x-ms-request-id": "a329931c-fb50-4ada-92bd-f408339793b4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082402Z:a329931c-fb50-4ada-92bd-f408339793b4" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "60c7099ce61a2312808451328acaf8b7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:02 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7fe649a5-f2cc-48b9-907e-e88edbbf21e7", + "x-ms-ratelimit-remaining-subscription-reads": "11951", + "x-ms-request-id": "7fe649a5-f2cc-48b9-907e-e88edbbf21e7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082403Z:7fe649a5-f2cc-48b9-907e-e88edbbf21e7" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b9bfb9222640780a162dc6963240fb94", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3be56275-9be0-414a-b977-1bb03a7a3cc2", + "x-ms-ratelimit-remaining-subscription-reads": "11950", + "x-ms-request-id": "3be56275-9be0-414a-b977-1bb03a7a3cc2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082405Z:3be56275-9be0-414a-b977-1bb03a7a3cc2" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c838646ceb16d5d58841f92d8c34102b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:05 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2e39b43d-07c4-4b1b-93c3-bc3c06f249a8", + "x-ms-ratelimit-remaining-subscription-reads": "11949", + "x-ms-request-id": "2e39b43d-07c4-4b1b-93c3-bc3c06f249a8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082406Z:2e39b43d-07c4-4b1b-93c3-bc3c06f249a8" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3930b09212577696ff4f49ed1f7bf03f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:07 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "37e4c7c6-8ea8-4406-8401-cea6faf5c5f4", + "x-ms-ratelimit-remaining-subscription-reads": "11948", + "x-ms-request-id": "37e4c7c6-8ea8-4406-8401-cea6faf5c5f4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082408Z:37e4c7c6-8ea8-4406-8401-cea6faf5c5f4" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "26c5bc892f9137a0e3ea30ff2dddece2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1f4ac449-491a-4a15-b873-6f8aa1b12a12", + "x-ms-ratelimit-remaining-subscription-reads": "11947", + "x-ms-request-id": "1f4ac449-491a-4a15-b873-6f8aa1b12a12", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082409Z:1f4ac449-491a-4a15-b873-6f8aa1b12a12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "82039b1cc20f593ccdc2c9c6a2e8b50d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e745ee10-1cab-462b-97ec-71692fb14296", + "x-ms-ratelimit-remaining-subscription-reads": "11946", + "x-ms-request-id": "e745ee10-1cab-462b-97ec-71692fb14296", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082411Z:e745ee10-1cab-462b-97ec-71692fb14296" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cfa3ba50ea6e63990ff9566de2974921", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:11 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9d6407ee-dafa-40d1-9acc-f389d8af1143", + "x-ms-ratelimit-remaining-subscription-reads": "11945", + "x-ms-request-id": "9d6407ee-dafa-40d1-9acc-f389d8af1143", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082412Z:9d6407ee-dafa-40d1-9acc-f389d8af1143" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "84d067626e78c72f806c58cf66d995fb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:13 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "601cf1d1-4500-4410-94f9-e7efc1350028", + "x-ms-ratelimit-remaining-subscription-reads": "11944", + "x-ms-request-id": "601cf1d1-4500-4410-94f9-e7efc1350028", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082414Z:601cf1d1-4500-4410-94f9-e7efc1350028" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "72ae23341c39327302a072166bce7735", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:14 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fa311085-fc8c-4f8c-8fc4-9c70f76b5f7a", + "x-ms-ratelimit-remaining-subscription-reads": "11943", + "x-ms-request-id": "fa311085-fc8c-4f8c-8fc4-9c70f76b5f7a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082415Z:fa311085-fc8c-4f8c-8fc4-9c70f76b5f7a" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3b64a7793017e2948adc4f0291cafd35", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:16 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "37817161-1ee7-4add-bc65-403614a3ad01", + "x-ms-ratelimit-remaining-subscription-reads": "11942", + "x-ms-request-id": "37817161-1ee7-4add-bc65-403614a3ad01", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082417Z:37817161-1ee7-4add-bc65-403614a3ad01" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "bf385a64d6e946e8f39e82d8fb195bb1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3c3d20c4-d823-47cc-b3ee-07e166cd5a2d", + "x-ms-ratelimit-remaining-subscription-reads": "11941", + "x-ms-request-id": "3c3d20c4-d823-47cc-b3ee-07e166cd5a2d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082418Z:3c3d20c4-d823-47cc-b3ee-07e166cd5a2d" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "be5523f55a7503e38ecce85dcd71a037", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:19 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ffb523e1-9429-4f4c-bd52-b275f3e9fe5f", + "x-ms-ratelimit-remaining-subscription-reads": "11940", + "x-ms-request-id": "ffb523e1-9429-4f4c-bd52-b275f3e9fe5f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082420Z:ffb523e1-9429-4f4c-bd52-b275f3e9fe5f" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "11b13da3b796a34cbf1d4878aebce671", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:20 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0623ef35-f23f-4870-9e97-ac48cf1c1f7d", + "x-ms-ratelimit-remaining-subscription-reads": "11939", + "x-ms-request-id": "0623ef35-f23f-4870-9e97-ac48cf1c1f7d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082421Z:0623ef35-f23f-4870-9e97-ac48cf1c1f7d" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6e0c9e803e740abf7734301cee8a7881", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:22 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1f386c50-1711-4e45-b3ab-15263fe43da0", + "x-ms-ratelimit-remaining-subscription-reads": "11938", + "x-ms-request-id": "1f386c50-1711-4e45-b3ab-15263fe43da0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082423Z:1f386c50-1711-4e45-b3ab-15263fe43da0" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkczNzQ0LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "be354afd4a673d1ad7b2ff57116a55d1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:23 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e0e89df3-7397-4ff8-9b96-9b56b7efebee", + "x-ms-ratelimit-remaining-subscription-reads": "11937", + "x-ms-request-id": "e0e89df3-7397-4ff8-9b96-9b56b7efebee", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082424Z:e0e89df3-7397-4ff8-9b96-9b56b7efebee" + }, + "ResponseBody": [] + } + ], + "Variables": { + "CLIENT_ID": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "ObjectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "RandomSeed": "120383922", + "SUBSCRIPTION_ID": "0b1f6471-1bf0-4dda-aec3-cb9272f09590", + "TENANT_ID": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a" + } +} \ No newline at end of file diff --git a/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementVaultCreateUpdateDelete.json b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementVaultCreateUpdateDelete.json new file mode 100644 index 0000000000000..ec7e8e490a2a3 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementVaultCreateUpdateDelete.json @@ -0,0 +1,2865 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-73335759c300c14b83ab837f39ffacaa-a6936beff4c5b241-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ab29cec6b7f9ffb14aed98e92d313301", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7496", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:14:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9cc05ff9-845c-438c-8e98-48c711276c44", + "x-ms-ratelimit-remaining-subscription-reads": "11763", + "x-ms-request-id": "9cc05ff9-845c-438c-8e98-48c711276c44", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081435Z:9cc05ff9-845c-438c-8e98-48c711276c44" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault", + "namespace": "Microsoft.KeyVault", + "authorizations": [ + { + "applicationId": "cfa8b339-82a2-471a-a3c9-0fc0be7a4093", + "roleDefinitionId": "1cf9858a-28a2-4228-abba-94e606305b95" + }, + { + "applicationId": "589d5083-6f11-4d30-a62a-a4b316a14abf" + } + ], + "resourceTypes": [ + { + "resourceType": "vaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove" + }, + { + "resourceType": "vaults/secrets", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/accessPolicies", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "operations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01", + "2014-12-19-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "checkNameAvailability", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deleteVirtualNetworkOrSubnets", + "locations": [ + "East US", + "North Central US", + "West Europe", + "North Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West Central US", + "West US 2", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Central US EUAP", + "East US 2 EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ] + }, + { + "resourceType": "locations/operationResults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/eventGridFilters", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14" + ] + } + ], + "registrationState": "Registered" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg2401?api-version=2017-05-10", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "31", + "Content-Type": "application/json", + "traceparent": "00-086e3b5f3e4bb642bb831dd7b7cab72a-c04bd04616b2e44b-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "82b39882e380796c5ea3b9baff183ddd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "239", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:14:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c9570915-c969-4cca-b737-de710e45b0e2", + "x-ms-ratelimit-remaining-subscription-writes": "1185", + "x-ms-request-id": "c9570915-c969-4cca-b737-de710e45b0e2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081437Z:c9570915-c969-4cca-b737-de710e45b0e2" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401", + "name": "sdktestrg2401", + "location": "northcentralus", + "tags": { + "StorageType": "Standard_LRS", + "type": "test" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "636", + "Content-Type": "application/json", + "traceparent": "00-0d2c08980ed6cf4e88d375e598614b98-4d5099b3c8866c4a-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3a083b14a2294996b9f5cdb0d5ea083f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:14:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c44afbb2-2bb5-43cb-b5bc-ec916c407983", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1184", + "x-ms-request-id": "494dbe59-daab-430b-8e65-95451b605e47", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081441Z:c44afbb2-2bb5-43cb-b5bc-ec916c407983", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737", + "name": "sdktestvault5737", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault5737.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f71c580c7cf9f5581d38c6ee9ec889b8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:14:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f74e7cf7-f029-4a28-984e-9c10a7ee0017", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11762", + "x-ms-request-id": "83a27948-0a20-42ef-afae-19997622365c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081442Z:f74e7cf7-f029-4a28-984e-9c10a7ee0017", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737", + "name": "sdktestvault5737", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault5737.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c1147bb0a713ce91514c078f8e9e056f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:14:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d1eb2a01-b08d-48c2-89a6-48c52cf607aa", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11761", + "x-ms-request-id": "885a70f6-adc2-4154-bb3e-a409bed9c876", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081444Z:d1eb2a01-b08d-48c2-89a6-48c52cf607aa", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737", + "name": "sdktestvault5737", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault5737.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7da4732010ce6d45fe34190b7ffc1d69", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:14:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "17b856a9-4c28-4691-84fb-3b042045d045", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11760", + "x-ms-request-id": "4c4108c2-b945-42d0-a0eb-08bd31e2bc09", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081445Z:17b856a9-4c28-4691-84fb-3b042045d045", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737", + "name": "sdktestvault5737", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault5737.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c8475b1113356447c74da6ad74c9677e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:14:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8d849fb1-0a0e-41bb-81b3-d0b61b082036", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11759", + "x-ms-request-id": "e534aa3c-7082-4612-a3b4-87f4de340761", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081446Z:8d849fb1-0a0e-41bb-81b3-d0b61b082036", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737", + "name": "sdktestvault5737", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault5737.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "2bcd57330b249fea35a7c3df8d854f55", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:14:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "09e20eab-ae33-47fe-a729-1d882044e92c", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11758", + "x-ms-request-id": "c07549f5-b3de-4ff8-b640-243136da2f2e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081447Z:09e20eab-ae33-47fe-a729-1d882044e92c", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737", + "name": "sdktestvault5737", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault5737.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "327e9e2e3c560c392b3fb6806a98f834", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:14:48 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c4fe0c72-8a91-494c-93bc-55c1dee6ac1a", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11757", + "x-ms-request-id": "4dbbd5d9-8dd0-48e9-9a21-4e8320a35b43", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081449Z:c4fe0c72-8a91-494c-93bc-55c1dee6ac1a", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737", + "name": "sdktestvault5737", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault5737.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "27d89accf12e054570a8928e5068d641", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:14:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9b7517aa-eed3-4ed3-b0ac-b36f59ea3352", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11756", + "x-ms-request-id": "e6cd4f44-6421-469c-aeeb-dc3aa9dfce28", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081450Z:9b7517aa-eed3-4ed3-b0ac-b36f59ea3352", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737", + "name": "sdktestvault5737", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault5737.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d67e50fd344af6281dc100e4556a349d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:14:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "abf1373c-fc9a-4595-a8cc-aa5f33368c76", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11755", + "x-ms-request-id": "6c3f041c-dec6-4b51-bffa-646003c4dde0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081451Z:abf1373c-fc9a-4595-a8cc-aa5f33368c76", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737", + "name": "sdktestvault5737", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault5737.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f3128eae27ac3c275879c2aeaaabbbc3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:14:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3179caf3-7244-48f2-84b4-ff0eccc70b9f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11754", + "x-ms-request-id": "6b24ea99-c92c-4861-bb01-5b8078da86db", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081453Z:3179caf3-7244-48f2-84b4-ff0eccc70b9f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737", + "name": "sdktestvault5737", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault5737.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1a827468221998ea72e10a6df160b006", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:14:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "455b1fd0-1826-4b81-b687-8635a0817a11", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11753", + "x-ms-request-id": "86cec2fb-7c91-4644-8792-d4fc24002c45", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081454Z:455b1fd0-1826-4b81-b687-8635a0817a11", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737", + "name": "sdktestvault5737", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault5737.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c2e0f573e356d59529427ed172794c72", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "960", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:14:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fd3619a3-a172-451d-95ad-5e04a54d879b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11752", + "x-ms-request-id": "ae5c18a4-fc0f-4af5-b90e-1d0bcc2b3826", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081455Z:fd3619a3-a172-451d-95ad-5e04a54d879b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737", + "name": "sdktestvault5737", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault5737.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "732", + "Content-Type": "application/json", + "traceparent": "00-751857339445834387377dc05733a5ed-3ff3106e6b64734c-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e07c3d051ae78b83a37a80cb1db94bf8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "premium" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "secrets": [ + "get", + "set" + ], + "certificates": [ + "all" + ], + "storage": [ + "get", + "regeneratekey" + ] + } + } + ], + "vaultUri": "https://sdktestvault5737.vault.azure.net/", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "966", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:14:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f6c453a5-95bc-4b34-a065-8b6b15d7f2ce", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1183", + "x-ms-request-id": "3225925b-2ef4-4cfa-b3a3-fd7283713ac4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081456Z:f6c453a5-95bc-4b34-a065-8b6b15d7f2ce", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737", + "name": "sdktestvault5737", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "premium" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "secrets": [ + "get", + "set" + ], + "certificates": [ + "all" + ], + "storage": [ + "get", + "regeneratekey" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault5737.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-934ba9857fa68f47be700a07bdfdf475-a7a7b7014275984b-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b4689794cfe4591f71541edc62c9b86f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "966", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:14:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6fc1528c-5d96-4d2b-b4ea-4721cb732378", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11751", + "x-ms-request-id": "e08e1940-ced7-4630-ab5e-d3da320af255", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081456Z:6fc1528c-5d96-4d2b-b4ea-4721cb732378", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737", + "name": "sdktestvault5737", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "premium" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "secrets": [ + "get", + "set" + ], + "certificates": [ + "all" + ], + "storage": [ + "get", + "regeneratekey" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault5737.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e7753d23a3e63943b7794ad5f2344670-b71d6c9b271f6742-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b60786f7973e0ba7d0f7013a29ace88a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:14:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "594562fd-ae1d-4378-bb3b-f28bf1f09116", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14985", + "x-ms-request-id": "ecc04c3d-fbfc-4aa7-9afd-1407aa5a7a00", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081500Z:594562fd-ae1d-4378-bb3b-f28bf1f09116", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg2401/providers/Microsoft.KeyVault/vaults/sdktestvault5737?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-22f765a2792a9349bd990fa39f74a149-c30b8b618d5bb249-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "853688549651f9139ce14376da902215", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "159", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:14:59 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ea76bb5b-d2d0-4a00-bc5f-fe2cc96b9ef2", + "x-ms-failure-cause": "gateway", + "x-ms-request-id": "ea76bb5b-d2d0-4a00-bc5f-fe2cc96b9ef2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081500Z:ea76bb5b-d2d0-4a00-bc5f-fe2cc96b9ef2" + }, + "ResponseBody": { + "error": { + "code": "ResourceNotFound", + "message": "The Resource \u0027Microsoft.KeyVault/vaults/sdktestvault5737\u0027 under resource group \u0027sdktestrg2401\u0027 was not found." + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg2401?api-version=2017-05-10", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2c9e143e2b0e8e4eb01fe411acdc2098-a788f1350b9bd54b-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1ddf80f46e11fcb9f05ce4edcee430c4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:03 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ddec36ef-de0e-4432-a3dd-24102deb6c98", + "x-ms-ratelimit-remaining-subscription-deletes": "14984", + "x-ms-request-id": "ddec36ef-de0e-4432-a3dd-24102deb6c98", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081503Z:ddec36ef-de0e-4432-a3dd-24102deb6c98" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a846ebd4cacde578ce3995f5b2262bb8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:03 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "21262de8-ea32-4365-a021-295e86b102b6", + "x-ms-ratelimit-remaining-subscription-reads": "11749", + "x-ms-request-id": "21262de8-ea32-4365-a021-295e86b102b6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081504Z:21262de8-ea32-4365-a021-295e86b102b6" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "45097fb04709c282627fab03545ba8be", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:05 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1ee6127c-e09f-432c-bbaf-b0ce4bd70c0b", + "x-ms-ratelimit-remaining-subscription-reads": "11748", + "x-ms-request-id": "1ee6127c-e09f-432c-bbaf-b0ce4bd70c0b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081505Z:1ee6127c-e09f-432c-bbaf-b0ce4bd70c0b" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e218a42a879ea2f71ca10c599c28ae4c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d16c8afb-ebcb-4587-b2c2-9ae582f39362", + "x-ms-ratelimit-remaining-subscription-reads": "11747", + "x-ms-request-id": "d16c8afb-ebcb-4587-b2c2-9ae582f39362", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081507Z:d16c8afb-ebcb-4587-b2c2-9ae582f39362" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d4ac61e2eb278d366983454e1f749172", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "283efee6-d75d-49c2-b2af-1ac4d04d2e25", + "x-ms-ratelimit-remaining-subscription-reads": "11746", + "x-ms-request-id": "283efee6-d75d-49c2-b2af-1ac4d04d2e25", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081508Z:283efee6-d75d-49c2-b2af-1ac4d04d2e25" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0ecad690490d291a886729673b282539", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "071a948c-0a32-47a9-8bb6-ec69acd187fe", + "x-ms-ratelimit-remaining-subscription-reads": "11745", + "x-ms-request-id": "071a948c-0a32-47a9-8bb6-ec69acd187fe", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081510Z:071a948c-0a32-47a9-8bb6-ec69acd187fe" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f2215ed0d4af3f976e8b781a41a983a7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1b4b7e3b-0f36-4d18-bff3-80c8d553be0d", + "x-ms-ratelimit-remaining-subscription-reads": "11744", + "x-ms-request-id": "1b4b7e3b-0f36-4d18-bff3-80c8d553be0d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081511Z:1b4b7e3b-0f36-4d18-bff3-80c8d553be0d" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c6c99a10a05e983e47834cc0c1ce5140", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:12 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f129ecd9-f59a-4afa-80a1-53deddfcc5b7", + "x-ms-ratelimit-remaining-subscription-reads": "11743", + "x-ms-request-id": "f129ecd9-f59a-4afa-80a1-53deddfcc5b7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081513Z:f129ecd9-f59a-4afa-80a1-53deddfcc5b7" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c07d0c5e9f53bcc33f8b9f82d0ffe7df", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:13 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a64ecd5e-d132-4188-87b5-c0eb08169c3d", + "x-ms-ratelimit-remaining-subscription-reads": "11742", + "x-ms-request-id": "a64ecd5e-d132-4188-87b5-c0eb08169c3d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081514Z:a64ecd5e-d132-4188-87b5-c0eb08169c3d" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a15782e45e5f30db2088aa2b88d77d9f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3bc25868-0d63-4a5f-b2dc-ef228becbd11", + "x-ms-ratelimit-remaining-subscription-reads": "11741", + "x-ms-request-id": "3bc25868-0d63-4a5f-b2dc-ef228becbd11", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081516Z:3bc25868-0d63-4a5f-b2dc-ef228becbd11" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "35bb3839c22b7154d60d87d300bbc848", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:16 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6f997df6-5fc4-4199-a764-118b0039cc9f", + "x-ms-ratelimit-remaining-subscription-reads": "11740", + "x-ms-request-id": "6f997df6-5fc4-4199-a764-118b0039cc9f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081517Z:6f997df6-5fc4-4199-a764-118b0039cc9f" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3fdb6c9cb076ffe1304c9fcaf4983368", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ef094eca-2f4d-46d9-9dad-530ad0691bf1", + "x-ms-ratelimit-remaining-subscription-reads": "11739", + "x-ms-request-id": "ef094eca-2f4d-46d9-9dad-530ad0691bf1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081519Z:ef094eca-2f4d-46d9-9dad-530ad0691bf1" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9849ff0db14321b32ee6ca52d7073065", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:19 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2f08c02f-7b2b-4b8d-92b3-fd0f09194c41", + "x-ms-ratelimit-remaining-subscription-reads": "11738", + "x-ms-request-id": "2f08c02f-7b2b-4b8d-92b3-fd0f09194c41", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081520Z:2f08c02f-7b2b-4b8d-92b3-fd0f09194c41" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1b8e62c03dfb882856bc04df23897c3e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "37e85812-11ed-4130-853b-6692347ae131", + "x-ms-ratelimit-remaining-subscription-reads": "11737", + "x-ms-request-id": "37e85812-11ed-4130-853b-6692347ae131", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081522Z:37e85812-11ed-4130-853b-6692347ae131" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "00c51fd93072eb04b9ba1190e68f2829", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:22 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f5fbed2e-4cc2-4edc-b986-0d2305148947", + "x-ms-ratelimit-remaining-subscription-reads": "11736", + "x-ms-request-id": "f5fbed2e-4cc2-4edc-b986-0d2305148947", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081523Z:f5fbed2e-4cc2-4edc-b986-0d2305148947" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "910a3a1c1809cf6cd7c04187acd3fea5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:24 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "62937496-7587-413c-9300-ace136f50589", + "x-ms-ratelimit-remaining-subscription-reads": "11735", + "x-ms-request-id": "62937496-7587-413c-9300-ace136f50589", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081525Z:62937496-7587-413c-9300-ace136f50589" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b8798b692f4290f35ea361412c98a2c7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:25 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8a610e1d-216b-4ea3-9ffa-62994501cca7", + "x-ms-ratelimit-remaining-subscription-reads": "11734", + "x-ms-request-id": "8a610e1d-216b-4ea3-9ffa-62994501cca7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081526Z:8a610e1d-216b-4ea3-9ffa-62994501cca7" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e9c3db93ea7ec035b2f629b1ee7c3ee5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:27 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7f4b4538-c2d2-402d-ab64-d5404505e7e9", + "x-ms-ratelimit-remaining-subscription-reads": "11733", + "x-ms-request-id": "7f4b4538-c2d2-402d-ab64-d5404505e7e9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081528Z:7f4b4538-c2d2-402d-ab64-d5404505e7e9" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5b266cbb7015ece6477a3365b62ba33e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:28 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3bdc5dd0-f0a2-4216-9395-83116a2befbd", + "x-ms-ratelimit-remaining-subscription-reads": "11732", + "x-ms-request-id": "3bdc5dd0-f0a2-4216-9395-83116a2befbd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081529Z:3bdc5dd0-f0a2-4216-9395-83116a2befbd" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d0f4791e15107e2656b8054c0641a1e1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:30 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "839e1f3f-cd3a-4381-82ae-fc47c8e203b9", + "x-ms-ratelimit-remaining-subscription-reads": "11731", + "x-ms-request-id": "839e1f3f-cd3a-4381-82ae-fc47c8e203b9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081531Z:839e1f3f-cd3a-4381-82ae-fc47c8e203b9" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c0857b65467123b1f4d7a203b7cf0a86", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:31 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9bc8c0a8-9987-496b-966a-ea29f5f086bc", + "x-ms-ratelimit-remaining-subscription-reads": "11730", + "x-ms-request-id": "9bc8c0a8-9987-496b-966a-ea29f5f086bc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081532Z:9bc8c0a8-9987-496b-966a-ea29f5f086bc" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7492ea526d88a6d545a7045d6a9ae505", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d0426c3a-38c5-47a6-bf0e-2970658e04a6", + "x-ms-ratelimit-remaining-subscription-reads": "11729", + "x-ms-request-id": "d0426c3a-38c5-47a6-bf0e-2970658e04a6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081534Z:d0426c3a-38c5-47a6-bf0e-2970658e04a6" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3a0051d9e2a6d7ccc8d0dc387322c786", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:34 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7ddb5274-926f-4247-922f-d7d348907b91", + "x-ms-ratelimit-remaining-subscription-reads": "11728", + "x-ms-request-id": "7ddb5274-926f-4247-922f-d7d348907b91", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081535Z:7ddb5274-926f-4247-922f-d7d348907b91" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1bf97fae2caff759a5de7aca4254b85a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:36 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "db02ba34-b01a-40a7-af3c-55732a26ad21", + "x-ms-ratelimit-remaining-subscription-reads": "11727", + "x-ms-request-id": "db02ba34-b01a-40a7-af3c-55732a26ad21", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081537Z:db02ba34-b01a-40a7-af3c-55732a26ad21" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "652a9cf1cfce70e01ebaacb7919d3323", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:37 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4f050a33-29f7-4c19-9f90-2bdc6918e35b", + "x-ms-ratelimit-remaining-subscription-reads": "11726", + "x-ms-request-id": "4f050a33-29f7-4c19-9f90-2bdc6918e35b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081538Z:4f050a33-29f7-4c19-9f90-2bdc6918e35b" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ebaf7ee0caa1ac55f80994c768029573", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:39 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "59ee3b51-2db1-4692-ad8b-ccdea4dbd163", + "x-ms-ratelimit-remaining-subscription-reads": "11725", + "x-ms-request-id": "59ee3b51-2db1-4692-ad8b-ccdea4dbd163", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081540Z:59ee3b51-2db1-4692-ad8b-ccdea4dbd163" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkcyNDAxLU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d647821861f7dfb89e89fdf57fa16608", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:15:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5a6445fb-bcf2-40f9-bf8a-9f6e4f946667", + "x-ms-ratelimit-remaining-subscription-reads": "11724", + "x-ms-request-id": "5a6445fb-bcf2-40f9-bf8a-9f6e4f946667", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081541Z:5a6445fb-bcf2-40f9-bf8a-9f6e4f946667" + }, + "ResponseBody": [] + } + ], + "Variables": { + "CLIENT_ID": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "ObjectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "RandomSeed": "1619647496", + "SUBSCRIPTION_ID": "0b1f6471-1bf0-4dda-aec3-cb9272f09590", + "TENANT_ID": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a" + } +} \ No newline at end of file diff --git a/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementVaultCreateUpdateDeleteAsync.json b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementVaultCreateUpdateDeleteAsync.json new file mode 100644 index 0000000000000..acf5f866417ad --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementVaultCreateUpdateDeleteAsync.json @@ -0,0 +1,2834 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-e7ece7f4e30b8b45b365d2f02cecb2d2-631a345768318240-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cbd5006363e8fc3acb0271eed1e1a6de", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7496", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:24:26 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d6a2c59a-9683-4c87-bee7-3fd68cbe76e1", + "x-ms-ratelimit-remaining-subscription-reads": "11936", + "x-ms-request-id": "d6a2c59a-9683-4c87-bee7-3fd68cbe76e1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082426Z:d6a2c59a-9683-4c87-bee7-3fd68cbe76e1" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault", + "namespace": "Microsoft.KeyVault", + "authorizations": [ + { + "applicationId": "cfa8b339-82a2-471a-a3c9-0fc0be7a4093", + "roleDefinitionId": "1cf9858a-28a2-4228-abba-94e606305b95" + }, + { + "applicationId": "589d5083-6f11-4d30-a62a-a4b316a14abf" + } + ], + "resourceTypes": [ + { + "resourceType": "vaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove" + }, + { + "resourceType": "vaults/secrets", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/accessPolicies", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "operations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01", + "2014-12-19-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "checkNameAvailability", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deleteVirtualNetworkOrSubnets", + "locations": [ + "East US", + "North Central US", + "West Europe", + "North Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West Central US", + "West US 2", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Central US EUAP", + "East US 2 EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ] + }, + { + "resourceType": "locations/operationResults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/eventGridFilters", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14" + ] + } + ], + "registrationState": "Registered" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg493?api-version=2017-05-10", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "31", + "Content-Type": "application/json", + "traceparent": "00-45930602fbb7e44aa8b96f40494c5648-741e70e7efe0e34f-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "11ee82b32f572147e8b97cc5fd44c640", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "237", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:24:28 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "be8aaccd-a1d7-450f-b883-86d065b4792b", + "x-ms-ratelimit-remaining-subscription-writes": "1195", + "x-ms-request-id": "be8aaccd-a1d7-450f-b883-86d065b4792b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082428Z:be8aaccd-a1d7-450f-b883-86d065b4792b" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493", + "name": "sdktestrg493", + "location": "northcentralus", + "tags": { + "StorageType": "Standard_LRS", + "type": "test" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "636", + "Content-Type": "application/json", + "traceparent": "00-1ae23430eab6ee4bbb1a30c2935331be-293e07e719b4bc4a-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "bd7df75b4c5d5fe7a468db458829bef0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "963", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:24:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d1a9afd5-cfd1-4aac-ae05-0bf2a6abf0a3", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1194", + "x-ms-request-id": "c2f40a53-948c-451e-a749-0c0792ced883", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082432Z:d1a9afd5-cfd1-4aac-ae05-0bf2a6abf0a3", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508", + "name": "sdktestvault1508", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1508.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "af8539ad4d61355506b1b2c76bdb608f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:24:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4adc9db0-bffa-409f-9989-49235cf23aee", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11935", + "x-ms-request-id": "cb7997c1-f023-47e4-841a-e8986728b1f4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082434Z:4adc9db0-bffa-409f-9989-49235cf23aee", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508", + "name": "sdktestvault1508", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1508.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5786d4be17db4f4c27ee135da22928d6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:24:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ef3ba464-681c-47ab-9e4a-a3a30877e191", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11934", + "x-ms-request-id": "38444476-0a37-41a3-b1c8-2238296d3b06", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082435Z:ef3ba464-681c-47ab-9e4a-a3a30877e191", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508", + "name": "sdktestvault1508", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1508.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "4f9830a90fa3298e96b5229a590823cd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:24:36 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3007421a-7003-47ec-b0da-f1cf09c01626", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11933", + "x-ms-request-id": "9f173c16-f6cd-4dab-ac4d-1ff87caaf465", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082436Z:3007421a-7003-47ec-b0da-f1cf09c01626", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508", + "name": "sdktestvault1508", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1508.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "62ff1a9f664796cfed36877339f892dc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:24:37 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a9b5cee9-b697-4044-983a-0ba95ab254d5", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11932", + "x-ms-request-id": "bd71aedb-33a0-417f-989c-180cefb1f90b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082438Z:a9b5cee9-b697-4044-983a-0ba95ab254d5", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508", + "name": "sdktestvault1508", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1508.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3a1edc881143aeeb465dc125f5b1f61e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:24:39 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bac53a22-467b-4457-85ce-857de8e9b6ad", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11931", + "x-ms-request-id": "f491c58b-16db-451c-b9b6-b5b476f56d15", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082439Z:bac53a22-467b-4457-85ce-857de8e9b6ad", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508", + "name": "sdktestvault1508", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1508.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "88bd45cbc52a438f6101616d871bef9e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:24:40 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2f4ee34c-de74-4a45-8055-ebf2ed377935", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11930", + "x-ms-request-id": "fb3b3579-d994-4594-b5a7-136923178584", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082440Z:2f4ee34c-de74-4a45-8055-ebf2ed377935", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508", + "name": "sdktestvault1508", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1508.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7d114522e8ea8e8a2e501ce9a5aaa13b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:24:41 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bf3a65cf-eda9-4adc-b0f5-d421a2983a96", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11929", + "x-ms-request-id": "a2d6dd21-78f4-41c6-bad0-0a698127fd65", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082442Z:bf3a65cf-eda9-4adc-b0f5-d421a2983a96", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508", + "name": "sdktestvault1508", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1508.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f4a7693f0a3ac3b24cdad942af7e272a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:24:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "10708b41-ab5a-4b9a-b9f2-3233b2372e9b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11928", + "x-ms-request-id": "5ebad160-9c88-452c-9d6c-24ac2afbc4ba", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082443Z:10708b41-ab5a-4b9a-b9f2-3233b2372e9b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508", + "name": "sdktestvault1508", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1508.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "af02226e799fe333bb2f5ad9a9a59eb7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:24:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ebcdb2d0-b77b-4256-8b82-96ebdbc6c88f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11927", + "x-ms-request-id": "c88baab5-1a39-43f3-9ee3-84105ac420d4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082444Z:ebcdb2d0-b77b-4256-8b82-96ebdbc6c88f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508", + "name": "sdktestvault1508", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1508.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "1d2d265ffb731864934e300f0f47dfaf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "964", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:24:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e9e89aa9-e390-4d34-85a9-3f2f278bfa25", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11926", + "x-ms-request-id": "461f2bb0-a3cd-4e05-91d1-5387681a6bee", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082446Z:e9e89aa9-e390-4d34-85a9-3f2f278bfa25", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508", + "name": "sdktestvault1508", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1508.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "827bf129f1a7c69b35c4380ab0d91aa7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "959", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:24:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "918aaeea-b9cc-4426-8b24-94eac240846a", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11925", + "x-ms-request-id": "bddb3119-0eae-4f63-94ab-da019718e561", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082447Z:918aaeea-b9cc-4426-8b24-94eac240846a", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508", + "name": "sdktestvault1508", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1508.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "732", + "Content-Type": "application/json", + "traceparent": "00-80f355257db24243bb3e53adfb0f8abd-790b9b7c66492c41-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "88e2223c095073b6bdea1c514824d373", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "premium" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "secrets": [ + "get", + "set" + ], + "certificates": [ + "all" + ], + "storage": [ + "get", + "regeneratekey" + ] + } + } + ], + "vaultUri": "https://sdktestvault1508.vault.azure.net/", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:24:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e0e53a15-da0f-4cf6-8e5a-e5755bb996e8", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1193", + "x-ms-request-id": "5173df04-f719-4d6c-89bd-884f55d80dc8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082447Z:e0e53a15-da0f-4cf6-8e5a-e5755bb996e8", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508", + "name": "sdktestvault1508", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "premium" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "secrets": [ + "get", + "set" + ], + "certificates": [ + "all" + ], + "storage": [ + "get", + "regeneratekey" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1508.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f203d0a1e139c840959200da99cc9a25-5d8dee47aac51843-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ecd289345665205e3b08c5bdd54a7d11", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "965", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:24:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c227b30e-2153-4859-9123-6e50807fe9ec", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11924", + "x-ms-request-id": "3a3b30e8-2da2-41c5-a62b-e74ab5554cba", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082448Z:c227b30e-2153-4859-9123-6e50807fe9ec", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508", + "name": "sdktestvault1508", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "premium" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "permissions": { + "secrets": [ + "get", + "set" + ], + "certificates": [ + "all" + ], + "storage": [ + "get", + "regeneratekey" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault1508.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a72dc9b2518e6540adf314285099c122-e4b189901385e34b-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "05bbc4f06229217d1274feea2107b063", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5f43c184-ef06-4f0c-9aa0-5d3f3a5f86e9", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14991", + "x-ms-request-id": "95e1af73-f3c6-47b6-bf1c-94d352273b10", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082452Z:5f43c184-ef06-4f0c-9aa0-5d3f3a5f86e9", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg493/providers/Microsoft.KeyVault/vaults/sdktestvault1508?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-923fe0bf36ec824395aea07a832094e9-25158d84fde50c44-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "bf1c6281e651f80e4b8f7c215552983f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "158", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:24:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0c6c03bd-e04f-44b8-b6f0-32770855b381", + "x-ms-failure-cause": "gateway", + "x-ms-request-id": "0c6c03bd-e04f-44b8-b6f0-32770855b381", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082452Z:0c6c03bd-e04f-44b8-b6f0-32770855b381" + }, + "ResponseBody": { + "error": { + "code": "ResourceNotFound", + "message": "The Resource \u0027Microsoft.KeyVault/vaults/sdktestvault1508\u0027 under resource group \u0027sdktestrg493\u0027 was not found." + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg493?api-version=2017-05-10", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-5f2f07381e2b0f448b4d048423a956a5-ccb901224087a140-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "febed7e8629ed1900bb1daf15874ff33", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:55 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5e668984-3a0b-419b-9138-adf1fdee4118", + "x-ms-ratelimit-remaining-subscription-deletes": "14990", + "x-ms-request-id": "5e668984-3a0b-419b-9138-adf1fdee4118", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082456Z:5e668984-3a0b-419b-9138-adf1fdee4118" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "4901bedbb2481fc4d24bb4a00c1da0d6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:56 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f955b62b-10df-45c7-851e-a6fbd1cf8178", + "x-ms-ratelimit-remaining-subscription-reads": "11922", + "x-ms-request-id": "f955b62b-10df-45c7-851e-a6fbd1cf8178", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082456Z:f955b62b-10df-45c7-851e-a6fbd1cf8178" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f4c9488f26162a1217b547dca7f6eaaf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:57 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "353a00cc-8175-498a-8f3a-2da7de72e482", + "x-ms-ratelimit-remaining-subscription-reads": "11921", + "x-ms-request-id": "353a00cc-8175-498a-8f3a-2da7de72e482", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082458Z:353a00cc-8175-498a-8f3a-2da7de72e482" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "991519e5b573a5eb9c1ca0e2091ffd99", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:24:59 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "72dd2627-ffeb-4226-ae38-d5556cb27c7c", + "x-ms-ratelimit-remaining-subscription-reads": "11920", + "x-ms-request-id": "72dd2627-ffeb-4226-ae38-d5556cb27c7c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082459Z:72dd2627-ffeb-4226-ae38-d5556cb27c7c" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9e0ae421d792b5aaacd632936ae877dc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:00 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "96eec568-a5ff-42c5-9615-f58dd192398c", + "x-ms-ratelimit-remaining-subscription-reads": "11919", + "x-ms-request-id": "96eec568-a5ff-42c5-9615-f58dd192398c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082501Z:96eec568-a5ff-42c5-9615-f58dd192398c" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "f3bb04600607da625c2457fa853020f8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:02 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "67306a3b-86fa-470c-b4bb-654f60cf851a", + "x-ms-ratelimit-remaining-subscription-reads": "11918", + "x-ms-request-id": "67306a3b-86fa-470c-b4bb-654f60cf851a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082502Z:67306a3b-86fa-470c-b4bb-654f60cf851a" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c3baaeb84ceb0d1d6f60ed9d82583bb4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:03 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "160dc910-5608-4af2-9cf5-51d432101f30", + "x-ms-ratelimit-remaining-subscription-reads": "11917", + "x-ms-request-id": "160dc910-5608-4af2-9cf5-51d432101f30", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082504Z:160dc910-5608-4af2-9cf5-51d432101f30" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0581c4a40a631b918130416e80b0307c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:05 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b4c93bc0-3615-4eaf-88ce-81664ea6d54a", + "x-ms-ratelimit-remaining-subscription-reads": "11916", + "x-ms-request-id": "b4c93bc0-3615-4eaf-88ce-81664ea6d54a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082505Z:b4c93bc0-3615-4eaf-88ce-81664ea6d54a" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "bbdb3ab5b42e13f0e7ad83a718c55704", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "69c9ea88-023b-47eb-8b5a-6a99c3b3ae42", + "x-ms-ratelimit-remaining-subscription-reads": "11915", + "x-ms-request-id": "69c9ea88-023b-47eb-8b5a-6a99c3b3ae42", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082507Z:69c9ea88-023b-47eb-8b5a-6a99c3b3ae42" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c155a3e81baead941d9e42ba0baf8dbf", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e08feebb-ef9e-40b9-995f-8c47246b83a4", + "x-ms-ratelimit-remaining-subscription-reads": "11914", + "x-ms-request-id": "e08feebb-ef9e-40b9-995f-8c47246b83a4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082508Z:e08feebb-ef9e-40b9-995f-8c47246b83a4" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "48e771307f7df085d36e1eb586e902bb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5179e3cb-32cb-4c74-8795-ffd3064849f2", + "x-ms-ratelimit-remaining-subscription-reads": "11913", + "x-ms-request-id": "5179e3cb-32cb-4c74-8795-ffd3064849f2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082510Z:5179e3cb-32cb-4c74-8795-ffd3064849f2" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "dc853cd96f5a99cda62d9e8f71360838", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:11 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b078ca71-24ab-4841-89c0-2f0699483b44", + "x-ms-ratelimit-remaining-subscription-reads": "11912", + "x-ms-request-id": "b078ca71-24ab-4841-89c0-2f0699483b44", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082511Z:b078ca71-24ab-4841-89c0-2f0699483b44" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a777c4200edd69871d65ed40fdde2733", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:12 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "be1ceb09-4940-4227-a493-f37bc7149980", + "x-ms-ratelimit-remaining-subscription-reads": "11911", + "x-ms-request-id": "be1ceb09-4940-4227-a493-f37bc7149980", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082513Z:be1ceb09-4940-4227-a493-f37bc7149980" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cee1869cb029c164a34ea24fe1f67e9d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:14 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "33950737-22e3-4f48-9d54-a271b8799227", + "x-ms-ratelimit-remaining-subscription-reads": "11910", + "x-ms-request-id": "33950737-22e3-4f48-9d54-a271b8799227", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082514Z:33950737-22e3-4f48-9d54-a271b8799227" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c195e6655b72caddb51cbff5818d9cc7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f73fb644-66ee-4f65-8b09-350540481d86", + "x-ms-ratelimit-remaining-subscription-reads": "11909", + "x-ms-request-id": "f73fb644-66ee-4f65-8b09-350540481d86", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082516Z:f73fb644-66ee-4f65-8b09-350540481d86" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "eaf36a053954700e60b6038f6c378727", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4fee6395-7470-4fbe-a6c7-503fa2fcdee2", + "x-ms-ratelimit-remaining-subscription-reads": "11908", + "x-ms-request-id": "4fee6395-7470-4fbe-a6c7-503fa2fcdee2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082517Z:4fee6395-7470-4fbe-a6c7-503fa2fcdee2" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "17da4fe6654940c0a816190df06f3f15", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "87ff7432-df14-4f84-a5a2-9f1c8bfba11a", + "x-ms-ratelimit-remaining-subscription-reads": "11907", + "x-ms-request-id": "87ff7432-df14-4f84-a5a2-9f1c8bfba11a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082519Z:87ff7432-df14-4f84-a5a2-9f1c8bfba11a" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "774adab193022c48d72461bc574e5d7d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:20 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f9610f62-e6c0-42b6-9b3d-57f5e590e2a9", + "x-ms-ratelimit-remaining-subscription-reads": "11906", + "x-ms-request-id": "f9610f62-e6c0-42b6-9b3d-57f5e590e2a9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082520Z:f9610f62-e6c0-42b6-9b3d-57f5e590e2a9" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "310e979485b39f7ea9b2423d1f017ff0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cfc75093-abc2-4814-ba1f-50de4604ed2a", + "x-ms-ratelimit-remaining-subscription-reads": "11905", + "x-ms-request-id": "cfc75093-abc2-4814-ba1f-50de4604ed2a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082522Z:cfc75093-abc2-4814-ba1f-50de4604ed2a" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "92deee7710ed522507ae3f240404e95a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "82902ad2-8f2f-409b-8f22-9101fe983594", + "x-ms-ratelimit-remaining-subscription-reads": "11904", + "x-ms-request-id": "82902ad2-8f2f-409b-8f22-9101fe983594", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082523Z:82902ad2-8f2f-409b-8f22-9101fe983594" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "59789cb90d602c625caacd4f510a0cd6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:24 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "90afe3ac-b7fa-4dba-97c4-7b4147a0f4c6", + "x-ms-ratelimit-remaining-subscription-reads": "11903", + "x-ms-request-id": "90afe3ac-b7fa-4dba-97c4-7b4147a0f4c6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082525Z:90afe3ac-b7fa-4dba-97c4-7b4147a0f4c6" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "694470a4cb70849072bc2a0545599ba4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:26 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e8cf50fc-1e20-442f-ac48-124697948ef6", + "x-ms-ratelimit-remaining-subscription-reads": "11902", + "x-ms-request-id": "e8cf50fc-1e20-442f-ac48-124697948ef6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082527Z:e8cf50fc-1e20-442f-ac48-124697948ef6" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8384e7c9268869908bb1354242d501fc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:27 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d41e8d4d-038a-4a92-ae21-eac6f5938cbe", + "x-ms-ratelimit-remaining-subscription-reads": "11901", + "x-ms-request-id": "d41e8d4d-038a-4a92-ae21-eac6f5938cbe", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082528Z:d41e8d4d-038a-4a92-ae21-eac6f5938cbe" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "937f69a180c0edea0cf3e6a4e25de602", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "577903e3-1359-4f40-ae94-e7e5b24aaf46", + "x-ms-ratelimit-remaining-subscription-reads": "11900", + "x-ms-request-id": "577903e3-1359-4f40-ae94-e7e5b24aaf46", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082530Z:577903e3-1359-4f40-ae94-e7e5b24aaf46" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6985280f89857e4de0dbddbe954d419c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:31 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "166c0e3b-0b77-4460-acd9-b1a6103feeb4", + "x-ms-ratelimit-remaining-subscription-reads": "11899", + "x-ms-request-id": "166c0e3b-0b77-4460-acd9-b1a6103feeb4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082531Z:166c0e3b-0b77-4460-acd9-b1a6103feeb4" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0OTMtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "dc642eba07d949e4fd9777953fec862e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:25:32 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fff27df3-8c03-44db-a611-5028cdaab5f6", + "x-ms-ratelimit-remaining-subscription-reads": "11898", + "x-ms-request-id": "fff27df3-8c03-44db-a611-5028cdaab5f6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082533Z:fff27df3-8c03-44db-a611-5028cdaab5f6" + }, + "ResponseBody": [] + } + ], + "Variables": { + "CLIENT_ID": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "ObjectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "RandomSeed": "199085801", + "SUBSCRIPTION_ID": "0b1f6471-1bf0-4dda-aec3-cb9272f09590", + "TENANT_ID": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a" + } +} \ No newline at end of file diff --git a/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementVaultTestCompoundIdentityAccessControlPolicy.json b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementVaultTestCompoundIdentityAccessControlPolicy.json new file mode 100644 index 0000000000000..5ab59ea2569e1 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementVaultTestCompoundIdentityAccessControlPolicy.json @@ -0,0 +1,2706 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-ea32c4c4316b3c4289bb607e876127ad-15edff6a8cb49343-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "eb58d09992170e0bc4a920f0f7b3cb70", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7496", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:15:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "12f18666-f3d3-4ec6-98bf-26219f16f2c2", + "x-ms-ratelimit-remaining-subscription-reads": "11723", + "x-ms-request-id": "12f18666-f3d3-4ec6-98bf-26219f16f2c2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081543Z:12f18666-f3d3-4ec6-98bf-26219f16f2c2" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault", + "namespace": "Microsoft.KeyVault", + "authorizations": [ + { + "applicationId": "cfa8b339-82a2-471a-a3c9-0fc0be7a4093", + "roleDefinitionId": "1cf9858a-28a2-4228-abba-94e606305b95" + }, + { + "applicationId": "589d5083-6f11-4d30-a62a-a4b316a14abf" + } + ], + "resourceTypes": [ + { + "resourceType": "vaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove" + }, + { + "resourceType": "vaults/secrets", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/accessPolicies", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "operations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01", + "2014-12-19-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "checkNameAvailability", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deleteVirtualNetworkOrSubnets", + "locations": [ + "East US", + "North Central US", + "West Europe", + "North Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West Central US", + "West US 2", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Central US EUAP", + "East US 2 EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ] + }, + { + "resourceType": "locations/operationResults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/eventGridFilters", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14" + ] + } + ], + "registrationState": "Registered" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg420?api-version=2017-05-10", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "31", + "Content-Type": "application/json", + "traceparent": "00-b3678dd9043e0a43a96b177b4d852625-a5351cce5ef8c24e-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "621ffefc5cccbbc9d2b632912845c3d8", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "237", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:15:43 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "dddf5a40-0f34-4e70-ab43-d71f14f7cf14", + "x-ms-ratelimit-remaining-subscription-writes": "1182", + "x-ms-request-id": "dddf5a40-0f34-4e70-ab43-d71f14f7cf14", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081544Z:dddf5a40-0f34-4e70-ab43-d71f14f7cf14" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420", + "name": "sdktestrg420", + "location": "northcentralus", + "tags": { + "StorageType": "Standard_LRS", + "type": "test" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "691", + "Content-Type": "application/json", + "traceparent": "00-c77a93771be71849930146bde1bac11e-f9779541c75d5c46-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "17e0e2cec5a829e539b092e9d7f27ce3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1018", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:15:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9bdab256-010b-4767-8eed-0795a5e69c9a", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1181", + "x-ms-request-id": "7b268145-f723-4f26-a69e-24eb428dd51e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081551Z:9bdab256-010b-4767-8eed-0795a5e69c9a", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780", + "name": "sdktestvault7780", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7780.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e8e42918279038543a3892ab37d1fac3", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1019", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:15:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "764a93d5-ff80-42f9-b19a-a0366a50fffc", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11722", + "x-ms-request-id": "35b98cd0-7e41-4980-94d6-c6c9abca79df", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081552Z:764a93d5-ff80-42f9-b19a-a0366a50fffc", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780", + "name": "sdktestvault7780", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7780.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "009badb5a28e00ca6f51e762ea0dac9c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1019", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:15:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "97d6be7f-0616-403c-b659-9e3f84491317", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11721", + "x-ms-request-id": "224b4da6-eb46-454d-b269-00eaee08e6d6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081553Z:97d6be7f-0616-403c-b659-9e3f84491317", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780", + "name": "sdktestvault7780", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7780.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "aed0354c940e6553f0fcfbca3bc7565e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1019", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:15:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0dc053fd-d734-4b2f-adde-04f059ae1529", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11720", + "x-ms-request-id": "c0a6798f-c4ad-4660-8765-ed1137c197a5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081555Z:0dc053fd-d734-4b2f-adde-04f059ae1529", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780", + "name": "sdktestvault7780", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7780.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cf23174a640075cd5ee3793e3ff14e2c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1019", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:15:56 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "745b1353-61f0-4f4f-a4bf-6eedbff8dabf", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11719", + "x-ms-request-id": "e67c08d7-120d-4c44-83f9-4d182997225c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081556Z:745b1353-61f0-4f4f-a4bf-6eedbff8dabf", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780", + "name": "sdktestvault7780", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7780.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "015ff58c4c0121b55a350f91a600c5a7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1019", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:15:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2dba6a5f-becc-41a5-9ec8-076e2b41d3a1", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11718", + "x-ms-request-id": "2b2b5726-302a-47a7-9b74-ee9f3d5c8820", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081557Z:2dba6a5f-becc-41a5-9ec8-076e2b41d3a1", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780", + "name": "sdktestvault7780", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7780.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d21789fbdceae89c685b4f2a1a1426fe", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1019", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:15:58 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e0ece2a7-a59d-45d6-8b33-47efad8b4b23", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11717", + "x-ms-request-id": "eb6d3d49-6fa7-42ae-a90d-af4649eabb08", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081558Z:e0ece2a7-a59d-45d6-8b33-47efad8b4b23", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780", + "name": "sdktestvault7780", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7780.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "453ecead5468fe5d610174ca543cce5e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1019", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:16:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1d1af711-3370-4c7e-bd95-ac091a1e16aa", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11716", + "x-ms-request-id": "41baa5aa-c3c1-4c39-b80f-6cfbf3b4f971", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081600Z:1d1af711-3370-4c7e-bd95-ac091a1e16aa", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780", + "name": "sdktestvault7780", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7780.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b643d21d7cdaaf42597799a6fd8b0646", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1019", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:16:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "12d05fc4-0e40-4b19-ab06-eb5178d12760", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11715", + "x-ms-request-id": "6dcfb148-c506-4f85-8744-206b4da184c6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081601Z:12d05fc4-0e40-4b19-ab06-eb5178d12760", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780", + "name": "sdktestvault7780", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7780.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d8e3110f80c2a63f2b1970e867d1932c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1019", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:16:02 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2fef24a9-1112-4f7c-a3c6-2d73d9e19c5c", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11714", + "x-ms-request-id": "1756350e-df89-4fba-8bd1-4de94ed36518", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081602Z:2fef24a9-1112-4f7c-a3c6-2d73d9e19c5c", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780", + "name": "sdktestvault7780", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7780.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "480cf08c70d131248b8eebf0bbb700d6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1019", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:16:04 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1456861e-7b29-45af-aea6-714069112415", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11713", + "x-ms-request-id": "331fcaa9-5954-4da6-a71c-7c434dc47df5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081604Z:1456861e-7b29-45af-aea6-714069112415", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780", + "name": "sdktestvault7780", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7780.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "43bb2efaf6589d9c929c8ac00c5a4787", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1014", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:16:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "806c8fef-b72a-4744-804f-99102e92fd50", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11712", + "x-ms-request-id": "419dfed0-7699-487d-b5db-f52cb726bf59", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081605Z:806c8fef-b72a-4744-804f-99102e92fd50", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780", + "name": "sdktestvault7780", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7780.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-85752b91c49ad94b85f91e81892372f2-a2f4944454bfd441-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0c1a6de3be7e9f75ecb24c33944eeb74", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1014", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:16:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "75bdbb84-1e7e-41c1-b40d-e22629098020", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11711", + "x-ms-request-id": "8d9f5b47-ac8a-4ec7-8035-95c3fbb0c191", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081605Z:75bdbb84-1e7e-41c1-b40d-e22629098020", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780", + "name": "sdktestvault7780", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault7780.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-f0efeec46702084f8278816296c19a04-accb592ba1249b45-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "39ed9918501595d3546fb534e5632531", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:08 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ce1b59bb-f26b-4069-a5c6-d1a3a39ec684", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14983", + "x-ms-request-id": "5de15958-afe4-4e3d-8c80-8a59ff8de2b7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081608Z:ce1b59bb-f26b-4069-a5c6-d1a3a39ec684", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg420/providers/Microsoft.KeyVault/vaults/sdktestvault7780?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-331a0f00ac71fd4497c31eac3350d5cd-cee9a042750bfc42-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "4d0c6346f49d3c57b91c56a6a9680844", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "158", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:16:09 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "007d8707-4a44-4271-a86a-7a44a0e4f283", + "x-ms-failure-cause": "gateway", + "x-ms-request-id": "007d8707-4a44-4271-a86a-7a44a0e4f283", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081609Z:007d8707-4a44-4271-a86a-7a44a0e4f283" + }, + "ResponseBody": { + "error": { + "code": "ResourceNotFound", + "message": "The Resource \u0027Microsoft.KeyVault/vaults/sdktestvault7780\u0027 under resource group \u0027sdktestrg420\u0027 was not found." + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg420?api-version=2017-05-10", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-eae4634f1a54bd4ba75bab587ad1fa3c-f2be5807a64a314d-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "72a715b10e6c93729984b70f0840b988", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:12 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6f8e0187-f669-477d-8463-c9a53ea07a12", + "x-ms-ratelimit-remaining-subscription-deletes": "14982", + "x-ms-request-id": "6f8e0187-f669-477d-8463-c9a53ea07a12", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081612Z:6f8e0187-f669-477d-8463-c9a53ea07a12" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cf837167b2bb37c4f179b4183c483478", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:12 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "55e4895f-eae8-4655-b282-5a8421948258", + "x-ms-ratelimit-remaining-subscription-reads": "11709", + "x-ms-request-id": "55e4895f-eae8-4655-b282-5a8421948258", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081612Z:55e4895f-eae8-4655-b282-5a8421948258" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8e19cd63d67b13023e8330bb8e78996b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:14 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f886168d-136e-4391-ad68-3785132fe953", + "x-ms-ratelimit-remaining-subscription-reads": "11708", + "x-ms-request-id": "f886168d-136e-4391-ad68-3785132fe953", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081614Z:f886168d-136e-4391-ad68-3785132fe953" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "96a8cb98e9bddacd56b53fc8e8bee7f9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0df1723f-d5a4-49fb-9be4-0889690e4649", + "x-ms-ratelimit-remaining-subscription-reads": "11707", + "x-ms-request-id": "0df1723f-d5a4-49fb-9be4-0889690e4649", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081615Z:0df1723f-d5a4-49fb-9be4-0889690e4649" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "2b96087c5d1490706f6f91388208a978", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "dd3bf992-84c3-4c54-b309-8edd4cf0428f", + "x-ms-ratelimit-remaining-subscription-reads": "11706", + "x-ms-request-id": "dd3bf992-84c3-4c54-b309-8edd4cf0428f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081617Z:dd3bf992-84c3-4c54-b309-8edd4cf0428f" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "707f48e09da079ba003f37c697392a7f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "08eaf5d3-c12a-422a-80ed-7b3f25ae6b55", + "x-ms-ratelimit-remaining-subscription-reads": "11705", + "x-ms-request-id": "08eaf5d3-c12a-422a-80ed-7b3f25ae6b55", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081618Z:08eaf5d3-c12a-422a-80ed-7b3f25ae6b55" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "863e379b6de23b565b17274e5894574e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:20 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "185dcb12-d9f4-4341-9bf2-d2711edd7b3f", + "x-ms-ratelimit-remaining-subscription-reads": "11704", + "x-ms-request-id": "185dcb12-d9f4-4341-9bf2-d2711edd7b3f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081620Z:185dcb12-d9f4-4341-9bf2-d2711edd7b3f" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9fe8c60c773edf584d1c2ad525aaf835", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4ae5eea6-4827-4c41-985e-34515411a154", + "x-ms-ratelimit-remaining-subscription-reads": "11703", + "x-ms-request-id": "4ae5eea6-4827-4c41-985e-34515411a154", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081621Z:4ae5eea6-4827-4c41-985e-34515411a154" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "4a9c114422c97296f2441588766b216c", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:22 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "03de6927-0be9-42e4-a018-5e816e1ce3c7", + "x-ms-ratelimit-remaining-subscription-reads": "11702", + "x-ms-request-id": "03de6927-0be9-42e4-a018-5e816e1ce3c7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081623Z:03de6927-0be9-42e4-a018-5e816e1ce3c7" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "d0bae9e78a512440de5f38c6428115b1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:24 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e27c0862-a045-4fdc-af93-a4356b157e52", + "x-ms-ratelimit-remaining-subscription-reads": "11701", + "x-ms-request-id": "e27c0862-a045-4fdc-af93-a4356b157e52", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081624Z:e27c0862-a045-4fdc-af93-a4356b157e52" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "470af11e0cf8e9843076adfa62d069e1", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:25 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ba262b55-5b64-47a6-a98c-0971059f8f78", + "x-ms-ratelimit-remaining-subscription-reads": "11700", + "x-ms-request-id": "ba262b55-5b64-47a6-a98c-0971059f8f78", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081626Z:ba262b55-5b64-47a6-a98c-0971059f8f78" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3ceebefb28efb9e4d0786c6aead02f70", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:27 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0fd7ed8d-6ac6-4842-859c-c54d192f578e", + "x-ms-ratelimit-remaining-subscription-reads": "11699", + "x-ms-request-id": "0fd7ed8d-6ac6-4842-859c-c54d192f578e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081627Z:0fd7ed8d-6ac6-4842-859c-c54d192f578e" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8469632eda61da7464d0a0dbdc46c20e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:28 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bc9d4e3b-2414-4932-bd88-95ad854e9f1d", + "x-ms-ratelimit-remaining-subscription-reads": "11698", + "x-ms-request-id": "bc9d4e3b-2414-4932-bd88-95ad854e9f1d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081629Z:bc9d4e3b-2414-4932-bd88-95ad854e9f1d" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "83ca56f5d893f6c10d50767fa019ff60", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:30 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3f033fc2-f8e1-409d-be97-03d95f3a0bb0", + "x-ms-ratelimit-remaining-subscription-reads": "11697", + "x-ms-request-id": "3f033fc2-f8e1-409d-be97-03d95f3a0bb0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081630Z:3f033fc2-f8e1-409d-be97-03d95f3a0bb0" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "fecc3d46e56621804a13d71f8808dc8a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:31 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "15b66b2a-8e1b-4a95-9e56-9563f3154811", + "x-ms-ratelimit-remaining-subscription-reads": "11696", + "x-ms-request-id": "15b66b2a-8e1b-4a95-9e56-9563f3154811", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081632Z:15b66b2a-8e1b-4a95-9e56-9563f3154811" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "93755db6ab0555dda173771163f4394b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a912b6c8-db5a-492e-9fc2-d4764b808121", + "x-ms-ratelimit-remaining-subscription-reads": "11695", + "x-ms-request-id": "a912b6c8-db5a-492e-9fc2-d4764b808121", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081633Z:a912b6c8-db5a-492e-9fc2-d4764b808121" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9f943fd1c37910a8d6a9397f00a26e04", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:34 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9d5993b7-10e8-4c5d-8388-1b4dbdb04c92", + "x-ms-ratelimit-remaining-subscription-reads": "11694", + "x-ms-request-id": "9d5993b7-10e8-4c5d-8388-1b4dbdb04c92", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081635Z:9d5993b7-10e8-4c5d-8388-1b4dbdb04c92" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "43c9eb736ca49b5b5f765cf36d6ebd56", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:36 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4da33926-b735-4f47-bb2c-c3940f3a513a", + "x-ms-ratelimit-remaining-subscription-reads": "11693", + "x-ms-request-id": "4da33926-b735-4f47-bb2c-c3940f3a513a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081636Z:4da33926-b735-4f47-bb2c-c3940f3a513a" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "484d8cda3c73f210b564bc5b725e54ff", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:37 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2155bd37-c1be-4dec-9e08-05c8d5826440", + "x-ms-ratelimit-remaining-subscription-reads": "11692", + "x-ms-request-id": "2155bd37-c1be-4dec-9e08-05c8d5826440", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081638Z:2155bd37-c1be-4dec-9e08-05c8d5826440" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "779d7204f62a65a6e4f9400366b5a267", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:39 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4dc9d470-cd51-4b26-a974-f1268277e7db", + "x-ms-ratelimit-remaining-subscription-reads": "11691", + "x-ms-request-id": "4dc9d470-cd51-4b26-a974-f1268277e7db", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081639Z:4dc9d470-cd51-4b26-a974-f1268277e7db" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "74a4e2eb26543790dbd78e3fafff2900", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:40 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2d8718a3-8155-4da5-97b7-a73124569d7c", + "x-ms-ratelimit-remaining-subscription-reads": "11690", + "x-ms-request-id": "2d8718a3-8155-4da5-97b7-a73124569d7c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081641Z:2d8718a3-8155-4da5-97b7-a73124569d7c" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "fbee5d2145d1e42be5e8637afb0d8bff", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:41 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b6f3256c-98bf-4531-9e9e-fb3ed3c9802e", + "x-ms-ratelimit-remaining-subscription-reads": "11689", + "x-ms-request-id": "b6f3256c-98bf-4531-9e9e-fb3ed3c9802e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081642Z:b6f3256c-98bf-4531-9e9e-fb3ed3c9802e" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8f6f54c2e0badeabe1669c536866b5e5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:43 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f9fed5bb-ef0d-4275-94c0-00dd13f4aa04", + "x-ms-ratelimit-remaining-subscription-reads": "11688", + "x-ms-request-id": "f9fed5bb-ef0d-4275-94c0-00dd13f4aa04", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081644Z:f9fed5bb-ef0d-4275-94c0-00dd13f4aa04" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "09e140d0a6c7a696b6c08e6bc2163bce", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:44 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0f604d6f-9061-4ceb-a446-116a10004381", + "x-ms-ratelimit-remaining-subscription-reads": "11687", + "x-ms-request-id": "0f604d6f-9061-4ceb-a446-116a10004381", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081645Z:0f604d6f-9061-4ceb-a446-116a10004381" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5a7d8e4b998f4146b20f1a6aa9d77b7e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:46 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e68da922-733f-4c29-ae43-ebef651839ba", + "x-ms-ratelimit-remaining-subscription-reads": "11686", + "x-ms-request-id": "e68da922-733f-4c29-ae43-ebef651839ba", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081647Z:e68da922-733f-4c29-ae43-ebef651839ba" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc0MjAtTk9SVEhDRU5UUkFMVVMiLCJqb2JMb2NhdGlvbiI6Im5vcnRoY2VudHJhbHVzIn0?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "bbaa7d32822b1b38bec9d9f9523f1bca", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:16:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f8aed48c-718e-4dc2-8141-7daf0e0340f1", + "x-ms-ratelimit-remaining-subscription-reads": "11685", + "x-ms-request-id": "f8aed48c-718e-4dc2-8141-7daf0e0340f1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T081648Z:f8aed48c-718e-4dc2-8141-7daf0e0340f1" + }, + "ResponseBody": [] + } + ], + "Variables": { + "CLIENT_ID": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "ObjectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "RandomSeed": "1033828089", + "SUBSCRIPTION_ID": "0b1f6471-1bf0-4dda-aec3-cb9272f09590", + "TENANT_ID": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a" + } +} \ No newline at end of file diff --git a/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementVaultTestCompoundIdentityAccessControlPolicyAsync.json b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementVaultTestCompoundIdentityAccessControlPolicyAsync.json new file mode 100644 index 0000000000000..702d6f174b421 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/tests/SessionRecords/VaultOperationsTests/KeyVaultManagementVaultTestCompoundIdentityAccessControlPolicyAsync.json @@ -0,0 +1,2923 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-874e4860a31ded4ba013b1c143d905e5-a417b84a8e197645-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6f23290a98165b1823b2b96cbe11c1d7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "7496", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:25:34 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "eea385da-0bb2-44b9-9f32-c2ebe9ba5c55", + "x-ms-ratelimit-remaining-subscription-reads": "11897", + "x-ms-request-id": "eea385da-0bb2-44b9-9f32-c2ebe9ba5c55", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082534Z:eea385da-0bb2-44b9-9f32-c2ebe9ba5c55" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/providers/Microsoft.KeyVault", + "namespace": "Microsoft.KeyVault", + "authorizations": [ + { + "applicationId": "cfa8b339-82a2-471a-a3c9-0fc0be7a4093", + "roleDefinitionId": "1cf9858a-28a2-4228-abba-94e606305b95" + }, + { + "applicationId": "589d5083-6f11-4d30-a62a-a4b316a14abf" + } + ], + "resourceTypes": [ + { + "resourceType": "vaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ], + "capabilities": "CrossResourceGroupResourceMove, CrossSubscriptionResourceMove" + }, + { + "resourceType": "vaults/secrets", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/accessPolicies", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "operations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01", + "2014-12-19-preview" + ], + "apiProfiles": [ + { + "profileVersion": "2019-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-03-01-hybrid", + "apiVersion": "2016-10-01" + }, + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "checkNameAvailability", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01", + "2015-06-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations", + "locations": [], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deletedVaults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "locations/deleteVirtualNetworkOrSubnets", + "locations": [ + "East US", + "North Central US", + "West Europe", + "North Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West Central US", + "West US 2", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Australia Central", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "Korea Central", + "Korea South", + "France Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "Central US EUAP", + "East US 2 EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ] + }, + { + "resourceType": "locations/operationResults", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14", + "2016-10-01" + ], + "apiProfiles": [ + { + "profileVersion": "2018-06-01-profile", + "apiVersion": "2016-10-01" + } + ] + }, + { + "resourceType": "vaults/eventGridFilters", + "locations": [ + "North Central US", + "East US", + "North Europe", + "West Europe", + "East Asia", + "Southeast Asia", + "East US 2", + "Central US", + "South Central US", + "West US", + "Japan East", + "Japan West", + "Australia East", + "Australia Southeast", + "Brazil South", + "Central India", + "South India", + "West India", + "Canada Central", + "Canada East", + "UK South", + "UK West", + "West Central US", + "West US 2", + "Korea Central", + "Korea South", + "France Central", + "Australia Central", + "UAE North", + "South Africa North", + "Switzerland North", + "Germany West Central", + "Norway East", + "East US 2 EUAP", + "Central US EUAP" + ], + "apiVersions": [ + "2019-09-01", + "2018-02-14-preview", + "2018-02-14" + ] + } + ], + "registrationState": "Registered" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg7255?api-version=2017-05-10", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "31", + "Content-Type": "application/json", + "traceparent": "00-764d02e36fdb9d4b89c53c5e2313e177-e6c457cd6f0e124f-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e65f0fc284701bd98666935d2249b3f0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US" + }, + "StatusCode": 201, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "239", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:25:35 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4379f122-b9fa-4bd1-93f0-c4d073fbf07c", + "x-ms-ratelimit-remaining-subscription-writes": "1192", + "x-ms-request-id": "4379f122-b9fa-4bd1-93f0-c4d073fbf07c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082536Z:4379f122-b9fa-4bd1-93f0-c4d073fbf07c" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255", + "name": "sdktestrg7255", + "location": "northcentralus", + "tags": { + "StorageType": "Standard_LRS", + "type": "test" + }, + "properties": { + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147?api-version=2019-09-01", + "RequestMethod": "PUT", + "RequestHeaders": { + "Authorization": "Sanitized", + "Content-Length": "691", + "Content-Type": "application/json", + "traceparent": "00-393fcc1b69615e4fab2e572f068d6904-c0a4e5f3cb5be949-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b056b9a7b3e7e1c7e7b4ec16528a2a03", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": { + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "sku": { + "family": "A", + "name": "standard" + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "vaultUri": "", + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ] + } + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1019", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:25:42 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "17e15dbf-dd5b-417f-887e-6a7a15342959", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-writes": "1191", + "x-ms-request-id": "b8fa239e-49e6-4092-a95e-d9cbdd0c637b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082543Z:17e15dbf-dd5b-417f-887e-6a7a15342959", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147", + "name": "sdktestvault4147", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4147.vault.azure.net", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "076ae07b69805cdb980489d0ec0433db", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1020", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:25:44 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "096fc827-e52e-4934-bd1c-49906b49cb2a", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11896", + "x-ms-request-id": "9813cdbf-b537-46c8-b055-e398e6867865", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082544Z:096fc827-e52e-4934-bd1c-49906b49cb2a", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147", + "name": "sdktestvault4147", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4147.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "bf2c5969033c0c6d140b5b578142e3e5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1020", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:25:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ff6d4853-25b6-4c36-a302-e42fda80448a", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11895", + "x-ms-request-id": "bb030425-cd4d-49f5-b76c-11fd4be7400b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082545Z:ff6d4853-25b6-4c36-a302-e42fda80448a", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147", + "name": "sdktestvault4147", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4147.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "729be64b22208c82af19556c11d45d4f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1020", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:25:46 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7f7f5098-d820-4f2e-8180-97f91f817a61", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11894", + "x-ms-request-id": "95bd83c2-c38c-4324-a705-129e85d8931c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082547Z:7f7f5098-d820-4f2e-8180-97f91f817a61", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147", + "name": "sdktestvault4147", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4147.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a41c565ca9d577c8725df3750d84db56", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1020", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:25:47 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "bc093911-f28f-43f4-98ad-d87946fa63f2", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11893", + "x-ms-request-id": "e7f280c1-7904-4042-a604-88f59827975c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082548Z:bc093911-f28f-43f4-98ad-d87946fa63f2", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147", + "name": "sdktestvault4147", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4147.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "0684a320c16947bbd69f1022ae01fb3f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1020", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:25:49 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cf6bed70-0caf-40a8-9c78-192aa96a090b", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11892", + "x-ms-request-id": "561ac8d2-8ae2-4b21-8a6e-9b3f65b0bc5b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082549Z:cf6bed70-0caf-40a8-9c78-192aa96a090b", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147", + "name": "sdktestvault4147", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4147.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "2afb0cad3f25a20f1d23ffc22e0d7e2b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1020", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:25:50 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "523303b9-0c6b-448c-92e4-3683dfd59ee5", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11891", + "x-ms-request-id": "322a54d8-0278-4030-b3d1-e348489ecfb7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082551Z:523303b9-0c6b-448c-92e4-3683dfd59ee5", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147", + "name": "sdktestvault4147", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4147.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6d4bfe3e574f9ae59ad5cd3598a6c971", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1020", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:25:51 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4a666524-f9e9-4c35-a6b4-7adfe17e96f6", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11890", + "x-ms-request-id": "2f5a9608-b050-4789-82e3-7d7575466894", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082552Z:4a666524-f9e9-4c35-a6b4-7adfe17e96f6", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147", + "name": "sdktestvault4147", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4147.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "01c8b462b088e13093e2e846c2f818c9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1020", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:25:53 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cd123b2d-e031-4da7-bdcb-c37f2fdbd83f", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11889", + "x-ms-request-id": "3212ea75-9bdb-462d-b484-9c71169b7107", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082553Z:cd123b2d-e031-4da7-bdcb-c37f2fdbd83f", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147", + "name": "sdktestvault4147", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4147.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "afe4e5218db655ef26608f5072da0977", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1020", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:25:54 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "eaecb31a-882c-49ef-8cc9-0e9d21f65a30", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11888", + "x-ms-request-id": "c5421acc-e473-4057-9a8f-64dd23d5f9e7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082555Z:eaecb31a-882c-49ef-8cc9-0e9d21f65a30", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147", + "name": "sdktestvault4147", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4147.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "7a608d5a7d458da2ce69da6d6e9fd8a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1020", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:25:55 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "22c01bb3-57e0-405e-a716-2037f243c424", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11887", + "x-ms-request-id": "24a3d8a6-2361-4e03-b60e-2e7bc7d89a78", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082556Z:22c01bb3-57e0-405e-a716-2037f243c424", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147", + "name": "sdktestvault4147", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4147.vault.azure.net/", + "provisioningState": "RegisteringDns" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "b31403bc19c1d4bbc472da2820df6eb9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1015", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:25:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "73e112fb-7e5b-4d97-a897-7e5b78ccb245", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11886", + "x-ms-request-id": "eca60f5a-10c1-4bbd-a796-3c9404144874", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082557Z:73e112fb-7e5b-4d97-a897-7e5b78ccb245", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147", + "name": "sdktestvault4147", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4147.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-245ac0976824304f86ef33f3ffe474af-e693fbc3b8713a41-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "34eb71d89d98a3844357e14cb381e787", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "1015", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:25:57 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b1c8e1c1-60ee-41d2-bb31-a41bc8aa7abd", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-reads": "11885", + "x-ms-request-id": "9ea1bdac-d60e-4c75-851e-3cb29d9a3ee3", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082558Z:b1c8e1c1-60ee-41d2-bb31-a41bc8aa7abd", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": { + "id": "/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147", + "name": "sdktestvault4147", + "type": "Microsoft.KeyVault/vaults", + "location": "North Central US", + "tags": { + "tag1": "value1", + "tag2": "value2", + "tag3": "value3" + }, + "properties": { + "sku": { + "family": "A", + "name": "standard" + }, + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "networkAcls": { + "bypass": "AzureServices", + "defaultAction": "Allow", + "ipRules": [ + { + "value": "1.2.3.4/32" + }, + { + "value": "1.0.0.0/25" + } + ], + "virtualNetworkRules": [] + }, + "accessPolicies": [ + { + "tenantId": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a", + "objectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "applicationId": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "permissions": { + "keys": [ + "all" + ], + "secrets": [ + "all" + ], + "certificates": [ + "all" + ], + "storage": [ + "all" + ] + } + } + ], + "enabledForDeployment": true, + "enabledForDiskEncryption": true, + "enabledForTemplateDeployment": true, + "enableSoftDelete": true, + "vaultUri": "https://sdktestvault4147.vault.azure.net/", + "provisioningState": "Succeeded" + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147?api-version=2019-09-01", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-2ee1f99be0311b468d34e7fa26712282-1445d0146a2b984f-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "6e94ed8756c541b5d28bb6d2a3796cef", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:00 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Microsoft-IIS/10.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-AspNet-Version": "4.0.30319", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f3938fa6-1ba5-4fe5-a96d-ef713a146883", + "x-ms-keyvault-service-version": "1.1.0.280", + "x-ms-ratelimit-remaining-subscription-deletes": "14989", + "x-ms-request-id": "3ba00c9a-4375-407c-b8a2-b53f422abff8", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082601Z:f3938fa6-1ba5-4fe5-a96d-ef713a146883", + "X-Powered-By": "ASP.NET" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourceGroups/sdktestrg7255/providers/Microsoft.KeyVault/vaults/sdktestvault4147?api-version=2019-09-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-921b4e93201ec344bdf5ec787e07458a-37adefabea9e244a-00", + "User-Agent": [ + "azsdk-net-Management.KeyVault/1.0.0-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "fc9520fba4b31f097f716f6a386e2142", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "159", + "Content-Type": "application/json; charset=utf-8", + "Date": "Mon, 18 May 2020 08:26:01 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "769c5bc3-4952-47c1-870f-2bc88fc82e67", + "x-ms-failure-cause": "gateway", + "x-ms-request-id": "769c5bc3-4952-47c1-870f-2bc88fc82e67", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082601Z:769c5bc3-4952-47c1-870f-2bc88fc82e67" + }, + "ResponseBody": { + "error": { + "code": "ResourceNotFound", + "message": "The Resource \u0027Microsoft.KeyVault/vaults/sdktestvault4147\u0027 under resource group \u0027sdktestrg7255\u0027 was not found." + } + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/resourcegroups/sdktestrg7255?api-version=2017-05-10", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Authorization": "Sanitized", + "traceparent": "00-a1631e0bc0f41345848609ce55ebe91f-0208d4f20ab01240-00", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "33a0538a004b81f3bcaa610de7b100c9", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0d3e7795-96e4-4f67-9260-728b08ea612a", + "x-ms-ratelimit-remaining-subscription-deletes": "14988", + "x-ms-request-id": "0d3e7795-96e4-4f67-9260-728b08ea612a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082604Z:0d3e7795-96e4-4f67-9260-728b08ea612a" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "4f48736939d9faa42d13400942fc37cd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c9d547b4-b151-47cd-9492-71e1e72f3cbe", + "x-ms-ratelimit-remaining-subscription-reads": "11883", + "x-ms-request-id": "c9d547b4-b151-47cd-9492-71e1e72f3cbe", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082605Z:c9d547b4-b151-47cd-9492-71e1e72f3cbe" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "467fa6718f1da05580bd4fd6119f9b70", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a5a8691c-3ee7-4664-93ee-9064b2112a38", + "x-ms-ratelimit-remaining-subscription-reads": "11882", + "x-ms-request-id": "a5a8691c-3ee7-4664-93ee-9064b2112a38", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082606Z:a5a8691c-3ee7-4664-93ee-9064b2112a38" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "73a3fda1b069b1f04d5665d9a9c9a0e7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:07 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0f6450c7-e4e3-48f8-86cf-c426e0f33775", + "x-ms-ratelimit-remaining-subscription-reads": "11881", + "x-ms-request-id": "0f6450c7-e4e3-48f8-86cf-c426e0f33775", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082608Z:0f6450c7-e4e3-48f8-86cf-c426e0f33775" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "40e3213cc2cbda461ea7cf1beacde98d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:09 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ac6d5ff1-57bd-4862-98bd-7e58612f2fd0", + "x-ms-ratelimit-remaining-subscription-reads": "11880", + "x-ms-request-id": "ac6d5ff1-57bd-4862-98bd-7e58612f2fd0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082609Z:ac6d5ff1-57bd-4862-98bd-7e58612f2fd0" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "4567cf78c459c164b5cef9c7297bf6b6", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "289183d4-71d0-4634-a51c-401e5368edc9", + "x-ms-ratelimit-remaining-subscription-reads": "11879", + "x-ms-request-id": "289183d4-71d0-4634-a51c-401e5368edc9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082611Z:289183d4-71d0-4634-a51c-401e5368edc9" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "ef99671c5abcdfa5b6c855c1e0d4c67f", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:12 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "81b07add-90d8-4296-9b02-cd52ec5c15bf", + "x-ms-ratelimit-remaining-subscription-reads": "11878", + "x-ms-request-id": "81b07add-90d8-4296-9b02-cd52ec5c15bf", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082612Z:81b07add-90d8-4296-9b02-cd52ec5c15bf" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "da61d76c5a62788ebd218afcc97fb0a2", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:13 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "89f2d6b8-02b4-430e-a1b9-9c8ab3d25d7e", + "x-ms-ratelimit-remaining-subscription-reads": "11877", + "x-ms-request-id": "89f2d6b8-02b4-430e-a1b9-9c8ab3d25d7e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082614Z:89f2d6b8-02b4-430e-a1b9-9c8ab3d25d7e" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "82ff19b1f9341dd129888f906fa2e0e0", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "43ad8f81-fa69-4cc8-b136-264fed89a59d", + "x-ms-ratelimit-remaining-subscription-reads": "11876", + "x-ms-request-id": "43ad8f81-fa69-4cc8-b136-264fed89a59d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082615Z:43ad8f81-fa69-4cc8-b136-264fed89a59d" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "525a79081c1ac154d921329acfa91636", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:16 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7402947d-196a-4915-a7f3-39d0c42e5dba", + "x-ms-ratelimit-remaining-subscription-reads": "11875", + "x-ms-request-id": "7402947d-196a-4915-a7f3-39d0c42e5dba", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082617Z:7402947d-196a-4915-a7f3-39d0c42e5dba" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "c710b31744d5724b0544b0d9cbfd091a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:18 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ae35c199-4ed9-4d9a-ac67-ceef4a97e959", + "x-ms-ratelimit-remaining-subscription-reads": "11874", + "x-ms-request-id": "ae35c199-4ed9-4d9a-ac67-ceef4a97e959", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082619Z:ae35c199-4ed9-4d9a-ac67-ceef4a97e959" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "50f4a9415e259587c43da813c7374d80", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:19 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "6c072023-bfb4-4fc8-9727-02fa3ebed029", + "x-ms-ratelimit-remaining-subscription-reads": "11873", + "x-ms-request-id": "6c072023-bfb4-4fc8-9727-02fa3ebed029", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082620Z:6c072023-bfb4-4fc8-9727-02fa3ebed029" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "bc7858711992c30b2de74cd66b7af6dc", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9fdc41f2-fbb5-4a21-ba33-f68e3a001a9e", + "x-ms-ratelimit-remaining-subscription-reads": "11872", + "x-ms-request-id": "9fdc41f2-fbb5-4a21-ba33-f68e3a001a9e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082622Z:9fdc41f2-fbb5-4a21-ba33-f68e3a001a9e" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "25591818c6b5b9112b7a02989c38abcd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:22 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "75f410e5-d8af-4db0-bb9a-d429aea8e170", + "x-ms-ratelimit-remaining-subscription-reads": "11871", + "x-ms-request-id": "75f410e5-d8af-4db0-bb9a-d429aea8e170", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082623Z:75f410e5-d8af-4db0-bb9a-d429aea8e170" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "73682ff64c8527889e30223d11b1294a", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:24 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7bd0e4cc-e9e0-4470-b860-dec673e87047", + "x-ms-ratelimit-remaining-subscription-reads": "11870", + "x-ms-request-id": "7bd0e4cc-e9e0-4470-b860-dec673e87047", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082625Z:7bd0e4cc-e9e0-4470-b860-dec673e87047" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "affbcc4727deabcb46bf9118177327f5", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:25 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ad78a909-e14b-44a4-8fa6-7a6eb3041b1a", + "x-ms-ratelimit-remaining-subscription-reads": "11869", + "x-ms-request-id": "ad78a909-e14b-44a4-8fa6-7a6eb3041b1a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082626Z:ad78a909-e14b-44a4-8fa6-7a6eb3041b1a" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "3bdf7f3c8212cb5790318784a3d4a779", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:27 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d22507df-1ee9-4ea4-b80e-f8754b544805", + "x-ms-ratelimit-remaining-subscription-reads": "11868", + "x-ms-request-id": "d22507df-1ee9-4ea4-b80e-f8754b544805", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082628Z:d22507df-1ee9-4ea4-b80e-f8754b544805" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "cf51b750fc3dceef64bc2dc6bb700f2b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:28 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b53b816b-92ce-4263-b0e1-582bb96c2ae1", + "x-ms-ratelimit-remaining-subscription-reads": "11867", + "x-ms-request-id": "b53b816b-92ce-4263-b0e1-582bb96c2ae1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082629Z:b53b816b-92ce-4263-b0e1-582bb96c2ae1" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "92012d09eed2c437752f1faca0460872", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:30 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "71d9063d-a441-4bcf-9c03-33eb987fe5f5", + "x-ms-ratelimit-remaining-subscription-reads": "11866", + "x-ms-request-id": "71d9063d-a441-4bcf-9c03-33eb987fe5f5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082631Z:71d9063d-a441-4bcf-9c03-33eb987fe5f5" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5fc7181757213fb78f10d65655900f20", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:31 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "d4e542e2-b42a-4dd2-b8c8-c455fb39050c", + "x-ms-ratelimit-remaining-subscription-reads": "11865", + "x-ms-request-id": "d4e542e2-b42a-4dd2-b8c8-c455fb39050c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082632Z:d4e542e2-b42a-4dd2-b8c8-c455fb39050c" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "767b5b2214d262a6808c5a0ddd422e1e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "42a32a08-9b3a-4f9f-b809-7588dd1a6ac7", + "x-ms-ratelimit-remaining-subscription-reads": "11864", + "x-ms-request-id": "42a32a08-9b3a-4f9f-b809-7588dd1a6ac7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082634Z:42a32a08-9b3a-4f9f-b809-7588dd1a6ac7" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "a3aebab4b0a8b10975c102c117e16ee4", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:35 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "22ba5af2-4453-4b94-9f66-a1be33122295", + "x-ms-ratelimit-remaining-subscription-reads": "11863", + "x-ms-request-id": "22ba5af2-4453-4b94-9f66-a1be33122295", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082635Z:22ba5af2-4453-4b94-9f66-a1be33122295" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "448aff2091cb02a07164df94fca9624d", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:37 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5f674e5b-4b66-4db1-bb2d-0e66743a15fb", + "x-ms-ratelimit-remaining-subscription-reads": "11862", + "x-ms-request-id": "5f674e5b-4b66-4db1-bb2d-0e66743a15fb", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082637Z:5f674e5b-4b66-4db1-bb2d-0e66743a15fb" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9aa1b8e26be2727752c9001012e54b9e", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:38 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ae8f87a0-ae4f-4110-b22d-1cc0faceea2f", + "x-ms-ratelimit-remaining-subscription-reads": "11861", + "x-ms-request-id": "ae8f87a0-ae4f-4110-b22d-1cc0faceea2f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082638Z:ae8f87a0-ae4f-4110-b22d-1cc0faceea2f" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "dded761ee9b822521aac3243d074b4cb", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:40 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c1a55720-8b09-4f96-b6b8-29ea819d0645", + "x-ms-ratelimit-remaining-subscription-reads": "11860", + "x-ms-request-id": "c1a55720-8b09-4f96-b6b8-29ea819d0645", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082640Z:c1a55720-8b09-4f96-b6b8-29ea819d0645" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5edeb55fd43fb4028718f201918ff08b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:42 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f40eccf7-3e5a-4e81-b0d3-686135328423", + "x-ms-ratelimit-remaining-subscription-reads": "11859", + "x-ms-request-id": "f40eccf7-3e5a-4e81-b0d3-686135328423", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082642Z:f40eccf7-3e5a-4e81-b0d3-686135328423" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8676401984bcf995667f7f353933a1dd", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:43 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f25e5a00-7a94-4211-b97f-fd753a2bcc0e", + "x-ms-ratelimit-remaining-subscription-reads": "11858", + "x-ms-request-id": "f25e5a00-7a94-4211-b97f-fd753a2bcc0e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082643Z:f25e5a00-7a94-4211-b97f-fd753a2bcc0e" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5cb13415ec07495e7439569ff751918b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "eae5b873-d230-45d0-9e1f-006f3b6da4c7", + "x-ms-ratelimit-remaining-subscription-reads": "11857", + "x-ms-request-id": "eae5b873-d230-45d0-9e1f-006f3b6da4c7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082645Z:eae5b873-d230-45d0-9e1f-006f3b6da4c7" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "8f29a6bb2dfdda0f20e4f7c054cc7a54", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:46 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5392defd-3417-4d23-8748-5d395e30797f", + "x-ms-ratelimit-remaining-subscription-reads": "11856", + "x-ms-request-id": "5392defd-3417-4d23-8748-5d395e30797f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082646Z:5392defd-3417-4d23-8748-5d395e30797f" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5ceb147694de2c84e22d12832ef50214", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:48 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "86e53530-dfb0-488f-b258-648764602321", + "x-ms-ratelimit-remaining-subscription-reads": "11855", + "x-ms-request-id": "86e53530-dfb0-488f-b258-648764602321", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082648Z:86e53530-dfb0-488f-b258-648764602321" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "9279f4ed1109e7df25d63b22f59df5a7", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:49 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "478f1e42-202d-4952-a473-c6814e43de47", + "x-ms-ratelimit-remaining-subscription-reads": "11854", + "x-ms-request-id": "478f1e42-202d-4952-a473-c6814e43de47", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082649Z:478f1e42-202d-4952-a473-c6814e43de47" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "e22902be346527ad22fdadd01b8bab2b", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:51 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "Pragma": "no-cache", + "Retry-After": "15", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f9f895e1-eeae-4690-b232-d27d62056618", + "x-ms-ratelimit-remaining-subscription-reads": "11853", + "x-ms-request-id": "f9f895e1-eeae-4690-b232-d27d62056618", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082651Z:f9f895e1-eeae-4690-b232-d27d62056618" + }, + "ResponseBody": [] + }, + { + "RequestUri": "https://management.azure.com/subscriptions/0b1f6471-1bf0-4dda-aec3-cb9272f09590/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1TREtURVNUUkc3MjU1LU5PUlRIQ0VOVFJBTFVTIiwiam9iTG9jYXRpb24iOiJub3J0aGNlbnRyYWx1cyJ9?api-version=2017-05-10", + "RequestMethod": "GET", + "RequestHeaders": { + "Authorization": "Sanitized", + "User-Agent": [ + "azsdk-net-Management.Resource/0.1.6-dev.20200518.1", + "(.NET Core 4.6.28619.01; Microsoft Windows 10.0.18363 )" + ], + "x-ms-client-request-id": "5fd2e3e2e752654a3404370758623744", + "x-ms-return-client-request-id": "true" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Mon, 18 May 2020 08:26:52 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b70666d2-c643-4f90-89c0-2675e8e6df9a", + "x-ms-ratelimit-remaining-subscription-reads": "11852", + "x-ms-request-id": "b70666d2-c643-4f90-89c0-2675e8e6df9a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20200518T082652Z:b70666d2-c643-4f90-89c0-2675e8e6df9a" + }, + "ResponseBody": [] + } + ], + "Variables": { + "CLIENT_ID": "c445f1d5-499c-45ee-a5ff-024d36ade650", + "ObjectId": "1aa92e15-ee4e-4dda-9e61-5b4dc35d280b", + "RandomSeed": "231899435", + "SUBSCRIPTION_ID": "0b1f6471-1bf0-4dda-aec3-cb9272f09590", + "TENANT_ID": "54826b22-38d6-4fb2-bad9-b7b93a3e9c5a" + } +} \ No newline at end of file diff --git a/sdk/keyvault/Azure.Management.KeyVault/tests/VaultOperationsTests.cs b/sdk/keyvault/Azure.Management.KeyVault/tests/VaultOperationsTests.cs new file mode 100644 index 0000000000000..ec32531e30988 --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/tests/VaultOperationsTests.cs @@ -0,0 +1,470 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Threading.Tasks; + +using Azure.Core.TestFramework; +using Azure.Management.KeyVault.Models; + +using NUnit.Framework; + +namespace Azure.Management.KeyVault.Tests +{ + public class VaultOperationsTests : VaultOperationsTestsBase + { + public VaultOperationsTests(bool isAsync) + : base(isAsync) + { + } + + [SetUp] + public void ClearChallengeCacheforRecord() + { + if (Mode == RecordedTestMode.Record || Mode == RecordedTestMode.Playback) + { + Initialize().ConfigureAwait(false).GetAwaiter().GetResult(); + } + } + + [TearDown] + public async Task CleanupResourceGroup() + { + var resGroup = await ResourceGroupsClient.StartDeleteAsync(ResGroupName); + await WaitForCompletionAsync(resGroup); + } + + [Test] + public async Task KeyVaultManagementVaultCreateUpdateDelete() + { + VaultProperties.EnableSoftDelete = null; + + var parameters = new VaultCreateOrUpdateParameters(Location, VaultProperties); + parameters.Tags = Tags; + + var rawVault = await VaultsClient.StartCreateOrUpdateAsync( + ResGroupName, + VaultName, + parameters); + + var createdVault = (await WaitForCompletionAsync(rawVault)).Value; + + ValidateVault(createdVault, + VaultName, + ResGroupName, + SubscriptionId, + TenantIdGuid, + Location, + "A", + SkuName.Standard, + true, + true, + true, + true, // enableSoftDelete defaults to true + new[] { AccessPolicy }, + VaultProperties.NetworkAcls, + Tags); + + //Update + AccessPolicy.Permissions.Secrets = new SecretPermissions[] { SecretPermissions.Get, SecretPermissions.Set }; + AccessPolicy.Permissions.Keys = null; + AccessPolicy.Permissions.Storage = new StoragePermissions[] { StoragePermissions.Get, StoragePermissions.Regeneratekey }; + createdVault.Properties.AccessPolicies = new[] { AccessPolicy }; + createdVault.Properties.Sku.Name = SkuName.Premium; + + parameters = new VaultCreateOrUpdateParameters(Location, createdVault.Properties); + parameters.Tags = Tags; + var rawUpdateVault = await VaultsClient.StartCreateOrUpdateAsync( + resourceGroupName: ResGroupName, + vaultName: VaultName, + parameters: parameters + ); + + var updateVault = (await WaitForCompletionAsync(rawUpdateVault)).Value; + + ValidateVault(updateVault, + VaultName, + ResGroupName, + SubscriptionId, + TenantIdGuid, + Location, + "A", + SkuName.Premium, + true, + true, + true, + true, + new[] { AccessPolicy }, + VaultProperties.NetworkAcls, + Tags); + + var rawRetrievedVault = await VaultsClient.GetAsync( + resourceGroupName: ResGroupName, + vaultName: VaultName); + + var retrievedVault = rawRetrievedVault.Value; + ValidateVault(retrievedVault, + VaultName, + ResGroupName, + SubscriptionId, + TenantIdGuid, + Location, + "A", + SkuName.Premium, + true, + true, + true, + true, + new[] { AccessPolicy }, + VaultProperties.NetworkAcls, + Tags); + + // Delete + await VaultsClient.DeleteAsync( + resourceGroupName: ResGroupName, + vaultName: VaultName); + + Assert.ThrowsAsync(async () => + { + await VaultsClient.GetAsync( + resourceGroupName: ResGroupName, + vaultName: VaultName); + }); + } + + [Test] + public async Task CreateKeyVaultDisableSoftDelete() + { + this.AccessPolicy.ApplicationId = Guid.Parse(this.ApplicationId); + this.VaultProperties.EnableSoftDelete = false; + + var parameters = new VaultCreateOrUpdateParameters(Location, VaultProperties); + parameters.Tags = this.Tags; + var vault = await VaultsClient.StartCreateOrUpdateAsync( + resourceGroupName: this.ResGroupName, + vaultName: this.VaultName, + parameters: parameters + ); + var vaultValue = await WaitForCompletionAsync(vault); + + Assert.False(vaultValue.Value.Properties.EnableSoftDelete); + + await VaultsClient.DeleteAsync(ResGroupName, VaultName); + } + + [Test] + public async Task KeyVaultManagementVaultTestCompoundIdentityAccessControlPolicy() + { + AccessPolicy.ApplicationId = Guid.Parse(ApplicationId); + VaultProperties.EnableSoftDelete = null; + + var parameters = new VaultCreateOrUpdateParameters(Location, VaultProperties); + parameters.Tags = Tags; + + var createVault = await VaultsClient.StartCreateOrUpdateAsync( + resourceGroupName: ResGroupName, + vaultName: VaultName, + parameters: parameters + ); + var vaultResponse = await WaitForCompletionAsync(createVault); + + ValidateVault(vaultResponse.Value, + VaultName, + ResGroupName, + SubscriptionId, + TenantIdGuid, + Location, + "A", + SkuName.Standard, + true, + true, + true, + true, + new[] { AccessPolicy }, + Tags); + + // Get + var retrievedVault = await VaultsClient.GetAsync( + resourceGroupName: ResGroupName, + vaultName: VaultName); + + ValidateVault(retrievedVault.Value, + VaultName, + ResGroupName, + SubscriptionId, + TenantIdGuid, + Location, + "A", + SkuName.Standard, + true, + true, + true, + true, + new[] { AccessPolicy }, + Tags); + + + // Delete + await VaultsClient.DeleteAsync( + resourceGroupName: ResGroupName, + vaultName: VaultName); + + Assert.ThrowsAsync(async () => + { + await VaultsClient.GetAsync( + resourceGroupName: ResGroupName, + vaultName: VaultName); + }); + } + + [Test] + public async Task KeyVaultManagementListVaults() + { + int n = 3; + int top = 2; + VaultProperties.EnableSoftDelete = null; + + List resourceIds = new List(); + List vaultNameList = new List(); + for (int i = 0; i < n; i++) + { + string vaultName = Recording.GenerateAssetName("sdktestvault"); + var parameters = new VaultCreateOrUpdateParameters(Location, VaultProperties); + parameters.Tags = Tags; + var createdVault = await VaultsClient.StartCreateOrUpdateAsync( + resourceGroupName: ResGroupName, + vaultName: vaultName, + parameters: parameters + ); + + var vaultResponse = await WaitForCompletionAsync(createdVault); + var vaultValue = vaultResponse.Value; + + Assert.NotNull(vaultValue); + Assert.NotNull(vaultValue.Id); + resourceIds.Add(vaultValue.Id); + vaultNameList.Add(vaultValue.Name); + } + + var vaults = VaultsClient.ListByResourceGroupAsync(ResGroupName, top); + + await foreach (var v in vaults) + { + Assert.True(resourceIds.Remove(v.Id)); + } + + Assert.True(resourceIds.Count == 0); + + var allVaults = VaultsClient.ListAsync(top); + Assert.NotNull(vaults); + + // Delete + foreach (var v in vaultNameList) + { + await VaultsClient.DeleteAsync(resourceGroupName: ResGroupName, vaultName: v); + } + } + + [Test] + public async Task KeyVaultManagementRecoverDeletedVault() + { + var parameters = new VaultCreateOrUpdateParameters(Location, VaultProperties); + parameters.Tags = Tags; + var createdVault = await VaultsClient.StartCreateOrUpdateAsync( + resourceGroupName: ResGroupName, + vaultName: VaultName, + parameters: parameters + ); + + var vaultValue = await WaitForCompletionAsync(createdVault); + + // Delete + await VaultsClient.DeleteAsync( + resourceGroupName: ResGroupName, + vaultName: VaultName); + + // Get deleted vault + Assert.ThrowsAsync(async () => + { + await VaultsClient.GetAsync( + resourceGroupName: ResGroupName, + vaultName: VaultName); + }); + + parameters = new VaultCreateOrUpdateParameters(Location, VaultProperties); + parameters.Tags = Tags; + // Recover in default mode + var recoveredRawVault = await VaultsClient.StartCreateOrUpdateAsync( + resourceGroupName: ResGroupName, + vaultName: VaultName, + parameters: parameters + ); + var recoveredVault = await WaitForCompletionAsync(recoveredRawVault); + Assert.True(recoveredVault.Value.IsEqual(vaultValue.Value)); + + // Get recovered vault + await VaultsClient.GetAsync( + resourceGroupName: ResGroupName, + vaultName: VaultName); + + // Delete + await VaultsClient.DeleteAsync( + resourceGroupName: ResGroupName, + vaultName: VaultName); + + VaultProperties.CreateMode = CreateMode.Recover; + parameters = new VaultCreateOrUpdateParameters(Location, VaultProperties); + + // Recover in recover mode + var recoveredRawVault2 = await VaultsClient.StartCreateOrUpdateAsync( + resourceGroupName: ResGroupName, + vaultName: VaultName, + parameters: parameters + ); + var recoveredVault2 = await WaitForCompletionAsync(recoveredRawVault); + + Assert.True(recoveredVault2.Value.IsEqual(vaultValue.Value)); + + // Get recovered vault + await VaultsClient.GetAsync( + resourceGroupName: ResGroupName, + vaultName: VaultName); + + // Delete + await VaultsClient.DeleteAsync( + resourceGroupName: ResGroupName, + vaultName: VaultName); + } + + [Test] + public async Task KeyVaultManagementListDeletedVaults() + { + int n = 3; + List resourceIds = new List(); + List vaultNameList = new List(); + var parameters = new VaultCreateOrUpdateParameters(Location, VaultProperties) + { + Tags = Tags + }; + for (int i = 0; i < n; i++) + { + string vaultName = Recording.GenerateAssetName("sdktestvault"); + var createdRawVault = await VaultsClient.StartCreateOrUpdateAsync( + resourceGroupName: ResGroupName, + vaultName: vaultName, + parameters: parameters + ); + + var createdVault = (await WaitForCompletionAsync(createdRawVault)).Value; + + Assert.NotNull(createdVault); + Assert.NotNull(createdVault.Id); + resourceIds.Add(createdVault.Id); + vaultNameList.Add(createdVault.Name); + + await VaultsClient.DeleteAsync(resourceGroupName: ResGroupName, vaultName: vaultName); + + var deletedVault = await VaultsClient.GetDeletedAsync(vaultName, Location); + deletedVault.Value.IsEqual(createdVault); + } + + var deletedVaults = VaultsClient.ListDeletedAsync(); + Assert.NotNull(deletedVaults); + + await foreach (var v in deletedVaults) + { + var exists = resourceIds.Remove(v.Properties.VaultId); + + if (exists) + { + // Purge vault + var purgeOperation = await VaultsClient.StartPurgeDeletedAsync(v.Name, Location); + await WaitForCompletionAsync(purgeOperation); + Assert.ThrowsAsync(async () => await VaultsClient.GetDeletedAsync(v.Name, Location)); + } + if (resourceIds.Count == 0) + break; + } + + Assert.True(resourceIds.Count == 0); + } + + private void ValidateVault( + Vault vault, + string expectedVaultName, + string expectedResourceGroupName, + string expectedSubId, + Guid expectedTenantId, + string expectedLocation, + string expectedSkuFamily, + SkuName expectedSku, + bool expectedEnabledForDeployment, + bool expectedEnabledForTemplateDeployment, + bool expectedEnabledForDiskEncryption, + bool? expectedEnableSoftDelete, + AccessPolicyEntry[] expectedPolicies, + Dictionary expectedTags) + { + Assert.NotNull(vault); + Assert.NotNull(vault.Properties); + + string resourceIdFormat = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.KeyVault/vaults/{2}"; + string expectedResourceId = string.Format(resourceIdFormat, expectedSubId, expectedResourceGroupName, expectedVaultName); + + Assert.AreEqual(expectedResourceId, vault.Id); + Assert.AreEqual(expectedLocation, vault.Location); + Assert.AreEqual(expectedTenantId, vault.Properties.TenantId); + Assert.AreEqual(expectedSku, vault.Properties.Sku.Name); + Assert.AreEqual(expectedVaultName, vault.Name); + Assert.AreEqual(expectedEnabledForDeployment, vault.Properties.EnabledForDeployment); + Assert.AreEqual(expectedEnabledForTemplateDeployment, vault.Properties.EnabledForTemplateDeployment); + Assert.AreEqual(expectedEnabledForDiskEncryption, vault.Properties.EnabledForDiskEncryption); + Assert.AreEqual(expectedEnableSoftDelete, vault.Properties.EnableSoftDelete); + Assert.True(expectedTags.DictionaryEqual(vault.Tags)); + Assert.True(expectedPolicies.IsEqual(vault.Properties.AccessPolicies)); + } + + private void ValidateVault( + Vault vault, + string expectedVaultName, + string expectedResourceGroupName, + string expectedSubId, + Guid expectedTenantId, + string expectedLocation, + string expectedSkuFamily, + SkuName expectedSku, + bool expectedEnabledForDeployment, + bool expectedEnabledForTemplateDeployment, + bool expectedEnabledForDiskEncryption, + bool? expectedEnableSoftDelete, + AccessPolicyEntry[] expectedPolicies, + NetworkRuleSet networkRuleSet, + Dictionary expectedTags) + { + ValidateVault( + vault, + expectedVaultName, + expectedResourceGroupName, + expectedSubId, + expectedTenantId, + expectedLocation, + expectedSkuFamily, + expectedSku, + expectedEnabledForDeployment, + expectedEnabledForTemplateDeployment, + expectedEnabledForDiskEncryption, + expectedEnableSoftDelete, + expectedPolicies, + expectedTags); + + Assert.NotNull(vault.Properties.NetworkAcls); + Assert.AreEqual(networkRuleSet.DefaultAction, vault.Properties.NetworkAcls.DefaultAction); + Assert.AreEqual(networkRuleSet.Bypass, vault.Properties.NetworkAcls.Bypass); + Assert.True(vault.Properties.NetworkAcls.IpRules != null && vault.Properties.NetworkAcls.IpRules.Count == 2); + Assert.AreEqual(networkRuleSet.IpRules[0].Value, vault.Properties.NetworkAcls.IpRules[0].Value); + Assert.AreEqual(networkRuleSet.IpRules[1].Value, vault.Properties.NetworkAcls.IpRules[1].Value); + } + + } +} diff --git a/sdk/keyvault/Azure.Management.KeyVault/tests/VaultOperationsTestsBase.cs b/sdk/keyvault/Azure.Management.KeyVault/tests/VaultOperationsTestsBase.cs new file mode 100644 index 0000000000000..790cf250c458c --- /dev/null +++ b/sdk/keyvault/Azure.Management.KeyVault/tests/VaultOperationsTestsBase.cs @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +using Azure.Core.TestFramework; +using Azure.Graph.Rbac; +using Azure.Management.KeyVault.Models; +using Azure.Management.Resource; + +using NUnit.Framework; + +namespace Azure.Management.KeyVault.Tests +{ + [ClientTestFixture] + [NonParallelizable] + public abstract class VaultOperationsTestsBase : RecordedTestBase + { + private const string ObjectIdKey = "ObjectId"; + public static TimeSpan ZeroPollingInterval { get; } = TimeSpan.FromSeconds(0); + + public string TenantId { get; set; } + public string ObjectId { get; set; } + public string ApplicationId { get; set; } + public string Location { get; set; } + public string SubscriptionId { get; set; } + + public AccessPolicyEntry AccessPolicy { get; internal set; } + public string ResGroupName { get; internal set; } + public Dictionary Tags { get; internal set; } + public Guid TenantIdGuid { get; internal set; } + public string VaultName { get; internal set; } + public VaultProperties VaultProperties { get; internal set; } + + + public VaultsClient VaultsClient { get; set; } + public ResourcesClient ResourcesClient { get; set; } + public ResourceGroupsClient ResourceGroupsClient { get; set; } + public ProvidersClient ResourceProvidersClient { get; set; } + + protected VaultOperationsTestsBase(bool isAsync) + : base(isAsync) + { + } + + protected async Task Initialize() + { + if (Mode == RecordedTestMode.Playback && Recording.IsTrack1SessionRecord()) + { + this.TenantId = TestEnvironment.TenantIdTrack1; + this.SubscriptionId = TestEnvironment.SubscriptionIdTrack1; + this.ApplicationId = TestEnvironment.ApplicationIdTrack1; + } + else + { + this.TenantId = TestEnvironment.TenantId; + this.SubscriptionId = TestEnvironment.SubscriptionId; + this.ApplicationId = TestEnvironment.ClientId; + } + + var resourceManagementClient = GetResourceManagementClient(); + ResourcesClient = resourceManagementClient.GetResourcesClient(); + ResourceGroupsClient = resourceManagementClient.GetResourceGroupsClient(); + ResourceProvidersClient = resourceManagementClient.GetProvidersClient(); + + var keyVaultManagementClient = GetKeyVaultManagementClient(); + VaultsClient = keyVaultManagementClient.GetVaultsClient(); + + if (Mode == RecordedTestMode.Playback) + { + this.ObjectId = Recording.GetVariable(ObjectIdKey, string.Empty); + } + else if (Mode == RecordedTestMode.Record) + { + var spClient = new RbacManagementClient(this.TenantId, TestEnvironment.Credential).GetServicePrincipalsClient(); + var servicePrincipalList = spClient.ListAsync($"appId eq '{this.ApplicationId}'"); + await foreach (var servicePrincipal in servicePrincipalList) + { + this.ObjectId = servicePrincipal.ObjectId; + Recording.GetVariable(ObjectIdKey, this.ObjectId); + break; + } + } + var provider = (await ResourceProvidersClient.GetAsync("Microsoft.KeyVault")).Value; + this.Location = provider.ResourceTypes.Where( + (resType) => + { + if (resType.ResourceType == "vaults") + return true; + else + return false; + } + ).First().Locations.FirstOrDefault(); + + ResGroupName = Recording.GenerateAssetName("sdktestrg"); + await ResourceGroupsClient.CreateOrUpdateAsync(ResGroupName, new Resource.Models.ResourceGroup(Location)); + VaultName = Recording.GenerateAssetName("sdktestvault"); + + TenantIdGuid = new Guid(TenantId); + Tags = new Dictionary { { "tag1", "value1" }, { "tag2", "value2" }, { "tag3", "value3" } }; + + var permissions = new Permissions + { + Keys = new KeyPermissions[] { new KeyPermissions("all") }, + Secrets = new SecretPermissions[] { new SecretPermissions("all") }, + Certificates = new CertificatePermissions[] { new CertificatePermissions("all") }, + Storage = new StoragePermissions[] { new StoragePermissions("all") }, + }; + AccessPolicy = new AccessPolicyEntry(TenantIdGuid, ObjectId, permissions); + + IList ipRules = new List(); + ipRules.Add(new IPRule("1.2.3.4/32")); + ipRules.Add(new IPRule("1.0.0.0/25")); + + VaultProperties = new VaultProperties(TenantIdGuid, new Sku(SkuName.Standard)); + + + VaultProperties.EnabledForDeployment = true; + VaultProperties.EnabledForDiskEncryption = true; + VaultProperties.EnabledForTemplateDeployment = true; + VaultProperties.EnableSoftDelete = true; + VaultProperties.VaultUri = ""; + VaultProperties.NetworkAcls = new NetworkRuleSet() { Bypass = "AzureServices", DefaultAction = "Allow", IpRules = ipRules, VirtualNetworkRules = null }; + VaultProperties.AccessPolicies = new[] { AccessPolicy }; + } + + internal KeyVaultManagementClient GetKeyVaultManagementClient() + { + return InstrumentClient(new KeyVaultManagementClient(this.SubscriptionId, + TestEnvironment.Credential, + Recording.InstrumentClientOptions(new KeyVaultManagementClientOptions()))); + } + + internal ResourceManagementClient GetResourceManagementClient() + { + return InstrumentClient(new ResourceManagementClient(this.SubscriptionId, + TestEnvironment.Credential, + Recording.InstrumentClientOptions(new ResourceManagementClientOptions()))); + } + + protected ValueTask> WaitForCompletionAsync(Operation operation) + { + if (Mode == RecordedTestMode.Playback) + { + return operation.WaitForCompletionAsync(ZeroPollingInterval, default); + } + else + { + return operation.WaitForCompletionAsync(); + } + } + } +} diff --git a/sdk/keyvault/ci.yml b/sdk/keyvault/ci.yml index 123e6e3c660a6..fd5c0f4c3b4ba 100644 --- a/sdk/keyvault/ci.yml +++ b/sdk/keyvault/ci.yml @@ -44,3 +44,5 @@ stages: safeName: AzureSecurityKeyVaultKeys - name: Azure.Security.KeyVault.Secrets safeName: AzureSecurityKeyVaultSecrets + - name: Azure.Management.KeyVault + safeName: AzureManagementKeyVault diff --git a/sdk/testcommon/Azure.Graph.Rbac/Azure.Graph.Rbac.sln b/sdk/testcommon/Azure.Graph.Rbac/Azure.Graph.Rbac.sln new file mode 100644 index 0000000000000..1597bb3ea2330 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/Azure.Graph.Rbac.sln @@ -0,0 +1,37 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30011.22 +MinimumVisualStudioVersion = 15.0.26124.0 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Graph.Rbac", "src\Azure.Graph.Rbac.csproj", "{F790B8A8-E5B5-482B-B819-CF6006F825BE}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {F790B8A8-E5B5-482B-B819-CF6006F825BE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F790B8A8-E5B5-482B-B819-CF6006F825BE}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F790B8A8-E5B5-482B-B819-CF6006F825BE}.Debug|x64.ActiveCfg = Debug|Any CPU + {F790B8A8-E5B5-482B-B819-CF6006F825BE}.Debug|x64.Build.0 = Debug|Any CPU + {F790B8A8-E5B5-482B-B819-CF6006F825BE}.Debug|x86.ActiveCfg = Debug|Any CPU + {F790B8A8-E5B5-482B-B819-CF6006F825BE}.Debug|x86.Build.0 = Debug|Any CPU + {F790B8A8-E5B5-482B-B819-CF6006F825BE}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F790B8A8-E5B5-482B-B819-CF6006F825BE}.Release|Any CPU.Build.0 = Release|Any CPU + {F790B8A8-E5B5-482B-B819-CF6006F825BE}.Release|x64.ActiveCfg = Release|Any CPU + {F790B8A8-E5B5-482B-B819-CF6006F825BE}.Release|x64.Build.0 = Release|Any CPU + {F790B8A8-E5B5-482B-B819-CF6006F825BE}.Release|x86.ActiveCfg = Release|Any CPU + {F790B8A8-E5B5-482B-B819-CF6006F825BE}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {D2259B7A-AF85-44C7-A732-D42EBE668055} + EndGlobalSection +EndGlobal diff --git a/sdk/testcommon/Azure.Graph.Rbac/CHANGELOG.md b/sdk/testcommon/Azure.Graph.Rbac/CHANGELOG.md new file mode 100644 index 0000000000000..cb00c3ea5369d --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/CHANGELOG.md @@ -0,0 +1,6 @@ +# Release History + +## 0.0.1-preview.1 + +### New Features +- For API version with tag 1.6 diff --git a/sdk/testcommon/Azure.Graph.Rbac/Directory.Build.props b/sdk/testcommon/Azure.Graph.Rbac/Directory.Build.props new file mode 100644 index 0000000000000..1a9611bd49242 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/Directory.Build.props @@ -0,0 +1,6 @@ + + + + diff --git a/sdk/testcommon/Azure.Graph.Rbac/README.md b/sdk/testcommon/Azure.Graph.Rbac/README.md new file mode 100644 index 0000000000000..d41f5ab191897 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/README.md @@ -0,0 +1,64 @@ +# Azure Graph RBAC client library for .NET + +**Introduction**: The introduction appears directly under the title (H1) of your README. + +* **DO NOT** use an "Introduction" or "Overview" heading (H2) for this section. +* First sentence: **Describe the service** briefly. You can usually use the first line of the service's docs landing page for this (Example: [Cosmos DB docs landing page](https://docs.microsoft.com/azure/cosmos-db/)). +* Next, add a **bulleted list** of the **most common tasks** supported by the package or library, prefaced with "Use the client library for [Product Name] to:". Then, provide code snippets for these tasks in the [Examples](#examples) section later in the document. Keep the task list short but include those tasks most developers need to perform with your package. +* Include this single line of links targeting your product's content at the bottom of the introduction, making any adjustments as necessary (for example, NuGet instead of PyPi): + + [Source code](https://github.com/Azure/azure-sdk-for-python/tree/master/azure-batch) | [Package (PyPi)](https://pypi.org/project/azure-batch/) | [API reference documentation](https://docs.microsoft.com/python/api/overview/azure/batch?view=azure-python) | [Product documentation](https://docs.microsoft.com/azure/batch/) + +> TIP: Your README should be as **brief** as possible but **no more brief** than necessary to get a developer new to Azure, the service, or the package up and running quickly. Keep it brief, but include everything a developer needs to make their first API call successfully. + +## Getting started + +This section should include everything a developer needs to do to install and create their first client connection *very quickly*. + +### Install the package + +First, provide instruction for obtaining and installing the package or library. This section might include only a single line of code, like `pip install package-name`, but should enable a developer to successfully install the package from NuGet, pip, npm, Maven, or even cloning a GitHub repository. + +Include a **Prerequisites** line after the install command that details any requirements that must be satisfied before a developer can [authenticate](#authenticate-the-client) and test all of the snippets in the [Examples](#examples) section. For example, for Cosmos DB: + +### Prerequisites + +You must have an [Azure subscription](https://azure.microsoft.com/free/), [Cosmos DB account](https://docs.microsoft.com/azure/cosmos-db/account-overview) (SQL API), and [Python 3.6+](https://www.python.org/downloads/) to use this package. + +### Authenticate the client + +If your library requires authentication for use, such as for Azure services, include instructions and example code needed for initializing and authenticating. + +For example, include details on obtaining an account key and endpoint URI, setting environment variables for each, and initializing the client object. + +## Key concepts + +The *Key concepts* section should describe the functionality of the main classes. Point out the most important and useful classes in the package (with links to their reference pages) and explain how those classes work together. Feel free to use bulleted lists, tables, code blocks, or even diagrams for clarity. + +## Examples + +Include code snippets and short descriptions for each task you listed in the [Introduction](#introduction) (the bulleted list). Briefly explain each operation, but include enough clarity to explain complex or otherwise tricky operations. + +## Troubleshooting + +Describe common errors and exceptions, how to "unpack" them if necessary, and include guidance for graceful handling and recovery. + +Provide information to help developers avoid throttling or other service-enforced errors they might encounter. For example, provide guidance and examples for using retry or connection policies in the API. + +If the package or a related package supports it, include tips for logging or enabling instrumentation to help them debug their code. + +## Next steps + +* Provide a link to additional code examples, ideally to those sitting alongside the README in the package's `/samples` directory. +* If appropriate, point users to other packages that might be useful. +* If you think there's a good chance that developers might stumble across your package in error (because they're searching for specific functionality and mistakenly think the package provides that functionality), point them to the packages they might be looking for. + +## Contributing + +This is a template, but your SDK readme should include details on how to contribute code to the repo/package. + + +[style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization +[style-guide-cloud]: https://worldready.cloudapp.net/Styleguide/Read?id=2696&topicid=25357 + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Ftemplate%2FAzure.Template%2FREADME.png) diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Azure.Graph.Rbac.csproj b/sdk/testcommon/Azure.Graph.Rbac/src/Azure.Graph.Rbac.csproj new file mode 100644 index 0000000000000..7683c9177e726 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Azure.Graph.Rbac.csproj @@ -0,0 +1,13 @@ + + + 1.0.0-preview.1 + Azure.Graph.Rbac + Azure management client SDK for Azure resource provider Microsoft.ResourceGraph + azure;management;resourcegraph + + true + false + $(NoWarn);AZC0001;AZC0008;AZC0012;CS1591 + + diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/ApplicationsClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/ApplicationsClient.cs new file mode 100644 index 0000000000000..3baaabaaa16fd --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/ApplicationsClient.cs @@ -0,0 +1,735 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac.Models; + +namespace Azure.Graph.Rbac +{ + /// The Applications service client. + public partial class ApplicationsClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal ApplicationsRestClient RestClient { get; } + /// Initializes a new instance of ApplicationsClient for mocking. + protected ApplicationsClient() + { + } + /// Initializes a new instance of ApplicationsClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The tenant ID. + /// server parameter. + /// Api Version. + internal ApplicationsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") + { + RestClient = new ApplicationsRestClient(clientDiagnostics, pipeline, tenantID, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Create a new application. + /// The parameters for creating an application. + /// The cancellation token to use. + public virtual async Task> CreateAsync(ApplicationCreateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.Create"); + scope.Start(); + try + { + return await RestClient.CreateAsync(parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Create a new application. + /// The parameters for creating an application. + /// The cancellation token to use. + public virtual Response Create(ApplicationCreateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.Create"); + scope.Start(); + try + { + return RestClient.Create(parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Delete an application. + /// Application object ID. + /// The cancellation token to use. + public virtual async Task DeleteAsync(string applicationObjectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.Delete"); + scope.Start(); + try + { + return await RestClient.DeleteAsync(applicationObjectId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Delete an application. + /// Application object ID. + /// The cancellation token to use. + public virtual Response Delete(string applicationObjectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.Delete"); + scope.Start(); + try + { + return RestClient.Delete(applicationObjectId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Get an application by object ID. + /// Application object ID. + /// The cancellation token to use. + public virtual async Task> GetAsync(string applicationObjectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.Get"); + scope.Start(); + try + { + return await RestClient.GetAsync(applicationObjectId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Get an application by object ID. + /// Application object ID. + /// The cancellation token to use. + public virtual Response Get(string applicationObjectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.Get"); + scope.Start(); + try + { + return RestClient.Get(applicationObjectId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Update an existing application. + /// Application object ID. + /// Parameters to update an existing application. + /// The cancellation token to use. + public virtual async Task PatchAsync(string applicationObjectId, ApplicationUpdateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.Patch"); + scope.Start(); + try + { + return await RestClient.PatchAsync(applicationObjectId, parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Update an existing application. + /// Application object ID. + /// Parameters to update an existing application. + /// The cancellation token to use. + public virtual Response Patch(string applicationObjectId, ApplicationUpdateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.Patch"); + scope.Start(); + try + { + return RestClient.Patch(applicationObjectId, parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Add an owner to an application. + /// The object ID of the application to which to add the owner. + /// The URL of the owner object, such as https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd. + /// The cancellation token to use. + public virtual async Task AddOwnerAsync(string applicationObjectId, AddOwnerParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.AddOwner"); + scope.Start(); + try + { + return await RestClient.AddOwnerAsync(applicationObjectId, parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Add an owner to an application. + /// The object ID of the application to which to add the owner. + /// The URL of the owner object, such as https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd. + /// The cancellation token to use. + public virtual Response AddOwner(string applicationObjectId, AddOwnerParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.AddOwner"); + scope.Start(); + try + { + return RestClient.AddOwner(applicationObjectId, parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Remove a member from owners. + /// The object ID of the application from which to remove the owner. + /// Owner object id. + /// The cancellation token to use. + public virtual async Task RemoveOwnerAsync(string applicationObjectId, string ownerObjectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.RemoveOwner"); + scope.Start(); + try + { + return await RestClient.RemoveOwnerAsync(applicationObjectId, ownerObjectId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Remove a member from owners. + /// The object ID of the application from which to remove the owner. + /// Owner object id. + /// The cancellation token to use. + public virtual Response RemoveOwner(string applicationObjectId, string ownerObjectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.RemoveOwner"); + scope.Start(); + try + { + return RestClient.RemoveOwner(applicationObjectId, ownerObjectId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Update the keyCredentials associated with an application. + /// Application object ID. + /// Parameters to update the keyCredentials of an existing application. + /// The cancellation token to use. + public virtual async Task UpdateKeyCredentialsAsync(string applicationObjectId, KeyCredentialsUpdateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.UpdateKeyCredentials"); + scope.Start(); + try + { + return await RestClient.UpdateKeyCredentialsAsync(applicationObjectId, parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Update the keyCredentials associated with an application. + /// Application object ID. + /// Parameters to update the keyCredentials of an existing application. + /// The cancellation token to use. + public virtual Response UpdateKeyCredentials(string applicationObjectId, KeyCredentialsUpdateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.UpdateKeyCredentials"); + scope.Start(); + try + { + return RestClient.UpdateKeyCredentials(applicationObjectId, parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Update passwordCredentials associated with an application. + /// Application object ID. + /// Parameters to update passwordCredentials of an existing application. + /// The cancellation token to use. + public virtual async Task UpdatePasswordCredentialsAsync(string applicationObjectId, PasswordCredentialsUpdateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.UpdatePasswordCredentials"); + scope.Start(); + try + { + return await RestClient.UpdatePasswordCredentialsAsync(applicationObjectId, parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Update passwordCredentials associated with an application. + /// Application object ID. + /// Parameters to update passwordCredentials of an existing application. + /// The cancellation token to use. + public virtual Response UpdatePasswordCredentials(string applicationObjectId, PasswordCredentialsUpdateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.UpdatePasswordCredentials"); + scope.Start(); + try + { + return RestClient.UpdatePasswordCredentials(applicationObjectId, parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets an object id for a given application id from the current tenant. + /// The application ID. + /// The cancellation token to use. + public virtual async Task> GetServicePrincipalsIdByAppIdAsync(string applicationID, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.GetServicePrincipalsIdByAppId"); + scope.Start(); + try + { + return await RestClient.GetServicePrincipalsIdByAppIdAsync(applicationID, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets an object id for a given application id from the current tenant. + /// The application ID. + /// The cancellation token to use. + public virtual Response GetServicePrincipalsIdByAppId(string applicationID, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.GetServicePrincipalsIdByAppId"); + scope.Start(); + try + { + return RestClient.GetServicePrincipalsIdByAppId(applicationID, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Lists applications by filter parameters. + /// The filters to apply to the operation. + /// The cancellation token to use. + public virtual AsyncPageable ListAsync(string filter = null, CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListAsync(filter, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListNextAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Lists applications by filter parameters. + /// The filters to apply to the operation. + /// The cancellation token to use. + public virtual Pageable List(string filter = null, CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.List"); + scope.Start(); + try + { + var response = RestClient.List(filter, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.List"); + scope.Start(); + try + { + var response = RestClient.ListNext(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// The owners are a set of non-admin users who are allowed to modify this object. + /// The object ID of the application for which to get owners. + /// The cancellation token to use. + public virtual AsyncPageable ListOwnersAsync(string applicationObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.ListOwners"); + scope.Start(); + try + { + var response = await RestClient.ListOwnersAsync(applicationObjectId, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.ListOwners"); + scope.Start(); + try + { + var response = await RestClient.ListOwnersNextPageAsync(nextLink, applicationObjectId, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// The owners are a set of non-admin users who are allowed to modify this object. + /// The object ID of the application for which to get owners. + /// The cancellation token to use. + public virtual Pageable ListOwners(string applicationObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.ListOwners"); + scope.Start(); + try + { + var response = RestClient.ListOwners(applicationObjectId, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.ListOwners"); + scope.Start(); + try + { + var response = RestClient.ListOwnersNextPage(nextLink, applicationObjectId, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Get the keyCredentials associated with an application. + /// Application object ID. + /// The cancellation token to use. + public virtual AsyncPageable ListKeyCredentialsAsync(string applicationObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.ListKeyCredentials"); + scope.Start(); + try + { + var response = await RestClient.ListKeyCredentialsAsync(applicationObjectId, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, null); + } + + /// Get the keyCredentials associated with an application. + /// Application object ID. + /// The cancellation token to use. + public virtual Pageable ListKeyCredentials(string applicationObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.ListKeyCredentials"); + scope.Start(); + try + { + var response = RestClient.ListKeyCredentials(applicationObjectId, cancellationToken); + return Page.FromValues(response.Value.Value, null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, null); + } + + /// Get the passwordCredentials associated with an application. + /// Application object ID. + /// The cancellation token to use. + public virtual AsyncPageable ListPasswordCredentialsAsync(string applicationObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.ListPasswordCredentials"); + scope.Start(); + try + { + var response = await RestClient.ListPasswordCredentialsAsync(applicationObjectId, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, null); + } + + /// Get the passwordCredentials associated with an application. + /// Application object ID. + /// The cancellation token to use. + public virtual Pageable ListPasswordCredentials(string applicationObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.ListPasswordCredentials"); + scope.Start(); + try + { + var response = RestClient.ListPasswordCredentials(applicationObjectId, cancellationToken); + return Page.FromValues(response.Value.Value, null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, null); + } + + /// Gets a list of applications from the current tenant. + /// Next link for the list operation. + /// The cancellation token to use. + public virtual AsyncPageable ListNextAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.ListNext"); + scope.Start(); + try + { + var response = await RestClient.ListNextAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.ListNext"); + scope.Start(); + try + { + var response = await RestClient.ListNextNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets a list of applications from the current tenant. + /// Next link for the list operation. + /// The cancellation token to use. + public virtual Pageable ListNext(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.ListNext"); + scope.Start(); + try + { + var response = RestClient.ListNext(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ApplicationsClient.ListNext"); + scope.Start(); + try + { + var response = RestClient.ListNextNextPage(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/ApplicationsRestClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/ApplicationsRestClient.cs new file mode 100644 index 0000000000000..e67547b949954 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/ApplicationsRestClient.cs @@ -0,0 +1,1294 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac.Models; + +namespace Azure.Graph.Rbac +{ + internal partial class ApplicationsRestClient + { + private string tenantID; + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of ApplicationsRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The tenant ID. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public ApplicationsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") + { + if (tenantID == null) + { + throw new ArgumentNullException(nameof(tenantID)); + } + endpoint ??= new Uri("https://graph.windows.net"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.tenantID = tenantID; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateCreateRequest(ApplicationCreateParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/applications", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Create a new application. + /// The parameters for creating an application. + /// The cancellation token to use. + public async ValueTask> CreateAsync(ApplicationCreateParameters parameters, CancellationToken cancellationToken = default) + { + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateCreateRequest(parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 201: + { + Application value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = Application.DeserializeApplication(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Create a new application. + /// The parameters for creating an application. + /// The cancellation token to use. + public Response Create(ApplicationCreateParameters parameters, CancellationToken cancellationToken = default) + { + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateCreateRequest(parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 201: + { + Application value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = Application.DeserializeApplication(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListRequest(string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/applications", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Lists applications by filter parameters. + /// The filters to apply to the operation. + /// The cancellation token to use. + public async ValueTask> ListAsync(string filter = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ApplicationListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Lists applications by filter parameters. + /// The filters to apply to the operation. + /// The cancellation token to use. + public Response List(string filter = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ApplicationListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string applicationObjectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationObjectId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Delete an application. + /// Application object ID. + /// The cancellation token to use. + public async ValueTask DeleteAsync(string applicationObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + using var message = CreateDeleteRequest(applicationObjectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Delete an application. + /// Application object ID. + /// The cancellation token to use. + public Response Delete(string applicationObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + using var message = CreateDeleteRequest(applicationObjectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string applicationObjectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationObjectId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Get an application by object ID. + /// Application object ID. + /// The cancellation token to use. + public async ValueTask> GetAsync(string applicationObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + using var message = CreateGetRequest(applicationObjectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + Application value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = Application.DeserializeApplication(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Get an application by object ID. + /// Application object ID. + /// The cancellation token to use. + public Response Get(string applicationObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + using var message = CreateGetRequest(applicationObjectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + Application value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = Application.DeserializeApplication(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreatePatchRequest(string applicationObjectId, ApplicationUpdateParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationObjectId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Update an existing application. + /// Application object ID. + /// Parameters to update an existing application. + /// The cancellation token to use. + public async ValueTask PatchAsync(string applicationObjectId, ApplicationUpdateParameters parameters, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreatePatchRequest(applicationObjectId, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Update an existing application. + /// Application object ID. + /// Parameters to update an existing application. + /// The cancellation token to use. + public Response Patch(string applicationObjectId, ApplicationUpdateParameters parameters, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreatePatchRequest(applicationObjectId, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListOwnersRequest(string applicationObjectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationObjectId, true); + uri.AppendPath("/owners", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// The owners are a set of non-admin users who are allowed to modify this object. + /// The object ID of the application for which to get owners. + /// The cancellation token to use. + public async ValueTask> ListOwnersAsync(string applicationObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + using var message = CreateListOwnersRequest(applicationObjectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// The owners are a set of non-admin users who are allowed to modify this object. + /// The object ID of the application for which to get owners. + /// The cancellation token to use. + public Response ListOwners(string applicationObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + using var message = CreateListOwnersRequest(applicationObjectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateAddOwnerRequest(string applicationObjectId, AddOwnerParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationObjectId, true); + uri.AppendPath("/$links/owners", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Add an owner to an application. + /// The object ID of the application to which to add the owner. + /// The URL of the owner object, such as https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd. + /// The cancellation token to use. + public async ValueTask AddOwnerAsync(string applicationObjectId, AddOwnerParameters parameters, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateAddOwnerRequest(applicationObjectId, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Add an owner to an application. + /// The object ID of the application to which to add the owner. + /// The URL of the owner object, such as https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd. + /// The cancellation token to use. + public Response AddOwner(string applicationObjectId, AddOwnerParameters parameters, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateAddOwnerRequest(applicationObjectId, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateRemoveOwnerRequest(string applicationObjectId, string ownerObjectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationObjectId, true); + uri.AppendPath("/$links/owners/", false); + uri.AppendPath(ownerObjectId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Remove a member from owners. + /// The object ID of the application from which to remove the owner. + /// Owner object id. + /// The cancellation token to use. + public async ValueTask RemoveOwnerAsync(string applicationObjectId, string ownerObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + if (ownerObjectId == null) + { + throw new ArgumentNullException(nameof(ownerObjectId)); + } + + using var message = CreateRemoveOwnerRequest(applicationObjectId, ownerObjectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Remove a member from owners. + /// The object ID of the application from which to remove the owner. + /// Owner object id. + /// The cancellation token to use. + public Response RemoveOwner(string applicationObjectId, string ownerObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + if (ownerObjectId == null) + { + throw new ArgumentNullException(nameof(ownerObjectId)); + } + + using var message = CreateRemoveOwnerRequest(applicationObjectId, ownerObjectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListKeyCredentialsRequest(string applicationObjectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationObjectId, true); + uri.AppendPath("/keyCredentials", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Get the keyCredentials associated with an application. + /// Application object ID. + /// The cancellation token to use. + public async ValueTask> ListKeyCredentialsAsync(string applicationObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + using var message = CreateListKeyCredentialsRequest(applicationObjectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + KeyCredentialListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = KeyCredentialListResult.DeserializeKeyCredentialListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Get the keyCredentials associated with an application. + /// Application object ID. + /// The cancellation token to use. + public Response ListKeyCredentials(string applicationObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + using var message = CreateListKeyCredentialsRequest(applicationObjectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + KeyCredentialListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = KeyCredentialListResult.DeserializeKeyCredentialListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdateKeyCredentialsRequest(string applicationObjectId, KeyCredentialsUpdateParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationObjectId, true); + uri.AppendPath("/keyCredentials", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Update the keyCredentials associated with an application. + /// Application object ID. + /// Parameters to update the keyCredentials of an existing application. + /// The cancellation token to use. + public async ValueTask UpdateKeyCredentialsAsync(string applicationObjectId, KeyCredentialsUpdateParameters parameters, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdateKeyCredentialsRequest(applicationObjectId, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Update the keyCredentials associated with an application. + /// Application object ID. + /// Parameters to update the keyCredentials of an existing application. + /// The cancellation token to use. + public Response UpdateKeyCredentials(string applicationObjectId, KeyCredentialsUpdateParameters parameters, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdateKeyCredentialsRequest(applicationObjectId, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListPasswordCredentialsRequest(string applicationObjectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationObjectId, true); + uri.AppendPath("/passwordCredentials", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Get the passwordCredentials associated with an application. + /// Application object ID. + /// The cancellation token to use. + public async ValueTask> ListPasswordCredentialsAsync(string applicationObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + using var message = CreateListPasswordCredentialsRequest(applicationObjectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + PasswordCredentialListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = PasswordCredentialListResult.DeserializePasswordCredentialListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Get the passwordCredentials associated with an application. + /// Application object ID. + /// The cancellation token to use. + public Response ListPasswordCredentials(string applicationObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + using var message = CreateListPasswordCredentialsRequest(applicationObjectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + PasswordCredentialListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = PasswordCredentialListResult.DeserializePasswordCredentialListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdatePasswordCredentialsRequest(string applicationObjectId, PasswordCredentialsUpdateParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/applications/", false); + uri.AppendPath(applicationObjectId, true); + uri.AppendPath("/passwordCredentials", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Update passwordCredentials associated with an application. + /// Application object ID. + /// Parameters to update passwordCredentials of an existing application. + /// The cancellation token to use. + public async ValueTask UpdatePasswordCredentialsAsync(string applicationObjectId, PasswordCredentialsUpdateParameters parameters, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdatePasswordCredentialsRequest(applicationObjectId, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Update passwordCredentials associated with an application. + /// Application object ID. + /// Parameters to update passwordCredentials of an existing application. + /// The cancellation token to use. + public Response UpdatePasswordCredentials(string applicationObjectId, PasswordCredentialsUpdateParameters parameters, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdatePasswordCredentialsRequest(applicationObjectId, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetServicePrincipalsIdByAppIdRequest(string applicationID) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/servicePrincipalsByAppId/", false); + uri.AppendPath(applicationID, true); + uri.AppendPath("/objectId", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets an object id for a given application id from the current tenant. + /// The application ID. + /// The cancellation token to use. + public async ValueTask> GetServicePrincipalsIdByAppIdAsync(string applicationID, CancellationToken cancellationToken = default) + { + if (applicationID == null) + { + throw new ArgumentNullException(nameof(applicationID)); + } + + using var message = CreateGetServicePrincipalsIdByAppIdRequest(applicationID); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ServicePrincipalObjectResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ServicePrincipalObjectResult.DeserializeServicePrincipalObjectResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets an object id for a given application id from the current tenant. + /// The application ID. + /// The cancellation token to use. + public Response GetServicePrincipalsIdByAppId(string applicationID, CancellationToken cancellationToken = default) + { + if (applicationID == null) + { + throw new ArgumentNullException(nameof(applicationID)); + } + + using var message = CreateGetServicePrincipalsIdByAppIdRequest(applicationID); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ServicePrincipalObjectResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ServicePrincipalObjectResult.DeserializeServicePrincipalObjectResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/", false); + uri.AppendRaw(nextLink, false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets a list of applications from the current tenant. + /// Next link for the list operation. + /// The cancellation token to use. + public async ValueTask> ListNextAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ApplicationListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a list of applications from the current tenant. + /// Next link for the list operation. + /// The cancellation token to use. + public Response ListNext(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ApplicationListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListOwnersNextPageRequest(string nextLink, string applicationObjectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// The owners are a set of non-admin users who are allowed to modify this object. + /// The URL to the next page of results. + /// The object ID of the application for which to get owners. + /// The cancellation token to use. + public async ValueTask> ListOwnersNextPageAsync(string nextLink, string applicationObjectId, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + using var message = CreateListOwnersNextPageRequest(nextLink, applicationObjectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// The owners are a set of non-admin users who are allowed to modify this object. + /// The URL to the next page of results. + /// The object ID of the application for which to get owners. + /// The cancellation token to use. + public Response ListOwnersNextPage(string nextLink, string applicationObjectId, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + using var message = CreateListOwnersNextPageRequest(nextLink, applicationObjectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextNextPageRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// Gets a list of applications from the current tenant. + /// The URL to the next page of results. + /// The cancellation token to use. + public async ValueTask> ListNextNextPageAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextNextPageRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ApplicationListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a list of applications from the current tenant. + /// The URL to the next page of results. + /// The cancellation token to use. + public Response ListNextNextPage(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextNextPageRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ApplicationListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/DeletedApplicationsClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/DeletedApplicationsClient.cs new file mode 100644 index 0000000000000..e67245bb43a6f --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/DeletedApplicationsClient.cs @@ -0,0 +1,275 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac.Models; + +namespace Azure.Graph.Rbac +{ + /// The DeletedApplications service client. + public partial class DeletedApplicationsClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal DeletedApplicationsRestClient RestClient { get; } + /// Initializes a new instance of DeletedApplicationsClient for mocking. + protected DeletedApplicationsClient() + { + } + /// Initializes a new instance of DeletedApplicationsClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The tenant ID. + /// server parameter. + /// Api Version. + internal DeletedApplicationsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") + { + RestClient = new DeletedApplicationsRestClient(clientDiagnostics, pipeline, tenantID, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Restores the deleted application in the directory. + /// Application object ID. + /// The cancellation token to use. + public virtual async Task> RestoreAsync(string objectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DeletedApplicationsClient.Restore"); + scope.Start(); + try + { + return await RestClient.RestoreAsync(objectId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Restores the deleted application in the directory. + /// Application object ID. + /// The cancellation token to use. + public virtual Response Restore(string objectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DeletedApplicationsClient.Restore"); + scope.Start(); + try + { + return RestClient.Restore(objectId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Hard-delete an application. + /// Application object ID. + /// The cancellation token to use. + public virtual async Task HardDeleteAsync(string applicationObjectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DeletedApplicationsClient.HardDelete"); + scope.Start(); + try + { + return await RestClient.HardDeleteAsync(applicationObjectId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Hard-delete an application. + /// Application object ID. + /// The cancellation token to use. + public virtual Response HardDelete(string applicationObjectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DeletedApplicationsClient.HardDelete"); + scope.Start(); + try + { + return RestClient.HardDelete(applicationObjectId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets a list of deleted applications in the directory. + /// The filter to apply to the operation. + /// The cancellation token to use. + public virtual AsyncPageable ListAsync(string filter = null, CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("DeletedApplicationsClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListAsync(filter, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("DeletedApplicationsClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListNextAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets a list of deleted applications in the directory. + /// The filter to apply to the operation. + /// The cancellation token to use. + public virtual Pageable List(string filter = null, CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("DeletedApplicationsClient.List"); + scope.Start(); + try + { + var response = RestClient.List(filter, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("DeletedApplicationsClient.List"); + scope.Start(); + try + { + var response = RestClient.ListNext(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets a list of deleted applications in the directory. + /// Next link for the list operation. + /// The cancellation token to use. + public virtual AsyncPageable ListNextAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("DeletedApplicationsClient.ListNext"); + scope.Start(); + try + { + var response = await RestClient.ListNextAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("DeletedApplicationsClient.ListNext"); + scope.Start(); + try + { + var response = await RestClient.ListNextNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets a list of deleted applications in the directory. + /// Next link for the list operation. + /// The cancellation token to use. + public virtual Pageable ListNext(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("DeletedApplicationsClient.ListNext"); + scope.Start(); + try + { + var response = RestClient.ListNext(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("DeletedApplicationsClient.ListNext"); + scope.Start(); + try + { + var response = RestClient.ListNextNextPage(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/DeletedApplicationsRestClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/DeletedApplicationsRestClient.cs new file mode 100644 index 0000000000000..a8bdb01ab5128 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/DeletedApplicationsRestClient.cs @@ -0,0 +1,429 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac.Models; + +namespace Azure.Graph.Rbac +{ + internal partial class DeletedApplicationsRestClient + { + private string tenantID; + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of DeletedApplicationsRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The tenant ID. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public DeletedApplicationsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") + { + if (tenantID == null) + { + throw new ArgumentNullException(nameof(tenantID)); + } + endpoint ??= new Uri("https://graph.windows.net"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.tenantID = tenantID; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateRestoreRequest(string objectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/deletedApplications/", false); + uri.AppendPath(objectId, true); + uri.AppendPath("/restore", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Restores the deleted application in the directory. + /// Application object ID. + /// The cancellation token to use. + public async ValueTask> RestoreAsync(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateRestoreRequest(objectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + Application value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = Application.DeserializeApplication(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Restores the deleted application in the directory. + /// Application object ID. + /// The cancellation token to use. + public Response Restore(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateRestoreRequest(objectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + Application value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = Application.DeserializeApplication(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListRequest(string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/deletedApplications", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets a list of deleted applications in the directory. + /// The filter to apply to the operation. + /// The cancellation token to use. + public async ValueTask> ListAsync(string filter = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ApplicationListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a list of deleted applications in the directory. + /// The filter to apply to the operation. + /// The cancellation token to use. + public Response List(string filter = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ApplicationListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateHardDeleteRequest(string applicationObjectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/deletedApplications/", false); + uri.AppendPath(applicationObjectId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Hard-delete an application. + /// Application object ID. + /// The cancellation token to use. + public async ValueTask HardDeleteAsync(string applicationObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + using var message = CreateHardDeleteRequest(applicationObjectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Hard-delete an application. + /// Application object ID. + /// The cancellation token to use. + public Response HardDelete(string applicationObjectId, CancellationToken cancellationToken = default) + { + if (applicationObjectId == null) + { + throw new ArgumentNullException(nameof(applicationObjectId)); + } + + using var message = CreateHardDeleteRequest(applicationObjectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/", false); + uri.AppendRaw(nextLink, false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets a list of deleted applications in the directory. + /// Next link for the list operation. + /// The cancellation token to use. + public async ValueTask> ListNextAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ApplicationListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a list of deleted applications in the directory. + /// Next link for the list operation. + /// The cancellation token to use. + public Response ListNext(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ApplicationListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextNextPageRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// Gets a list of deleted applications in the directory. + /// The URL to the next page of results. + /// The cancellation token to use. + public async ValueTask> ListNextNextPageAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextNextPageRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ApplicationListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a list of deleted applications in the directory. + /// The URL to the next page of results. + /// The cancellation token to use. + public Response ListNextNextPage(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextNextPageRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ApplicationListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ApplicationListResult.DeserializeApplicationListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/DomainsClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/DomainsClient.cs new file mode 100644 index 0000000000000..e4bce47726236 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/DomainsClient.cs @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac.Models; + +namespace Azure.Graph.Rbac +{ + /// The Domains service client. + public partial class DomainsClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal DomainsRestClient RestClient { get; } + /// Initializes a new instance of DomainsClient for mocking. + protected DomainsClient() + { + } + /// Initializes a new instance of DomainsClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The tenant ID. + /// server parameter. + /// Api Version. + internal DomainsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") + { + RestClient = new DomainsRestClient(clientDiagnostics, pipeline, tenantID, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Gets a specific domain in the current tenant. + /// name of the domain. + /// The cancellation token to use. + public virtual async Task> GetAsync(string domainName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DomainsClient.Get"); + scope.Start(); + try + { + return await RestClient.GetAsync(domainName, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets a specific domain in the current tenant. + /// name of the domain. + /// The cancellation token to use. + public virtual Response Get(string domainName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DomainsClient.Get"); + scope.Start(); + try + { + return RestClient.Get(domainName, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets a list of domains for the current tenant. + /// The filter to apply to the operation. + /// The cancellation token to use. + public virtual AsyncPageable ListAsync(string filter = null, CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("DomainsClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListAsync(filter, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, null); + } + + /// Gets a list of domains for the current tenant. + /// The filter to apply to the operation. + /// The cancellation token to use. + public virtual Pageable List(string filter = null, CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("DomainsClient.List"); + scope.Start(); + try + { + var response = RestClient.List(filter, cancellationToken); + return Page.FromValues(response.Value.Value, null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, null); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/DomainsRestClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/DomainsRestClient.cs new file mode 100644 index 0000000000000..de63f5922dd00 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/DomainsRestClient.cs @@ -0,0 +1,210 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac.Models; + +namespace Azure.Graph.Rbac +{ + internal partial class DomainsRestClient + { + private string tenantID; + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of DomainsRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The tenant ID. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public DomainsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") + { + if (tenantID == null) + { + throw new ArgumentNullException(nameof(tenantID)); + } + endpoint ??= new Uri("https://graph.windows.net"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.tenantID = tenantID; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateListRequest(string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/domains", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets a list of domains for the current tenant. + /// The filter to apply to the operation. + /// The cancellation token to use. + public async ValueTask> ListAsync(string filter = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DomainListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DomainListResult.DeserializeDomainListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a list of domains for the current tenant. + /// The filter to apply to the operation. + /// The cancellation token to use. + public Response List(string filter = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DomainListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DomainListResult.DeserializeDomainListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string domainName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/domains/", false); + uri.AppendPath(domainName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets a specific domain in the current tenant. + /// name of the domain. + /// The cancellation token to use. + public async ValueTask> GetAsync(string domainName, CancellationToken cancellationToken = default) + { + if (domainName == null) + { + throw new ArgumentNullException(nameof(domainName)); + } + + using var message = CreateGetRequest(domainName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + Domain value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = Domain.DeserializeDomain(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a specific domain in the current tenant. + /// name of the domain. + /// The cancellation token to use. + public Response Get(string domainName, CancellationToken cancellationToken = default) + { + if (domainName == null) + { + throw new ArgumentNullException(nameof(domainName)); + } + + using var message = CreateGetRequest(domainName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + Domain value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = Domain.DeserializeDomain(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/GroupsClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/GroupsClient.cs new file mode 100644 index 0000000000000..6e523939395ab --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/GroupsClient.cs @@ -0,0 +1,823 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac.Models; + +namespace Azure.Graph.Rbac +{ + /// The Groups service client. + public partial class GroupsClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal GroupsRestClient RestClient { get; } + /// Initializes a new instance of GroupsClient for mocking. + protected GroupsClient() + { + } + /// Initializes a new instance of GroupsClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The tenant ID. + /// server parameter. + /// Api Version. + internal GroupsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") + { + RestClient = new GroupsRestClient(clientDiagnostics, pipeline, tenantID, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Checks whether the specified user, group, contact, or service principal is a direct or transitive member of the specified group. + /// The check group membership parameters. + /// The cancellation token to use. + public virtual async Task> IsMemberOfAsync(CheckGroupMembershipParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.IsMemberOf"); + scope.Start(); + try + { + return await RestClient.IsMemberOfAsync(parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Checks whether the specified user, group, contact, or service principal is a direct or transitive member of the specified group. + /// The check group membership parameters. + /// The cancellation token to use. + public virtual Response IsMemberOf(CheckGroupMembershipParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.IsMemberOf"); + scope.Start(); + try + { + return RestClient.IsMemberOf(parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Remove a member from a group. + /// The object ID of the group from which to remove the member. + /// Member object id. + /// The cancellation token to use. + public virtual async Task RemoveMemberAsync(string groupObjectId, string memberObjectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.RemoveMember"); + scope.Start(); + try + { + return await RestClient.RemoveMemberAsync(groupObjectId, memberObjectId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Remove a member from a group. + /// The object ID of the group from which to remove the member. + /// Member object id. + /// The cancellation token to use. + public virtual Response RemoveMember(string groupObjectId, string memberObjectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.RemoveMember"); + scope.Start(); + try + { + return RestClient.RemoveMember(groupObjectId, memberObjectId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Add a member to a group. + /// The object ID of the group to which to add the member. + /// The URL of the member object, such as https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd. + /// The cancellation token to use. + public virtual async Task AddMemberAsync(string groupObjectId, GroupAddMemberParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.AddMember"); + scope.Start(); + try + { + return await RestClient.AddMemberAsync(groupObjectId, parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Add a member to a group. + /// The object ID of the group to which to add the member. + /// The URL of the member object, such as https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd. + /// The cancellation token to use. + public virtual Response AddMember(string groupObjectId, GroupAddMemberParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.AddMember"); + scope.Start(); + try + { + return RestClient.AddMember(groupObjectId, parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Create a group in the directory. + /// The parameters for the group to create. + /// The cancellation token to use. + public virtual async Task> CreateAsync(GroupCreateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.Create"); + scope.Start(); + try + { + return await RestClient.CreateAsync(parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Create a group in the directory. + /// The parameters for the group to create. + /// The cancellation token to use. + public virtual Response Create(GroupCreateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.Create"); + scope.Start(); + try + { + return RestClient.Create(parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets group information from the directory. + /// The object ID of the user for which to get group information. + /// The cancellation token to use. + public virtual async Task> GetAsync(string objectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.Get"); + scope.Start(); + try + { + return await RestClient.GetAsync(objectId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets group information from the directory. + /// The object ID of the user for which to get group information. + /// The cancellation token to use. + public virtual Response Get(string objectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.Get"); + scope.Start(); + try + { + return RestClient.Get(objectId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Delete a group from the directory. + /// The object ID of the group to delete. + /// The cancellation token to use. + public virtual async Task DeleteAsync(string objectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.Delete"); + scope.Start(); + try + { + return await RestClient.DeleteAsync(objectId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Delete a group from the directory. + /// The object ID of the group to delete. + /// The cancellation token to use. + public virtual Response Delete(string objectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.Delete"); + scope.Start(); + try + { + return RestClient.Delete(objectId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Add an owner to a group. + /// The object ID of the application to which to add the owner. + /// The URL of the owner object, such as https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd. + /// The cancellation token to use. + public virtual async Task AddOwnerAsync(string objectId, AddOwnerParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.AddOwner"); + scope.Start(); + try + { + return await RestClient.AddOwnerAsync(objectId, parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Add an owner to a group. + /// The object ID of the application to which to add the owner. + /// The URL of the owner object, such as https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd. + /// The cancellation token to use. + public virtual Response AddOwner(string objectId, AddOwnerParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.AddOwner"); + scope.Start(); + try + { + return RestClient.AddOwner(objectId, parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Remove a member from owners. + /// The object ID of the group from which to remove the owner. + /// Owner object id. + /// The cancellation token to use. + public virtual async Task RemoveOwnerAsync(string objectId, string ownerObjectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.RemoveOwner"); + scope.Start(); + try + { + return await RestClient.RemoveOwnerAsync(objectId, ownerObjectId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Remove a member from owners. + /// The object ID of the group from which to remove the owner. + /// Owner object id. + /// The cancellation token to use. + public virtual Response RemoveOwner(string objectId, string ownerObjectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.RemoveOwner"); + scope.Start(); + try + { + return RestClient.RemoveOwner(objectId, ownerObjectId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets list of groups for the current tenant. + /// The filter to apply to the operation. + /// The cancellation token to use. + public virtual AsyncPageable ListAsync(string filter = null, CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListAsync(filter, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListNextAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets list of groups for the current tenant. + /// The filter to apply to the operation. + /// The cancellation token to use. + public virtual Pageable List(string filter = null, CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.List"); + scope.Start(); + try + { + var response = RestClient.List(filter, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.List"); + scope.Start(); + try + { + var response = RestClient.ListNext(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets the members of a group. + /// The object ID of the group whose members should be retrieved. + /// The cancellation token to use. + public virtual AsyncPageable GetGroupMembersAsync(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.GetGroupMembers"); + scope.Start(); + try + { + var response = await RestClient.GetGroupMembersAsync(objectId, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.GetGroupMembers"); + scope.Start(); + try + { + var response = await RestClient.GetGroupMembersNextAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets the members of a group. + /// The object ID of the group whose members should be retrieved. + /// The cancellation token to use. + public virtual Pageable GetGroupMembers(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.GetGroupMembers"); + scope.Start(); + try + { + var response = RestClient.GetGroupMembers(objectId, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.GetGroupMembers"); + scope.Start(); + try + { + var response = RestClient.GetGroupMembersNext(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets a collection of object IDs of groups of which the specified group is a member. + /// The object ID of the group for which to get group membership. + /// Group filtering parameters. + /// The cancellation token to use. + public virtual AsyncPageable GetMemberGroupsAsync(string objectId, GroupGetMemberGroupsParameters parameters, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.GetMemberGroups"); + scope.Start(); + try + { + var response = await RestClient.GetMemberGroupsAsync(objectId, parameters, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, null); + } + + /// Gets a collection of object IDs of groups of which the specified group is a member. + /// The object ID of the group for which to get group membership. + /// Group filtering parameters. + /// The cancellation token to use. + public virtual Pageable GetMemberGroups(string objectId, GroupGetMemberGroupsParameters parameters, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.GetMemberGroups"); + scope.Start(); + try + { + var response = RestClient.GetMemberGroups(objectId, parameters, cancellationToken); + return Page.FromValues(response.Value.Value, null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, null); + } + + /// The owners are a set of non-admin users who are allowed to modify this object. + /// The object ID of the group for which to get owners. + /// The cancellation token to use. + public virtual AsyncPageable ListOwnersAsync(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.ListOwners"); + scope.Start(); + try + { + var response = await RestClient.ListOwnersAsync(objectId, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.ListOwners"); + scope.Start(); + try + { + var response = await RestClient.ListOwnersNextPageAsync(nextLink, objectId, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// The owners are a set of non-admin users who are allowed to modify this object. + /// The object ID of the group for which to get owners. + /// The cancellation token to use. + public virtual Pageable ListOwners(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.ListOwners"); + scope.Start(); + try + { + var response = RestClient.ListOwners(objectId, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.ListOwners"); + scope.Start(); + try + { + var response = RestClient.ListOwnersNextPage(nextLink, objectId, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets a list of groups for the current tenant. + /// Next link for the list operation. + /// The cancellation token to use. + public virtual AsyncPageable ListNextAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.ListNext"); + scope.Start(); + try + { + var response = await RestClient.ListNextAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.ListNext"); + scope.Start(); + try + { + var response = await RestClient.ListNextNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets a list of groups for the current tenant. + /// Next link for the list operation. + /// The cancellation token to use. + public virtual Pageable ListNext(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.ListNext"); + scope.Start(); + try + { + var response = RestClient.ListNext(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.ListNext"); + scope.Start(); + try + { + var response = RestClient.ListNextNextPage(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets the members of a group. + /// Next link for the list operation. + /// The cancellation token to use. + public virtual AsyncPageable GetGroupMembersNextAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.GetGroupMembersNext"); + scope.Start(); + try + { + var response = await RestClient.GetGroupMembersNextAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.GetGroupMembersNext"); + scope.Start(); + try + { + var response = await RestClient.GetGroupMembersNextNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets the members of a group. + /// Next link for the list operation. + /// The cancellation token to use. + public virtual Pageable GetGroupMembersNext(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.GetGroupMembersNext"); + scope.Start(); + try + { + var response = RestClient.GetGroupMembersNext(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("GroupsClient.GetGroupMembersNext"); + scope.Start(); + try + { + var response = RestClient.GetGroupMembersNextNextPage(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/GroupsRestClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/GroupsRestClient.cs new file mode 100644 index 0000000000000..faad9491c3e4a --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/GroupsRestClient.cs @@ -0,0 +1,1395 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac.Models; + +namespace Azure.Graph.Rbac +{ + internal partial class GroupsRestClient + { + private string tenantID; + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of GroupsRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The tenant ID. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public GroupsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") + { + if (tenantID == null) + { + throw new ArgumentNullException(nameof(tenantID)); + } + endpoint ??= new Uri("https://graph.windows.net"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.tenantID = tenantID; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateIsMemberOfRequest(CheckGroupMembershipParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/isMemberOf", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Checks whether the specified user, group, contact, or service principal is a direct or transitive member of the specified group. + /// The check group membership parameters. + /// The cancellation token to use. + public async ValueTask> IsMemberOfAsync(CheckGroupMembershipParameters parameters, CancellationToken cancellationToken = default) + { + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateIsMemberOfRequest(parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + CheckGroupMembershipResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = CheckGroupMembershipResult.DeserializeCheckGroupMembershipResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Checks whether the specified user, group, contact, or service principal is a direct or transitive member of the specified group. + /// The check group membership parameters. + /// The cancellation token to use. + public Response IsMemberOf(CheckGroupMembershipParameters parameters, CancellationToken cancellationToken = default) + { + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateIsMemberOfRequest(parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + CheckGroupMembershipResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = CheckGroupMembershipResult.DeserializeCheckGroupMembershipResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateRemoveMemberRequest(string groupObjectId, string memberObjectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(groupObjectId, true); + uri.AppendPath("/$links/members/", false); + uri.AppendPath(memberObjectId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Remove a member from a group. + /// The object ID of the group from which to remove the member. + /// Member object id. + /// The cancellation token to use. + public async ValueTask RemoveMemberAsync(string groupObjectId, string memberObjectId, CancellationToken cancellationToken = default) + { + if (groupObjectId == null) + { + throw new ArgumentNullException(nameof(groupObjectId)); + } + if (memberObjectId == null) + { + throw new ArgumentNullException(nameof(memberObjectId)); + } + + using var message = CreateRemoveMemberRequest(groupObjectId, memberObjectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Remove a member from a group. + /// The object ID of the group from which to remove the member. + /// Member object id. + /// The cancellation token to use. + public Response RemoveMember(string groupObjectId, string memberObjectId, CancellationToken cancellationToken = default) + { + if (groupObjectId == null) + { + throw new ArgumentNullException(nameof(groupObjectId)); + } + if (memberObjectId == null) + { + throw new ArgumentNullException(nameof(memberObjectId)); + } + + using var message = CreateRemoveMemberRequest(groupObjectId, memberObjectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateAddMemberRequest(string groupObjectId, GroupAddMemberParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(groupObjectId, true); + uri.AppendPath("/$links/members", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Add a member to a group. + /// The object ID of the group to which to add the member. + /// The URL of the member object, such as https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd. + /// The cancellation token to use. + public async ValueTask AddMemberAsync(string groupObjectId, GroupAddMemberParameters parameters, CancellationToken cancellationToken = default) + { + if (groupObjectId == null) + { + throw new ArgumentNullException(nameof(groupObjectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateAddMemberRequest(groupObjectId, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Add a member to a group. + /// The object ID of the group to which to add the member. + /// The URL of the member object, such as https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd. + /// The cancellation token to use. + public Response AddMember(string groupObjectId, GroupAddMemberParameters parameters, CancellationToken cancellationToken = default) + { + if (groupObjectId == null) + { + throw new ArgumentNullException(nameof(groupObjectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateAddMemberRequest(groupObjectId, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateRequest(GroupCreateParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/groups", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Create a group in the directory. + /// The parameters for the group to create. + /// The cancellation token to use. + public async ValueTask> CreateAsync(GroupCreateParameters parameters, CancellationToken cancellationToken = default) + { + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateCreateRequest(parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 201: + { + ADGroup value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ADGroup.DeserializeADGroup(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Create a group in the directory. + /// The parameters for the group to create. + /// The cancellation token to use. + public Response Create(GroupCreateParameters parameters, CancellationToken cancellationToken = default) + { + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateCreateRequest(parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 201: + { + ADGroup value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ADGroup.DeserializeADGroup(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListRequest(string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/groups", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets list of groups for the current tenant. + /// The filter to apply to the operation. + /// The cancellation token to use. + public async ValueTask> ListAsync(string filter = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + GroupListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = GroupListResult.DeserializeGroupListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets list of groups for the current tenant. + /// The filter to apply to the operation. + /// The cancellation token to use. + public Response List(string filter = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + GroupListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = GroupListResult.DeserializeGroupListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetGroupMembersRequest(string objectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(objectId, true); + uri.AppendPath("/members", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets the members of a group. + /// The object ID of the group whose members should be retrieved. + /// The cancellation token to use. + public async ValueTask> GetGroupMembersAsync(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateGetGroupMembersRequest(objectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets the members of a group. + /// The object ID of the group whose members should be retrieved. + /// The cancellation token to use. + public Response GetGroupMembers(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateGetGroupMembersRequest(objectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string objectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(objectId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets group information from the directory. + /// The object ID of the user for which to get group information. + /// The cancellation token to use. + public async ValueTask> GetAsync(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateGetRequest(objectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ADGroup value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ADGroup.DeserializeADGroup(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets group information from the directory. + /// The object ID of the user for which to get group information. + /// The cancellation token to use. + public Response Get(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateGetRequest(objectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ADGroup value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ADGroup.DeserializeADGroup(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string objectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(objectId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Delete a group from the directory. + /// The object ID of the group to delete. + /// The cancellation token to use. + public async ValueTask DeleteAsync(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateDeleteRequest(objectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Delete a group from the directory. + /// The object ID of the group to delete. + /// The cancellation token to use. + public Response Delete(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateDeleteRequest(objectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetMemberGroupsRequest(string objectId, GroupGetMemberGroupsParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(objectId, true); + uri.AppendPath("/getMemberGroups", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Gets a collection of object IDs of groups of which the specified group is a member. + /// The object ID of the group for which to get group membership. + /// Group filtering parameters. + /// The cancellation token to use. + public async ValueTask> GetMemberGroupsAsync(string objectId, GroupGetMemberGroupsParameters parameters, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateGetMemberGroupsRequest(objectId, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + GroupGetMemberGroupsResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = GroupGetMemberGroupsResult.DeserializeGroupGetMemberGroupsResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a collection of object IDs of groups of which the specified group is a member. + /// The object ID of the group for which to get group membership. + /// Group filtering parameters. + /// The cancellation token to use. + public Response GetMemberGroups(string objectId, GroupGetMemberGroupsParameters parameters, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateGetMemberGroupsRequest(objectId, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + GroupGetMemberGroupsResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = GroupGetMemberGroupsResult.DeserializeGroupGetMemberGroupsResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListOwnersRequest(string objectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(objectId, true); + uri.AppendPath("/owners", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// The owners are a set of non-admin users who are allowed to modify this object. + /// The object ID of the group for which to get owners. + /// The cancellation token to use. + public async ValueTask> ListOwnersAsync(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateListOwnersRequest(objectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// The owners are a set of non-admin users who are allowed to modify this object. + /// The object ID of the group for which to get owners. + /// The cancellation token to use. + public Response ListOwners(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateListOwnersRequest(objectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateAddOwnerRequest(string objectId, AddOwnerParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(objectId, true); + uri.AppendPath("/$links/owners", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Add an owner to a group. + /// The object ID of the application to which to add the owner. + /// The URL of the owner object, such as https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd. + /// The cancellation token to use. + public async ValueTask AddOwnerAsync(string objectId, AddOwnerParameters parameters, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateAddOwnerRequest(objectId, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Add an owner to a group. + /// The object ID of the application to which to add the owner. + /// The URL of the owner object, such as https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd. + /// The cancellation token to use. + public Response AddOwner(string objectId, AddOwnerParameters parameters, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateAddOwnerRequest(objectId, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateRemoveOwnerRequest(string objectId, string ownerObjectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/groups/", false); + uri.AppendPath(objectId, true); + uri.AppendPath("/$links/owners/", false); + uri.AppendPath(ownerObjectId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Remove a member from owners. + /// The object ID of the group from which to remove the owner. + /// Owner object id. + /// The cancellation token to use. + public async ValueTask RemoveOwnerAsync(string objectId, string ownerObjectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (ownerObjectId == null) + { + throw new ArgumentNullException(nameof(ownerObjectId)); + } + + using var message = CreateRemoveOwnerRequest(objectId, ownerObjectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Remove a member from owners. + /// The object ID of the group from which to remove the owner. + /// Owner object id. + /// The cancellation token to use. + public Response RemoveOwner(string objectId, string ownerObjectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (ownerObjectId == null) + { + throw new ArgumentNullException(nameof(ownerObjectId)); + } + + using var message = CreateRemoveOwnerRequest(objectId, ownerObjectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/", false); + uri.AppendRaw(nextLink, false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets a list of groups for the current tenant. + /// Next link for the list operation. + /// The cancellation token to use. + public async ValueTask> ListNextAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + GroupListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = GroupListResult.DeserializeGroupListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a list of groups for the current tenant. + /// Next link for the list operation. + /// The cancellation token to use. + public Response ListNext(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + GroupListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = GroupListResult.DeserializeGroupListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetGroupMembersNextRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/", false); + uri.AppendRaw(nextLink, false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets the members of a group. + /// Next link for the list operation. + /// The cancellation token to use. + public async ValueTask> GetGroupMembersNextAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateGetGroupMembersNextRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets the members of a group. + /// Next link for the list operation. + /// The cancellation token to use. + public Response GetGroupMembersNext(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateGetGroupMembersNextRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListOwnersNextPageRequest(string nextLink, string objectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// The owners are a set of non-admin users who are allowed to modify this object. + /// The URL to the next page of results. + /// The object ID of the group for which to get owners. + /// The cancellation token to use. + public async ValueTask> ListOwnersNextPageAsync(string nextLink, string objectId, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateListOwnersNextPageRequest(nextLink, objectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// The owners are a set of non-admin users who are allowed to modify this object. + /// The URL to the next page of results. + /// The object ID of the group for which to get owners. + /// The cancellation token to use. + public Response ListOwnersNextPage(string nextLink, string objectId, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateListOwnersNextPageRequest(nextLink, objectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextNextPageRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// Gets a list of groups for the current tenant. + /// The URL to the next page of results. + /// The cancellation token to use. + public async ValueTask> ListNextNextPageAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextNextPageRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + GroupListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = GroupListResult.DeserializeGroupListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a list of groups for the current tenant. + /// The URL to the next page of results. + /// The cancellation token to use. + public Response ListNextNextPage(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextNextPageRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + GroupListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = GroupListResult.DeserializeGroupListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetGroupMembersNextNextPageRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// Gets the members of a group. + /// The URL to the next page of results. + /// The cancellation token to use. + public async ValueTask> GetGroupMembersNextNextPageAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateGetGroupMembersNextNextPageRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets the members of a group. + /// The URL to the next page of results. + /// The cancellation token to use. + public Response GetGroupMembersNextNextPage(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateGetGroupMembersNextNextPageRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ADGroup.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ADGroup.Serialization.cs new file mode 100644 index 0000000000000..771a0bd6e3c0d --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ADGroup.Serialization.cs @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class ADGroup + { + internal static ADGroup DeserializeADGroup(JsonElement element) + { + string displayName = default; + bool? mailEnabled = default; + string mailNickname = default; + bool? securityEnabled = default; + string mail = default; + string objectId = default; + string objectType = default; + DateTimeOffset? deletionTimestamp = default; + IReadOnlyDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("displayName")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("mailEnabled")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mailEnabled = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("mailNickname")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mailNickname = property.Value.GetString(); + continue; + } + if (property.NameEquals("securityEnabled")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + securityEnabled = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("mail")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mail = property.Value.GetString(); + continue; + } + if (property.NameEquals("objectId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + objectId = property.Value.GetString(); + continue; + } + if (property.NameEquals("objectType")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + objectType = property.Value.GetString(); + continue; + } + if (property.NameEquals("deletionTimestamp")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + deletionTimestamp = property.Value.GetDateTimeOffset("O"); + continue; + } + additionalPropertiesDictionary ??= new Dictionary(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + additionalPropertiesDictionary.Add(property.Name, null); + } + else + { + additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); + } + } + additionalProperties = additionalPropertiesDictionary; + return new ADGroup(objectId, objectType, deletionTimestamp, additionalProperties, displayName, mailEnabled, mailNickname, securityEnabled, mail); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ADGroup.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ADGroup.cs new file mode 100644 index 0000000000000..45a6964f0d695 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ADGroup.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Active Directory group information. + public partial class ADGroup : DirectoryObject + { + /// Initializes a new instance of ADGroup. + internal ADGroup() + { + ObjectType = "Group"; + } + + /// Initializes a new instance of ADGroup. + /// The object ID. + /// The object type. + /// The time at which the directory object was deleted. + /// . + /// The display name of the group. + /// Whether the group is mail-enabled. Must be false. This is because only pure security groups can be created using the Graph API. + /// The mail alias for the group. + /// Whether the group is security-enable. + /// The primary email address of the group. + internal ADGroup(string objectId, string objectType, DateTimeOffset? deletionTimestamp, IReadOnlyDictionary additionalProperties, string displayName, bool? mailEnabled, string mailNickname, bool? securityEnabled, string mail) : base(objectId, objectType, deletionTimestamp, additionalProperties) + { + DisplayName = displayName; + MailEnabled = mailEnabled; + MailNickname = mailNickname; + SecurityEnabled = securityEnabled; + Mail = mail; + ObjectType = objectType ?? "Group"; + } + + /// The display name of the group. + public string DisplayName { get; } + /// Whether the group is mail-enabled. Must be false. This is because only pure security groups can be created using the Graph API. + public bool? MailEnabled { get; } + /// The mail alias for the group. + public string MailNickname { get; } + /// Whether the group is security-enable. + public bool? SecurityEnabled { get; } + /// The primary email address of the group. + public string Mail { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/AddOwnerParameters.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/AddOwnerParameters.Serialization.cs new file mode 100644 index 0000000000000..5aad8b2d909e4 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/AddOwnerParameters.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class AddOwnerParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("url"); + writer.WriteStringValue(Url); + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/AddOwnerParameters.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/AddOwnerParameters.cs new file mode 100644 index 0000000000000..d8fcaff5d7f8c --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/AddOwnerParameters.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Request parameters for adding a owner to an application. + public partial class AddOwnerParameters : IDictionary + { + /// Initializes a new instance of AddOwnerParameters. + /// A owner object URL, such as "https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd", where "0b1f9851-1bf0-433f-aec3-cb9272f093dc" is the tenantId and "f260bbc4-c254-447b-94cf-293b5ec434dd" is the objectId of the owner (user, application, servicePrincipal, group) to be added. + public AddOwnerParameters(string url) + { + if (url == null) + { + throw new ArgumentNullException(nameof(url)); + } + + Url = url; + AdditionalProperties = new Dictionary(); + } + + /// Initializes a new instance of AddOwnerParameters. + /// A owner object URL, such as "https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd", where "0b1f9851-1bf0-433f-aec3-cb9272f093dc" is the tenantId and "f260bbc4-c254-447b-94cf-293b5ec434dd" is the objectId of the owner (user, application, servicePrincipal, group) to be added. + /// . + internal AddOwnerParameters(string url, IDictionary additionalProperties) + { + Url = url; + AdditionalProperties = additionalProperties ?? new Dictionary(); + } + + /// A owner object URL, such as "https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd", where "0b1f9851-1bf0-433f-aec3-cb9272f093dc" is the tenantId and "f260bbc4-c254-447b-94cf-293b5ec434dd" is the objectId of the owner (user, application, servicePrincipal, group) to be added. + public string Url { get; } + internal IDictionary AdditionalProperties { get; } + /// + public IEnumerator> GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); + /// + public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); + /// + public ICollection Keys => AdditionalProperties.Keys; + /// + public ICollection Values => AdditionalProperties.Values; + /// + int ICollection>.Count => AdditionalProperties.Count; + /// + public void Add(string key, object value) => AdditionalProperties.Add(key, value); + /// + public bool Remove(string key) => AdditionalProperties.Remove(key); + /// + bool ICollection>.IsReadOnly => AdditionalProperties.IsReadOnly; + /// + void ICollection>.Add(KeyValuePair value) => AdditionalProperties.Add(value); + /// + bool ICollection>.Remove(KeyValuePair value) => AdditionalProperties.Remove(value); + /// + bool ICollection>.Contains(KeyValuePair value) => AdditionalProperties.Contains(value); + /// + void ICollection>.CopyTo(KeyValuePair[] destination, int offset) => AdditionalProperties.CopyTo(destination, offset); + /// + void ICollection>.Clear() => AdditionalProperties.Clear(); + /// + public object this[string key] + { + get => AdditionalProperties[key]; + set => AdditionalProperties[key] = value; + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/AppRole.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/AppRole.Serialization.cs new file mode 100644 index 0000000000000..c8c1cd27cff03 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/AppRole.Serialization.cs @@ -0,0 +1,137 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class AppRole : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Id != null) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } + if (AllowedMemberTypes != null) + { + writer.WritePropertyName("allowedMemberTypes"); + writer.WriteStartArray(); + foreach (var item in AllowedMemberTypes) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Description != null) + { + writer.WritePropertyName("description"); + writer.WriteStringValue(Description); + } + if (DisplayName != null) + { + writer.WritePropertyName("displayName"); + writer.WriteStringValue(DisplayName); + } + if (IsEnabled != null) + { + writer.WritePropertyName("isEnabled"); + writer.WriteBooleanValue(IsEnabled.Value); + } + if (Value != null) + { + writer.WritePropertyName("value"); + writer.WriteStringValue(Value); + } + writer.WriteEndObject(); + } + + internal static AppRole DeserializeAppRole(JsonElement element) + { + string id = default; + IList allowedMemberTypes = default; + string description = default; + string displayName = default; + bool? isEnabled = default; + string value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("allowedMemberTypes")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + allowedMemberTypes = array; + continue; + } + if (property.NameEquals("description")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("displayName")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("isEnabled")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isEnabled = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + value = property.Value.GetString(); + continue; + } + } + return new AppRole(id, allowedMemberTypes, description, displayName, isEnabled, value); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/AppRole.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/AppRole.cs new file mode 100644 index 0000000000000..a75bfce70aaeb --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/AppRole.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// The AppRole. + public partial class AppRole + { + /// Initializes a new instance of AppRole. + public AppRole() + { + } + + /// Initializes a new instance of AppRole. + /// Unique role identifier inside the appRoles collection. + /// Specifies whether this app role definition can be assigned to users and groups by setting to 'User', or to other applications (that are accessing this application in daemon service scenarios) by setting to 'Application', or to both. + /// Permission help text that appears in the admin app assignment and consent experiences. + /// Display name for the permission that appears in the admin consent and app assignment experiences. + /// When creating or updating a role definition, this must be set to true (which is the default). To delete a role, this must first be set to false. At that point, in a subsequent call, this role may be removed. + /// Specifies the value of the roles claim that the application should expect in the authentication and access tokens. + internal AppRole(string id, IList allowedMemberTypes, string description, string displayName, bool? isEnabled, string value) + { + Id = id; + AllowedMemberTypes = allowedMemberTypes; + Description = description; + DisplayName = displayName; + IsEnabled = isEnabled; + Value = value; + } + + /// Unique role identifier inside the appRoles collection. + public string Id { get; set; } + /// Specifies whether this app role definition can be assigned to users and groups by setting to 'User', or to other applications (that are accessing this application in daemon service scenarios) by setting to 'Application', or to both. + public IList AllowedMemberTypes { get; set; } + /// Permission help text that appears in the admin app assignment and consent experiences. + public string Description { get; set; } + /// Display name for the permission that appears in the admin consent and app assignment experiences. + public string DisplayName { get; set; } + /// When creating or updating a role definition, this must be set to true (which is the default). To delete a role, this must first be set to false. At that point, in a subsequent call, this role may be removed. + public bool? IsEnabled { get; set; } + /// Specifies the value of the roles claim that the application should expect in the authentication and access tokens. + public string Value { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/Application.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/Application.Serialization.cs new file mode 100644 index 0000000000000..f311ff50e9f46 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/Application.Serialization.cs @@ -0,0 +1,519 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class Application + { + internal static Application DeserializeApplication(JsonElement element) + { + string appId = default; + bool? allowGuestsSignIn = default; + bool? allowPassthroughUsers = default; + string appLogoUrl = default; + IReadOnlyList appRoles = default; + IReadOnlyList appPermissions = default; + bool? availableToOtherTenants = default; + string displayName = default; + string errorUrl = default; + GroupMembershipClaimTypes? groupMembershipClaims = default; + string homepage = default; + IReadOnlyList identifierUris = default; + InformationalUrl informationalUrls = default; + bool? isDeviceOnlyAuthSupported = default; + IReadOnlyList keyCredentials = default; + IReadOnlyList knownClientApplications = default; + string logoutUrl = default; + bool? oauth2AllowImplicitFlow = default; + bool? oauth2AllowUrlPathMatching = default; + IReadOnlyList oauth2Permissions = default; + bool? oauth2RequirePostResponse = default; + IReadOnlyList orgRestrictions = default; + OptionalClaims optionalClaims = default; + IReadOnlyList passwordCredentials = default; + IReadOnlyList preAuthorizedApplications = default; + bool? publicClient = default; + string publisherDomain = default; + IReadOnlyList replyUrls = default; + IReadOnlyList requiredResourceAccess = default; + string samlMetadataUrl = default; + string signInAudience = default; + string wwwHomepage = default; + string objectId = default; + string objectType = default; + DateTimeOffset? deletionTimestamp = default; + IReadOnlyDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("appId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + appId = property.Value.GetString(); + continue; + } + if (property.NameEquals("allowGuestsSignIn")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + allowGuestsSignIn = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("allowPassthroughUsers")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + allowPassthroughUsers = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("appLogoUrl")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + appLogoUrl = property.Value.GetString(); + continue; + } + if (property.NameEquals("appRoles")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(AppRole.DeserializeAppRole(item)); + } + } + appRoles = array; + continue; + } + if (property.NameEquals("appPermissions")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + appPermissions = array; + continue; + } + if (property.NameEquals("availableToOtherTenants")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + availableToOtherTenants = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("displayName")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("errorUrl")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + errorUrl = property.Value.GetString(); + continue; + } + if (property.NameEquals("groupMembershipClaims")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + groupMembershipClaims = new GroupMembershipClaimTypes(property.Value.GetString()); + continue; + } + if (property.NameEquals("homepage")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + homepage = property.Value.GetString(); + continue; + } + if (property.NameEquals("identifierUris")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + identifierUris = array; + continue; + } + if (property.NameEquals("informationalUrls")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + informationalUrls = InformationalUrl.DeserializeInformationalUrl(property.Value); + continue; + } + if (property.NameEquals("isDeviceOnlyAuthSupported")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isDeviceOnlyAuthSupported = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("keyCredentials")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(KeyCredential.DeserializeKeyCredential(item)); + } + } + keyCredentials = array; + continue; + } + if (property.NameEquals("knownClientApplications")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + knownClientApplications = array; + continue; + } + if (property.NameEquals("logoutUrl")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + logoutUrl = property.Value.GetString(); + continue; + } + if (property.NameEquals("oauth2AllowImplicitFlow")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + oauth2AllowImplicitFlow = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("oauth2AllowUrlPathMatching")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + oauth2AllowUrlPathMatching = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("oauth2Permissions")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(OAuth2Permission.DeserializeOAuth2Permission(item)); + } + } + oauth2Permissions = array; + continue; + } + if (property.NameEquals("oauth2RequirePostResponse")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + oauth2RequirePostResponse = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("orgRestrictions")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + orgRestrictions = array; + continue; + } + if (property.NameEquals("optionalClaims")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + optionalClaims = OptionalClaims.DeserializeOptionalClaims(property.Value); + continue; + } + if (property.NameEquals("passwordCredentials")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(PasswordCredential.DeserializePasswordCredential(item)); + } + } + passwordCredentials = array; + continue; + } + if (property.NameEquals("preAuthorizedApplications")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(PreAuthorizedApplication.DeserializePreAuthorizedApplication(item)); + } + } + preAuthorizedApplications = array; + continue; + } + if (property.NameEquals("publicClient")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + publicClient = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("publisherDomain")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + publisherDomain = property.Value.GetString(); + continue; + } + if (property.NameEquals("replyUrls")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + replyUrls = array; + continue; + } + if (property.NameEquals("requiredResourceAccess")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(Models.RequiredResourceAccess.DeserializeRequiredResourceAccess(item)); + } + } + requiredResourceAccess = array; + continue; + } + if (property.NameEquals("samlMetadataUrl")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + samlMetadataUrl = property.Value.GetString(); + continue; + } + if (property.NameEquals("signInAudience")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + signInAudience = property.Value.GetString(); + continue; + } + if (property.NameEquals("wwwHomepage")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + wwwHomepage = property.Value.GetString(); + continue; + } + if (property.NameEquals("objectId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + objectId = property.Value.GetString(); + continue; + } + if (property.NameEquals("objectType")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + objectType = property.Value.GetString(); + continue; + } + if (property.NameEquals("deletionTimestamp")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + deletionTimestamp = property.Value.GetDateTimeOffset("O"); + continue; + } + additionalPropertiesDictionary ??= new Dictionary(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + additionalPropertiesDictionary.Add(property.Name, null); + } + else + { + additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); + } + } + additionalProperties = additionalPropertiesDictionary; + return new Application(objectId, objectType, deletionTimestamp, additionalProperties, appId, allowGuestsSignIn, allowPassthroughUsers, appLogoUrl, appRoles, appPermissions, availableToOtherTenants, displayName, errorUrl, groupMembershipClaims, homepage, identifierUris, informationalUrls, isDeviceOnlyAuthSupported, keyCredentials, knownClientApplications, logoutUrl, oauth2AllowImplicitFlow, oauth2AllowUrlPathMatching, oauth2Permissions, oauth2RequirePostResponse, orgRestrictions, optionalClaims, passwordCredentials, preAuthorizedApplications, publicClient, publisherDomain, replyUrls, requiredResourceAccess, samlMetadataUrl, signInAudience, wwwHomepage); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/Application.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/Application.cs new file mode 100644 index 0000000000000..7642c4a29ea78 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/Application.cs @@ -0,0 +1,161 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Active Directory application information. + public partial class Application : DirectoryObject + { + /// Initializes a new instance of Application. + internal Application() + { + ObjectType = "Application"; + } + + /// Initializes a new instance of Application. + /// The object ID. + /// The object type. + /// The time at which the directory object was deleted. + /// . + /// The application ID. + /// A property on the application to indicate if the application accepts other IDPs or not or partially accepts. + /// Indicates that the application supports pass through users who have no presence in the resource tenant. + /// The url for the application logo image stored in a CDN. + /// The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals. + /// The application permissions. + /// Whether the application is available to other tenants. + /// The display name of the application. + /// A URL provided by the author of the application to report errors when using the application. + /// Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects. + /// The home page of the application. + /// A collection of URIs for the application. + /// URLs with more information about the application. + /// Specifies whether this application supports device authentication without a user. The default is false. + /// A collection of KeyCredential objects. + /// Client applications that are tied to this resource application. Consent to any of the known client applications will result in implicit consent to the resource application through a combined consent dialog (showing the OAuth permission scopes required by the client and the resource). + /// the url of the logout page. + /// Whether to allow implicit grant flow for OAuth2. + /// Specifies whether during a token Request Azure AD will allow path matching of the redirect URI against the applications collection of replyURLs. The default is false. + /// The collection of OAuth 2.0 permission scopes that the web API (resource) application exposes to client applications. These permission scopes may be granted to client applications during consent. + /// Specifies whether, as part of OAuth 2.0 token requests, Azure AD will allow POST requests, as opposed to GET requests. The default is false, which specifies that only GET requests will be allowed. + /// A list of tenants allowed to access application. + /// Specifying the claims to be included in the token. + /// A collection of PasswordCredential objects. + /// list of pre-authorized applications. + /// Specifies whether this application is a public client (such as an installed application running on a mobile device). Default is false. + /// Reliable domain which can be used to identify an application. + /// A collection of reply URLs for the application. + /// Specifies resources that this application requires access to and the set of OAuth permission scopes and application roles that it needs under each of those resources. This pre-configuration of required resource access drives the consent experience. + /// The URL to the SAML metadata for the application. + /// Audience for signing in to the application (AzureADMyOrganization, AzureADAllOrganizations, AzureADAndMicrosoftAccounts). + /// The primary Web page. + internal Application(string objectId, string objectType, DateTimeOffset? deletionTimestamp, IReadOnlyDictionary additionalProperties, string appId, bool? allowGuestsSignIn, bool? allowPassthroughUsers, string appLogoUrl, IReadOnlyList appRoles, IReadOnlyList appPermissions, bool? availableToOtherTenants, string displayName, string errorUrl, GroupMembershipClaimTypes? groupMembershipClaims, string homepage, IReadOnlyList identifierUris, InformationalUrl informationalUrls, bool? isDeviceOnlyAuthSupported, IReadOnlyList keyCredentials, IReadOnlyList knownClientApplications, string logoutUrl, bool? oauth2AllowImplicitFlow, bool? oauth2AllowUrlPathMatching, IReadOnlyList oauth2Permissions, bool? oauth2RequirePostResponse, IReadOnlyList orgRestrictions, OptionalClaims optionalClaims, IReadOnlyList passwordCredentials, IReadOnlyList preAuthorizedApplications, bool? publicClient, string publisherDomain, IReadOnlyList replyUrls, IReadOnlyList requiredResourceAccess, string samlMetadataUrl, string signInAudience, string wwwHomepage) : base(objectId, objectType, deletionTimestamp, additionalProperties) + { + AppId = appId; + AllowGuestsSignIn = allowGuestsSignIn; + AllowPassthroughUsers = allowPassthroughUsers; + AppLogoUrl = appLogoUrl; + AppRoles = appRoles; + AppPermissions = appPermissions; + AvailableToOtherTenants = availableToOtherTenants; + DisplayName = displayName; + ErrorUrl = errorUrl; + GroupMembershipClaims = groupMembershipClaims; + Homepage = homepage; + IdentifierUris = identifierUris; + InformationalUrls = informationalUrls; + IsDeviceOnlyAuthSupported = isDeviceOnlyAuthSupported; + KeyCredentials = keyCredentials; + KnownClientApplications = knownClientApplications; + LogoutUrl = logoutUrl; + Oauth2AllowImplicitFlow = oauth2AllowImplicitFlow; + Oauth2AllowUrlPathMatching = oauth2AllowUrlPathMatching; + Oauth2Permissions = oauth2Permissions; + Oauth2RequirePostResponse = oauth2RequirePostResponse; + OrgRestrictions = orgRestrictions; + OptionalClaims = optionalClaims; + PasswordCredentials = passwordCredentials; + PreAuthorizedApplications = preAuthorizedApplications; + PublicClient = publicClient; + PublisherDomain = publisherDomain; + ReplyUrls = replyUrls; + RequiredResourceAccess = requiredResourceAccess; + SamlMetadataUrl = samlMetadataUrl; + SignInAudience = signInAudience; + WwwHomepage = wwwHomepage; + ObjectType = objectType ?? "Application"; + } + + /// The application ID. + public string AppId { get; } + /// A property on the application to indicate if the application accepts other IDPs or not or partially accepts. + public bool? AllowGuestsSignIn { get; } + /// Indicates that the application supports pass through users who have no presence in the resource tenant. + public bool? AllowPassthroughUsers { get; } + /// The url for the application logo image stored in a CDN. + public string AppLogoUrl { get; } + /// The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals. + public IReadOnlyList AppRoles { get; } + /// The application permissions. + public IReadOnlyList AppPermissions { get; } + /// Whether the application is available to other tenants. + public bool? AvailableToOtherTenants { get; } + /// The display name of the application. + public string DisplayName { get; } + /// A URL provided by the author of the application to report errors when using the application. + public string ErrorUrl { get; } + /// Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects. + public GroupMembershipClaimTypes? GroupMembershipClaims { get; } + /// The home page of the application. + public string Homepage { get; } + /// A collection of URIs for the application. + public IReadOnlyList IdentifierUris { get; } + /// URLs with more information about the application. + public InformationalUrl InformationalUrls { get; } + /// Specifies whether this application supports device authentication without a user. The default is false. + public bool? IsDeviceOnlyAuthSupported { get; } + /// A collection of KeyCredential objects. + public IReadOnlyList KeyCredentials { get; } + /// Client applications that are tied to this resource application. Consent to any of the known client applications will result in implicit consent to the resource application through a combined consent dialog (showing the OAuth permission scopes required by the client and the resource). + public IReadOnlyList KnownClientApplications { get; } + /// the url of the logout page. + public string LogoutUrl { get; } + /// Whether to allow implicit grant flow for OAuth2. + public bool? Oauth2AllowImplicitFlow { get; } + /// Specifies whether during a token Request Azure AD will allow path matching of the redirect URI against the applications collection of replyURLs. The default is false. + public bool? Oauth2AllowUrlPathMatching { get; } + /// The collection of OAuth 2.0 permission scopes that the web API (resource) application exposes to client applications. These permission scopes may be granted to client applications during consent. + public IReadOnlyList Oauth2Permissions { get; } + /// Specifies whether, as part of OAuth 2.0 token requests, Azure AD will allow POST requests, as opposed to GET requests. The default is false, which specifies that only GET requests will be allowed. + public bool? Oauth2RequirePostResponse { get; } + /// A list of tenants allowed to access application. + public IReadOnlyList OrgRestrictions { get; } + /// Specifying the claims to be included in the token. + public OptionalClaims OptionalClaims { get; } + /// A collection of PasswordCredential objects. + public IReadOnlyList PasswordCredentials { get; } + /// list of pre-authorized applications. + public IReadOnlyList PreAuthorizedApplications { get; } + /// Specifies whether this application is a public client (such as an installed application running on a mobile device). Default is false. + public bool? PublicClient { get; } + /// Reliable domain which can be used to identify an application. + public string PublisherDomain { get; } + /// A collection of reply URLs for the application. + public IReadOnlyList ReplyUrls { get; } + /// Specifies resources that this application requires access to and the set of OAuth permission scopes and application roles that it needs under each of those resources. This pre-configuration of required resource access drives the consent experience. + public IReadOnlyList RequiredResourceAccess { get; } + /// The URL to the SAML metadata for the application. + public string SamlMetadataUrl { get; } + /// Audience for signing in to the application (AzureADMyOrganization, AzureADAllOrganizations, AzureADAndMicrosoftAccounts). + public string SignInAudience { get; } + /// The primary Web page. + public string WwwHomepage { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationBase.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationBase.Serialization.cs new file mode 100644 index 0000000000000..10bd2e6af3442 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationBase.Serialization.cs @@ -0,0 +1,216 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class ApplicationBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (AllowGuestsSignIn != null) + { + writer.WritePropertyName("allowGuestsSignIn"); + writer.WriteBooleanValue(AllowGuestsSignIn.Value); + } + if (AllowPassthroughUsers != null) + { + writer.WritePropertyName("allowPassthroughUsers"); + writer.WriteBooleanValue(AllowPassthroughUsers.Value); + } + if (AppLogoUrl != null) + { + writer.WritePropertyName("appLogoUrl"); + writer.WriteStringValue(AppLogoUrl); + } + if (AppRoles != null) + { + writer.WritePropertyName("appRoles"); + writer.WriteStartArray(); + foreach (var item in AppRoles) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (AppPermissions != null) + { + writer.WritePropertyName("appPermissions"); + writer.WriteStartArray(); + foreach (var item in AppPermissions) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (AvailableToOtherTenants != null) + { + writer.WritePropertyName("availableToOtherTenants"); + writer.WriteBooleanValue(AvailableToOtherTenants.Value); + } + if (ErrorUrl != null) + { + writer.WritePropertyName("errorUrl"); + writer.WriteStringValue(ErrorUrl); + } + if (GroupMembershipClaims != null) + { + writer.WritePropertyName("groupMembershipClaims"); + writer.WriteStringValue(GroupMembershipClaims.Value.ToString()); + } + if (Homepage != null) + { + writer.WritePropertyName("homepage"); + writer.WriteStringValue(Homepage); + } + if (InformationalUrls != null) + { + writer.WritePropertyName("informationalUrls"); + writer.WriteObjectValue(InformationalUrls); + } + if (IsDeviceOnlyAuthSupported != null) + { + writer.WritePropertyName("isDeviceOnlyAuthSupported"); + writer.WriteBooleanValue(IsDeviceOnlyAuthSupported.Value); + } + if (KeyCredentials != null) + { + writer.WritePropertyName("keyCredentials"); + writer.WriteStartArray(); + foreach (var item in KeyCredentials) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (KnownClientApplications != null) + { + writer.WritePropertyName("knownClientApplications"); + writer.WriteStartArray(); + foreach (var item in KnownClientApplications) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (LogoutUrl != null) + { + writer.WritePropertyName("logoutUrl"); + writer.WriteStringValue(LogoutUrl); + } + if (Oauth2AllowImplicitFlow != null) + { + writer.WritePropertyName("oauth2AllowImplicitFlow"); + writer.WriteBooleanValue(Oauth2AllowImplicitFlow.Value); + } + if (Oauth2AllowUrlPathMatching != null) + { + writer.WritePropertyName("oauth2AllowUrlPathMatching"); + writer.WriteBooleanValue(Oauth2AllowUrlPathMatching.Value); + } + if (Oauth2Permissions != null) + { + writer.WritePropertyName("oauth2Permissions"); + writer.WriteStartArray(); + foreach (var item in Oauth2Permissions) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Oauth2RequirePostResponse != null) + { + writer.WritePropertyName("oauth2RequirePostResponse"); + writer.WriteBooleanValue(Oauth2RequirePostResponse.Value); + } + if (OrgRestrictions != null) + { + writer.WritePropertyName("orgRestrictions"); + writer.WriteStartArray(); + foreach (var item in OrgRestrictions) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (OptionalClaims != null) + { + writer.WritePropertyName("optionalClaims"); + writer.WriteObjectValue(OptionalClaims); + } + if (PasswordCredentials != null) + { + writer.WritePropertyName("passwordCredentials"); + writer.WriteStartArray(); + foreach (var item in PasswordCredentials) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (PreAuthorizedApplications != null) + { + writer.WritePropertyName("preAuthorizedApplications"); + writer.WriteStartArray(); + foreach (var item in PreAuthorizedApplications) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (PublicClient != null) + { + writer.WritePropertyName("publicClient"); + writer.WriteBooleanValue(PublicClient.Value); + } + if (PublisherDomain != null) + { + writer.WritePropertyName("publisherDomain"); + writer.WriteStringValue(PublisherDomain); + } + if (ReplyUrls != null) + { + writer.WritePropertyName("replyUrls"); + writer.WriteStartArray(); + foreach (var item in ReplyUrls) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (RequiredResourceAccess != null) + { + writer.WritePropertyName("requiredResourceAccess"); + writer.WriteStartArray(); + foreach (var item in RequiredResourceAccess) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (SamlMetadataUrl != null) + { + writer.WritePropertyName("samlMetadataUrl"); + writer.WriteStringValue(SamlMetadataUrl); + } + if (SignInAudience != null) + { + writer.WritePropertyName("signInAudience"); + writer.WriteStringValue(SignInAudience); + } + if (WwwHomepage != null) + { + writer.WritePropertyName("wwwHomepage"); + writer.WriteStringValue(WwwHomepage); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationBase.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationBase.cs new file mode 100644 index 0000000000000..40bc512b5bed9 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationBase.cs @@ -0,0 +1,142 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Active Directive Application common properties shared among GET, POST and PATCH. + public partial class ApplicationBase + { + /// Initializes a new instance of ApplicationBase. + public ApplicationBase() + { + } + + /// Initializes a new instance of ApplicationBase. + /// A property on the application to indicate if the application accepts other IDPs or not or partially accepts. + /// Indicates that the application supports pass through users who have no presence in the resource tenant. + /// The url for the application logo image stored in a CDN. + /// The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals. + /// The application permissions. + /// Whether the application is available to other tenants. + /// A URL provided by the author of the application to report errors when using the application. + /// Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects. + /// The home page of the application. + /// URLs with more information about the application. + /// Specifies whether this application supports device authentication without a user. The default is false. + /// A collection of KeyCredential objects. + /// Client applications that are tied to this resource application. Consent to any of the known client applications will result in implicit consent to the resource application through a combined consent dialog (showing the OAuth permission scopes required by the client and the resource). + /// the url of the logout page. + /// Whether to allow implicit grant flow for OAuth2. + /// Specifies whether during a token Request Azure AD will allow path matching of the redirect URI against the applications collection of replyURLs. The default is false. + /// The collection of OAuth 2.0 permission scopes that the web API (resource) application exposes to client applications. These permission scopes may be granted to client applications during consent. + /// Specifies whether, as part of OAuth 2.0 token requests, Azure AD will allow POST requests, as opposed to GET requests. The default is false, which specifies that only GET requests will be allowed. + /// A list of tenants allowed to access application. + /// Specifying the claims to be included in the token. + /// A collection of PasswordCredential objects. + /// list of pre-authorized applications. + /// Specifies whether this application is a public client (such as an installed application running on a mobile device). Default is false. + /// Reliable domain which can be used to identify an application. + /// A collection of reply URLs for the application. + /// Specifies resources that this application requires access to and the set of OAuth permission scopes and application roles that it needs under each of those resources. This pre-configuration of required resource access drives the consent experience. + /// The URL to the SAML metadata for the application. + /// Audience for signing in to the application (AzureADMyOrganization, AzureADAllOrganizations, AzureADAndMicrosoftAccounts). + /// The primary Web page. + internal ApplicationBase(bool? allowGuestsSignIn, bool? allowPassthroughUsers, string appLogoUrl, IList appRoles, IList appPermissions, bool? availableToOtherTenants, string errorUrl, GroupMembershipClaimTypes? groupMembershipClaims, string homepage, InformationalUrl informationalUrls, bool? isDeviceOnlyAuthSupported, IList keyCredentials, IList knownClientApplications, string logoutUrl, bool? oauth2AllowImplicitFlow, bool? oauth2AllowUrlPathMatching, IList oauth2Permissions, bool? oauth2RequirePostResponse, IList orgRestrictions, OptionalClaims optionalClaims, IList passwordCredentials, IList preAuthorizedApplications, bool? publicClient, string publisherDomain, IList replyUrls, IList requiredResourceAccess, string samlMetadataUrl, string signInAudience, string wwwHomepage) + { + AllowGuestsSignIn = allowGuestsSignIn; + AllowPassthroughUsers = allowPassthroughUsers; + AppLogoUrl = appLogoUrl; + AppRoles = appRoles; + AppPermissions = appPermissions; + AvailableToOtherTenants = availableToOtherTenants; + ErrorUrl = errorUrl; + GroupMembershipClaims = groupMembershipClaims; + Homepage = homepage; + InformationalUrls = informationalUrls; + IsDeviceOnlyAuthSupported = isDeviceOnlyAuthSupported; + KeyCredentials = keyCredentials; + KnownClientApplications = knownClientApplications; + LogoutUrl = logoutUrl; + Oauth2AllowImplicitFlow = oauth2AllowImplicitFlow; + Oauth2AllowUrlPathMatching = oauth2AllowUrlPathMatching; + Oauth2Permissions = oauth2Permissions; + Oauth2RequirePostResponse = oauth2RequirePostResponse; + OrgRestrictions = orgRestrictions; + OptionalClaims = optionalClaims; + PasswordCredentials = passwordCredentials; + PreAuthorizedApplications = preAuthorizedApplications; + PublicClient = publicClient; + PublisherDomain = publisherDomain; + ReplyUrls = replyUrls; + RequiredResourceAccess = requiredResourceAccess; + SamlMetadataUrl = samlMetadataUrl; + SignInAudience = signInAudience; + WwwHomepage = wwwHomepage; + } + + /// A property on the application to indicate if the application accepts other IDPs or not or partially accepts. + public bool? AllowGuestsSignIn { get; set; } + /// Indicates that the application supports pass through users who have no presence in the resource tenant. + public bool? AllowPassthroughUsers { get; set; } + /// The url for the application logo image stored in a CDN. + public string AppLogoUrl { get; set; } + /// The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals. + public IList AppRoles { get; set; } + /// The application permissions. + public IList AppPermissions { get; set; } + /// Whether the application is available to other tenants. + public bool? AvailableToOtherTenants { get; set; } + /// A URL provided by the author of the application to report errors when using the application. + public string ErrorUrl { get; set; } + /// Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects. + public GroupMembershipClaimTypes? GroupMembershipClaims { get; set; } + /// The home page of the application. + public string Homepage { get; set; } + /// URLs with more information about the application. + public InformationalUrl InformationalUrls { get; set; } + /// Specifies whether this application supports device authentication without a user. The default is false. + public bool? IsDeviceOnlyAuthSupported { get; set; } + /// A collection of KeyCredential objects. + public IList KeyCredentials { get; set; } + /// Client applications that are tied to this resource application. Consent to any of the known client applications will result in implicit consent to the resource application through a combined consent dialog (showing the OAuth permission scopes required by the client and the resource). + public IList KnownClientApplications { get; set; } + /// the url of the logout page. + public string LogoutUrl { get; set; } + /// Whether to allow implicit grant flow for OAuth2. + public bool? Oauth2AllowImplicitFlow { get; set; } + /// Specifies whether during a token Request Azure AD will allow path matching of the redirect URI against the applications collection of replyURLs. The default is false. + public bool? Oauth2AllowUrlPathMatching { get; set; } + /// The collection of OAuth 2.0 permission scopes that the web API (resource) application exposes to client applications. These permission scopes may be granted to client applications during consent. + public IList Oauth2Permissions { get; set; } + /// Specifies whether, as part of OAuth 2.0 token requests, Azure AD will allow POST requests, as opposed to GET requests. The default is false, which specifies that only GET requests will be allowed. + public bool? Oauth2RequirePostResponse { get; set; } + /// A list of tenants allowed to access application. + public IList OrgRestrictions { get; set; } + /// Specifying the claims to be included in the token. + public OptionalClaims OptionalClaims { get; set; } + /// A collection of PasswordCredential objects. + public IList PasswordCredentials { get; set; } + /// list of pre-authorized applications. + public IList PreAuthorizedApplications { get; set; } + /// Specifies whether this application is a public client (such as an installed application running on a mobile device). Default is false. + public bool? PublicClient { get; set; } + /// Reliable domain which can be used to identify an application. + public string PublisherDomain { get; set; } + /// A collection of reply URLs for the application. + public IList ReplyUrls { get; set; } + /// Specifies resources that this application requires access to and the set of OAuth permission scopes and application roles that it needs under each of those resources. This pre-configuration of required resource access drives the consent experience. + public IList RequiredResourceAccess { get; set; } + /// The URL to the SAML metadata for the application. + public string SamlMetadataUrl { get; set; } + /// Audience for signing in to the application (AzureADMyOrganization, AzureADAllOrganizations, AzureADAndMicrosoftAccounts). + public string SignInAudience { get; set; } + /// The primary Web page. + public string WwwHomepage { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationCreateParameters.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationCreateParameters.Serialization.cs new file mode 100644 index 0000000000000..7e8aa700eb786 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationCreateParameters.Serialization.cs @@ -0,0 +1,228 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class ApplicationCreateParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("displayName"); + writer.WriteStringValue(DisplayName); + if (IdentifierUris != null) + { + writer.WritePropertyName("identifierUris"); + writer.WriteStartArray(); + foreach (var item in IdentifierUris) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (AllowGuestsSignIn != null) + { + writer.WritePropertyName("allowGuestsSignIn"); + writer.WriteBooleanValue(AllowGuestsSignIn.Value); + } + if (AllowPassthroughUsers != null) + { + writer.WritePropertyName("allowPassthroughUsers"); + writer.WriteBooleanValue(AllowPassthroughUsers.Value); + } + if (AppLogoUrl != null) + { + writer.WritePropertyName("appLogoUrl"); + writer.WriteStringValue(AppLogoUrl); + } + if (AppRoles != null) + { + writer.WritePropertyName("appRoles"); + writer.WriteStartArray(); + foreach (var item in AppRoles) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (AppPermissions != null) + { + writer.WritePropertyName("appPermissions"); + writer.WriteStartArray(); + foreach (var item in AppPermissions) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (AvailableToOtherTenants != null) + { + writer.WritePropertyName("availableToOtherTenants"); + writer.WriteBooleanValue(AvailableToOtherTenants.Value); + } + if (ErrorUrl != null) + { + writer.WritePropertyName("errorUrl"); + writer.WriteStringValue(ErrorUrl); + } + if (GroupMembershipClaims != null) + { + writer.WritePropertyName("groupMembershipClaims"); + writer.WriteStringValue(GroupMembershipClaims.Value.ToString()); + } + if (Homepage != null) + { + writer.WritePropertyName("homepage"); + writer.WriteStringValue(Homepage); + } + if (InformationalUrls != null) + { + writer.WritePropertyName("informationalUrls"); + writer.WriteObjectValue(InformationalUrls); + } + if (IsDeviceOnlyAuthSupported != null) + { + writer.WritePropertyName("isDeviceOnlyAuthSupported"); + writer.WriteBooleanValue(IsDeviceOnlyAuthSupported.Value); + } + if (KeyCredentials != null) + { + writer.WritePropertyName("keyCredentials"); + writer.WriteStartArray(); + foreach (var item in KeyCredentials) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (KnownClientApplications != null) + { + writer.WritePropertyName("knownClientApplications"); + writer.WriteStartArray(); + foreach (var item in KnownClientApplications) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (LogoutUrl != null) + { + writer.WritePropertyName("logoutUrl"); + writer.WriteStringValue(LogoutUrl); + } + if (Oauth2AllowImplicitFlow != null) + { + writer.WritePropertyName("oauth2AllowImplicitFlow"); + writer.WriteBooleanValue(Oauth2AllowImplicitFlow.Value); + } + if (Oauth2AllowUrlPathMatching != null) + { + writer.WritePropertyName("oauth2AllowUrlPathMatching"); + writer.WriteBooleanValue(Oauth2AllowUrlPathMatching.Value); + } + if (Oauth2Permissions != null) + { + writer.WritePropertyName("oauth2Permissions"); + writer.WriteStartArray(); + foreach (var item in Oauth2Permissions) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Oauth2RequirePostResponse != null) + { + writer.WritePropertyName("oauth2RequirePostResponse"); + writer.WriteBooleanValue(Oauth2RequirePostResponse.Value); + } + if (OrgRestrictions != null) + { + writer.WritePropertyName("orgRestrictions"); + writer.WriteStartArray(); + foreach (var item in OrgRestrictions) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (OptionalClaims != null) + { + writer.WritePropertyName("optionalClaims"); + writer.WriteObjectValue(OptionalClaims); + } + if (PasswordCredentials != null) + { + writer.WritePropertyName("passwordCredentials"); + writer.WriteStartArray(); + foreach (var item in PasswordCredentials) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (PreAuthorizedApplications != null) + { + writer.WritePropertyName("preAuthorizedApplications"); + writer.WriteStartArray(); + foreach (var item in PreAuthorizedApplications) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (PublicClient != null) + { + writer.WritePropertyName("publicClient"); + writer.WriteBooleanValue(PublicClient.Value); + } + if (PublisherDomain != null) + { + writer.WritePropertyName("publisherDomain"); + writer.WriteStringValue(PublisherDomain); + } + if (ReplyUrls != null) + { + writer.WritePropertyName("replyUrls"); + writer.WriteStartArray(); + foreach (var item in ReplyUrls) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (RequiredResourceAccess != null) + { + writer.WritePropertyName("requiredResourceAccess"); + writer.WriteStartArray(); + foreach (var item in RequiredResourceAccess) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (SamlMetadataUrl != null) + { + writer.WritePropertyName("samlMetadataUrl"); + writer.WriteStringValue(SamlMetadataUrl); + } + if (SignInAudience != null) + { + writer.WritePropertyName("signInAudience"); + writer.WriteStringValue(SignInAudience); + } + if (WwwHomepage != null) + { + writer.WritePropertyName("wwwHomepage"); + writer.WriteStringValue(WwwHomepage); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationCreateParameters.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationCreateParameters.cs new file mode 100644 index 0000000000000..9b407eddc1799 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationCreateParameters.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Request parameters for creating a new application. + public partial class ApplicationCreateParameters : ApplicationBase + { + /// Initializes a new instance of ApplicationCreateParameters. + /// The display name of the application. + public ApplicationCreateParameters(string displayName) + { + if (displayName == null) + { + throw new ArgumentNullException(nameof(displayName)); + } + + DisplayName = displayName; + } + + /// Initializes a new instance of ApplicationCreateParameters. + /// A property on the application to indicate if the application accepts other IDPs or not or partially accepts. + /// Indicates that the application supports pass through users who have no presence in the resource tenant. + /// The url for the application logo image stored in a CDN. + /// The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals. + /// The application permissions. + /// Whether the application is available to other tenants. + /// A URL provided by the author of the application to report errors when using the application. + /// Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects. + /// The home page of the application. + /// URLs with more information about the application. + /// Specifies whether this application supports device authentication without a user. The default is false. + /// A collection of KeyCredential objects. + /// Client applications that are tied to this resource application. Consent to any of the known client applications will result in implicit consent to the resource application through a combined consent dialog (showing the OAuth permission scopes required by the client and the resource). + /// the url of the logout page. + /// Whether to allow implicit grant flow for OAuth2. + /// Specifies whether during a token Request Azure AD will allow path matching of the redirect URI against the applications collection of replyURLs. The default is false. + /// The collection of OAuth 2.0 permission scopes that the web API (resource) application exposes to client applications. These permission scopes may be granted to client applications during consent. + /// Specifies whether, as part of OAuth 2.0 token requests, Azure AD will allow POST requests, as opposed to GET requests. The default is false, which specifies that only GET requests will be allowed. + /// A list of tenants allowed to access application. + /// Specifying the claims to be included in the token. + /// A collection of PasswordCredential objects. + /// list of pre-authorized applications. + /// Specifies whether this application is a public client (such as an installed application running on a mobile device). Default is false. + /// Reliable domain which can be used to identify an application. + /// A collection of reply URLs for the application. + /// Specifies resources that this application requires access to and the set of OAuth permission scopes and application roles that it needs under each of those resources. This pre-configuration of required resource access drives the consent experience. + /// The URL to the SAML metadata for the application. + /// Audience for signing in to the application (AzureADMyOrganization, AzureADAllOrganizations, AzureADAndMicrosoftAccounts). + /// The primary Web page. + /// The display name of the application. + /// A collection of URIs for the application. + internal ApplicationCreateParameters(bool? allowGuestsSignIn, bool? allowPassthroughUsers, string appLogoUrl, IList appRoles, IList appPermissions, bool? availableToOtherTenants, string errorUrl, GroupMembershipClaimTypes? groupMembershipClaims, string homepage, InformationalUrl informationalUrls, bool? isDeviceOnlyAuthSupported, IList keyCredentials, IList knownClientApplications, string logoutUrl, bool? oauth2AllowImplicitFlow, bool? oauth2AllowUrlPathMatching, IList oauth2Permissions, bool? oauth2RequirePostResponse, IList orgRestrictions, OptionalClaims optionalClaims, IList passwordCredentials, IList preAuthorizedApplications, bool? publicClient, string publisherDomain, IList replyUrls, IList requiredResourceAccess, string samlMetadataUrl, string signInAudience, string wwwHomepage, string displayName, IList identifierUris) : base(allowGuestsSignIn, allowPassthroughUsers, appLogoUrl, appRoles, appPermissions, availableToOtherTenants, errorUrl, groupMembershipClaims, homepage, informationalUrls, isDeviceOnlyAuthSupported, keyCredentials, knownClientApplications, logoutUrl, oauth2AllowImplicitFlow, oauth2AllowUrlPathMatching, oauth2Permissions, oauth2RequirePostResponse, orgRestrictions, optionalClaims, passwordCredentials, preAuthorizedApplications, publicClient, publisherDomain, replyUrls, requiredResourceAccess, samlMetadataUrl, signInAudience, wwwHomepage) + { + DisplayName = displayName; + IdentifierUris = identifierUris; + } + + /// The display name of the application. + public string DisplayName { get; } + /// A collection of URIs for the application. + public IList IdentifierUris { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationListResult.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationListResult.Serialization.cs new file mode 100644 index 0000000000000..bb5fd323e69aa --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationListResult.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class ApplicationListResult + { + internal static ApplicationListResult DeserializeApplicationListResult(JsonElement element) + { + IReadOnlyList value = default; + string odataNextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(Application.DeserializeApplication(item)); + } + } + value = array; + continue; + } + if (property.NameEquals("odata.nextLink")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + odataNextLink = property.Value.GetString(); + continue; + } + } + return new ApplicationListResult(value, odataNextLink); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationListResult.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationListResult.cs new file mode 100644 index 0000000000000..ce22065ed4bcb --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationListResult.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Application list operation result. + public partial class ApplicationListResult + { + /// Initializes a new instance of ApplicationListResult. + internal ApplicationListResult() + { + } + + /// Initializes a new instance of ApplicationListResult. + /// A collection of applications. + /// The URL to get the next set of results. + internal ApplicationListResult(IReadOnlyList value, string odataNextLink) + { + Value = value; + OdataNextLink = odataNextLink; + } + + /// A collection of applications. + public IReadOnlyList Value { get; } + /// The URL to get the next set of results. + public string OdataNextLink { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationUpdateParameters.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationUpdateParameters.Serialization.cs new file mode 100644 index 0000000000000..e99c5c3d72a82 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationUpdateParameters.Serialization.cs @@ -0,0 +1,231 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class ApplicationUpdateParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (DisplayName != null) + { + writer.WritePropertyName("displayName"); + writer.WriteStringValue(DisplayName); + } + if (IdentifierUris != null) + { + writer.WritePropertyName("identifierUris"); + writer.WriteStartArray(); + foreach (var item in IdentifierUris) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (AllowGuestsSignIn != null) + { + writer.WritePropertyName("allowGuestsSignIn"); + writer.WriteBooleanValue(AllowGuestsSignIn.Value); + } + if (AllowPassthroughUsers != null) + { + writer.WritePropertyName("allowPassthroughUsers"); + writer.WriteBooleanValue(AllowPassthroughUsers.Value); + } + if (AppLogoUrl != null) + { + writer.WritePropertyName("appLogoUrl"); + writer.WriteStringValue(AppLogoUrl); + } + if (AppRoles != null) + { + writer.WritePropertyName("appRoles"); + writer.WriteStartArray(); + foreach (var item in AppRoles) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (AppPermissions != null) + { + writer.WritePropertyName("appPermissions"); + writer.WriteStartArray(); + foreach (var item in AppPermissions) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (AvailableToOtherTenants != null) + { + writer.WritePropertyName("availableToOtherTenants"); + writer.WriteBooleanValue(AvailableToOtherTenants.Value); + } + if (ErrorUrl != null) + { + writer.WritePropertyName("errorUrl"); + writer.WriteStringValue(ErrorUrl); + } + if (GroupMembershipClaims != null) + { + writer.WritePropertyName("groupMembershipClaims"); + writer.WriteStringValue(GroupMembershipClaims.Value.ToString()); + } + if (Homepage != null) + { + writer.WritePropertyName("homepage"); + writer.WriteStringValue(Homepage); + } + if (InformationalUrls != null) + { + writer.WritePropertyName("informationalUrls"); + writer.WriteObjectValue(InformationalUrls); + } + if (IsDeviceOnlyAuthSupported != null) + { + writer.WritePropertyName("isDeviceOnlyAuthSupported"); + writer.WriteBooleanValue(IsDeviceOnlyAuthSupported.Value); + } + if (KeyCredentials != null) + { + writer.WritePropertyName("keyCredentials"); + writer.WriteStartArray(); + foreach (var item in KeyCredentials) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (KnownClientApplications != null) + { + writer.WritePropertyName("knownClientApplications"); + writer.WriteStartArray(); + foreach (var item in KnownClientApplications) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (LogoutUrl != null) + { + writer.WritePropertyName("logoutUrl"); + writer.WriteStringValue(LogoutUrl); + } + if (Oauth2AllowImplicitFlow != null) + { + writer.WritePropertyName("oauth2AllowImplicitFlow"); + writer.WriteBooleanValue(Oauth2AllowImplicitFlow.Value); + } + if (Oauth2AllowUrlPathMatching != null) + { + writer.WritePropertyName("oauth2AllowUrlPathMatching"); + writer.WriteBooleanValue(Oauth2AllowUrlPathMatching.Value); + } + if (Oauth2Permissions != null) + { + writer.WritePropertyName("oauth2Permissions"); + writer.WriteStartArray(); + foreach (var item in Oauth2Permissions) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Oauth2RequirePostResponse != null) + { + writer.WritePropertyName("oauth2RequirePostResponse"); + writer.WriteBooleanValue(Oauth2RequirePostResponse.Value); + } + if (OrgRestrictions != null) + { + writer.WritePropertyName("orgRestrictions"); + writer.WriteStartArray(); + foreach (var item in OrgRestrictions) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (OptionalClaims != null) + { + writer.WritePropertyName("optionalClaims"); + writer.WriteObjectValue(OptionalClaims); + } + if (PasswordCredentials != null) + { + writer.WritePropertyName("passwordCredentials"); + writer.WriteStartArray(); + foreach (var item in PasswordCredentials) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (PreAuthorizedApplications != null) + { + writer.WritePropertyName("preAuthorizedApplications"); + writer.WriteStartArray(); + foreach (var item in PreAuthorizedApplications) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (PublicClient != null) + { + writer.WritePropertyName("publicClient"); + writer.WriteBooleanValue(PublicClient.Value); + } + if (PublisherDomain != null) + { + writer.WritePropertyName("publisherDomain"); + writer.WriteStringValue(PublisherDomain); + } + if (ReplyUrls != null) + { + writer.WritePropertyName("replyUrls"); + writer.WriteStartArray(); + foreach (var item in ReplyUrls) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (RequiredResourceAccess != null) + { + writer.WritePropertyName("requiredResourceAccess"); + writer.WriteStartArray(); + foreach (var item in RequiredResourceAccess) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (SamlMetadataUrl != null) + { + writer.WritePropertyName("samlMetadataUrl"); + writer.WriteStringValue(SamlMetadataUrl); + } + if (SignInAudience != null) + { + writer.WritePropertyName("signInAudience"); + writer.WriteStringValue(SignInAudience); + } + if (WwwHomepage != null) + { + writer.WritePropertyName("wwwHomepage"); + writer.WriteStringValue(WwwHomepage); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationUpdateParameters.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationUpdateParameters.cs new file mode 100644 index 0000000000000..cd05aeb1886c6 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ApplicationUpdateParameters.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Request parameters for updating a new application. + public partial class ApplicationUpdateParameters : ApplicationBase + { + /// Initializes a new instance of ApplicationUpdateParameters. + public ApplicationUpdateParameters() + { + } + + /// Initializes a new instance of ApplicationUpdateParameters. + /// A property on the application to indicate if the application accepts other IDPs or not or partially accepts. + /// Indicates that the application supports pass through users who have no presence in the resource tenant. + /// The url for the application logo image stored in a CDN. + /// The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals. + /// The application permissions. + /// Whether the application is available to other tenants. + /// A URL provided by the author of the application to report errors when using the application. + /// Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects. + /// The home page of the application. + /// URLs with more information about the application. + /// Specifies whether this application supports device authentication without a user. The default is false. + /// A collection of KeyCredential objects. + /// Client applications that are tied to this resource application. Consent to any of the known client applications will result in implicit consent to the resource application through a combined consent dialog (showing the OAuth permission scopes required by the client and the resource). + /// the url of the logout page. + /// Whether to allow implicit grant flow for OAuth2. + /// Specifies whether during a token Request Azure AD will allow path matching of the redirect URI against the applications collection of replyURLs. The default is false. + /// The collection of OAuth 2.0 permission scopes that the web API (resource) application exposes to client applications. These permission scopes may be granted to client applications during consent. + /// Specifies whether, as part of OAuth 2.0 token requests, Azure AD will allow POST requests, as opposed to GET requests. The default is false, which specifies that only GET requests will be allowed. + /// A list of tenants allowed to access application. + /// Specifying the claims to be included in the token. + /// A collection of PasswordCredential objects. + /// list of pre-authorized applications. + /// Specifies whether this application is a public client (such as an installed application running on a mobile device). Default is false. + /// Reliable domain which can be used to identify an application. + /// A collection of reply URLs for the application. + /// Specifies resources that this application requires access to and the set of OAuth permission scopes and application roles that it needs under each of those resources. This pre-configuration of required resource access drives the consent experience. + /// The URL to the SAML metadata for the application. + /// Audience for signing in to the application (AzureADMyOrganization, AzureADAllOrganizations, AzureADAndMicrosoftAccounts). + /// The primary Web page. + /// The display name of the application. + /// A collection of URIs for the application. + internal ApplicationUpdateParameters(bool? allowGuestsSignIn, bool? allowPassthroughUsers, string appLogoUrl, IList appRoles, IList appPermissions, bool? availableToOtherTenants, string errorUrl, GroupMembershipClaimTypes? groupMembershipClaims, string homepage, InformationalUrl informationalUrls, bool? isDeviceOnlyAuthSupported, IList keyCredentials, IList knownClientApplications, string logoutUrl, bool? oauth2AllowImplicitFlow, bool? oauth2AllowUrlPathMatching, IList oauth2Permissions, bool? oauth2RequirePostResponse, IList orgRestrictions, OptionalClaims optionalClaims, IList passwordCredentials, IList preAuthorizedApplications, bool? publicClient, string publisherDomain, IList replyUrls, IList requiredResourceAccess, string samlMetadataUrl, string signInAudience, string wwwHomepage, string displayName, IList identifierUris) : base(allowGuestsSignIn, allowPassthroughUsers, appLogoUrl, appRoles, appPermissions, availableToOtherTenants, errorUrl, groupMembershipClaims, homepage, informationalUrls, isDeviceOnlyAuthSupported, keyCredentials, knownClientApplications, logoutUrl, oauth2AllowImplicitFlow, oauth2AllowUrlPathMatching, oauth2Permissions, oauth2RequirePostResponse, orgRestrictions, optionalClaims, passwordCredentials, preAuthorizedApplications, publicClient, publisherDomain, replyUrls, requiredResourceAccess, samlMetadataUrl, signInAudience, wwwHomepage) + { + DisplayName = displayName; + IdentifierUris = identifierUris; + } + + /// The display name of the application. + public string DisplayName { get; set; } + /// A collection of URIs for the application. + public IList IdentifierUris { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/CheckGroupMembershipParameters.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/CheckGroupMembershipParameters.Serialization.cs new file mode 100644 index 0000000000000..e683a15fdf384 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/CheckGroupMembershipParameters.Serialization.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class CheckGroupMembershipParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("groupId"); + writer.WriteStringValue(GroupId); + writer.WritePropertyName("memberId"); + writer.WriteStringValue(MemberId); + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/CheckGroupMembershipParameters.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/CheckGroupMembershipParameters.cs new file mode 100644 index 0000000000000..0c9706d3023bd --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/CheckGroupMembershipParameters.cs @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Request parameters for IsMemberOf API call. + public partial class CheckGroupMembershipParameters : IDictionary + { + /// Initializes a new instance of CheckGroupMembershipParameters. + /// The object ID of the group to check. + /// The object ID of the contact, group, user, or service principal to check for membership in the specified group. + public CheckGroupMembershipParameters(string groupId, string memberId) + { + if (groupId == null) + { + throw new ArgumentNullException(nameof(groupId)); + } + if (memberId == null) + { + throw new ArgumentNullException(nameof(memberId)); + } + + GroupId = groupId; + MemberId = memberId; + AdditionalProperties = new Dictionary(); + } + + /// Initializes a new instance of CheckGroupMembershipParameters. + /// The object ID of the group to check. + /// The object ID of the contact, group, user, or service principal to check for membership in the specified group. + /// . + internal CheckGroupMembershipParameters(string groupId, string memberId, IDictionary additionalProperties) + { + GroupId = groupId; + MemberId = memberId; + AdditionalProperties = additionalProperties ?? new Dictionary(); + } + + /// The object ID of the group to check. + public string GroupId { get; } + /// The object ID of the contact, group, user, or service principal to check for membership in the specified group. + public string MemberId { get; } + internal IDictionary AdditionalProperties { get; } + /// + public IEnumerator> GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); + /// + public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); + /// + public ICollection Keys => AdditionalProperties.Keys; + /// + public ICollection Values => AdditionalProperties.Values; + /// + int ICollection>.Count => AdditionalProperties.Count; + /// + public void Add(string key, object value) => AdditionalProperties.Add(key, value); + /// + public bool Remove(string key) => AdditionalProperties.Remove(key); + /// + bool ICollection>.IsReadOnly => AdditionalProperties.IsReadOnly; + /// + void ICollection>.Add(KeyValuePair value) => AdditionalProperties.Add(value); + /// + bool ICollection>.Remove(KeyValuePair value) => AdditionalProperties.Remove(value); + /// + bool ICollection>.Contains(KeyValuePair value) => AdditionalProperties.Contains(value); + /// + void ICollection>.CopyTo(KeyValuePair[] destination, int offset) => AdditionalProperties.CopyTo(destination, offset); + /// + void ICollection>.Clear() => AdditionalProperties.Clear(); + /// + public object this[string key] + { + get => AdditionalProperties[key]; + set => AdditionalProperties[key] = value; + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/CheckGroupMembershipResult.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/CheckGroupMembershipResult.Serialization.cs new file mode 100644 index 0000000000000..95109e32167ad --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/CheckGroupMembershipResult.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class CheckGroupMembershipResult + { + internal static CheckGroupMembershipResult DeserializeCheckGroupMembershipResult(JsonElement element) + { + bool? value = default; + IReadOnlyDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + value = property.Value.GetBoolean(); + continue; + } + additionalPropertiesDictionary ??= new Dictionary(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + additionalPropertiesDictionary.Add(property.Name, null); + } + else + { + additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); + } + } + additionalProperties = additionalPropertiesDictionary; + return new CheckGroupMembershipResult(value, additionalProperties); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/CheckGroupMembershipResult.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/CheckGroupMembershipResult.cs new file mode 100644 index 0000000000000..71aa7e90f2d67 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/CheckGroupMembershipResult.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Server response for IsMemberOf API call. + public partial class CheckGroupMembershipResult : IReadOnlyDictionary + { + /// Initializes a new instance of CheckGroupMembershipResult. + internal CheckGroupMembershipResult() + { + AdditionalProperties = new Dictionary(); + } + + /// Initializes a new instance of CheckGroupMembershipResult. + /// True if the specified user, group, contact, or service principal has either direct or transitive membership in the specified group; otherwise, false. + /// . + internal CheckGroupMembershipResult(bool? value, IReadOnlyDictionary additionalProperties) + { + Value = value; + AdditionalProperties = additionalProperties ?? new Dictionary(); + } + + /// True if the specified user, group, contact, or service principal has either direct or transitive membership in the specified group; otherwise, false. + public bool? Value { get; } + internal IReadOnlyDictionary AdditionalProperties { get; } + /// + public IEnumerator> GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); + /// + public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); + /// + public IEnumerable Keys => AdditionalProperties.Keys; + /// + public IEnumerable Values => AdditionalProperties.Values; + /// + int IReadOnlyCollection>.Count => AdditionalProperties.Count; + /// + public object this[string key] + { + get => AdditionalProperties[key]; + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ConsentType.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ConsentType.cs new file mode 100644 index 0000000000000..57ee740f76a7c --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ConsentType.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Graph.Rbac.Models +{ + /// Indicates if consent was provided by the administrator (on behalf of the organization) or by an individual. + public readonly partial struct ConsentType : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + public ConsentType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AllPrincipalsValue = "AllPrincipals"; + private const string PrincipalValue = "Principal"; + + /// AllPrincipals. + public static ConsentType AllPrincipals { get; } = new ConsentType(AllPrincipalsValue); + /// Principal. + public static ConsentType Principal { get; } = new ConsentType(PrincipalValue); + /// Determines if two values are the same. + public static bool operator ==(ConsentType left, ConsentType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ConsentType left, ConsentType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ConsentType(string value) => new ConsentType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ConsentType other && Equals(other); + /// + public bool Equals(ConsentType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/DirectoryObject.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/DirectoryObject.Serialization.cs new file mode 100644 index 0000000000000..4394b8fd95361 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/DirectoryObject.Serialization.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class DirectoryObject + { + internal static DirectoryObject DeserializeDirectoryObject(JsonElement element) + { + if (element.TryGetProperty("objectType", out JsonElement discriminator)) + { + switch (discriminator.GetString()) + { + case "Application": return Application.DeserializeApplication(element); + case "Group": return ADGroup.DeserializeADGroup(element); + case "ServicePrincipal": return ServicePrincipal.DeserializeServicePrincipal(element); + case "User": return User.DeserializeUser(element); + } + } + string objectId = default; + string objectType = default; + DateTimeOffset? deletionTimestamp = default; + IReadOnlyDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("objectId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + objectId = property.Value.GetString(); + continue; + } + if (property.NameEquals("objectType")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + objectType = property.Value.GetString(); + continue; + } + if (property.NameEquals("deletionTimestamp")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + deletionTimestamp = property.Value.GetDateTimeOffset("O"); + continue; + } + additionalPropertiesDictionary ??= new Dictionary(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + additionalPropertiesDictionary.Add(property.Name, null); + } + else + { + additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); + } + } + additionalProperties = additionalPropertiesDictionary; + return new DirectoryObject(objectId, objectType, deletionTimestamp, additionalProperties); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/DirectoryObject.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/DirectoryObject.cs new file mode 100644 index 0000000000000..56a67dd9f158e --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/DirectoryObject.cs @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Represents an Azure Active Directory object. + public partial class DirectoryObject : IReadOnlyDictionary + { + /// Initializes a new instance of DirectoryObject. + internal DirectoryObject() + { + AdditionalProperties = new Dictionary(); + ObjectType = "DirectoryObject"; + } + + /// Initializes a new instance of DirectoryObject. + /// The object ID. + /// The object type. + /// The time at which the directory object was deleted. + /// . + internal DirectoryObject(string objectId, string objectType, DateTimeOffset? deletionTimestamp, IReadOnlyDictionary additionalProperties) + { + ObjectId = objectId; + ObjectType = objectType ?? "DirectoryObject"; + DeletionTimestamp = deletionTimestamp; + AdditionalProperties = additionalProperties ?? new Dictionary(); + } + + /// The object ID. + public string ObjectId { get; } + /// The object type. + internal string ObjectType { get; set; } + /// The time at which the directory object was deleted. + public DateTimeOffset? DeletionTimestamp { get; } + internal IReadOnlyDictionary AdditionalProperties { get; } + /// + public IEnumerator> GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); + /// + public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); + /// + public IEnumerable Keys => AdditionalProperties.Keys; + /// + public IEnumerable Values => AdditionalProperties.Values; + /// + int IReadOnlyCollection>.Count => AdditionalProperties.Count; + /// + public object this[string key] + { + get => AdditionalProperties[key]; + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/DirectoryObjectListResult.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/DirectoryObjectListResult.Serialization.cs new file mode 100644 index 0000000000000..cdfa3faf646ae --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/DirectoryObjectListResult.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class DirectoryObjectListResult + { + internal static DirectoryObjectListResult DeserializeDirectoryObjectListResult(JsonElement element) + { + IReadOnlyList value = default; + string odataNextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(DirectoryObject.DeserializeDirectoryObject(item)); + } + } + value = array; + continue; + } + if (property.NameEquals("odata.nextLink")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + odataNextLink = property.Value.GetString(); + continue; + } + } + return new DirectoryObjectListResult(value, odataNextLink); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/DirectoryObjectListResult.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/DirectoryObjectListResult.cs new file mode 100644 index 0000000000000..f986dcf1fd39b --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/DirectoryObjectListResult.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// DirectoryObject list operation result. + public partial class DirectoryObjectListResult + { + /// Initializes a new instance of DirectoryObjectListResult. + internal DirectoryObjectListResult() + { + } + + /// Initializes a new instance of DirectoryObjectListResult. + /// A collection of DirectoryObject. + /// The URL to get the next set of results. + internal DirectoryObjectListResult(IReadOnlyList value, string odataNextLink) + { + Value = value; + OdataNextLink = odataNextLink; + } + + /// A collection of DirectoryObject. + public IReadOnlyList Value { get; } + /// The URL to get the next set of results. + public string OdataNextLink { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/Domain.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/Domain.Serialization.cs new file mode 100644 index 0000000000000..39af6428e3cb8 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/Domain.Serialization.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class Domain + { + internal static Domain DeserializeDomain(JsonElement element) + { + string authenticationType = default; + bool? isDefault = default; + bool? isVerified = default; + string name = default; + IReadOnlyDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("authenticationType")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + authenticationType = property.Value.GetString(); + continue; + } + if (property.NameEquals("isDefault")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isDefault = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("isVerified")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isVerified = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + additionalPropertiesDictionary ??= new Dictionary(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + additionalPropertiesDictionary.Add(property.Name, null); + } + else + { + additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); + } + } + additionalProperties = additionalPropertiesDictionary; + return new Domain(authenticationType, isDefault, isVerified, name, additionalProperties); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/Domain.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/Domain.cs new file mode 100644 index 0000000000000..a9d3e93274089 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/Domain.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Active Directory Domain information. + public partial class Domain : IReadOnlyDictionary + { + /// Initializes a new instance of Domain. + /// the domain name. + internal Domain(string name) + { + if (name == null) + { + throw new ArgumentNullException(nameof(name)); + } + + Name = name; + AdditionalProperties = new Dictionary(); + } + + /// Initializes a new instance of Domain. + /// the type of the authentication into the domain. + /// if this is the default domain in the tenant. + /// if this domain's ownership is verified. + /// the domain name. + /// . + internal Domain(string authenticationType, bool? isDefault, bool? isVerified, string name, IReadOnlyDictionary additionalProperties) + { + AuthenticationType = authenticationType; + IsDefault = isDefault; + IsVerified = isVerified; + Name = name; + AdditionalProperties = additionalProperties ?? new Dictionary(); + } + + /// the type of the authentication into the domain. + public string AuthenticationType { get; } + /// if this is the default domain in the tenant. + public bool? IsDefault { get; } + /// if this domain's ownership is verified. + public bool? IsVerified { get; } + /// the domain name. + public string Name { get; } + internal IReadOnlyDictionary AdditionalProperties { get; } + /// + public IEnumerator> GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); + /// + public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); + /// + public IEnumerable Keys => AdditionalProperties.Keys; + /// + public IEnumerable Values => AdditionalProperties.Values; + /// + int IReadOnlyCollection>.Count => AdditionalProperties.Count; + /// + public object this[string key] + { + get => AdditionalProperties[key]; + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/DomainListResult.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/DomainListResult.Serialization.cs new file mode 100644 index 0000000000000..2946e10561f87 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/DomainListResult.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class DomainListResult + { + internal static DomainListResult DeserializeDomainListResult(JsonElement element) + { + IReadOnlyList value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(Domain.DeserializeDomain(item)); + } + } + value = array; + continue; + } + } + return new DomainListResult(value); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/DomainListResult.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/DomainListResult.cs new file mode 100644 index 0000000000000..ba3dbf14fe5ca --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/DomainListResult.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Server response for Get tenant domains API call. + public partial class DomainListResult + { + /// Initializes a new instance of DomainListResult. + internal DomainListResult() + { + } + + /// Initializes a new instance of DomainListResult. + /// the list of domains. + internal DomainListResult(IReadOnlyList value) + { + Value = value; + } + + /// the list of domains. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GetObjectsParameters.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GetObjectsParameters.Serialization.cs new file mode 100644 index 0000000000000..1b3b85bd08243 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GetObjectsParameters.Serialization.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class GetObjectsParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (ObjectIds != null) + { + writer.WritePropertyName("objectIds"); + writer.WriteStartArray(); + foreach (var item in ObjectIds) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Types != null) + { + writer.WritePropertyName("types"); + writer.WriteStartArray(); + foreach (var item in Types) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (IncludeDirectoryObjectReferences != null) + { + writer.WritePropertyName("includeDirectoryObjectReferences"); + writer.WriteBooleanValue(IncludeDirectoryObjectReferences.Value); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GetObjectsParameters.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GetObjectsParameters.cs new file mode 100644 index 0000000000000..cfbc032a15790 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GetObjectsParameters.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Request parameters for the GetObjectsByObjectIds API. + public partial class GetObjectsParameters : IDictionary + { + /// Initializes a new instance of GetObjectsParameters. + public GetObjectsParameters() + { + AdditionalProperties = new Dictionary(); + } + + /// Initializes a new instance of GetObjectsParameters. + /// The requested object IDs. + /// The requested object types. + /// If true, also searches for object IDs in the partner tenant. + /// . + internal GetObjectsParameters(IList objectIds, IList types, bool? includeDirectoryObjectReferences, IDictionary additionalProperties) + { + ObjectIds = objectIds; + Types = types; + IncludeDirectoryObjectReferences = includeDirectoryObjectReferences; + AdditionalProperties = additionalProperties ?? new Dictionary(); + } + + /// The requested object IDs. + public IList ObjectIds { get; set; } + /// The requested object types. + public IList Types { get; set; } + /// If true, also searches for object IDs in the partner tenant. + public bool? IncludeDirectoryObjectReferences { get; set; } + internal IDictionary AdditionalProperties { get; } + /// + public IEnumerator> GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); + /// + public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); + /// + public ICollection Keys => AdditionalProperties.Keys; + /// + public ICollection Values => AdditionalProperties.Values; + /// + int ICollection>.Count => AdditionalProperties.Count; + /// + public void Add(string key, object value) => AdditionalProperties.Add(key, value); + /// + public bool Remove(string key) => AdditionalProperties.Remove(key); + /// + bool ICollection>.IsReadOnly => AdditionalProperties.IsReadOnly; + /// + void ICollection>.Add(KeyValuePair value) => AdditionalProperties.Add(value); + /// + bool ICollection>.Remove(KeyValuePair value) => AdditionalProperties.Remove(value); + /// + bool ICollection>.Contains(KeyValuePair value) => AdditionalProperties.Contains(value); + /// + void ICollection>.CopyTo(KeyValuePair[] destination, int offset) => AdditionalProperties.CopyTo(destination, offset); + /// + void ICollection>.Clear() => AdditionalProperties.Clear(); + /// + public object this[string key] + { + get => AdditionalProperties[key]; + set => AdditionalProperties[key] = value; + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GraphError.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GraphError.Serialization.cs new file mode 100644 index 0000000000000..1f696e493d118 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GraphError.Serialization.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class GraphError + { + internal static GraphError DeserializeGraphError(JsonElement element) + { + string code = default; + string value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("odata.error")) + { + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("code")) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + code = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("message")) + { + foreach (var property1 in property0.Value.EnumerateObject()) + { + if (property1.NameEquals("value")) + { + if (property1.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + value = property1.Value.GetString(); + continue; + } + } + continue; + } + } + continue; + } + } + return new GraphError(code, value); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GraphError.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GraphError.cs new file mode 100644 index 0000000000000..544ecdf952d96 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GraphError.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Graph.Rbac.Models +{ + /// Active Directory error information. + public partial class GraphError + { + /// Initializes a new instance of GraphError. + internal GraphError() + { + } + + /// Initializes a new instance of GraphError. + /// Error code. + /// Error message value. + internal GraphError(string code, string message) + { + Code = code; + Message = message; + } + + /// Error code. + public string Code { get; } + /// Error message value. + public string Message { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupAddMemberParameters.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupAddMemberParameters.Serialization.cs new file mode 100644 index 0000000000000..64fb68661e88a --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupAddMemberParameters.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class GroupAddMemberParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("url"); + writer.WriteStringValue(Url); + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupAddMemberParameters.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupAddMemberParameters.cs new file mode 100644 index 0000000000000..9c4df37c3523d --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupAddMemberParameters.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Request parameters for adding a member to a group. + public partial class GroupAddMemberParameters : IDictionary + { + /// Initializes a new instance of GroupAddMemberParameters. + /// A member object URL, such as "https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd", where "0b1f9851-1bf0-433f-aec3-cb9272f093dc" is the tenantId and "f260bbc4-c254-447b-94cf-293b5ec434dd" is the objectId of the member (user, application, servicePrincipal, group) to be added. + public GroupAddMemberParameters(string url) + { + if (url == null) + { + throw new ArgumentNullException(nameof(url)); + } + + Url = url; + AdditionalProperties = new Dictionary(); + } + + /// Initializes a new instance of GroupAddMemberParameters. + /// A member object URL, such as "https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd", where "0b1f9851-1bf0-433f-aec3-cb9272f093dc" is the tenantId and "f260bbc4-c254-447b-94cf-293b5ec434dd" is the objectId of the member (user, application, servicePrincipal, group) to be added. + /// . + internal GroupAddMemberParameters(string url, IDictionary additionalProperties) + { + Url = url; + AdditionalProperties = additionalProperties ?? new Dictionary(); + } + + /// A member object URL, such as "https://graph.windows.net/0b1f9851-1bf0-433f-aec3-cb9272f093dc/directoryObjects/f260bbc4-c254-447b-94cf-293b5ec434dd", where "0b1f9851-1bf0-433f-aec3-cb9272f093dc" is the tenantId and "f260bbc4-c254-447b-94cf-293b5ec434dd" is the objectId of the member (user, application, servicePrincipal, group) to be added. + public string Url { get; } + internal IDictionary AdditionalProperties { get; } + /// + public IEnumerator> GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); + /// + public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); + /// + public ICollection Keys => AdditionalProperties.Keys; + /// + public ICollection Values => AdditionalProperties.Values; + /// + int ICollection>.Count => AdditionalProperties.Count; + /// + public void Add(string key, object value) => AdditionalProperties.Add(key, value); + /// + public bool Remove(string key) => AdditionalProperties.Remove(key); + /// + bool ICollection>.IsReadOnly => AdditionalProperties.IsReadOnly; + /// + void ICollection>.Add(KeyValuePair value) => AdditionalProperties.Add(value); + /// + bool ICollection>.Remove(KeyValuePair value) => AdditionalProperties.Remove(value); + /// + bool ICollection>.Contains(KeyValuePair value) => AdditionalProperties.Contains(value); + /// + void ICollection>.CopyTo(KeyValuePair[] destination, int offset) => AdditionalProperties.CopyTo(destination, offset); + /// + void ICollection>.Clear() => AdditionalProperties.Clear(); + /// + public object this[string key] + { + get => AdditionalProperties[key]; + set => AdditionalProperties[key] = value; + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupCreateParameters.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupCreateParameters.Serialization.cs new file mode 100644 index 0000000000000..9206c94a9f866 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupCreateParameters.Serialization.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class GroupCreateParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("displayName"); + writer.WriteStringValue(DisplayName); + writer.WritePropertyName("mailEnabled"); + writer.WriteBooleanValue(MailEnabled); + writer.WritePropertyName("mailNickname"); + writer.WriteStringValue(MailNickname); + writer.WritePropertyName("securityEnabled"); + writer.WriteBooleanValue(SecurityEnabled); + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupCreateParameters.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupCreateParameters.cs new file mode 100644 index 0000000000000..68934ee47b08f --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupCreateParameters.cs @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Request parameters for creating a new group. + public partial class GroupCreateParameters : IDictionary + { + /// Initializes a new instance of GroupCreateParameters. + /// Group display name. + /// Mail nickname. + public GroupCreateParameters(string displayName, string mailNickname) + { + if (displayName == null) + { + throw new ArgumentNullException(nameof(displayName)); + } + if (mailNickname == null) + { + throw new ArgumentNullException(nameof(mailNickname)); + } + + DisplayName = displayName; + MailEnabled = false; + MailNickname = mailNickname; + SecurityEnabled = true; + AdditionalProperties = new Dictionary(); + } + + /// Initializes a new instance of GroupCreateParameters. + /// Group display name. + /// Whether the group is mail-enabled. Must be false. This is because only pure security groups can be created using the Graph API. + /// Mail nickname. + /// Whether the group is a security group. Must be true. This is because only pure security groups can be created using the Graph API. + /// . + internal GroupCreateParameters(string displayName, bool mailEnabled, string mailNickname, bool securityEnabled, IDictionary additionalProperties) + { + DisplayName = displayName; + MailEnabled = mailEnabled; + MailNickname = mailNickname; + SecurityEnabled = securityEnabled; + AdditionalProperties = additionalProperties ?? new Dictionary(); + } + + /// Group display name. + public string DisplayName { get; } + /// Whether the group is mail-enabled. Must be false. This is because only pure security groups can be created using the Graph API. + public bool MailEnabled { get; } + /// Mail nickname. + public string MailNickname { get; } + /// Whether the group is a security group. Must be true. This is because only pure security groups can be created using the Graph API. + public bool SecurityEnabled { get; } + internal IDictionary AdditionalProperties { get; } + /// + public IEnumerator> GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); + /// + public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); + /// + public ICollection Keys => AdditionalProperties.Keys; + /// + public ICollection Values => AdditionalProperties.Values; + /// + int ICollection>.Count => AdditionalProperties.Count; + /// + public void Add(string key, object value) => AdditionalProperties.Add(key, value); + /// + public bool Remove(string key) => AdditionalProperties.Remove(key); + /// + bool ICollection>.IsReadOnly => AdditionalProperties.IsReadOnly; + /// + void ICollection>.Add(KeyValuePair value) => AdditionalProperties.Add(value); + /// + bool ICollection>.Remove(KeyValuePair value) => AdditionalProperties.Remove(value); + /// + bool ICollection>.Contains(KeyValuePair value) => AdditionalProperties.Contains(value); + /// + void ICollection>.CopyTo(KeyValuePair[] destination, int offset) => AdditionalProperties.CopyTo(destination, offset); + /// + void ICollection>.Clear() => AdditionalProperties.Clear(); + /// + public object this[string key] + { + get => AdditionalProperties[key]; + set => AdditionalProperties[key] = value; + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupGetMemberGroupsParameters.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupGetMemberGroupsParameters.Serialization.cs new file mode 100644 index 0000000000000..879986099b0c2 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupGetMemberGroupsParameters.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class GroupGetMemberGroupsParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("securityEnabledOnly"); + writer.WriteBooleanValue(SecurityEnabledOnly); + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupGetMemberGroupsParameters.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupGetMemberGroupsParameters.cs new file mode 100644 index 0000000000000..100138e1a7688 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupGetMemberGroupsParameters.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Request parameters for GetMemberGroups API call. + public partial class GroupGetMemberGroupsParameters : IDictionary + { + /// Initializes a new instance of GroupGetMemberGroupsParameters. + /// If true, only membership in security-enabled groups should be checked. Otherwise, membership in all groups should be checked. + public GroupGetMemberGroupsParameters(bool securityEnabledOnly) + { + SecurityEnabledOnly = securityEnabledOnly; + AdditionalProperties = new Dictionary(); + } + + /// Initializes a new instance of GroupGetMemberGroupsParameters. + /// If true, only membership in security-enabled groups should be checked. Otherwise, membership in all groups should be checked. + /// . + internal GroupGetMemberGroupsParameters(bool securityEnabledOnly, IDictionary additionalProperties) + { + SecurityEnabledOnly = securityEnabledOnly; + AdditionalProperties = additionalProperties ?? new Dictionary(); + } + + /// If true, only membership in security-enabled groups should be checked. Otherwise, membership in all groups should be checked. + public bool SecurityEnabledOnly { get; } + internal IDictionary AdditionalProperties { get; } + /// + public IEnumerator> GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); + /// + public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); + /// + public ICollection Keys => AdditionalProperties.Keys; + /// + public ICollection Values => AdditionalProperties.Values; + /// + int ICollection>.Count => AdditionalProperties.Count; + /// + public void Add(string key, object value) => AdditionalProperties.Add(key, value); + /// + public bool Remove(string key) => AdditionalProperties.Remove(key); + /// + bool ICollection>.IsReadOnly => AdditionalProperties.IsReadOnly; + /// + void ICollection>.Add(KeyValuePair value) => AdditionalProperties.Add(value); + /// + bool ICollection>.Remove(KeyValuePair value) => AdditionalProperties.Remove(value); + /// + bool ICollection>.Contains(KeyValuePair value) => AdditionalProperties.Contains(value); + /// + void ICollection>.CopyTo(KeyValuePair[] destination, int offset) => AdditionalProperties.CopyTo(destination, offset); + /// + void ICollection>.Clear() => AdditionalProperties.Clear(); + /// + public object this[string key] + { + get => AdditionalProperties[key]; + set => AdditionalProperties[key] = value; + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupGetMemberGroupsResult.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupGetMemberGroupsResult.Serialization.cs new file mode 100644 index 0000000000000..e6dac9f66978a --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupGetMemberGroupsResult.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class GroupGetMemberGroupsResult + { + internal static GroupGetMemberGroupsResult DeserializeGroupGetMemberGroupsResult(JsonElement element) + { + IReadOnlyList value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + value = array; + continue; + } + } + return new GroupGetMemberGroupsResult(value); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupGetMemberGroupsResult.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupGetMemberGroupsResult.cs new file mode 100644 index 0000000000000..adfd939a4da65 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupGetMemberGroupsResult.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Server response for GetMemberGroups API call. + public partial class GroupGetMemberGroupsResult + { + /// Initializes a new instance of GroupGetMemberGroupsResult. + internal GroupGetMemberGroupsResult() + { + } + + /// Initializes a new instance of GroupGetMemberGroupsResult. + /// A collection of group IDs of which the group is a member. + internal GroupGetMemberGroupsResult(IReadOnlyList value) + { + Value = value; + } + + /// A collection of group IDs of which the group is a member. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupListResult.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupListResult.Serialization.cs new file mode 100644 index 0000000000000..891f5181b2526 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupListResult.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class GroupListResult + { + internal static GroupListResult DeserializeGroupListResult(JsonElement element) + { + IReadOnlyList value = default; + string odataNextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(ADGroup.DeserializeADGroup(item)); + } + } + value = array; + continue; + } + if (property.NameEquals("odata.nextLink")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + odataNextLink = property.Value.GetString(); + continue; + } + } + return new GroupListResult(value, odataNextLink); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupListResult.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupListResult.cs new file mode 100644 index 0000000000000..aa7681c4dbe01 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupListResult.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Server response for Get tenant groups API call. + public partial class GroupListResult + { + /// Initializes a new instance of GroupListResult. + internal GroupListResult() + { + } + + /// Initializes a new instance of GroupListResult. + /// A collection of Active Directory groups. + /// The URL to get the next set of results. + internal GroupListResult(IReadOnlyList value, string odataNextLink) + { + Value = value; + OdataNextLink = odataNextLink; + } + + /// A collection of Active Directory groups. + public IReadOnlyList Value { get; } + /// The URL to get the next set of results. + public string OdataNextLink { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupMembershipClaimTypes.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupMembershipClaimTypes.cs new file mode 100644 index 0000000000000..9e00c04b35554 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/GroupMembershipClaimTypes.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Graph.Rbac.Models +{ + /// Configures the groups claim issued in a user or OAuth 2.0 access token that the app expects. + public readonly partial struct GroupMembershipClaimTypes : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + public GroupMembershipClaimTypes(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NoneValue = "None"; + private const string SecurityGroupValue = "SecurityGroup"; + private const string AllValue = "All"; + + /// None. + public static GroupMembershipClaimTypes None { get; } = new GroupMembershipClaimTypes(NoneValue); + /// SecurityGroup. + public static GroupMembershipClaimTypes SecurityGroup { get; } = new GroupMembershipClaimTypes(SecurityGroupValue); + /// All. + public static GroupMembershipClaimTypes All { get; } = new GroupMembershipClaimTypes(AllValue); + /// Determines if two values are the same. + public static bool operator ==(GroupMembershipClaimTypes left, GroupMembershipClaimTypes right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(GroupMembershipClaimTypes left, GroupMembershipClaimTypes right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator GroupMembershipClaimTypes(string value) => new GroupMembershipClaimTypes(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is GroupMembershipClaimTypes other && Equals(other); + /// + public bool Equals(GroupMembershipClaimTypes other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/InformationalUrl.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/InformationalUrl.Serialization.cs new file mode 100644 index 0000000000000..373f6249efa91 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/InformationalUrl.Serialization.cs @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class InformationalUrl : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (TermsOfService != null) + { + writer.WritePropertyName("termsOfService"); + writer.WriteStringValue(TermsOfService); + } + if (Marketing != null) + { + writer.WritePropertyName("marketing"); + writer.WriteStringValue(Marketing); + } + if (Privacy != null) + { + writer.WritePropertyName("privacy"); + writer.WriteStringValue(Privacy); + } + if (Support != null) + { + writer.WritePropertyName("support"); + writer.WriteStringValue(Support); + } + writer.WriteEndObject(); + } + + internal static InformationalUrl DeserializeInformationalUrl(JsonElement element) + { + string termsOfService = default; + string marketing = default; + string privacy = default; + string support = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("termsOfService")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + termsOfService = property.Value.GetString(); + continue; + } + if (property.NameEquals("marketing")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + marketing = property.Value.GetString(); + continue; + } + if (property.NameEquals("privacy")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + privacy = property.Value.GetString(); + continue; + } + if (property.NameEquals("support")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + support = property.Value.GetString(); + continue; + } + } + return new InformationalUrl(termsOfService, marketing, privacy, support); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/InformationalUrl.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/InformationalUrl.cs new file mode 100644 index 0000000000000..6ac93ccea6161 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/InformationalUrl.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Graph.Rbac.Models +{ + /// Represents a group of URIs that provide terms of service, marketing, support and privacy policy information about an application. The default value for each string is null. + public partial class InformationalUrl + { + /// Initializes a new instance of InformationalUrl. + public InformationalUrl() + { + } + + /// Initializes a new instance of InformationalUrl. + /// The terms of service URI. + /// The marketing URI. + /// The privacy policy URI. + /// The support URI. + internal InformationalUrl(string termsOfService, string marketing, string privacy, string support) + { + TermsOfService = termsOfService; + Marketing = marketing; + Privacy = privacy; + Support = support; + } + + /// The terms of service URI. + public string TermsOfService { get; set; } + /// The marketing URI. + public string Marketing { get; set; } + /// The privacy policy URI. + public string Privacy { get; set; } + /// The support URI. + public string Support { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/KeyCredential.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/KeyCredential.Serialization.cs new file mode 100644 index 0000000000000..1e9dc6bea56d2 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/KeyCredential.Serialization.cs @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class KeyCredential : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (StartDate != null) + { + writer.WritePropertyName("startDate"); + writer.WriteStringValue(StartDate.Value, "O"); + } + if (EndDate != null) + { + writer.WritePropertyName("endDate"); + writer.WriteStringValue(EndDate.Value, "O"); + } + if (Value != null) + { + writer.WritePropertyName("value"); + writer.WriteStringValue(Value); + } + if (KeyId != null) + { + writer.WritePropertyName("keyId"); + writer.WriteStringValue(KeyId); + } + if (Usage != null) + { + writer.WritePropertyName("usage"); + writer.WriteStringValue(Usage); + } + if (Type != null) + { + writer.WritePropertyName("type"); + writer.WriteStringValue(Type); + } + if (CustomKeyIdentifier != null) + { + writer.WritePropertyName("customKeyIdentifier"); + writer.WriteStringValue(CustomKeyIdentifier); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + + internal static KeyCredential DeserializeKeyCredential(JsonElement element) + { + DateTimeOffset? startDate = default; + DateTimeOffset? endDate = default; + string value = default; + string keyId = default; + string usage = default; + string type = default; + string customKeyIdentifier = default; + IDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("startDate")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + startDate = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("endDate")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + endDate = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + value = property.Value.GetString(); + continue; + } + if (property.NameEquals("keyId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + keyId = property.Value.GetString(); + continue; + } + if (property.NameEquals("usage")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + usage = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("customKeyIdentifier")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + customKeyIdentifier = property.Value.GetString(); + continue; + } + additionalPropertiesDictionary ??= new Dictionary(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + additionalPropertiesDictionary.Add(property.Name, null); + } + else + { + additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); + } + } + additionalProperties = additionalPropertiesDictionary; + return new KeyCredential(startDate, endDate, value, keyId, usage, type, customKeyIdentifier, additionalProperties); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/KeyCredential.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/KeyCredential.cs new file mode 100644 index 0000000000000..552a06d7eabe5 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/KeyCredential.cs @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Active Directory Key Credential information. + public partial class KeyCredential : IDictionary + { + /// Initializes a new instance of KeyCredential. + public KeyCredential() + { + AdditionalProperties = new Dictionary(); + } + + /// Initializes a new instance of KeyCredential. + /// Start date. + /// End date. + /// Key value. + /// Key ID. + /// Usage. Acceptable values are 'Verify' and 'Sign'. + /// Type. Acceptable values are 'AsymmetricX509Cert' and 'Symmetric'. + /// Custom Key Identifier. + /// . + internal KeyCredential(DateTimeOffset? startDate, DateTimeOffset? endDate, string value, string keyId, string usage, string type, string customKeyIdentifier, IDictionary additionalProperties) + { + StartDate = startDate; + EndDate = endDate; + Value = value; + KeyId = keyId; + Usage = usage; + Type = type; + CustomKeyIdentifier = customKeyIdentifier; + AdditionalProperties = additionalProperties ?? new Dictionary(); + } + + /// Start date. + public DateTimeOffset? StartDate { get; set; } + /// End date. + public DateTimeOffset? EndDate { get; set; } + /// Key value. + public string Value { get; set; } + /// Key ID. + public string KeyId { get; set; } + /// Usage. Acceptable values are 'Verify' and 'Sign'. + public string Usage { get; set; } + /// Type. Acceptable values are 'AsymmetricX509Cert' and 'Symmetric'. + public string Type { get; set; } + /// Custom Key Identifier. + public string CustomKeyIdentifier { get; set; } + internal IDictionary AdditionalProperties { get; } + /// + public IEnumerator> GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); + /// + public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); + /// + public ICollection Keys => AdditionalProperties.Keys; + /// + public ICollection Values => AdditionalProperties.Values; + /// + int ICollection>.Count => AdditionalProperties.Count; + /// + public void Add(string key, object value) => AdditionalProperties.Add(key, value); + /// + public bool Remove(string key) => AdditionalProperties.Remove(key); + /// + bool ICollection>.IsReadOnly => AdditionalProperties.IsReadOnly; + /// + void ICollection>.Add(KeyValuePair value) => AdditionalProperties.Add(value); + /// + bool ICollection>.Remove(KeyValuePair value) => AdditionalProperties.Remove(value); + /// + bool ICollection>.Contains(KeyValuePair value) => AdditionalProperties.Contains(value); + /// + void ICollection>.CopyTo(KeyValuePair[] destination, int offset) => AdditionalProperties.CopyTo(destination, offset); + /// + void ICollection>.Clear() => AdditionalProperties.Clear(); + /// + public object this[string key] + { + get => AdditionalProperties[key]; + set => AdditionalProperties[key] = value; + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/KeyCredentialListResult.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/KeyCredentialListResult.Serialization.cs new file mode 100644 index 0000000000000..32b659b884a72 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/KeyCredentialListResult.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class KeyCredentialListResult + { + internal static KeyCredentialListResult DeserializeKeyCredentialListResult(JsonElement element) + { + IReadOnlyList value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(KeyCredential.DeserializeKeyCredential(item)); + } + } + value = array; + continue; + } + } + return new KeyCredentialListResult(value); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/KeyCredentialListResult.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/KeyCredentialListResult.cs new file mode 100644 index 0000000000000..c66c79390639f --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/KeyCredentialListResult.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// KeyCredential list operation result. + public partial class KeyCredentialListResult + { + /// Initializes a new instance of KeyCredentialListResult. + internal KeyCredentialListResult() + { + } + + /// Initializes a new instance of KeyCredentialListResult. + /// A collection of KeyCredentials. + internal KeyCredentialListResult(IReadOnlyList value) + { + Value = value; + } + + /// A collection of KeyCredentials. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/KeyCredentialsUpdateParameters.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/KeyCredentialsUpdateParameters.Serialization.cs new file mode 100644 index 0000000000000..a2cb7da908556 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/KeyCredentialsUpdateParameters.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class KeyCredentialsUpdateParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("value"); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/KeyCredentialsUpdateParameters.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/KeyCredentialsUpdateParameters.cs new file mode 100644 index 0000000000000..186dc448f67b1 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/KeyCredentialsUpdateParameters.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Graph.Rbac.Models +{ + /// Request parameters for a KeyCredentials update operation. + public partial class KeyCredentialsUpdateParameters + { + /// Initializes a new instance of KeyCredentialsUpdateParameters. + /// A collection of KeyCredentials. + public KeyCredentialsUpdateParameters(IEnumerable value) + { + if (value == null) + { + throw new ArgumentNullException(nameof(value)); + } + + Value = value.ToArray(); + } + + /// Initializes a new instance of KeyCredentialsUpdateParameters. + /// A collection of KeyCredentials. + internal KeyCredentialsUpdateParameters(IList value) + { + Value = value; + } + + /// A collection of KeyCredentials. + public IList Value { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OAuth2Permission.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OAuth2Permission.Serialization.cs new file mode 100644 index 0000000000000..dd6b71923844e --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OAuth2Permission.Serialization.cs @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class OAuth2Permission : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (AdminConsentDescription != null) + { + writer.WritePropertyName("adminConsentDescription"); + writer.WriteStringValue(AdminConsentDescription); + } + if (AdminConsentDisplayName != null) + { + writer.WritePropertyName("adminConsentDisplayName"); + writer.WriteStringValue(AdminConsentDisplayName); + } + if (Id != null) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } + if (IsEnabled != null) + { + writer.WritePropertyName("isEnabled"); + writer.WriteBooleanValue(IsEnabled.Value); + } + if (Type != null) + { + writer.WritePropertyName("type"); + writer.WriteStringValue(Type); + } + if (UserConsentDescription != null) + { + writer.WritePropertyName("userConsentDescription"); + writer.WriteStringValue(UserConsentDescription); + } + if (UserConsentDisplayName != null) + { + writer.WritePropertyName("userConsentDisplayName"); + writer.WriteStringValue(UserConsentDisplayName); + } + if (Value != null) + { + writer.WritePropertyName("value"); + writer.WriteStringValue(Value); + } + writer.WriteEndObject(); + } + + internal static OAuth2Permission DeserializeOAuth2Permission(JsonElement element) + { + string adminConsentDescription = default; + string adminConsentDisplayName = default; + string id = default; + bool? isEnabled = default; + string type = default; + string userConsentDescription = default; + string userConsentDisplayName = default; + string value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("adminConsentDescription")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + adminConsentDescription = property.Value.GetString(); + continue; + } + if (property.NameEquals("adminConsentDisplayName")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + adminConsentDisplayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("isEnabled")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isEnabled = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("userConsentDescription")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + userConsentDescription = property.Value.GetString(); + continue; + } + if (property.NameEquals("userConsentDisplayName")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + userConsentDisplayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + value = property.Value.GetString(); + continue; + } + } + return new OAuth2Permission(adminConsentDescription, adminConsentDisplayName, id, isEnabled, type, userConsentDescription, userConsentDisplayName, value); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OAuth2Permission.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OAuth2Permission.cs new file mode 100644 index 0000000000000..3df1f7fcfb579 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OAuth2Permission.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Graph.Rbac.Models +{ + /// Represents an OAuth 2.0 delegated permission scope. The specified OAuth 2.0 delegated permission scopes may be requested by client applications (through the requiredResourceAccess collection on the Application object) when calling a resource application. The oauth2Permissions property of the ServicePrincipal entity and of the Application entity is a collection of OAuth2Permission. + public partial class OAuth2Permission + { + /// Initializes a new instance of OAuth2Permission. + public OAuth2Permission() + { + } + + /// Initializes a new instance of OAuth2Permission. + /// Permission help text that appears in the admin consent and app assignment experiences. + /// Display name for the permission that appears in the admin consent and app assignment experiences. + /// Unique scope permission identifier inside the oauth2Permissions collection. + /// When creating or updating a permission, this property must be set to true (which is the default). To delete a permission, this property must first be set to false. At that point, in a subsequent call, the permission may be removed. + /// Specifies whether this scope permission can be consented to by an end user, or whether it is a tenant-wide permission that must be consented to by a Company Administrator. Possible values are "User" or "Admin". + /// Permission help text that appears in the end user consent experience. + /// Display name for the permission that appears in the end user consent experience. + /// The value of the scope claim that the resource application should expect in the OAuth 2.0 access token. + internal OAuth2Permission(string adminConsentDescription, string adminConsentDisplayName, string id, bool? isEnabled, string type, string userConsentDescription, string userConsentDisplayName, string value) + { + AdminConsentDescription = adminConsentDescription; + AdminConsentDisplayName = adminConsentDisplayName; + Id = id; + IsEnabled = isEnabled; + Type = type; + UserConsentDescription = userConsentDescription; + UserConsentDisplayName = userConsentDisplayName; + Value = value; + } + + /// Permission help text that appears in the admin consent and app assignment experiences. + public string AdminConsentDescription { get; set; } + /// Display name for the permission that appears in the admin consent and app assignment experiences. + public string AdminConsentDisplayName { get; set; } + /// Unique scope permission identifier inside the oauth2Permissions collection. + public string Id { get; set; } + /// When creating or updating a permission, this property must be set to true (which is the default). To delete a permission, this property must first be set to false. At that point, in a subsequent call, the permission may be removed. + public bool? IsEnabled { get; set; } + /// Specifies whether this scope permission can be consented to by an end user, or whether it is a tenant-wide permission that must be consented to by a Company Administrator. Possible values are "User" or "Admin". + public string Type { get; set; } + /// Permission help text that appears in the end user consent experience. + public string UserConsentDescription { get; set; } + /// Display name for the permission that appears in the end user consent experience. + public string UserConsentDisplayName { get; set; } + /// The value of the scope claim that the resource application should expect in the OAuth 2.0 access token. + public string Value { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OAuth2PermissionGrant.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OAuth2PermissionGrant.Serialization.cs new file mode 100644 index 0000000000000..cf4ebfd94f499 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OAuth2PermissionGrant.Serialization.cs @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class OAuth2PermissionGrant : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (OdataType != null) + { + writer.WritePropertyName("odata.type"); + writer.WriteStringValue(OdataType); + } + if (ClientId != null) + { + writer.WritePropertyName("clientId"); + writer.WriteStringValue(ClientId); + } + if (ObjectId != null) + { + writer.WritePropertyName("objectId"); + writer.WriteStringValue(ObjectId); + } + if (ConsentType != null) + { + writer.WritePropertyName("consentType"); + writer.WriteStringValue(ConsentType.Value.ToString()); + } + if (PrincipalId != null) + { + writer.WritePropertyName("principalId"); + writer.WriteStringValue(PrincipalId); + } + if (ResourceId != null) + { + writer.WritePropertyName("resourceId"); + writer.WriteStringValue(ResourceId); + } + if (Scope != null) + { + writer.WritePropertyName("scope"); + writer.WriteStringValue(Scope); + } + if (StartTime != null) + { + writer.WritePropertyName("startTime"); + writer.WriteStringValue(StartTime); + } + if (ExpiryTime != null) + { + writer.WritePropertyName("expiryTime"); + writer.WriteStringValue(ExpiryTime); + } + writer.WriteEndObject(); + } + + internal static OAuth2PermissionGrant DeserializeOAuth2PermissionGrant(JsonElement element) + { + string odataType = default; + string clientId = default; + string objectId = default; + ConsentType? consentType = default; + string principalId = default; + string resourceId = default; + string scope = default; + string startTime = default; + string expiryTime = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("odata.type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + odataType = property.Value.GetString(); + continue; + } + if (property.NameEquals("clientId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + clientId = property.Value.GetString(); + continue; + } + if (property.NameEquals("objectId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + objectId = property.Value.GetString(); + continue; + } + if (property.NameEquals("consentType")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + consentType = new ConsentType(property.Value.GetString()); + continue; + } + if (property.NameEquals("principalId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + principalId = property.Value.GetString(); + continue; + } + if (property.NameEquals("resourceId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceId = property.Value.GetString(); + continue; + } + if (property.NameEquals("scope")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + scope = property.Value.GetString(); + continue; + } + if (property.NameEquals("startTime")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + startTime = property.Value.GetString(); + continue; + } + if (property.NameEquals("expiryTime")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + expiryTime = property.Value.GetString(); + continue; + } + } + return new OAuth2PermissionGrant(odataType, clientId, objectId, consentType, principalId, resourceId, scope, startTime, expiryTime); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OAuth2PermissionGrant.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OAuth2PermissionGrant.cs new file mode 100644 index 0000000000000..2a442f40f4df3 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OAuth2PermissionGrant.cs @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Graph.Rbac.Models +{ + /// The OAuth2PermissionGrant. + public partial class OAuth2PermissionGrant + { + /// Initializes a new instance of OAuth2PermissionGrant. + public OAuth2PermissionGrant() + { + } + + /// Initializes a new instance of OAuth2PermissionGrant. + /// Microsoft.DirectoryServices.OAuth2PermissionGrant. + /// The id of the resource's service principal granted consent to impersonate the user when accessing the resource (represented by the resourceId property). + /// The id of the permission grant. + /// Indicates if consent was provided by the administrator (on behalf of the organization) or by an individual. + /// When consent type is Principal, this property specifies the id of the user that granted consent and applies only for that user. + /// Object Id of the resource you want to grant. + /// Specifies the value of the scope claim that the resource application should expect in the OAuth 2.0 access token. For example, User.Read. + /// Start time for TTL. + /// Expiry time for TTL. + internal OAuth2PermissionGrant(string odataType, string clientId, string objectId, ConsentType? consentType, string principalId, string resourceId, string scope, string startTime, string expiryTime) + { + OdataType = odataType; + ClientId = clientId; + ObjectId = objectId; + ConsentType = consentType; + PrincipalId = principalId; + ResourceId = resourceId; + Scope = scope; + StartTime = startTime; + ExpiryTime = expiryTime; + } + + /// Microsoft.DirectoryServices.OAuth2PermissionGrant. + public string OdataType { get; set; } + /// The id of the resource's service principal granted consent to impersonate the user when accessing the resource (represented by the resourceId property). + public string ClientId { get; set; } + /// The id of the permission grant. + public string ObjectId { get; set; } + /// Indicates if consent was provided by the administrator (on behalf of the organization) or by an individual. + public ConsentType? ConsentType { get; set; } + /// When consent type is Principal, this property specifies the id of the user that granted consent and applies only for that user. + public string PrincipalId { get; set; } + /// Object Id of the resource you want to grant. + public string ResourceId { get; set; } + /// Specifies the value of the scope claim that the resource application should expect in the OAuth 2.0 access token. For example, User.Read. + public string Scope { get; set; } + /// Start time for TTL. + public string StartTime { get; set; } + /// Expiry time for TTL. + public string ExpiryTime { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OAuth2PermissionGrantListResult.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OAuth2PermissionGrantListResult.Serialization.cs new file mode 100644 index 0000000000000..16380ad9b9bd6 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OAuth2PermissionGrantListResult.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class OAuth2PermissionGrantListResult + { + internal static OAuth2PermissionGrantListResult DeserializeOAuth2PermissionGrantListResult(JsonElement element) + { + IReadOnlyList value = default; + string odataNextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(OAuth2PermissionGrant.DeserializeOAuth2PermissionGrant(item)); + } + } + value = array; + continue; + } + if (property.NameEquals("odata.nextLink")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + odataNextLink = property.Value.GetString(); + continue; + } + } + return new OAuth2PermissionGrantListResult(value, odataNextLink); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OAuth2PermissionGrantListResult.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OAuth2PermissionGrantListResult.cs new file mode 100644 index 0000000000000..05fcccaf06a51 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OAuth2PermissionGrantListResult.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Server response for get oauth2 permissions grants. + public partial class OAuth2PermissionGrantListResult + { + /// Initializes a new instance of OAuth2PermissionGrantListResult. + internal OAuth2PermissionGrantListResult() + { + } + + /// Initializes a new instance of OAuth2PermissionGrantListResult. + /// the list of oauth2 permissions grants. + /// the URL to get the next set of results. + internal OAuth2PermissionGrantListResult(IReadOnlyList value, string odataNextLink) + { + Value = value; + OdataNextLink = odataNextLink; + } + + /// the list of oauth2 permissions grants. + public IReadOnlyList Value { get; } + /// the URL to get the next set of results. + public string OdataNextLink { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OptionalClaim.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OptionalClaim.Serialization.cs new file mode 100644 index 0000000000000..fc8ecefd35bdc --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OptionalClaim.Serialization.cs @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class OptionalClaim : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Name != null) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + } + if (Source != null) + { + writer.WritePropertyName("source"); + writer.WriteStringValue(Source); + } + if (Essential != null) + { + writer.WritePropertyName("essential"); + writer.WriteBooleanValue(Essential.Value); + } + if (AdditionalProperties != null) + { + writer.WritePropertyName("additionalProperties"); + writer.WriteObjectValue(AdditionalProperties); + } + writer.WriteEndObject(); + } + + internal static OptionalClaim DeserializeOptionalClaim(JsonElement element) + { + string name = default; + string source = default; + bool? essential = default; + object additionalProperties = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("source")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + source = property.Value.GetString(); + continue; + } + if (property.NameEquals("essential")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + essential = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("additionalProperties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + additionalProperties = property.Value.GetObject(); + continue; + } + } + return new OptionalClaim(name, source, essential, additionalProperties); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OptionalClaim.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OptionalClaim.cs new file mode 100644 index 0000000000000..2c372833a40e5 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OptionalClaim.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Graph.Rbac.Models +{ + /// Specifying the claims to be included in a token. + public partial class OptionalClaim + { + /// Initializes a new instance of OptionalClaim. + public OptionalClaim() + { + } + + /// Initializes a new instance of OptionalClaim. + /// Claim name. + /// Claim source. + /// Is this a required claim. + /// Any object. + internal OptionalClaim(string name, string source, bool? essential, object additionalProperties) + { + Name = name; + Source = source; + Essential = essential; + AdditionalProperties = additionalProperties; + } + + /// Claim name. + public string Name { get; set; } + /// Claim source. + public string Source { get; set; } + /// Is this a required claim. + public bool? Essential { get; set; } + /// Any object. + public object AdditionalProperties { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OptionalClaims.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OptionalClaims.Serialization.cs new file mode 100644 index 0000000000000..aa4081ef22222 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OptionalClaims.Serialization.cs @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class OptionalClaims : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (IdToken != null) + { + writer.WritePropertyName("idToken"); + writer.WriteStartArray(); + foreach (var item in IdToken) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (AccessToken != null) + { + writer.WritePropertyName("accessToken"); + writer.WriteStartArray(); + foreach (var item in AccessToken) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (SamlToken != null) + { + writer.WritePropertyName("samlToken"); + writer.WriteStartArray(); + foreach (var item in SamlToken) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static OptionalClaims DeserializeOptionalClaims(JsonElement element) + { + IList idToken = default; + IList accessToken = default; + IList samlToken = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("idToken")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(OptionalClaim.DeserializeOptionalClaim(item)); + } + } + idToken = array; + continue; + } + if (property.NameEquals("accessToken")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(OptionalClaim.DeserializeOptionalClaim(item)); + } + } + accessToken = array; + continue; + } + if (property.NameEquals("samlToken")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(OptionalClaim.DeserializeOptionalClaim(item)); + } + } + samlToken = array; + continue; + } + } + return new OptionalClaims(idToken, accessToken, samlToken); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OptionalClaims.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OptionalClaims.cs new file mode 100644 index 0000000000000..6bcbe86c79eaa --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/OptionalClaims.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Specifying the claims to be included in the token. + public partial class OptionalClaims + { + /// Initializes a new instance of OptionalClaims. + public OptionalClaims() + { + } + + /// Initializes a new instance of OptionalClaims. + /// Optional claims requested to be included in the id token. + /// Optional claims requested to be included in the access token. + /// Optional claims requested to be included in the saml token. + internal OptionalClaims(IList idToken, IList accessToken, IList samlToken) + { + IdToken = idToken; + AccessToken = accessToken; + SamlToken = samlToken; + } + + /// Optional claims requested to be included in the id token. + public IList IdToken { get; set; } + /// Optional claims requested to be included in the access token. + public IList AccessToken { get; set; } + /// Optional claims requested to be included in the saml token. + public IList SamlToken { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordCredential.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordCredential.Serialization.cs new file mode 100644 index 0000000000000..fc66c819780e7 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordCredential.Serialization.cs @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class PasswordCredential : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (StartDate != null) + { + writer.WritePropertyName("startDate"); + writer.WriteStringValue(StartDate.Value, "O"); + } + if (EndDate != null) + { + writer.WritePropertyName("endDate"); + writer.WriteStringValue(EndDate.Value, "O"); + } + if (KeyId != null) + { + writer.WritePropertyName("keyId"); + writer.WriteStringValue(KeyId); + } + if (Value != null) + { + writer.WritePropertyName("value"); + writer.WriteStringValue(Value); + } + if (CustomKeyIdentifier != null) + { + writer.WritePropertyName("customKeyIdentifier"); + writer.WriteBase64StringValue(CustomKeyIdentifier); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + + internal static PasswordCredential DeserializePasswordCredential(JsonElement element) + { + DateTimeOffset? startDate = default; + DateTimeOffset? endDate = default; + string keyId = default; + string value = default; + byte[] customKeyIdentifier = default; + IDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("startDate")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + startDate = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("endDate")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + endDate = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("keyId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + keyId = property.Value.GetString(); + continue; + } + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + value = property.Value.GetString(); + continue; + } + if (property.NameEquals("customKeyIdentifier")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + customKeyIdentifier = property.Value.GetBytesFromBase64(); + continue; + } + additionalPropertiesDictionary ??= new Dictionary(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + additionalPropertiesDictionary.Add(property.Name, null); + } + else + { + additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); + } + } + additionalProperties = additionalPropertiesDictionary; + return new PasswordCredential(startDate, endDate, keyId, value, customKeyIdentifier, additionalProperties); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordCredential.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordCredential.cs new file mode 100644 index 0000000000000..cd490f868b714 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordCredential.cs @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Active Directory Password Credential information. + public partial class PasswordCredential : IDictionary + { + /// Initializes a new instance of PasswordCredential. + public PasswordCredential() + { + AdditionalProperties = new Dictionary(); + } + + /// Initializes a new instance of PasswordCredential. + /// Start date. + /// End date. + /// Key ID. + /// Key value. + /// Custom Key Identifier. + /// . + internal PasswordCredential(DateTimeOffset? startDate, DateTimeOffset? endDate, string keyId, string value, byte[] customKeyIdentifier, IDictionary additionalProperties) + { + StartDate = startDate; + EndDate = endDate; + KeyId = keyId; + Value = value; + CustomKeyIdentifier = customKeyIdentifier; + AdditionalProperties = additionalProperties ?? new Dictionary(); + } + + /// Start date. + public DateTimeOffset? StartDate { get; set; } + /// End date. + public DateTimeOffset? EndDate { get; set; } + /// Key ID. + public string KeyId { get; set; } + /// Key value. + public string Value { get; set; } + /// Custom Key Identifier. + public byte[] CustomKeyIdentifier { get; set; } + internal IDictionary AdditionalProperties { get; } + /// + public IEnumerator> GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); + /// + public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); + /// + public ICollection Keys => AdditionalProperties.Keys; + /// + public ICollection Values => AdditionalProperties.Values; + /// + int ICollection>.Count => AdditionalProperties.Count; + /// + public void Add(string key, object value) => AdditionalProperties.Add(key, value); + /// + public bool Remove(string key) => AdditionalProperties.Remove(key); + /// + bool ICollection>.IsReadOnly => AdditionalProperties.IsReadOnly; + /// + void ICollection>.Add(KeyValuePair value) => AdditionalProperties.Add(value); + /// + bool ICollection>.Remove(KeyValuePair value) => AdditionalProperties.Remove(value); + /// + bool ICollection>.Contains(KeyValuePair value) => AdditionalProperties.Contains(value); + /// + void ICollection>.CopyTo(KeyValuePair[] destination, int offset) => AdditionalProperties.CopyTo(destination, offset); + /// + void ICollection>.Clear() => AdditionalProperties.Clear(); + /// + public object this[string key] + { + get => AdditionalProperties[key]; + set => AdditionalProperties[key] = value; + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordCredentialListResult.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordCredentialListResult.Serialization.cs new file mode 100644 index 0000000000000..cde1de2d74223 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordCredentialListResult.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class PasswordCredentialListResult + { + internal static PasswordCredentialListResult DeserializePasswordCredentialListResult(JsonElement element) + { + IReadOnlyList value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(PasswordCredential.DeserializePasswordCredential(item)); + } + } + value = array; + continue; + } + } + return new PasswordCredentialListResult(value); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordCredentialListResult.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordCredentialListResult.cs new file mode 100644 index 0000000000000..1fccdfc35ce95 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordCredentialListResult.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// PasswordCredential list operation result. + public partial class PasswordCredentialListResult + { + /// Initializes a new instance of PasswordCredentialListResult. + internal PasswordCredentialListResult() + { + } + + /// Initializes a new instance of PasswordCredentialListResult. + /// A collection of PasswordCredentials. + internal PasswordCredentialListResult(IReadOnlyList value) + { + Value = value; + } + + /// A collection of PasswordCredentials. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordCredentialsUpdateParameters.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordCredentialsUpdateParameters.Serialization.cs new file mode 100644 index 0000000000000..35f90351d6bf8 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordCredentialsUpdateParameters.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class PasswordCredentialsUpdateParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("value"); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordCredentialsUpdateParameters.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordCredentialsUpdateParameters.cs new file mode 100644 index 0000000000000..daf582ee840e4 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordCredentialsUpdateParameters.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Graph.Rbac.Models +{ + /// Request parameters for a PasswordCredentials update operation. + public partial class PasswordCredentialsUpdateParameters + { + /// Initializes a new instance of PasswordCredentialsUpdateParameters. + /// A collection of PasswordCredentials. + public PasswordCredentialsUpdateParameters(IEnumerable value) + { + if (value == null) + { + throw new ArgumentNullException(nameof(value)); + } + + Value = value.ToArray(); + } + + /// Initializes a new instance of PasswordCredentialsUpdateParameters. + /// A collection of PasswordCredentials. + internal PasswordCredentialsUpdateParameters(IList value) + { + Value = value; + } + + /// A collection of PasswordCredentials. + public IList Value { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordProfile.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordProfile.Serialization.cs new file mode 100644 index 0000000000000..73ac23367e4ad --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordProfile.Serialization.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class PasswordProfile : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("password"); + writer.WriteStringValue(Password); + if (ForceChangePasswordNextLogin != null) + { + writer.WritePropertyName("forceChangePasswordNextLogin"); + writer.WriteBooleanValue(ForceChangePasswordNextLogin.Value); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordProfile.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordProfile.cs new file mode 100644 index 0000000000000..229eb283f6ad3 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PasswordProfile.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// The password profile associated with a user. + public partial class PasswordProfile : IDictionary + { + /// Initializes a new instance of PasswordProfile. + /// Password. + public PasswordProfile(string password) + { + if (password == null) + { + throw new ArgumentNullException(nameof(password)); + } + + Password = password; + AdditionalProperties = new Dictionary(); + } + + /// Initializes a new instance of PasswordProfile. + /// Password. + /// Whether to force a password change on next login. + /// . + internal PasswordProfile(string password, bool? forceChangePasswordNextLogin, IDictionary additionalProperties) + { + Password = password; + ForceChangePasswordNextLogin = forceChangePasswordNextLogin; + AdditionalProperties = additionalProperties ?? new Dictionary(); + } + + /// Password. + public string Password { get; } + /// Whether to force a password change on next login. + public bool? ForceChangePasswordNextLogin { get; set; } + internal IDictionary AdditionalProperties { get; } + /// + public IEnumerator> GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); + /// + public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); + /// + public ICollection Keys => AdditionalProperties.Keys; + /// + public ICollection Values => AdditionalProperties.Values; + /// + int ICollection>.Count => AdditionalProperties.Count; + /// + public void Add(string key, object value) => AdditionalProperties.Add(key, value); + /// + public bool Remove(string key) => AdditionalProperties.Remove(key); + /// + bool ICollection>.IsReadOnly => AdditionalProperties.IsReadOnly; + /// + void ICollection>.Add(KeyValuePair value) => AdditionalProperties.Add(value); + /// + bool ICollection>.Remove(KeyValuePair value) => AdditionalProperties.Remove(value); + /// + bool ICollection>.Contains(KeyValuePair value) => AdditionalProperties.Contains(value); + /// + void ICollection>.CopyTo(KeyValuePair[] destination, int offset) => AdditionalProperties.CopyTo(destination, offset); + /// + void ICollection>.Clear() => AdditionalProperties.Clear(); + /// + public object this[string key] + { + get => AdditionalProperties[key]; + set => AdditionalProperties[key] = value; + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PreAuthorizedApplication.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PreAuthorizedApplication.Serialization.cs new file mode 100644 index 0000000000000..eafc906c0eefe --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PreAuthorizedApplication.Serialization.cs @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class PreAuthorizedApplication : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (AppId != null) + { + writer.WritePropertyName("appId"); + writer.WriteStringValue(AppId); + } + if (Permissions != null) + { + writer.WritePropertyName("permissions"); + writer.WriteStartArray(); + foreach (var item in Permissions) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (Extensions != null) + { + writer.WritePropertyName("extensions"); + writer.WriteStartArray(); + foreach (var item in Extensions) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static PreAuthorizedApplication DeserializePreAuthorizedApplication(JsonElement element) + { + string appId = default; + IList permissions = default; + IList extensions = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("appId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + appId = property.Value.GetString(); + continue; + } + if (property.NameEquals("permissions")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(PreAuthorizedApplicationPermission.DeserializePreAuthorizedApplicationPermission(item)); + } + } + permissions = array; + continue; + } + if (property.NameEquals("extensions")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(PreAuthorizedApplicationExtension.DeserializePreAuthorizedApplicationExtension(item)); + } + } + extensions = array; + continue; + } + } + return new PreAuthorizedApplication(appId, permissions, extensions); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PreAuthorizedApplication.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PreAuthorizedApplication.cs new file mode 100644 index 0000000000000..f35f1ddd48adb --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PreAuthorizedApplication.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Contains information about pre authorized client application. + public partial class PreAuthorizedApplication + { + /// Initializes a new instance of PreAuthorizedApplication. + public PreAuthorizedApplication() + { + } + + /// Initializes a new instance of PreAuthorizedApplication. + /// Represents the application id. + /// Collection of required app permissions/entitlements from the resource application. + /// Collection of extensions from the resource application. + internal PreAuthorizedApplication(string appId, IList permissions, IList extensions) + { + AppId = appId; + Permissions = permissions; + Extensions = extensions; + } + + /// Represents the application id. + public string AppId { get; set; } + /// Collection of required app permissions/entitlements from the resource application. + public IList Permissions { get; set; } + /// Collection of extensions from the resource application. + public IList Extensions { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PreAuthorizedApplicationExtension.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PreAuthorizedApplicationExtension.Serialization.cs new file mode 100644 index 0000000000000..0db2eb8803f16 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PreAuthorizedApplicationExtension.Serialization.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class PreAuthorizedApplicationExtension : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Conditions != null) + { + writer.WritePropertyName("conditions"); + writer.WriteStartArray(); + foreach (var item in Conditions) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static PreAuthorizedApplicationExtension DeserializePreAuthorizedApplicationExtension(JsonElement element) + { + IList conditions = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("conditions")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + conditions = array; + continue; + } + } + return new PreAuthorizedApplicationExtension(conditions); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PreAuthorizedApplicationExtension.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PreAuthorizedApplicationExtension.cs new file mode 100644 index 0000000000000..c45439ab4e787 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PreAuthorizedApplicationExtension.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Representation of an app PreAuthorizedApplicationExtension required by a pre authorized client app. + public partial class PreAuthorizedApplicationExtension + { + /// Initializes a new instance of PreAuthorizedApplicationExtension. + public PreAuthorizedApplicationExtension() + { + } + + /// Initializes a new instance of PreAuthorizedApplicationExtension. + /// The extension's conditions. + internal PreAuthorizedApplicationExtension(IList conditions) + { + Conditions = conditions; + } + + /// The extension's conditions. + public IList Conditions { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PreAuthorizedApplicationPermission.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PreAuthorizedApplicationPermission.Serialization.cs new file mode 100644 index 0000000000000..93beb7202f023 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PreAuthorizedApplicationPermission.Serialization.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class PreAuthorizedApplicationPermission : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (DirectAccessGrant != null) + { + writer.WritePropertyName("directAccessGrant"); + writer.WriteBooleanValue(DirectAccessGrant.Value); + } + if (AccessGrants != null) + { + writer.WritePropertyName("accessGrants"); + writer.WriteStartArray(); + foreach (var item in AccessGrants) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + + internal static PreAuthorizedApplicationPermission DeserializePreAuthorizedApplicationPermission(JsonElement element) + { + bool? directAccessGrant = default; + IList accessGrants = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("directAccessGrant")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + directAccessGrant = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("accessGrants")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + accessGrants = array; + continue; + } + } + return new PreAuthorizedApplicationPermission(directAccessGrant, accessGrants); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PreAuthorizedApplicationPermission.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PreAuthorizedApplicationPermission.cs new file mode 100644 index 0000000000000..1e2633dbece71 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/PreAuthorizedApplicationPermission.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Contains information about the pre-authorized permissions. + public partial class PreAuthorizedApplicationPermission + { + /// Initializes a new instance of PreAuthorizedApplicationPermission. + public PreAuthorizedApplicationPermission() + { + } + + /// Initializes a new instance of PreAuthorizedApplicationPermission. + /// Indicates whether the permission set is DirectAccess or impersonation. + /// The list of permissions. + internal PreAuthorizedApplicationPermission(bool? directAccessGrant, IList accessGrants) + { + DirectAccessGrant = directAccessGrant; + AccessGrants = accessGrants; + } + + /// Indicates whether the permission set is DirectAccess or impersonation. + public bool? DirectAccessGrant { get; set; } + /// The list of permissions. + public IList AccessGrants { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/RequiredResourceAccess.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/RequiredResourceAccess.Serialization.cs new file mode 100644 index 0000000000000..047020ab9b29e --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/RequiredResourceAccess.Serialization.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class RequiredResourceAccess : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("resourceAccess"); + writer.WriteStartArray(); + foreach (var item in ResourceAccess) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + if (ResourceAppId != null) + { + writer.WritePropertyName("resourceAppId"); + writer.WriteStringValue(ResourceAppId); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + + internal static RequiredResourceAccess DeserializeRequiredResourceAccess(JsonElement element) + { + IList resourceAccess = default; + string resourceAppId = default; + IDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("resourceAccess")) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(Models.ResourceAccess.DeserializeResourceAccess(item)); + } + } + resourceAccess = array; + continue; + } + if (property.NameEquals("resourceAppId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceAppId = property.Value.GetString(); + continue; + } + additionalPropertiesDictionary ??= new Dictionary(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + additionalPropertiesDictionary.Add(property.Name, null); + } + else + { + additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); + } + } + additionalProperties = additionalPropertiesDictionary; + return new RequiredResourceAccess(resourceAccess, resourceAppId, additionalProperties); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/RequiredResourceAccess.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/RequiredResourceAccess.cs new file mode 100644 index 0000000000000..8b794f34429cd --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/RequiredResourceAccess.cs @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.Graph.Rbac.Models +{ + /// Specifies the set of OAuth 2.0 permission scopes and app roles under the specified resource that an application requires access to. The specified OAuth 2.0 permission scopes may be requested by client applications (through the requiredResourceAccess collection) when calling a resource application. The requiredResourceAccess property of the Application entity is a collection of RequiredResourceAccess. + public partial class RequiredResourceAccess : IDictionary + { + /// Initializes a new instance of RequiredResourceAccess. + /// The list of OAuth2.0 permission scopes and app roles that the application requires from the specified resource. + public RequiredResourceAccess(IEnumerable resourceAccess) + { + if (resourceAccess == null) + { + throw new ArgumentNullException(nameof(resourceAccess)); + } + + ResourceAccess = resourceAccess.ToArray(); + AdditionalProperties = new Dictionary(); + } + + /// Initializes a new instance of RequiredResourceAccess. + /// The list of OAuth2.0 permission scopes and app roles that the application requires from the specified resource. + /// The unique identifier for the resource that the application requires access to. This should be equal to the appId declared on the target resource application. + /// . + internal RequiredResourceAccess(IList resourceAccess, string resourceAppId, IDictionary additionalProperties) + { + ResourceAccess = resourceAccess; + ResourceAppId = resourceAppId; + AdditionalProperties = additionalProperties ?? new Dictionary(); + } + + /// The list of OAuth2.0 permission scopes and app roles that the application requires from the specified resource. + public IList ResourceAccess { get; set; } + /// The unique identifier for the resource that the application requires access to. This should be equal to the appId declared on the target resource application. + public string ResourceAppId { get; set; } + internal IDictionary AdditionalProperties { get; } + /// + public IEnumerator> GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); + /// + public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); + /// + public ICollection Keys => AdditionalProperties.Keys; + /// + public ICollection Values => AdditionalProperties.Values; + /// + int ICollection>.Count => AdditionalProperties.Count; + /// + public void Add(string key, object value) => AdditionalProperties.Add(key, value); + /// + public bool Remove(string key) => AdditionalProperties.Remove(key); + /// + bool ICollection>.IsReadOnly => AdditionalProperties.IsReadOnly; + /// + void ICollection>.Add(KeyValuePair value) => AdditionalProperties.Add(value); + /// + bool ICollection>.Remove(KeyValuePair value) => AdditionalProperties.Remove(value); + /// + bool ICollection>.Contains(KeyValuePair value) => AdditionalProperties.Contains(value); + /// + void ICollection>.CopyTo(KeyValuePair[] destination, int offset) => AdditionalProperties.CopyTo(destination, offset); + /// + void ICollection>.Clear() => AdditionalProperties.Clear(); + /// + public object this[string key] + { + get => AdditionalProperties[key]; + set => AdditionalProperties[key] = value; + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ResourceAccess.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ResourceAccess.Serialization.cs new file mode 100644 index 0000000000000..7ac3801e3a57f --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ResourceAccess.Serialization.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class ResourceAccess : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + if (Type != null) + { + writer.WritePropertyName("type"); + writer.WriteStringValue(Type); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + + internal static ResourceAccess DeserializeResourceAccess(JsonElement element) + { + string id = default; + string type = default; + IDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = property.Value.GetString(); + continue; + } + additionalPropertiesDictionary ??= new Dictionary(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + additionalPropertiesDictionary.Add(property.Name, null); + } + else + { + additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); + } + } + additionalProperties = additionalPropertiesDictionary; + return new ResourceAccess(id, type, additionalProperties); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ResourceAccess.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ResourceAccess.cs new file mode 100644 index 0000000000000..530dde451e835 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ResourceAccess.cs @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Specifies an OAuth 2.0 permission scope or an app role that an application requires. The resourceAccess property of the RequiredResourceAccess type is a collection of ResourceAccess. + public partial class ResourceAccess : IDictionary + { + /// Initializes a new instance of ResourceAccess. + /// The unique identifier for one of the OAuth2Permission or AppRole instances that the resource application exposes. + public ResourceAccess(string id) + { + if (id == null) + { + throw new ArgumentNullException(nameof(id)); + } + + Id = id; + AdditionalProperties = new Dictionary(); + } + + /// Initializes a new instance of ResourceAccess. + /// The unique identifier for one of the OAuth2Permission or AppRole instances that the resource application exposes. + /// Specifies whether the id property references an OAuth2Permission or an AppRole. Possible values are "scope" or "role". + /// . + internal ResourceAccess(string id, string type, IDictionary additionalProperties) + { + Id = id; + Type = type; + AdditionalProperties = additionalProperties ?? new Dictionary(); + } + + /// The unique identifier for one of the OAuth2Permission or AppRole instances that the resource application exposes. + public string Id { get; set; } + /// Specifies whether the id property references an OAuth2Permission or an AppRole. Possible values are "scope" or "role". + public string Type { get; set; } + internal IDictionary AdditionalProperties { get; } + /// + public IEnumerator> GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); + /// + public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); + /// + public ICollection Keys => AdditionalProperties.Keys; + /// + public ICollection Values => AdditionalProperties.Values; + /// + int ICollection>.Count => AdditionalProperties.Count; + /// + public void Add(string key, object value) => AdditionalProperties.Add(key, value); + /// + public bool Remove(string key) => AdditionalProperties.Remove(key); + /// + bool ICollection>.IsReadOnly => AdditionalProperties.IsReadOnly; + /// + void ICollection>.Add(KeyValuePair value) => AdditionalProperties.Add(value); + /// + bool ICollection>.Remove(KeyValuePair value) => AdditionalProperties.Remove(value); + /// + bool ICollection>.Contains(KeyValuePair value) => AdditionalProperties.Contains(value); + /// + void ICollection>.CopyTo(KeyValuePair[] destination, int offset) => AdditionalProperties.CopyTo(destination, offset); + /// + void ICollection>.Clear() => AdditionalProperties.Clear(); + /// + public object this[string key] + { + get => AdditionalProperties[key]; + set => AdditionalProperties[key] = value; + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipal.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipal.Serialization.cs new file mode 100644 index 0000000000000..b358a40cd447a --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipal.Serialization.cs @@ -0,0 +1,373 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class ServicePrincipal + { + internal static ServicePrincipal DeserializeServicePrincipal(JsonElement element) + { + bool? accountEnabled = default; + IReadOnlyList alternativeNames = default; + string appDisplayName = default; + string appId = default; + string appOwnerTenantId = default; + bool? appRoleAssignmentRequired = default; + IReadOnlyList appRoles = default; + string displayName = default; + string errorUrl = default; + string homepage = default; + IReadOnlyList keyCredentials = default; + string logoutUrl = default; + IReadOnlyList oauth2Permissions = default; + IReadOnlyList passwordCredentials = default; + string preferredTokenSigningKeyThumbprint = default; + string publisherName = default; + IReadOnlyList replyUrls = default; + string samlMetadataUrl = default; + IReadOnlyList servicePrincipalNames = default; + string servicePrincipalType = default; + IReadOnlyList tags = default; + string objectId = default; + string objectType = default; + DateTimeOffset? deletionTimestamp = default; + IReadOnlyDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("accountEnabled")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + accountEnabled = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("alternativeNames")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + alternativeNames = array; + continue; + } + if (property.NameEquals("appDisplayName")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + appDisplayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("appId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + appId = property.Value.GetString(); + continue; + } + if (property.NameEquals("appOwnerTenantId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + appOwnerTenantId = property.Value.GetString(); + continue; + } + if (property.NameEquals("appRoleAssignmentRequired")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + appRoleAssignmentRequired = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("appRoles")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(AppRole.DeserializeAppRole(item)); + } + } + appRoles = array; + continue; + } + if (property.NameEquals("displayName")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("errorUrl")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + errorUrl = property.Value.GetString(); + continue; + } + if (property.NameEquals("homepage")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + homepage = property.Value.GetString(); + continue; + } + if (property.NameEquals("keyCredentials")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(KeyCredential.DeserializeKeyCredential(item)); + } + } + keyCredentials = array; + continue; + } + if (property.NameEquals("logoutUrl")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + logoutUrl = property.Value.GetString(); + continue; + } + if (property.NameEquals("oauth2Permissions")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(OAuth2Permission.DeserializeOAuth2Permission(item)); + } + } + oauth2Permissions = array; + continue; + } + if (property.NameEquals("passwordCredentials")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(PasswordCredential.DeserializePasswordCredential(item)); + } + } + passwordCredentials = array; + continue; + } + if (property.NameEquals("preferredTokenSigningKeyThumbprint")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + preferredTokenSigningKeyThumbprint = property.Value.GetString(); + continue; + } + if (property.NameEquals("publisherName")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + publisherName = property.Value.GetString(); + continue; + } + if (property.NameEquals("replyUrls")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + replyUrls = array; + continue; + } + if (property.NameEquals("samlMetadataUrl")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + samlMetadataUrl = property.Value.GetString(); + continue; + } + if (property.NameEquals("servicePrincipalNames")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + servicePrincipalNames = array; + continue; + } + if (property.NameEquals("servicePrincipalType")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + servicePrincipalType = property.Value.GetString(); + continue; + } + if (property.NameEquals("tags")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + tags = array; + continue; + } + if (property.NameEquals("objectId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + objectId = property.Value.GetString(); + continue; + } + if (property.NameEquals("objectType")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + objectType = property.Value.GetString(); + continue; + } + if (property.NameEquals("deletionTimestamp")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + deletionTimestamp = property.Value.GetDateTimeOffset("O"); + continue; + } + additionalPropertiesDictionary ??= new Dictionary(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + additionalPropertiesDictionary.Add(property.Name, null); + } + else + { + additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); + } + } + additionalProperties = additionalPropertiesDictionary; + return new ServicePrincipal(objectId, objectType, deletionTimestamp, additionalProperties, accountEnabled, alternativeNames, appDisplayName, appId, appOwnerTenantId, appRoleAssignmentRequired, appRoles, displayName, errorUrl, homepage, keyCredentials, logoutUrl, oauth2Permissions, passwordCredentials, preferredTokenSigningKeyThumbprint, publisherName, replyUrls, samlMetadataUrl, servicePrincipalNames, servicePrincipalType, tags); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipal.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipal.cs new file mode 100644 index 0000000000000..0f5e4464d4248 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipal.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Active Directory service principal information. + public partial class ServicePrincipal : DirectoryObject + { + /// Initializes a new instance of ServicePrincipal. + internal ServicePrincipal() + { + ObjectType = "ServicePrincipal"; + } + + /// Initializes a new instance of ServicePrincipal. + /// The object ID. + /// The object type. + /// The time at which the directory object was deleted. + /// . + /// whether or not the service principal account is enabled. + /// alternative names. + /// The display name exposed by the associated application. + /// The application ID. + /// . + /// Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application. + /// The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals. + /// The display name of the service principal. + /// A URL provided by the author of the associated application to report errors when using the application. + /// The URL to the homepage of the associated application. + /// The collection of key credentials associated with the service principal. + /// A URL provided by the author of the associated application to logout. + /// The OAuth 2.0 permissions exposed by the associated application. + /// The collection of password credentials associated with the service principal. + /// The thumbprint of preferred certificate to sign the token. + /// The publisher's name of the associated application. + /// The URLs that user tokens are sent to for sign in with the associated application. The redirect URIs that the oAuth 2.0 authorization code and access tokens are sent to for the associated application. + /// The URL to the SAML metadata of the associated application. + /// A collection of service principal names. + /// the type of the service principal. + /// Optional list of tags that you can apply to your service principals. Not nullable. + internal ServicePrincipal(string objectId, string objectType, DateTimeOffset? deletionTimestamp, IReadOnlyDictionary additionalProperties, bool? accountEnabled, IReadOnlyList alternativeNames, string appDisplayName, string appId, string appOwnerTenantId, bool? appRoleAssignmentRequired, IReadOnlyList appRoles, string displayName, string errorUrl, string homepage, IReadOnlyList keyCredentials, string logoutUrl, IReadOnlyList oauth2Permissions, IReadOnlyList passwordCredentials, string preferredTokenSigningKeyThumbprint, string publisherName, IReadOnlyList replyUrls, string samlMetadataUrl, IReadOnlyList servicePrincipalNames, string servicePrincipalType, IReadOnlyList tags) : base(objectId, objectType, deletionTimestamp, additionalProperties) + { + AccountEnabled = accountEnabled; + AlternativeNames = alternativeNames; + AppDisplayName = appDisplayName; + AppId = appId; + AppOwnerTenantId = appOwnerTenantId; + AppRoleAssignmentRequired = appRoleAssignmentRequired; + AppRoles = appRoles; + DisplayName = displayName; + ErrorUrl = errorUrl; + Homepage = homepage; + KeyCredentials = keyCredentials; + LogoutUrl = logoutUrl; + Oauth2Permissions = oauth2Permissions; + PasswordCredentials = passwordCredentials; + PreferredTokenSigningKeyThumbprint = preferredTokenSigningKeyThumbprint; + PublisherName = publisherName; + ReplyUrls = replyUrls; + SamlMetadataUrl = samlMetadataUrl; + ServicePrincipalNames = servicePrincipalNames; + ServicePrincipalType = servicePrincipalType; + Tags = tags; + ObjectType = objectType ?? "ServicePrincipal"; + } + + /// whether or not the service principal account is enabled. + public bool? AccountEnabled { get; } + /// alternative names. + public IReadOnlyList AlternativeNames { get; } + /// The display name exposed by the associated application. + public string AppDisplayName { get; } + /// The application ID. + public string AppId { get; } + public string AppOwnerTenantId { get; } + /// Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application. + public bool? AppRoleAssignmentRequired { get; } + /// The collection of application roles that an application may declare. These roles can be assigned to users, groups or service principals. + public IReadOnlyList AppRoles { get; } + /// The display name of the service principal. + public string DisplayName { get; } + /// A URL provided by the author of the associated application to report errors when using the application. + public string ErrorUrl { get; } + /// The URL to the homepage of the associated application. + public string Homepage { get; } + /// The collection of key credentials associated with the service principal. + public IReadOnlyList KeyCredentials { get; } + /// A URL provided by the author of the associated application to logout. + public string LogoutUrl { get; } + /// The OAuth 2.0 permissions exposed by the associated application. + public IReadOnlyList Oauth2Permissions { get; } + /// The collection of password credentials associated with the service principal. + public IReadOnlyList PasswordCredentials { get; } + /// The thumbprint of preferred certificate to sign the token. + public string PreferredTokenSigningKeyThumbprint { get; } + /// The publisher's name of the associated application. + public string PublisherName { get; } + /// The URLs that user tokens are sent to for sign in with the associated application. The redirect URIs that the oAuth 2.0 authorization code and access tokens are sent to for the associated application. + public IReadOnlyList ReplyUrls { get; } + /// The URL to the SAML metadata of the associated application. + public string SamlMetadataUrl { get; } + /// A collection of service principal names. + public IReadOnlyList ServicePrincipalNames { get; } + /// the type of the service principal. + public string ServicePrincipalType { get; } + /// Optional list of tags that you can apply to your service principals. Not nullable. + public IReadOnlyList Tags { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalBase.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalBase.Serialization.cs new file mode 100644 index 0000000000000..a4abb6f1005cf --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalBase.Serialization.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class ServicePrincipalBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (AccountEnabled != null) + { + writer.WritePropertyName("accountEnabled"); + writer.WriteBooleanValue(AccountEnabled.Value); + } + if (AppRoleAssignmentRequired != null) + { + writer.WritePropertyName("appRoleAssignmentRequired"); + writer.WriteBooleanValue(AppRoleAssignmentRequired.Value); + } + if (KeyCredentials != null) + { + writer.WritePropertyName("keyCredentials"); + writer.WriteStartArray(); + foreach (var item in KeyCredentials) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (PasswordCredentials != null) + { + writer.WritePropertyName("passwordCredentials"); + writer.WriteStartArray(); + foreach (var item in PasswordCredentials) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (ServicePrincipalType != null) + { + writer.WritePropertyName("servicePrincipalType"); + writer.WriteStringValue(ServicePrincipalType); + } + if (Tags != null) + { + writer.WritePropertyName("tags"); + writer.WriteStartArray(); + foreach (var item in Tags) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalBase.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalBase.cs new file mode 100644 index 0000000000000..7169d744932c0 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalBase.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Active Directory service principal common properties shared among GET, POST and PATCH. + public partial class ServicePrincipalBase + { + /// Initializes a new instance of ServicePrincipalBase. + public ServicePrincipalBase() + { + } + + /// Initializes a new instance of ServicePrincipalBase. + /// whether or not the service principal account is enabled. + /// Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application. + /// The collection of key credentials associated with the service principal. + /// The collection of password credentials associated with the service principal. + /// the type of the service principal. + /// Optional list of tags that you can apply to your service principals. Not nullable. + internal ServicePrincipalBase(bool? accountEnabled, bool? appRoleAssignmentRequired, IList keyCredentials, IList passwordCredentials, string servicePrincipalType, IList tags) + { + AccountEnabled = accountEnabled; + AppRoleAssignmentRequired = appRoleAssignmentRequired; + KeyCredentials = keyCredentials; + PasswordCredentials = passwordCredentials; + ServicePrincipalType = servicePrincipalType; + Tags = tags; + } + + /// whether or not the service principal account is enabled. + public bool? AccountEnabled { get; set; } + /// Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application. + public bool? AppRoleAssignmentRequired { get; set; } + /// The collection of key credentials associated with the service principal. + public IList KeyCredentials { get; set; } + /// The collection of password credentials associated with the service principal. + public IList PasswordCredentials { get; set; } + /// the type of the service principal. + public string ServicePrincipalType { get; set; } + /// Optional list of tags that you can apply to your service principals. Not nullable. + public IList Tags { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalCreateParameters.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalCreateParameters.Serialization.cs new file mode 100644 index 0000000000000..1ec80bfadbc9a --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalCreateParameters.Serialization.cs @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class ServicePrincipalCreateParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("appId"); + writer.WriteStringValue(AppId); + if (AccountEnabled != null) + { + writer.WritePropertyName("accountEnabled"); + writer.WriteBooleanValue(AccountEnabled.Value); + } + if (AppRoleAssignmentRequired != null) + { + writer.WritePropertyName("appRoleAssignmentRequired"); + writer.WriteBooleanValue(AppRoleAssignmentRequired.Value); + } + if (KeyCredentials != null) + { + writer.WritePropertyName("keyCredentials"); + writer.WriteStartArray(); + foreach (var item in KeyCredentials) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (PasswordCredentials != null) + { + writer.WritePropertyName("passwordCredentials"); + writer.WriteStartArray(); + foreach (var item in PasswordCredentials) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (ServicePrincipalType != null) + { + writer.WritePropertyName("servicePrincipalType"); + writer.WriteStringValue(ServicePrincipalType); + } + if (Tags != null) + { + writer.WritePropertyName("tags"); + writer.WriteStartArray(); + foreach (var item in Tags) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalCreateParameters.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalCreateParameters.cs new file mode 100644 index 0000000000000..b15d649de45ab --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalCreateParameters.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Request parameters for creating a new service principal. + public partial class ServicePrincipalCreateParameters : ServicePrincipalBase + { + /// Initializes a new instance of ServicePrincipalCreateParameters. + /// The application ID. + public ServicePrincipalCreateParameters(string appId) + { + if (appId == null) + { + throw new ArgumentNullException(nameof(appId)); + } + + AppId = appId; + } + + /// Initializes a new instance of ServicePrincipalCreateParameters. + /// whether or not the service principal account is enabled. + /// Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application. + /// The collection of key credentials associated with the service principal. + /// The collection of password credentials associated with the service principal. + /// the type of the service principal. + /// Optional list of tags that you can apply to your service principals. Not nullable. + /// The application ID. + internal ServicePrincipalCreateParameters(bool? accountEnabled, bool? appRoleAssignmentRequired, IList keyCredentials, IList passwordCredentials, string servicePrincipalType, IList tags, string appId) : base(accountEnabled, appRoleAssignmentRequired, keyCredentials, passwordCredentials, servicePrincipalType, tags) + { + AppId = appId; + } + + /// The application ID. + public string AppId { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalListResult.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalListResult.Serialization.cs new file mode 100644 index 0000000000000..41834a98bd088 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalListResult.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class ServicePrincipalListResult + { + internal static ServicePrincipalListResult DeserializeServicePrincipalListResult(JsonElement element) + { + IReadOnlyList value = default; + string odataNextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(ServicePrincipal.DeserializeServicePrincipal(item)); + } + } + value = array; + continue; + } + if (property.NameEquals("odata.nextLink")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + odataNextLink = property.Value.GetString(); + continue; + } + } + return new ServicePrincipalListResult(value, odataNextLink); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalListResult.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalListResult.cs new file mode 100644 index 0000000000000..f68a88ae1f002 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalListResult.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Server response for get tenant service principals API call. + public partial class ServicePrincipalListResult + { + /// Initializes a new instance of ServicePrincipalListResult. + internal ServicePrincipalListResult() + { + } + + /// Initializes a new instance of ServicePrincipalListResult. + /// the list of service principals. + /// the URL to get the next set of results. + internal ServicePrincipalListResult(IReadOnlyList value, string odataNextLink) + { + Value = value; + OdataNextLink = odataNextLink; + } + + /// the list of service principals. + public IReadOnlyList Value { get; } + /// the URL to get the next set of results. + public string OdataNextLink { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalObjectResult.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalObjectResult.Serialization.cs new file mode 100644 index 0000000000000..e616355cbc1bf --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalObjectResult.Serialization.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class ServicePrincipalObjectResult + { + internal static ServicePrincipalObjectResult DeserializeServicePrincipalObjectResult(JsonElement element) + { + string value = default; + string odataMetadata = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + value = property.Value.GetString(); + continue; + } + if (property.NameEquals("odata.metadata")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + odataMetadata = property.Value.GetString(); + continue; + } + } + return new ServicePrincipalObjectResult(value, odataMetadata); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalObjectResult.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalObjectResult.cs new file mode 100644 index 0000000000000..c8c5a89438a39 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalObjectResult.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Graph.Rbac.Models +{ + /// Service Principal Object Result. + public partial class ServicePrincipalObjectResult + { + /// Initializes a new instance of ServicePrincipalObjectResult. + internal ServicePrincipalObjectResult() + { + } + + /// Initializes a new instance of ServicePrincipalObjectResult. + /// The Object ID of the service principal with the specified application ID. + /// The URL representing edm equivalent. + internal ServicePrincipalObjectResult(string value, string odataMetadata) + { + Value = value; + OdataMetadata = odataMetadata; + } + + /// The Object ID of the service principal with the specified application ID. + public string Value { get; } + /// The URL representing edm equivalent. + public string OdataMetadata { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalUpdateParameters.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalUpdateParameters.Serialization.cs new file mode 100644 index 0000000000000..78c3e16e876c3 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalUpdateParameters.Serialization.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class ServicePrincipalUpdateParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (AccountEnabled != null) + { + writer.WritePropertyName("accountEnabled"); + writer.WriteBooleanValue(AccountEnabled.Value); + } + if (AppRoleAssignmentRequired != null) + { + writer.WritePropertyName("appRoleAssignmentRequired"); + writer.WriteBooleanValue(AppRoleAssignmentRequired.Value); + } + if (KeyCredentials != null) + { + writer.WritePropertyName("keyCredentials"); + writer.WriteStartArray(); + foreach (var item in KeyCredentials) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (PasswordCredentials != null) + { + writer.WritePropertyName("passwordCredentials"); + writer.WriteStartArray(); + foreach (var item in PasswordCredentials) + { + writer.WriteObjectValue(item); + } + writer.WriteEndArray(); + } + if (ServicePrincipalType != null) + { + writer.WritePropertyName("servicePrincipalType"); + writer.WriteStringValue(ServicePrincipalType); + } + if (Tags != null) + { + writer.WritePropertyName("tags"); + writer.WriteStartArray(); + foreach (var item in Tags) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalUpdateParameters.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalUpdateParameters.cs new file mode 100644 index 0000000000000..981a60d8b95e8 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/ServicePrincipalUpdateParameters.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Request parameters for update an existing service principal. + public partial class ServicePrincipalUpdateParameters : ServicePrincipalBase + { + /// Initializes a new instance of ServicePrincipalUpdateParameters. + public ServicePrincipalUpdateParameters() + { + } + + /// Initializes a new instance of ServicePrincipalUpdateParameters. + /// whether or not the service principal account is enabled. + /// Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application. + /// The collection of key credentials associated with the service principal. + /// The collection of password credentials associated with the service principal. + /// the type of the service principal. + /// Optional list of tags that you can apply to your service principals. Not nullable. + internal ServicePrincipalUpdateParameters(bool? accountEnabled, bool? appRoleAssignmentRequired, IList keyCredentials, IList passwordCredentials, string servicePrincipalType, IList tags) : base(accountEnabled, appRoleAssignmentRequired, keyCredentials, passwordCredentials, servicePrincipalType, tags) + { + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/SignInName.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/SignInName.Serialization.cs new file mode 100644 index 0000000000000..b849cf01d9b7f --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/SignInName.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class SignInName + { + internal static SignInName DeserializeSignInName(JsonElement element) + { + string type = default; + string value = default; + IReadOnlyDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + value = property.Value.GetString(); + continue; + } + additionalPropertiesDictionary ??= new Dictionary(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + additionalPropertiesDictionary.Add(property.Name, null); + } + else + { + additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); + } + } + additionalProperties = additionalPropertiesDictionary; + return new SignInName(type, value, additionalProperties); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/SignInName.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/SignInName.cs new file mode 100644 index 0000000000000..d2d5fcbc5d2d0 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/SignInName.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Contains information about a sign-in name of a local account user in an Azure Active Directory B2C tenant. + public partial class SignInName : IReadOnlyDictionary + { + /// Initializes a new instance of SignInName. + internal SignInName() + { + AdditionalProperties = new Dictionary(); + } + + /// Initializes a new instance of SignInName. + /// A string value that can be used to classify user sign-in types in your directory, such as 'emailAddress' or 'userName'. + /// The sign-in used by the local account. Must be unique across the company/tenant. For example, 'johnc@example.com'. + /// . + internal SignInName(string type, string value, IReadOnlyDictionary additionalProperties) + { + Type = type; + Value = value; + AdditionalProperties = additionalProperties ?? new Dictionary(); + } + + /// A string value that can be used to classify user sign-in types in your directory, such as 'emailAddress' or 'userName'. + public string Type { get; } + /// The sign-in used by the local account. Must be unique across the company/tenant. For example, 'johnc@example.com'. + public string Value { get; } + internal IReadOnlyDictionary AdditionalProperties { get; } + /// + public IEnumerator> GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); + /// + public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); + /// + public IEnumerable Keys => AdditionalProperties.Keys; + /// + public IEnumerable Values => AdditionalProperties.Values; + /// + int IReadOnlyCollection>.Count => AdditionalProperties.Count; + /// + public object this[string key] + { + get => AdditionalProperties[key]; + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/User.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/User.Serialization.cs new file mode 100644 index 0000000000000..d27ca1bc5a91b --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/User.Serialization.cs @@ -0,0 +1,189 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class User + { + internal static User DeserializeUser(JsonElement element) + { + string immutableId = default; + string usageLocation = default; + string givenName = default; + string surname = default; + UserType? userType = default; + bool? accountEnabled = default; + string displayName = default; + string userPrincipalName = default; + string mailNickname = default; + string mail = default; + IReadOnlyList signInNames = default; + string objectId = default; + string objectType = default; + DateTimeOffset? deletionTimestamp = default; + IReadOnlyDictionary additionalProperties = default; + Dictionary additionalPropertiesDictionary = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("immutableId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + immutableId = property.Value.GetString(); + continue; + } + if (property.NameEquals("usageLocation")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + usageLocation = property.Value.GetString(); + continue; + } + if (property.NameEquals("givenName")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + givenName = property.Value.GetString(); + continue; + } + if (property.NameEquals("surname")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + surname = property.Value.GetString(); + continue; + } + if (property.NameEquals("userType")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + userType = new UserType(property.Value.GetString()); + continue; + } + if (property.NameEquals("accountEnabled")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + accountEnabled = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("displayName")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("userPrincipalName")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + userPrincipalName = property.Value.GetString(); + continue; + } + if (property.NameEquals("mailNickname")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mailNickname = property.Value.GetString(); + continue; + } + if (property.NameEquals("mail")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mail = property.Value.GetString(); + continue; + } + if (property.NameEquals("signInNames")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(SignInName.DeserializeSignInName(item)); + } + } + signInNames = array; + continue; + } + if (property.NameEquals("objectId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + objectId = property.Value.GetString(); + continue; + } + if (property.NameEquals("objectType")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + objectType = property.Value.GetString(); + continue; + } + if (property.NameEquals("deletionTimestamp")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + deletionTimestamp = property.Value.GetDateTimeOffset("O"); + continue; + } + additionalPropertiesDictionary ??= new Dictionary(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + additionalPropertiesDictionary.Add(property.Name, null); + } + else + { + additionalPropertiesDictionary.Add(property.Name, property.Value.GetObject()); + } + } + additionalProperties = additionalPropertiesDictionary; + return new User(objectId, objectType, deletionTimestamp, additionalProperties, immutableId, usageLocation, givenName, surname, userType, accountEnabled, displayName, userPrincipalName, mailNickname, mail, signInNames); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/User.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/User.cs new file mode 100644 index 0000000000000..3b9b56206eab7 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/User.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Active Directory user information. + public partial class User : DirectoryObject + { + /// Initializes a new instance of User. + internal User() + { + ObjectType = "User"; + } + + /// Initializes a new instance of User. + /// The object ID. + /// The object type. + /// The time at which the directory object was deleted. + /// . + /// This must be specified if you are using a federated domain for the user's userPrincipalName (UPN) property when creating a new user account. It is used to associate an on-premises Active Directory user account with their Azure AD user object. + /// A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: "US", "JP", and "GB". + /// The given name for the user. + /// The user's surname (family name or last name). + /// A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'. + /// Whether the account is enabled. + /// The display name of the user. + /// The principal name of the user. + /// The mail alias for the user. + /// The primary email address of the user. + /// The sign-in names of the user. + internal User(string objectId, string objectType, DateTimeOffset? deletionTimestamp, IReadOnlyDictionary additionalProperties, string immutableId, string usageLocation, string givenName, string surname, UserType? userType, bool? accountEnabled, string displayName, string userPrincipalName, string mailNickname, string mail, IReadOnlyList signInNames) : base(objectId, objectType, deletionTimestamp, additionalProperties) + { + ImmutableId = immutableId; + UsageLocation = usageLocation; + GivenName = givenName; + Surname = surname; + UserType = userType; + AccountEnabled = accountEnabled; + DisplayName = displayName; + UserPrincipalName = userPrincipalName; + MailNickname = mailNickname; + Mail = mail; + SignInNames = signInNames; + ObjectType = objectType ?? "User"; + } + + /// This must be specified if you are using a federated domain for the user's userPrincipalName (UPN) property when creating a new user account. It is used to associate an on-premises Active Directory user account with their Azure AD user object. + public string ImmutableId { get; } + /// A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: "US", "JP", and "GB". + public string UsageLocation { get; } + /// The given name for the user. + public string GivenName { get; } + /// The user's surname (family name or last name). + public string Surname { get; } + /// A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'. + public UserType? UserType { get; } + /// Whether the account is enabled. + public bool? AccountEnabled { get; } + /// The display name of the user. + public string DisplayName { get; } + /// The principal name of the user. + public string UserPrincipalName { get; } + /// The mail alias for the user. + public string MailNickname { get; } + /// The primary email address of the user. + public string Mail { get; } + /// The sign-in names of the user. + public IReadOnlyList SignInNames { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserBase.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserBase.Serialization.cs new file mode 100644 index 0000000000000..8508b73416f2a --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserBase.Serialization.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class UserBase : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (ImmutableId != null) + { + writer.WritePropertyName("immutableId"); + writer.WriteStringValue(ImmutableId); + } + if (UsageLocation != null) + { + writer.WritePropertyName("usageLocation"); + writer.WriteStringValue(UsageLocation); + } + if (GivenName != null) + { + writer.WritePropertyName("givenName"); + writer.WriteStringValue(GivenName); + } + if (Surname != null) + { + writer.WritePropertyName("surname"); + writer.WriteStringValue(Surname); + } + if (UserType != null) + { + writer.WritePropertyName("userType"); + writer.WriteStringValue(UserType.Value.ToString()); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserBase.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserBase.cs new file mode 100644 index 0000000000000..beeb820cae73e --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserBase.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// The UserBase. + public partial class UserBase : IDictionary + { + /// Initializes a new instance of UserBase. + public UserBase() + { + AdditionalProperties = new Dictionary(); + } + + /// Initializes a new instance of UserBase. + /// This must be specified if you are using a federated domain for the user's userPrincipalName (UPN) property when creating a new user account. It is used to associate an on-premises Active Directory user account with their Azure AD user object. + /// A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: "US", "JP", and "GB". + /// The given name for the user. + /// The user's surname (family name or last name). + /// A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'. + /// . + internal UserBase(string immutableId, string usageLocation, string givenName, string surname, UserType? userType, IDictionary additionalProperties) + { + ImmutableId = immutableId; + UsageLocation = usageLocation; + GivenName = givenName; + Surname = surname; + UserType = userType; + AdditionalProperties = additionalProperties ?? new Dictionary(); + } + + /// This must be specified if you are using a federated domain for the user's userPrincipalName (UPN) property when creating a new user account. It is used to associate an on-premises Active Directory user account with their Azure AD user object. + public string ImmutableId { get; set; } + /// A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: "US", "JP", and "GB". + public string UsageLocation { get; set; } + /// The given name for the user. + public string GivenName { get; set; } + /// The user's surname (family name or last name). + public string Surname { get; set; } + /// A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'. + public UserType? UserType { get; set; } + internal IDictionary AdditionalProperties { get; } + /// + public IEnumerator> GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); + /// + public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); + /// + public ICollection Keys => AdditionalProperties.Keys; + /// + public ICollection Values => AdditionalProperties.Values; + /// + int ICollection>.Count => AdditionalProperties.Count; + /// + public void Add(string key, object value) => AdditionalProperties.Add(key, value); + /// + public bool Remove(string key) => AdditionalProperties.Remove(key); + /// + bool ICollection>.IsReadOnly => AdditionalProperties.IsReadOnly; + /// + void ICollection>.Add(KeyValuePair value) => AdditionalProperties.Add(value); + /// + bool ICollection>.Remove(KeyValuePair value) => AdditionalProperties.Remove(value); + /// + bool ICollection>.Contains(KeyValuePair value) => AdditionalProperties.Contains(value); + /// + void ICollection>.CopyTo(KeyValuePair[] destination, int offset) => AdditionalProperties.CopyTo(destination, offset); + /// + void ICollection>.Clear() => AdditionalProperties.Clear(); + /// + public object this[string key] + { + get => AdditionalProperties[key]; + set => AdditionalProperties[key] = value; + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserCreateParameters.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserCreateParameters.Serialization.cs new file mode 100644 index 0000000000000..9f6f3ff9bbc85 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserCreateParameters.Serialization.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class UserCreateParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("accountEnabled"); + writer.WriteBooleanValue(AccountEnabled); + writer.WritePropertyName("displayName"); + writer.WriteStringValue(DisplayName); + writer.WritePropertyName("passwordProfile"); + writer.WriteObjectValue(PasswordProfile); + writer.WritePropertyName("userPrincipalName"); + writer.WriteStringValue(UserPrincipalName); + writer.WritePropertyName("mailNickname"); + writer.WriteStringValue(MailNickname); + if (Mail != null) + { + writer.WritePropertyName("mail"); + writer.WriteStringValue(Mail); + } + if (ImmutableId != null) + { + writer.WritePropertyName("immutableId"); + writer.WriteStringValue(ImmutableId); + } + if (UsageLocation != null) + { + writer.WritePropertyName("usageLocation"); + writer.WriteStringValue(UsageLocation); + } + if (GivenName != null) + { + writer.WritePropertyName("givenName"); + writer.WriteStringValue(GivenName); + } + if (Surname != null) + { + writer.WritePropertyName("surname"); + writer.WriteStringValue(Surname); + } + if (UserType != null) + { + writer.WritePropertyName("userType"); + writer.WriteStringValue(UserType.Value.ToString()); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserCreateParameters.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserCreateParameters.cs new file mode 100644 index 0000000000000..c554496583b70 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserCreateParameters.cs @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Request parameters for creating a new work or school account user. + public partial class UserCreateParameters : UserBase + { + /// Initializes a new instance of UserCreateParameters. + /// Whether the account is enabled. + /// The display name of the user. + /// Password Profile. + /// The user principal name (someuser@contoso.com). It must contain one of the verified domains for the tenant. + /// The mail alias for the user. + public UserCreateParameters(bool accountEnabled, string displayName, PasswordProfile passwordProfile, string userPrincipalName, string mailNickname) + { + if (displayName == null) + { + throw new ArgumentNullException(nameof(displayName)); + } + if (passwordProfile == null) + { + throw new ArgumentNullException(nameof(passwordProfile)); + } + if (userPrincipalName == null) + { + throw new ArgumentNullException(nameof(userPrincipalName)); + } + if (mailNickname == null) + { + throw new ArgumentNullException(nameof(mailNickname)); + } + + AccountEnabled = accountEnabled; + DisplayName = displayName; + PasswordProfile = passwordProfile; + UserPrincipalName = userPrincipalName; + MailNickname = mailNickname; + } + + /// Initializes a new instance of UserCreateParameters. + /// This must be specified if you are using a federated domain for the user's userPrincipalName (UPN) property when creating a new user account. It is used to associate an on-premises Active Directory user account with their Azure AD user object. + /// A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: "US", "JP", and "GB". + /// The given name for the user. + /// The user's surname (family name or last name). + /// A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'. + /// . + /// Whether the account is enabled. + /// The display name of the user. + /// Password Profile. + /// The user principal name (someuser@contoso.com). It must contain one of the verified domains for the tenant. + /// The mail alias for the user. + /// The primary email address of the user. + internal UserCreateParameters(string immutableId, string usageLocation, string givenName, string surname, UserType? userType, IDictionary additionalProperties, bool accountEnabled, string displayName, PasswordProfile passwordProfile, string userPrincipalName, string mailNickname, string mail) : base(immutableId, usageLocation, givenName, surname, userType, additionalProperties) + { + AccountEnabled = accountEnabled; + DisplayName = displayName; + PasswordProfile = passwordProfile; + UserPrincipalName = userPrincipalName; + MailNickname = mailNickname; + Mail = mail; + } + + /// Whether the account is enabled. + public bool AccountEnabled { get; } + /// The display name of the user. + public string DisplayName { get; } + /// Password Profile. + public PasswordProfile PasswordProfile { get; } + /// The user principal name (someuser@contoso.com). It must contain one of the verified domains for the tenant. + public string UserPrincipalName { get; } + /// The mail alias for the user. + public string MailNickname { get; } + /// The primary email address of the user. + public string Mail { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserGetMemberGroupsParameters.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserGetMemberGroupsParameters.Serialization.cs new file mode 100644 index 0000000000000..b89379aa97a36 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserGetMemberGroupsParameters.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class UserGetMemberGroupsParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("securityEnabledOnly"); + writer.WriteBooleanValue(SecurityEnabledOnly); + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserGetMemberGroupsParameters.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserGetMemberGroupsParameters.cs new file mode 100644 index 0000000000000..4facbe042deb7 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserGetMemberGroupsParameters.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections; +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Request parameters for GetMemberGroups API call. + public partial class UserGetMemberGroupsParameters : IDictionary + { + /// Initializes a new instance of UserGetMemberGroupsParameters. + /// If true, only membership in security-enabled groups should be checked. Otherwise, membership in all groups should be checked. + public UserGetMemberGroupsParameters(bool securityEnabledOnly) + { + SecurityEnabledOnly = securityEnabledOnly; + AdditionalProperties = new Dictionary(); + } + + /// Initializes a new instance of UserGetMemberGroupsParameters. + /// If true, only membership in security-enabled groups should be checked. Otherwise, membership in all groups should be checked. + /// . + internal UserGetMemberGroupsParameters(bool securityEnabledOnly, IDictionary additionalProperties) + { + SecurityEnabledOnly = securityEnabledOnly; + AdditionalProperties = additionalProperties ?? new Dictionary(); + } + + /// If true, only membership in security-enabled groups should be checked. Otherwise, membership in all groups should be checked. + public bool SecurityEnabledOnly { get; } + internal IDictionary AdditionalProperties { get; } + /// + public IEnumerator> GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + IEnumerator IEnumerable.GetEnumerator() => AdditionalProperties.GetEnumerator(); + /// + public bool TryGetValue(string key, out object value) => AdditionalProperties.TryGetValue(key, out value); + /// + public bool ContainsKey(string key) => AdditionalProperties.ContainsKey(key); + /// + public ICollection Keys => AdditionalProperties.Keys; + /// + public ICollection Values => AdditionalProperties.Values; + /// + int ICollection>.Count => AdditionalProperties.Count; + /// + public void Add(string key, object value) => AdditionalProperties.Add(key, value); + /// + public bool Remove(string key) => AdditionalProperties.Remove(key); + /// + bool ICollection>.IsReadOnly => AdditionalProperties.IsReadOnly; + /// + void ICollection>.Add(KeyValuePair value) => AdditionalProperties.Add(value); + /// + bool ICollection>.Remove(KeyValuePair value) => AdditionalProperties.Remove(value); + /// + bool ICollection>.Contains(KeyValuePair value) => AdditionalProperties.Contains(value); + /// + void ICollection>.CopyTo(KeyValuePair[] destination, int offset) => AdditionalProperties.CopyTo(destination, offset); + /// + void ICollection>.Clear() => AdditionalProperties.Clear(); + /// + public object this[string key] + { + get => AdditionalProperties[key]; + set => AdditionalProperties[key] = value; + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserGetMemberGroupsResult.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserGetMemberGroupsResult.Serialization.cs new file mode 100644 index 0000000000000..599e77cfb56c9 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserGetMemberGroupsResult.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class UserGetMemberGroupsResult + { + internal static UserGetMemberGroupsResult DeserializeUserGetMemberGroupsResult(JsonElement element) + { + IReadOnlyList value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + value = array; + continue; + } + } + return new UserGetMemberGroupsResult(value); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserGetMemberGroupsResult.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserGetMemberGroupsResult.cs new file mode 100644 index 0000000000000..aaf2b27ce520f --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserGetMemberGroupsResult.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Server response for GetMemberGroups API call. + public partial class UserGetMemberGroupsResult + { + /// Initializes a new instance of UserGetMemberGroupsResult. + internal UserGetMemberGroupsResult() + { + } + + /// Initializes a new instance of UserGetMemberGroupsResult. + /// A collection of group IDs of which the user is a member. + internal UserGetMemberGroupsResult(IReadOnlyList value) + { + Value = value; + } + + /// A collection of group IDs of which the user is a member. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserListResult.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserListResult.Serialization.cs new file mode 100644 index 0000000000000..dc8d6c65dcd00 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserListResult.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class UserListResult + { + internal static UserListResult DeserializeUserListResult(JsonElement element) + { + IReadOnlyList value = default; + string odataNextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(User.DeserializeUser(item)); + } + } + value = array; + continue; + } + if (property.NameEquals("odata.nextLink")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + odataNextLink = property.Value.GetString(); + continue; + } + } + return new UserListResult(value, odataNextLink); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserListResult.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserListResult.cs new file mode 100644 index 0000000000000..700101d3f9366 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserListResult.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Server response for Get tenant users API call. + public partial class UserListResult + { + /// Initializes a new instance of UserListResult. + internal UserListResult() + { + } + + /// Initializes a new instance of UserListResult. + /// the list of users. + /// The URL to get the next set of results. + internal UserListResult(IReadOnlyList value, string odataNextLink) + { + Value = value; + OdataNextLink = odataNextLink; + } + + /// the list of users. + public IReadOnlyList Value { get; } + /// The URL to get the next set of results. + public string OdataNextLink { get; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserType.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserType.cs new file mode 100644 index 0000000000000..b804f515a635d --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserType.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.Graph.Rbac.Models +{ + /// A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'. + public readonly partial struct UserType : IEquatable + { + private readonly string _value; + + /// Determines if two values are the same. + public UserType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string MemberValue = "Member"; + private const string GuestValue = "Guest"; + + /// Member. + public static UserType Member { get; } = new UserType(MemberValue); + /// Guest. + public static UserType Guest { get; } = new UserType(GuestValue); + /// Determines if two values are the same. + public static bool operator ==(UserType left, UserType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(UserType left, UserType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator UserType(string value) => new UserType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is UserType other && Equals(other); + /// + public bool Equals(UserType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserUpdateParameters.Serialization.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserUpdateParameters.Serialization.cs new file mode 100644 index 0000000000000..4e94e26f8f102 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserUpdateParameters.Serialization.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Graph.Rbac.Models +{ + public partial class UserUpdateParameters : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (AccountEnabled != null) + { + writer.WritePropertyName("accountEnabled"); + writer.WriteBooleanValue(AccountEnabled.Value); + } + if (DisplayName != null) + { + writer.WritePropertyName("displayName"); + writer.WriteStringValue(DisplayName); + } + if (PasswordProfile != null) + { + writer.WritePropertyName("passwordProfile"); + writer.WriteObjectValue(PasswordProfile); + } + if (UserPrincipalName != null) + { + writer.WritePropertyName("userPrincipalName"); + writer.WriteStringValue(UserPrincipalName); + } + if (MailNickname != null) + { + writer.WritePropertyName("mailNickname"); + writer.WriteStringValue(MailNickname); + } + if (ImmutableId != null) + { + writer.WritePropertyName("immutableId"); + writer.WriteStringValue(ImmutableId); + } + if (UsageLocation != null) + { + writer.WritePropertyName("usageLocation"); + writer.WriteStringValue(UsageLocation); + } + if (GivenName != null) + { + writer.WritePropertyName("givenName"); + writer.WriteStringValue(GivenName); + } + if (Surname != null) + { + writer.WritePropertyName("surname"); + writer.WriteStringValue(Surname); + } + if (UserType != null) + { + writer.WritePropertyName("userType"); + writer.WriteStringValue(UserType.Value.ToString()); + } + foreach (var item in AdditionalProperties) + { + writer.WritePropertyName(item.Key); + writer.WriteObjectValue(item.Value); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserUpdateParameters.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserUpdateParameters.cs new file mode 100644 index 0000000000000..9714cb364dd34 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/Models/UserUpdateParameters.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Graph.Rbac.Models +{ + /// Request parameters for updating an existing work or school account user. + public partial class UserUpdateParameters : UserBase + { + /// Initializes a new instance of UserUpdateParameters. + public UserUpdateParameters() + { + } + + /// Initializes a new instance of UserUpdateParameters. + /// This must be specified if you are using a federated domain for the user's userPrincipalName (UPN) property when creating a new user account. It is used to associate an on-premises Active Directory user account with their Azure AD user object. + /// A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: "US", "JP", and "GB". + /// The given name for the user. + /// The user's surname (family name or last name). + /// A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'. + /// . + /// Whether the account is enabled. + /// The display name of the user. + /// The password profile of the user. + /// The user principal name (someuser@contoso.com). It must contain one of the verified domains for the tenant. + /// The mail alias for the user. + internal UserUpdateParameters(string immutableId, string usageLocation, string givenName, string surname, UserType? userType, IDictionary additionalProperties, bool? accountEnabled, string displayName, PasswordProfile passwordProfile, string userPrincipalName, string mailNickname) : base(immutableId, usageLocation, givenName, surname, userType, additionalProperties) + { + AccountEnabled = accountEnabled; + DisplayName = displayName; + PasswordProfile = passwordProfile; + UserPrincipalName = userPrincipalName; + MailNickname = mailNickname; + } + + /// Whether the account is enabled. + public bool? AccountEnabled { get; set; } + /// The display name of the user. + public string DisplayName { get; set; } + /// The password profile of the user. + public PasswordProfile PasswordProfile { get; set; } + /// The user principal name (someuser@contoso.com). It must contain one of the verified domains for the tenant. + public string UserPrincipalName { get; set; } + /// The mail alias for the user. + public string MailNickname { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/OAuth2PermissionGrantClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/OAuth2PermissionGrantClient.cs new file mode 100644 index 0000000000000..690acda537f00 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/OAuth2PermissionGrantClient.cs @@ -0,0 +1,275 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac.Models; + +namespace Azure.Graph.Rbac +{ + /// The OAuth2PermissionGrant service client. + public partial class OAuth2PermissionGrantClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal OAuth2PermissionGrantRestClient RestClient { get; } + /// Initializes a new instance of OAuth2PermissionGrantClient for mocking. + protected OAuth2PermissionGrantClient() + { + } + /// Initializes a new instance of OAuth2PermissionGrantClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The tenant ID. + /// server parameter. + /// Api Version. + internal OAuth2PermissionGrantClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") + { + RestClient = new OAuth2PermissionGrantRestClient(clientDiagnostics, pipeline, tenantID, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Grants OAuth2 permissions for the relevant resource Ids of an app. + /// The relevant app Service Principal Object Id and the Service Principal Object Id you want to grant. + /// The cancellation token to use. + public virtual async Task> CreateAsync(OAuth2PermissionGrant body = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("OAuth2PermissionGrantClient.Create"); + scope.Start(); + try + { + return await RestClient.CreateAsync(body, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Grants OAuth2 permissions for the relevant resource Ids of an app. + /// The relevant app Service Principal Object Id and the Service Principal Object Id you want to grant. + /// The cancellation token to use. + public virtual Response Create(OAuth2PermissionGrant body = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("OAuth2PermissionGrantClient.Create"); + scope.Start(); + try + { + return RestClient.Create(body, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Delete a OAuth2 permission grant for the relevant resource Ids of an app. + /// The object ID of a permission grant. + /// The cancellation token to use. + public virtual async Task DeleteAsync(string objectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("OAuth2PermissionGrantClient.Delete"); + scope.Start(); + try + { + return await RestClient.DeleteAsync(objectId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Delete a OAuth2 permission grant for the relevant resource Ids of an app. + /// The object ID of a permission grant. + /// The cancellation token to use. + public virtual Response Delete(string objectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("OAuth2PermissionGrantClient.Delete"); + scope.Start(); + try + { + return RestClient.Delete(objectId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Queries OAuth2 permissions grants for the relevant SP ObjectId of an app. + /// This is the Service Principal ObjectId associated with the app. + /// The cancellation token to use. + public virtual AsyncPageable ListAsync(string filter = null, CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("OAuth2PermissionGrantClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListAsync(filter, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("OAuth2PermissionGrantClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListNextAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Queries OAuth2 permissions grants for the relevant SP ObjectId of an app. + /// This is the Service Principal ObjectId associated with the app. + /// The cancellation token to use. + public virtual Pageable List(string filter = null, CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("OAuth2PermissionGrantClient.List"); + scope.Start(); + try + { + var response = RestClient.List(filter, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("OAuth2PermissionGrantClient.List"); + scope.Start(); + try + { + var response = RestClient.ListNext(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets the next page of OAuth2 permission grants. + /// Next link for the list operation. + /// The cancellation token to use. + public virtual AsyncPageable ListNextAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("OAuth2PermissionGrantClient.ListNext"); + scope.Start(); + try + { + var response = await RestClient.ListNextAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("OAuth2PermissionGrantClient.ListNext"); + scope.Start(); + try + { + var response = await RestClient.ListNextNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets the next page of OAuth2 permission grants. + /// Next link for the list operation. + /// The cancellation token to use. + public virtual Pageable ListNext(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("OAuth2PermissionGrantClient.ListNext"); + scope.Start(); + try + { + var response = RestClient.ListNext(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("OAuth2PermissionGrantClient.ListNext"); + scope.Start(); + try + { + var response = RestClient.ListNextNextPage(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/OAuth2PermissionGrantRestClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/OAuth2PermissionGrantRestClient.cs new file mode 100644 index 0000000000000..ed42e358fc052 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/OAuth2PermissionGrantRestClient.cs @@ -0,0 +1,424 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac.Models; + +namespace Azure.Graph.Rbac +{ + internal partial class OAuth2PermissionGrantRestClient + { + private string tenantID; + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of OAuth2PermissionGrantRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The tenant ID. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public OAuth2PermissionGrantRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") + { + if (tenantID == null) + { + throw new ArgumentNullException(nameof(tenantID)); + } + endpoint ??= new Uri("https://graph.windows.net"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.tenantID = tenantID; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateListRequest(string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/oauth2PermissionGrants", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Queries OAuth2 permissions grants for the relevant SP ObjectId of an app. + /// This is the Service Principal ObjectId associated with the app. + /// The cancellation token to use. + public async ValueTask> ListAsync(string filter = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + OAuth2PermissionGrantListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = OAuth2PermissionGrantListResult.DeserializeOAuth2PermissionGrantListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Queries OAuth2 permissions grants for the relevant SP ObjectId of an app. + /// This is the Service Principal ObjectId associated with the app. + /// The cancellation token to use. + public Response List(string filter = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + OAuth2PermissionGrantListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = OAuth2PermissionGrantListResult.DeserializeOAuth2PermissionGrantListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateCreateRequest(OAuth2PermissionGrant body) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/oauth2PermissionGrants", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + if (body != null) + { + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(body); + request.Content = content; + } + return message; + } + + /// Grants OAuth2 permissions for the relevant resource Ids of an app. + /// The relevant app Service Principal Object Id and the Service Principal Object Id you want to grant. + /// The cancellation token to use. + public async ValueTask> CreateAsync(OAuth2PermissionGrant body = null, CancellationToken cancellationToken = default) + { + using var message = CreateCreateRequest(body); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 201: + { + OAuth2PermissionGrant value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = OAuth2PermissionGrant.DeserializeOAuth2PermissionGrant(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Grants OAuth2 permissions for the relevant resource Ids of an app. + /// The relevant app Service Principal Object Id and the Service Principal Object Id you want to grant. + /// The cancellation token to use. + public Response Create(OAuth2PermissionGrant body = null, CancellationToken cancellationToken = default) + { + using var message = CreateCreateRequest(body); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 201: + { + OAuth2PermissionGrant value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = OAuth2PermissionGrant.DeserializeOAuth2PermissionGrant(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string objectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/oauth2PermissionGrants/", false); + uri.AppendPath(objectId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Delete a OAuth2 permission grant for the relevant resource Ids of an app. + /// The object ID of a permission grant. + /// The cancellation token to use. + public async ValueTask DeleteAsync(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateDeleteRequest(objectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Delete a OAuth2 permission grant for the relevant resource Ids of an app. + /// The object ID of a permission grant. + /// The cancellation token to use. + public Response Delete(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateDeleteRequest(objectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/", false); + uri.AppendRaw(nextLink, false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets the next page of OAuth2 permission grants. + /// Next link for the list operation. + /// The cancellation token to use. + public async ValueTask> ListNextAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + OAuth2PermissionGrantListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = OAuth2PermissionGrantListResult.DeserializeOAuth2PermissionGrantListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets the next page of OAuth2 permission grants. + /// Next link for the list operation. + /// The cancellation token to use. + public Response ListNext(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + OAuth2PermissionGrantListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = OAuth2PermissionGrantListResult.DeserializeOAuth2PermissionGrantListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextNextPageRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// Gets the next page of OAuth2 permission grants. + /// The URL to the next page of results. + /// The cancellation token to use. + public async ValueTask> ListNextNextPageAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextNextPageRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + OAuth2PermissionGrantListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = OAuth2PermissionGrantListResult.DeserializeOAuth2PermissionGrantListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets the next page of OAuth2 permission grants. + /// The URL to the next page of results. + /// The cancellation token to use. + public Response ListNextNextPage(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextNextPageRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + OAuth2PermissionGrantListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = OAuth2PermissionGrantListResult.DeserializeOAuth2PermissionGrantListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/ObjectsClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/ObjectsClient.cs new file mode 100644 index 0000000000000..ddac4b82ccea7 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/ObjectsClient.cs @@ -0,0 +1,213 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac.Models; + +namespace Azure.Graph.Rbac +{ + /// The Objects service client. + public partial class ObjectsClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal ObjectsRestClient RestClient { get; } + /// Initializes a new instance of ObjectsClient for mocking. + protected ObjectsClient() + { + } + /// Initializes a new instance of ObjectsClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The tenant ID. + /// server parameter. + /// Api Version. + internal ObjectsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") + { + RestClient = new ObjectsRestClient(clientDiagnostics, pipeline, tenantID, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Gets the directory objects specified in a list of object IDs. You can also specify which resource collections (users, groups, etc.) should be searched by specifying the optional types parameter. + /// Objects filtering parameters. + /// The cancellation token to use. + public virtual AsyncPageable GetObjectsByObjectIdsAsync(GetObjectsParameters parameters, CancellationToken cancellationToken = default) + { + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ObjectsClient.GetObjectsByObjectIds"); + scope.Start(); + try + { + var response = await RestClient.GetObjectsByObjectIdsAsync(parameters, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ObjectsClient.GetObjectsByObjectIds"); + scope.Start(); + try + { + var response = await RestClient.GetObjectsByObjectIdsNextAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets the directory objects specified in a list of object IDs. You can also specify which resource collections (users, groups, etc.) should be searched by specifying the optional types parameter. + /// Objects filtering parameters. + /// The cancellation token to use. + public virtual Pageable GetObjectsByObjectIds(GetObjectsParameters parameters, CancellationToken cancellationToken = default) + { + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ObjectsClient.GetObjectsByObjectIds"); + scope.Start(); + try + { + var response = RestClient.GetObjectsByObjectIds(parameters, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ObjectsClient.GetObjectsByObjectIds"); + scope.Start(); + try + { + var response = RestClient.GetObjectsByObjectIdsNext(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets AD group membership for the specified AD object IDs. + /// Next link for the list operation. + /// The cancellation token to use. + public virtual AsyncPageable GetObjectsByObjectIdsNextAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ObjectsClient.GetObjectsByObjectIdsNext"); + scope.Start(); + try + { + var response = await RestClient.GetObjectsByObjectIdsNextAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ObjectsClient.GetObjectsByObjectIdsNext"); + scope.Start(); + try + { + var response = await RestClient.GetObjectsByObjectIdsNextNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets AD group membership for the specified AD object IDs. + /// Next link for the list operation. + /// The cancellation token to use. + public virtual Pageable GetObjectsByObjectIdsNext(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ObjectsClient.GetObjectsByObjectIdsNext"); + scope.Start(); + try + { + var response = RestClient.GetObjectsByObjectIdsNext(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ObjectsClient.GetObjectsByObjectIdsNext"); + scope.Start(); + try + { + var response = RestClient.GetObjectsByObjectIdsNextNextPage(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/ObjectsRestClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/ObjectsRestClient.cs new file mode 100644 index 0000000000000..aec1c6fd0969e --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/ObjectsRestClient.cs @@ -0,0 +1,298 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac.Models; + +namespace Azure.Graph.Rbac +{ + internal partial class ObjectsRestClient + { + private string tenantID; + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of ObjectsRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The tenant ID. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public ObjectsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") + { + if (tenantID == null) + { + throw new ArgumentNullException(nameof(tenantID)); + } + endpoint ??= new Uri("https://graph.windows.net"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.tenantID = tenantID; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateGetObjectsByObjectIdsRequest(GetObjectsParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/getObjectsByObjectIds", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Gets the directory objects specified in a list of object IDs. You can also specify which resource collections (users, groups, etc.) should be searched by specifying the optional types parameter. + /// Objects filtering parameters. + /// The cancellation token to use. + public async ValueTask> GetObjectsByObjectIdsAsync(GetObjectsParameters parameters, CancellationToken cancellationToken = default) + { + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateGetObjectsByObjectIdsRequest(parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets the directory objects specified in a list of object IDs. You can also specify which resource collections (users, groups, etc.) should be searched by specifying the optional types parameter. + /// Objects filtering parameters. + /// The cancellation token to use. + public Response GetObjectsByObjectIds(GetObjectsParameters parameters, CancellationToken cancellationToken = default) + { + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateGetObjectsByObjectIdsRequest(parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetObjectsByObjectIdsNextRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/", false); + uri.AppendRaw(nextLink, false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets AD group membership for the specified AD object IDs. + /// Next link for the list operation. + /// The cancellation token to use. + public async ValueTask> GetObjectsByObjectIdsNextAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateGetObjectsByObjectIdsNextRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets AD group membership for the specified AD object IDs. + /// Next link for the list operation. + /// The cancellation token to use. + public Response GetObjectsByObjectIdsNext(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateGetObjectsByObjectIdsNextRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetObjectsByObjectIdsNextNextPageRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// Gets AD group membership for the specified AD object IDs. + /// The URL to the next page of results. + /// The cancellation token to use. + public async ValueTask> GetObjectsByObjectIdsNextNextPageAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateGetObjectsByObjectIdsNextNextPageRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets AD group membership for the specified AD object IDs. + /// The URL to the next page of results. + /// The cancellation token to use. + public Response GetObjectsByObjectIdsNextNextPage(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateGetObjectsByObjectIdsNextNextPageRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/RbacManagementClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/RbacManagementClient.cs new file mode 100644 index 0000000000000..36865a9bf5551 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/RbacManagementClient.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac; + +namespace Azure.Graph.Rbac +{ + /// Rbac service management client. + public class RbacManagementClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + private readonly string _tenantID; + private readonly Uri _endpoint; + + /// Initializes a new instance of RbacManagementClient for mocking. + protected RbacManagementClient() + { + } + + /// Initializes a new instance of RbacManagementClient. + /// The tenant ID. + /// The OAuth token for making client requests. + /// The options for configuring the client. + public RbacManagementClient(string tenantID, TokenCredential tokenCredential, RbacManagementClientOptions options = null) : this(tenantID, null, tokenCredential, options) + { + } + /// Initializes a new instance of RbacManagementClient. + /// The tenant ID. + /// server parameter. + /// The OAuth token for making client requests. + /// The options for configuring the client. + /// This occurs when one of the required arguments is null. + public RbacManagementClient(string tenantID, Uri endpoint, TokenCredential tokenCredential, RbacManagementClientOptions options = null) + { + if (tenantID == null) + { + throw new ArgumentNullException(nameof(tenantID)); + } + endpoint ??= new Uri("https://graph.windows.net"); + + options ??= new RbacManagementClientOptions(); + _clientDiagnostics = new ClientDiagnostics(options); + _pipeline = ManagementPipelineBuilder.Build(tokenCredential, endpoint, options); + _tenantID = tenantID; + _endpoint = endpoint; + } + + /// Creates a new instance of SignedInUserClient. + public virtual SignedInUserClient GetSignedInUserClient() + { + return new SignedInUserClient(_clientDiagnostics, _pipeline, _tenantID, _endpoint); + } + + /// Creates a new instance of ApplicationsClient. + public virtual ApplicationsClient GetApplicationsClient() + { + return new ApplicationsClient(_clientDiagnostics, _pipeline, _tenantID, _endpoint); + } + + /// Creates a new instance of DeletedApplicationsClient. + public virtual DeletedApplicationsClient GetDeletedApplicationsClient() + { + return new DeletedApplicationsClient(_clientDiagnostics, _pipeline, _tenantID, _endpoint); + } + + /// Creates a new instance of GroupsClient. + public virtual GroupsClient GetGroupsClient() + { + return new GroupsClient(_clientDiagnostics, _pipeline, _tenantID, _endpoint); + } + + /// Creates a new instance of ServicePrincipalsClient. + public virtual ServicePrincipalsClient GetServicePrincipalsClient() + { + return new ServicePrincipalsClient(_clientDiagnostics, _pipeline, _tenantID, _endpoint); + } + + /// Creates a new instance of UsersClient. + public virtual UsersClient GetUsersClient() + { + return new UsersClient(_clientDiagnostics, _pipeline, _tenantID, _endpoint); + } + + /// Creates a new instance of ObjectsClient. + public virtual ObjectsClient GetObjectsClient() + { + return new ObjectsClient(_clientDiagnostics, _pipeline, _tenantID, _endpoint); + } + + /// Creates a new instance of DomainsClient. + public virtual DomainsClient GetDomainsClient() + { + return new DomainsClient(_clientDiagnostics, _pipeline, _tenantID, _endpoint); + } + + /// Creates a new instance of OAuth2PermissionGrantClient. + public virtual OAuth2PermissionGrantClient GetOAuth2PermissionGrantClient() + { + return new OAuth2PermissionGrantClient(_clientDiagnostics, _pipeline, _tenantID, _endpoint); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/RbacManagementClientOptions.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/RbacManagementClientOptions.cs new file mode 100644 index 0000000000000..9652f00cf0d7e --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/RbacManagementClientOptions.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; + +namespace Azure.Graph.Rbac +{ + /// Client options for Rbac. + public class RbacManagementClientOptions : ClientOptions + { + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/ServicePrincipalsClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/ServicePrincipalsClient.cs new file mode 100644 index 0000000000000..5a20272db0b35 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/ServicePrincipalsClient.cs @@ -0,0 +1,623 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac.Models; + +namespace Azure.Graph.Rbac +{ + /// The ServicePrincipals service client. + public partial class ServicePrincipalsClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal ServicePrincipalsRestClient RestClient { get; } + /// Initializes a new instance of ServicePrincipalsClient for mocking. + protected ServicePrincipalsClient() + { + } + /// Initializes a new instance of ServicePrincipalsClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The tenant ID. + /// server parameter. + /// Api Version. + internal ServicePrincipalsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") + { + RestClient = new ServicePrincipalsRestClient(clientDiagnostics, pipeline, tenantID, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Creates a service principal in the directory. + /// Parameters to create a service principal. + /// The cancellation token to use. + public virtual async Task> CreateAsync(ServicePrincipalCreateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.Create"); + scope.Start(); + try + { + return await RestClient.CreateAsync(parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Creates a service principal in the directory. + /// Parameters to create a service principal. + /// The cancellation token to use. + public virtual Response Create(ServicePrincipalCreateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.Create"); + scope.Start(); + try + { + return RestClient.Create(parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Updates a service principal in the directory. + /// The object ID of the service principal to delete. + /// Parameters to update a service principal. + /// The cancellation token to use. + public virtual async Task UpdateAsync(string objectId, ServicePrincipalBase parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.Update"); + scope.Start(); + try + { + return await RestClient.UpdateAsync(objectId, parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Updates a service principal in the directory. + /// The object ID of the service principal to delete. + /// Parameters to update a service principal. + /// The cancellation token to use. + public virtual Response Update(string objectId, ServicePrincipalBase parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.Update"); + scope.Start(); + try + { + return RestClient.Update(objectId, parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Deletes a service principal from the directory. + /// The object ID of the service principal to delete. + /// The cancellation token to use. + public virtual async Task DeleteAsync(string objectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.Delete"); + scope.Start(); + try + { + return await RestClient.DeleteAsync(objectId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Deletes a service principal from the directory. + /// The object ID of the service principal to delete. + /// The cancellation token to use. + public virtual Response Delete(string objectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.Delete"); + scope.Start(); + try + { + return RestClient.Delete(objectId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets service principal information from the directory. Query by objectId or pass a filter to query by appId. + /// The object ID of the service principal to get. + /// The cancellation token to use. + public virtual async Task> GetAsync(string objectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.Get"); + scope.Start(); + try + { + return await RestClient.GetAsync(objectId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets service principal information from the directory. Query by objectId or pass a filter to query by appId. + /// The object ID of the service principal to get. + /// The cancellation token to use. + public virtual Response Get(string objectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.Get"); + scope.Start(); + try + { + return RestClient.Get(objectId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Update the keyCredentials associated with a service principal. + /// The object ID for which to get service principal information. + /// Parameters to update the keyCredentials of an existing service principal. + /// The cancellation token to use. + public virtual async Task UpdateKeyCredentialsAsync(string objectId, KeyCredentialsUpdateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.UpdateKeyCredentials"); + scope.Start(); + try + { + return await RestClient.UpdateKeyCredentialsAsync(objectId, parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Update the keyCredentials associated with a service principal. + /// The object ID for which to get service principal information. + /// Parameters to update the keyCredentials of an existing service principal. + /// The cancellation token to use. + public virtual Response UpdateKeyCredentials(string objectId, KeyCredentialsUpdateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.UpdateKeyCredentials"); + scope.Start(); + try + { + return RestClient.UpdateKeyCredentials(objectId, parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Updates the passwordCredentials associated with a service principal. + /// The object ID of the service principal. + /// Parameters to update the passwordCredentials of an existing service principal. + /// The cancellation token to use. + public virtual async Task UpdatePasswordCredentialsAsync(string objectId, PasswordCredentialsUpdateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.UpdatePasswordCredentials"); + scope.Start(); + try + { + return await RestClient.UpdatePasswordCredentialsAsync(objectId, parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Updates the passwordCredentials associated with a service principal. + /// The object ID of the service principal. + /// Parameters to update the passwordCredentials of an existing service principal. + /// The cancellation token to use. + public virtual Response UpdatePasswordCredentials(string objectId, PasswordCredentialsUpdateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.UpdatePasswordCredentials"); + scope.Start(); + try + { + return RestClient.UpdatePasswordCredentials(objectId, parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets a list of service principals from the current tenant. + /// The filter to apply to the operation. + /// The cancellation token to use. + public virtual AsyncPageable ListAsync(string filter = null, CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListAsync(filter, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListNextAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets a list of service principals from the current tenant. + /// The filter to apply to the operation. + /// The cancellation token to use. + public virtual Pageable List(string filter = null, CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.List"); + scope.Start(); + try + { + var response = RestClient.List(filter, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.List"); + scope.Start(); + try + { + var response = RestClient.ListNext(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// The owners are a set of non-admin users who are allowed to modify this object. + /// The object ID of the service principal for which to get owners. + /// The cancellation token to use. + public virtual AsyncPageable ListOwnersAsync(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.ListOwners"); + scope.Start(); + try + { + var response = await RestClient.ListOwnersAsync(objectId, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.ListOwners"); + scope.Start(); + try + { + var response = await RestClient.ListOwnersNextPageAsync(nextLink, objectId, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// The owners are a set of non-admin users who are allowed to modify this object. + /// The object ID of the service principal for which to get owners. + /// The cancellation token to use. + public virtual Pageable ListOwners(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.ListOwners"); + scope.Start(); + try + { + var response = RestClient.ListOwners(objectId, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.ListOwners"); + scope.Start(); + try + { + var response = RestClient.ListOwnersNextPage(nextLink, objectId, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Get the keyCredentials associated with the specified service principal. + /// The object ID of the service principal for which to get keyCredentials. + /// The cancellation token to use. + public virtual AsyncPageable ListKeyCredentialsAsync(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.ListKeyCredentials"); + scope.Start(); + try + { + var response = await RestClient.ListKeyCredentialsAsync(objectId, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, null); + } + + /// Get the keyCredentials associated with the specified service principal. + /// The object ID of the service principal for which to get keyCredentials. + /// The cancellation token to use. + public virtual Pageable ListKeyCredentials(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.ListKeyCredentials"); + scope.Start(); + try + { + var response = RestClient.ListKeyCredentials(objectId, cancellationToken); + return Page.FromValues(response.Value.Value, null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, null); + } + + /// Gets the passwordCredentials associated with a service principal. + /// The object ID of the service principal. + /// The cancellation token to use. + public virtual AsyncPageable ListPasswordCredentialsAsync(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.ListPasswordCredentials"); + scope.Start(); + try + { + var response = await RestClient.ListPasswordCredentialsAsync(objectId, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, null); + } + + /// Gets the passwordCredentials associated with a service principal. + /// The object ID of the service principal. + /// The cancellation token to use. + public virtual Pageable ListPasswordCredentials(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.ListPasswordCredentials"); + scope.Start(); + try + { + var response = RestClient.ListPasswordCredentials(objectId, cancellationToken); + return Page.FromValues(response.Value.Value, null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, null); + } + + /// Gets a list of service principals from the current tenant. + /// Next link for the list operation. + /// The cancellation token to use. + public virtual AsyncPageable ListNextAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.ListNext"); + scope.Start(); + try + { + var response = await RestClient.ListNextAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.ListNext"); + scope.Start(); + try + { + var response = await RestClient.ListNextNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets a list of service principals from the current tenant. + /// Next link for the list operation. + /// The cancellation token to use. + public virtual Pageable ListNext(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.ListNext"); + scope.Start(); + try + { + var response = RestClient.ListNext(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ServicePrincipalsClient.ListNext"); + scope.Start(); + try + { + var response = RestClient.ListNextNextPage(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/ServicePrincipalsRestClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/ServicePrincipalsRestClient.cs new file mode 100644 index 0000000000000..ce08d5f431a12 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/ServicePrincipalsRestClient.cs @@ -0,0 +1,1068 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac.Models; + +namespace Azure.Graph.Rbac +{ + internal partial class ServicePrincipalsRestClient + { + private string tenantID; + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of ServicePrincipalsRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The tenant ID. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public ServicePrincipalsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") + { + if (tenantID == null) + { + throw new ArgumentNullException(nameof(tenantID)); + } + endpoint ??= new Uri("https://graph.windows.net"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.tenantID = tenantID; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateCreateRequest(ServicePrincipalCreateParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/servicePrincipals", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Creates a service principal in the directory. + /// Parameters to create a service principal. + /// The cancellation token to use. + public async ValueTask> CreateAsync(ServicePrincipalCreateParameters parameters, CancellationToken cancellationToken = default) + { + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateCreateRequest(parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 201: + { + ServicePrincipal value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ServicePrincipal.DeserializeServicePrincipal(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Creates a service principal in the directory. + /// Parameters to create a service principal. + /// The cancellation token to use. + public Response Create(ServicePrincipalCreateParameters parameters, CancellationToken cancellationToken = default) + { + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateCreateRequest(parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 201: + { + ServicePrincipal value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ServicePrincipal.DeserializeServicePrincipal(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListRequest(string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/servicePrincipals", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets a list of service principals from the current tenant. + /// The filter to apply to the operation. + /// The cancellation token to use. + public async ValueTask> ListAsync(string filter = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ServicePrincipalListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ServicePrincipalListResult.DeserializeServicePrincipalListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a list of service principals from the current tenant. + /// The filter to apply to the operation. + /// The cancellation token to use. + public Response List(string filter = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ServicePrincipalListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ServicePrincipalListResult.DeserializeServicePrincipalListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdateRequest(string objectId, ServicePrincipalBase parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/servicePrincipals/", false); + uri.AppendPath(objectId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Updates a service principal in the directory. + /// The object ID of the service principal to delete. + /// Parameters to update a service principal. + /// The cancellation token to use. + public async ValueTask UpdateAsync(string objectId, ServicePrincipalBase parameters, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdateRequest(objectId, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Updates a service principal in the directory. + /// The object ID of the service principal to delete. + /// Parameters to update a service principal. + /// The cancellation token to use. + public Response Update(string objectId, ServicePrincipalBase parameters, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdateRequest(objectId, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string objectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/servicePrincipals/", false); + uri.AppendPath(objectId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Deletes a service principal from the directory. + /// The object ID of the service principal to delete. + /// The cancellation token to use. + public async ValueTask DeleteAsync(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateDeleteRequest(objectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Deletes a service principal from the directory. + /// The object ID of the service principal to delete. + /// The cancellation token to use. + public Response Delete(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateDeleteRequest(objectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string objectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/servicePrincipals/", false); + uri.AppendPath(objectId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets service principal information from the directory. Query by objectId or pass a filter to query by appId. + /// The object ID of the service principal to get. + /// The cancellation token to use. + public async ValueTask> GetAsync(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateGetRequest(objectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ServicePrincipal value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ServicePrincipal.DeserializeServicePrincipal(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets service principal information from the directory. Query by objectId or pass a filter to query by appId. + /// The object ID of the service principal to get. + /// The cancellation token to use. + public Response Get(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateGetRequest(objectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ServicePrincipal value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ServicePrincipal.DeserializeServicePrincipal(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListOwnersRequest(string objectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/servicePrincipals/", false); + uri.AppendPath(objectId, true); + uri.AppendPath("/owners", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// The owners are a set of non-admin users who are allowed to modify this object. + /// The object ID of the service principal for which to get owners. + /// The cancellation token to use. + public async ValueTask> ListOwnersAsync(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateListOwnersRequest(objectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// The owners are a set of non-admin users who are allowed to modify this object. + /// The object ID of the service principal for which to get owners. + /// The cancellation token to use. + public Response ListOwners(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateListOwnersRequest(objectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListKeyCredentialsRequest(string objectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/servicePrincipals/", false); + uri.AppendPath(objectId, true); + uri.AppendPath("/keyCredentials", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Get the keyCredentials associated with the specified service principal. + /// The object ID of the service principal for which to get keyCredentials. + /// The cancellation token to use. + public async ValueTask> ListKeyCredentialsAsync(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateListKeyCredentialsRequest(objectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + KeyCredentialListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = KeyCredentialListResult.DeserializeKeyCredentialListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Get the keyCredentials associated with the specified service principal. + /// The object ID of the service principal for which to get keyCredentials. + /// The cancellation token to use. + public Response ListKeyCredentials(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateListKeyCredentialsRequest(objectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + KeyCredentialListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = KeyCredentialListResult.DeserializeKeyCredentialListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdateKeyCredentialsRequest(string objectId, KeyCredentialsUpdateParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/servicePrincipals/", false); + uri.AppendPath(objectId, true); + uri.AppendPath("/keyCredentials", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Update the keyCredentials associated with a service principal. + /// The object ID for which to get service principal information. + /// Parameters to update the keyCredentials of an existing service principal. + /// The cancellation token to use. + public async ValueTask UpdateKeyCredentialsAsync(string objectId, KeyCredentialsUpdateParameters parameters, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdateKeyCredentialsRequest(objectId, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Update the keyCredentials associated with a service principal. + /// The object ID for which to get service principal information. + /// Parameters to update the keyCredentials of an existing service principal. + /// The cancellation token to use. + public Response UpdateKeyCredentials(string objectId, KeyCredentialsUpdateParameters parameters, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdateKeyCredentialsRequest(objectId, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListPasswordCredentialsRequest(string objectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/servicePrincipals/", false); + uri.AppendPath(objectId, true); + uri.AppendPath("/passwordCredentials", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets the passwordCredentials associated with a service principal. + /// The object ID of the service principal. + /// The cancellation token to use. + public async ValueTask> ListPasswordCredentialsAsync(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateListPasswordCredentialsRequest(objectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + PasswordCredentialListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = PasswordCredentialListResult.DeserializePasswordCredentialListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets the passwordCredentials associated with a service principal. + /// The object ID of the service principal. + /// The cancellation token to use. + public Response ListPasswordCredentials(string objectId, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateListPasswordCredentialsRequest(objectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + PasswordCredentialListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = PasswordCredentialListResult.DeserializePasswordCredentialListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdatePasswordCredentialsRequest(string objectId, PasswordCredentialsUpdateParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/servicePrincipals/", false); + uri.AppendPath(objectId, true); + uri.AppendPath("/passwordCredentials", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Updates the passwordCredentials associated with a service principal. + /// The object ID of the service principal. + /// Parameters to update the passwordCredentials of an existing service principal. + /// The cancellation token to use. + public async ValueTask UpdatePasswordCredentialsAsync(string objectId, PasswordCredentialsUpdateParameters parameters, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdatePasswordCredentialsRequest(objectId, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Updates the passwordCredentials associated with a service principal. + /// The object ID of the service principal. + /// Parameters to update the passwordCredentials of an existing service principal. + /// The cancellation token to use. + public Response UpdatePasswordCredentials(string objectId, PasswordCredentialsUpdateParameters parameters, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdatePasswordCredentialsRequest(objectId, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/", false); + uri.AppendRaw(nextLink, false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets a list of service principals from the current tenant. + /// Next link for the list operation. + /// The cancellation token to use. + public async ValueTask> ListNextAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ServicePrincipalListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ServicePrincipalListResult.DeserializeServicePrincipalListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a list of service principals from the current tenant. + /// Next link for the list operation. + /// The cancellation token to use. + public Response ListNext(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ServicePrincipalListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ServicePrincipalListResult.DeserializeServicePrincipalListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListOwnersNextPageRequest(string nextLink, string objectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// The owners are a set of non-admin users who are allowed to modify this object. + /// The URL to the next page of results. + /// The object ID of the service principal for which to get owners. + /// The cancellation token to use. + public async ValueTask> ListOwnersNextPageAsync(string nextLink, string objectId, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateListOwnersNextPageRequest(nextLink, objectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// The owners are a set of non-admin users who are allowed to modify this object. + /// The URL to the next page of results. + /// The object ID of the service principal for which to get owners. + /// The cancellation token to use. + public Response ListOwnersNextPage(string nextLink, string objectId, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + + using var message = CreateListOwnersNextPageRequest(nextLink, objectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextNextPageRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// Gets a list of service principals from the current tenant. + /// The URL to the next page of results. + /// The cancellation token to use. + public async ValueTask> ListNextNextPageAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextNextPageRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ServicePrincipalListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ServicePrincipalListResult.DeserializeServicePrincipalListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a list of service principals from the current tenant. + /// The URL to the next page of results. + /// The cancellation token to use. + public Response ListNextNextPage(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextNextPageRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ServicePrincipalListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ServicePrincipalListResult.DeserializeServicePrincipalListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/SignedInUserClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/SignedInUserClient.cs new file mode 100644 index 0000000000000..eb09b237a929c --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/SignedInUserClient.cs @@ -0,0 +1,235 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac.Models; + +namespace Azure.Graph.Rbac +{ + /// The SignedInUser service client. + public partial class SignedInUserClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal SignedInUserRestClient RestClient { get; } + /// Initializes a new instance of SignedInUserClient for mocking. + protected SignedInUserClient() + { + } + /// Initializes a new instance of SignedInUserClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The tenant ID. + /// server parameter. + /// Api Version. + internal SignedInUserClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") + { + RestClient = new SignedInUserRestClient(clientDiagnostics, pipeline, tenantID, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Gets the details for the currently logged-in user. + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("SignedInUserClient.Get"); + scope.Start(); + try + { + return await RestClient.GetAsync(cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the details for the currently logged-in user. + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("SignedInUserClient.Get"); + scope.Start(); + try + { + return RestClient.Get(cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Get the list of directory objects that are owned by the user. + /// The cancellation token to use. + public virtual AsyncPageable ListOwnedObjectsAsync(CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("SignedInUserClient.ListOwnedObjects"); + scope.Start(); + try + { + var response = await RestClient.ListOwnedObjectsAsync(cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("SignedInUserClient.ListOwnedObjects"); + scope.Start(); + try + { + var response = await RestClient.ListOwnedObjectsNextAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Get the list of directory objects that are owned by the user. + /// The cancellation token to use. + public virtual Pageable ListOwnedObjects(CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("SignedInUserClient.ListOwnedObjects"); + scope.Start(); + try + { + var response = RestClient.ListOwnedObjects(cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("SignedInUserClient.ListOwnedObjects"); + scope.Start(); + try + { + var response = RestClient.ListOwnedObjectsNext(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Get the list of directory objects that are owned by the user. + /// Next link for the list operation. + /// The cancellation token to use. + public virtual AsyncPageable ListOwnedObjectsNextAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("SignedInUserClient.ListOwnedObjectsNext"); + scope.Start(); + try + { + var response = await RestClient.ListOwnedObjectsNextAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("SignedInUserClient.ListOwnedObjectsNext"); + scope.Start(); + try + { + var response = await RestClient.ListOwnedObjectsNextNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Get the list of directory objects that are owned by the user. + /// Next link for the list operation. + /// The cancellation token to use. + public virtual Pageable ListOwnedObjectsNext(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("SignedInUserClient.ListOwnedObjectsNext"); + scope.Start(); + try + { + var response = RestClient.ListOwnedObjectsNext(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("SignedInUserClient.ListOwnedObjectsNext"); + scope.Start(); + try + { + var response = RestClient.ListOwnedObjectsNextNextPage(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/SignedInUserRestClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/SignedInUserRestClient.cs new file mode 100644 index 0000000000000..86d47379f5d52 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/SignedInUserRestClient.cs @@ -0,0 +1,351 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac.Models; + +namespace Azure.Graph.Rbac +{ + internal partial class SignedInUserRestClient + { + private string tenantID; + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of SignedInUserRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The tenant ID. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public SignedInUserRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") + { + if (tenantID == null) + { + throw new ArgumentNullException(nameof(tenantID)); + } + endpoint ??= new Uri("https://graph.windows.net"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.tenantID = tenantID; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateGetRequest() + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/me", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets the details for the currently logged-in user. + /// The cancellation token to use. + public async ValueTask> GetAsync(CancellationToken cancellationToken = default) + { + using var message = CreateGetRequest(); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + User value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = User.DeserializeUser(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets the details for the currently logged-in user. + /// The cancellation token to use. + public Response Get(CancellationToken cancellationToken = default) + { + using var message = CreateGetRequest(); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + User value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = User.DeserializeUser(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListOwnedObjectsRequest() + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/me/ownedObjects", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Get the list of directory objects that are owned by the user. + /// The cancellation token to use. + public async ValueTask> ListOwnedObjectsAsync(CancellationToken cancellationToken = default) + { + using var message = CreateListOwnedObjectsRequest(); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Get the list of directory objects that are owned by the user. + /// The cancellation token to use. + public Response ListOwnedObjects(CancellationToken cancellationToken = default) + { + using var message = CreateListOwnedObjectsRequest(); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListOwnedObjectsNextRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/", false); + uri.AppendRaw(nextLink, false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Get the list of directory objects that are owned by the user. + /// Next link for the list operation. + /// The cancellation token to use. + public async ValueTask> ListOwnedObjectsNextAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListOwnedObjectsNextRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Get the list of directory objects that are owned by the user. + /// Next link for the list operation. + /// The cancellation token to use. + public Response ListOwnedObjectsNext(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListOwnedObjectsNextRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListOwnedObjectsNextNextPageRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// Get the list of directory objects that are owned by the user. + /// The URL to the next page of results. + /// The cancellation token to use. + public async ValueTask> ListOwnedObjectsNextNextPageAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListOwnedObjectsNextNextPageRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Get the list of directory objects that are owned by the user. + /// The URL to the next page of results. + /// The cancellation token to use. + public Response ListOwnedObjectsNextNextPage(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListOwnedObjectsNextNextPageRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DirectoryObjectListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DirectoryObjectListResult.DeserializeDirectoryObjectListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/UsersClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/UsersClient.cs new file mode 100644 index 0000000000000..19780d775826e --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/UsersClient.cs @@ -0,0 +1,415 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac.Models; + +namespace Azure.Graph.Rbac +{ + /// The Users service client. + public partial class UsersClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal UsersRestClient RestClient { get; } + /// Initializes a new instance of UsersClient for mocking. + protected UsersClient() + { + } + /// Initializes a new instance of UsersClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The tenant ID. + /// server parameter. + /// Api Version. + internal UsersClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") + { + RestClient = new UsersRestClient(clientDiagnostics, pipeline, tenantID, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Create a new user. + /// Parameters to create a user. + /// The cancellation token to use. + public virtual async Task> CreateAsync(UserCreateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("UsersClient.Create"); + scope.Start(); + try + { + return await RestClient.CreateAsync(parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Create a new user. + /// Parameters to create a user. + /// The cancellation token to use. + public virtual Response Create(UserCreateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("UsersClient.Create"); + scope.Start(); + try + { + return RestClient.Create(parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets user information from the directory. + /// The object ID or principal name of the user for which to get information. + /// The cancellation token to use. + public virtual async Task> GetAsync(string upnOrObjectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("UsersClient.Get"); + scope.Start(); + try + { + return await RestClient.GetAsync(upnOrObjectId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets user information from the directory. + /// The object ID or principal name of the user for which to get information. + /// The cancellation token to use. + public virtual Response Get(string upnOrObjectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("UsersClient.Get"); + scope.Start(); + try + { + return RestClient.Get(upnOrObjectId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Updates a user. + /// The object ID or principal name of the user to update. + /// Parameters to update an existing user. + /// The cancellation token to use. + public virtual async Task UpdateAsync(string upnOrObjectId, UserUpdateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("UsersClient.Update"); + scope.Start(); + try + { + return await RestClient.UpdateAsync(upnOrObjectId, parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Updates a user. + /// The object ID or principal name of the user to update. + /// Parameters to update an existing user. + /// The cancellation token to use. + public virtual Response Update(string upnOrObjectId, UserUpdateParameters parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("UsersClient.Update"); + scope.Start(); + try + { + return RestClient.Update(upnOrObjectId, parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Delete a user. + /// The object ID or principal name of the user to delete. + /// The cancellation token to use. + public virtual async Task DeleteAsync(string upnOrObjectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("UsersClient.Delete"); + scope.Start(); + try + { + return await RestClient.DeleteAsync(upnOrObjectId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Delete a user. + /// The object ID or principal name of the user to delete. + /// The cancellation token to use. + public virtual Response Delete(string upnOrObjectId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("UsersClient.Delete"); + scope.Start(); + try + { + return RestClient.Delete(upnOrObjectId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets list of users for the current tenant. + /// The filter to apply to the operation. + /// The cancellation token to use. + public virtual AsyncPageable ListAsync(string filter = null, CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("UsersClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListAsync(filter, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("UsersClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListNextAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets list of users for the current tenant. + /// The filter to apply to the operation. + /// The cancellation token to use. + public virtual Pageable List(string filter = null, CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("UsersClient.List"); + scope.Start(); + try + { + var response = RestClient.List(filter, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("UsersClient.List"); + scope.Start(); + try + { + var response = RestClient.ListNext(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets a collection that contains the object IDs of the groups of which the user is a member. + /// The object ID of the user for which to get group membership. + /// User filtering parameters. + /// The cancellation token to use. + public virtual AsyncPageable GetMemberGroupsAsync(string objectId, UserGetMemberGroupsParameters parameters, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("UsersClient.GetMemberGroups"); + scope.Start(); + try + { + var response = await RestClient.GetMemberGroupsAsync(objectId, parameters, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, null); + } + + /// Gets a collection that contains the object IDs of the groups of which the user is a member. + /// The object ID of the user for which to get group membership. + /// User filtering parameters. + /// The cancellation token to use. + public virtual Pageable GetMemberGroups(string objectId, UserGetMemberGroupsParameters parameters, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("UsersClient.GetMemberGroups"); + scope.Start(); + try + { + var response = RestClient.GetMemberGroups(objectId, parameters, cancellationToken); + return Page.FromValues(response.Value.Value, null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, null); + } + + /// Gets a list of users for the current tenant. + /// Next link for the list operation. + /// The cancellation token to use. + public virtual AsyncPageable ListNextAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("UsersClient.ListNext"); + scope.Start(); + try + { + var response = await RestClient.ListNextAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("UsersClient.ListNext"); + scope.Start(); + try + { + var response = await RestClient.ListNextNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets a list of users for the current tenant. + /// Next link for the list operation. + /// The cancellation token to use. + public virtual Pageable ListNext(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("UsersClient.ListNext"); + scope.Start(); + try + { + var response = RestClient.ListNext(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("UsersClient.ListNext"); + scope.Start(); + try + { + var response = RestClient.ListNextNextPage(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.OdataNextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Generated/UsersRestClient.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/UsersRestClient.cs new file mode 100644 index 0000000000000..e22c614191d2c --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Generated/UsersRestClient.cs @@ -0,0 +1,682 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Graph.Rbac.Models; + +namespace Azure.Graph.Rbac +{ + internal partial class UsersRestClient + { + private string tenantID; + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of UsersRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The tenant ID. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public UsersRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string tenantID, Uri endpoint = null, string apiVersion = "1.6") + { + if (tenantID == null) + { + throw new ArgumentNullException(nameof(tenantID)); + } + endpoint ??= new Uri("https://graph.windows.net"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.tenantID = tenantID; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal HttpMessage CreateCreateRequest(UserCreateParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/users", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Create a new user. + /// Parameters to create a user. + /// The cancellation token to use. + public async ValueTask> CreateAsync(UserCreateParameters parameters, CancellationToken cancellationToken = default) + { + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateCreateRequest(parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 201: + { + User value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = User.DeserializeUser(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Create a new user. + /// Parameters to create a user. + /// The cancellation token to use. + public Response Create(UserCreateParameters parameters, CancellationToken cancellationToken = default) + { + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateCreateRequest(parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 201: + { + User value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = User.DeserializeUser(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListRequest(string filter) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/users", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets list of users for the current tenant. + /// The filter to apply to the operation. + /// The cancellation token to use. + public async ValueTask> ListAsync(string filter = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(filter); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + UserListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = UserListResult.DeserializeUserListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets list of users for the current tenant. + /// The filter to apply to the operation. + /// The cancellation token to use. + public Response List(string filter = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(filter); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + UserListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = UserListResult.DeserializeUserListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetRequest(string upnOrObjectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/users/", false); + uri.AppendPath(upnOrObjectId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets user information from the directory. + /// The object ID or principal name of the user for which to get information. + /// The cancellation token to use. + public async ValueTask> GetAsync(string upnOrObjectId, CancellationToken cancellationToken = default) + { + if (upnOrObjectId == null) + { + throw new ArgumentNullException(nameof(upnOrObjectId)); + } + + using var message = CreateGetRequest(upnOrObjectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + User value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = User.DeserializeUser(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets user information from the directory. + /// The object ID or principal name of the user for which to get information. + /// The cancellation token to use. + public Response Get(string upnOrObjectId, CancellationToken cancellationToken = default) + { + if (upnOrObjectId == null) + { + throw new ArgumentNullException(nameof(upnOrObjectId)); + } + + using var message = CreateGetRequest(upnOrObjectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + User value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = User.DeserializeUser(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateUpdateRequest(string upnOrObjectId, UserUpdateParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/users/", false); + uri.AppendPath(upnOrObjectId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Updates a user. + /// The object ID or principal name of the user to update. + /// Parameters to update an existing user. + /// The cancellation token to use. + public async ValueTask UpdateAsync(string upnOrObjectId, UserUpdateParameters parameters, CancellationToken cancellationToken = default) + { + if (upnOrObjectId == null) + { + throw new ArgumentNullException(nameof(upnOrObjectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdateRequest(upnOrObjectId, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Updates a user. + /// The object ID or principal name of the user to update. + /// Parameters to update an existing user. + /// The cancellation token to use. + public Response Update(string upnOrObjectId, UserUpdateParameters parameters, CancellationToken cancellationToken = default) + { + if (upnOrObjectId == null) + { + throw new ArgumentNullException(nameof(upnOrObjectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdateRequest(upnOrObjectId, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateDeleteRequest(string upnOrObjectId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/users/", false); + uri.AppendPath(upnOrObjectId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Delete a user. + /// The object ID or principal name of the user to delete. + /// The cancellation token to use. + public async ValueTask DeleteAsync(string upnOrObjectId, CancellationToken cancellationToken = default) + { + if (upnOrObjectId == null) + { + throw new ArgumentNullException(nameof(upnOrObjectId)); + } + + using var message = CreateDeleteRequest(upnOrObjectId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Delete a user. + /// The object ID or principal name of the user to delete. + /// The cancellation token to use. + public Response Delete(string upnOrObjectId, CancellationToken cancellationToken = default) + { + if (upnOrObjectId == null) + { + throw new ArgumentNullException(nameof(upnOrObjectId)); + } + + using var message = CreateDeleteRequest(upnOrObjectId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateGetMemberGroupsRequest(string objectId, UserGetMemberGroupsParameters parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/users/", false); + uri.AppendPath(objectId, true); + uri.AppendPath("/getMemberGroups", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Gets a collection that contains the object IDs of the groups of which the user is a member. + /// The object ID of the user for which to get group membership. + /// User filtering parameters. + /// The cancellation token to use. + public async ValueTask> GetMemberGroupsAsync(string objectId, UserGetMemberGroupsParameters parameters, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateGetMemberGroupsRequest(objectId, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + UserGetMemberGroupsResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = UserGetMemberGroupsResult.DeserializeUserGetMemberGroupsResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a collection that contains the object IDs of the groups of which the user is a member. + /// The object ID of the user for which to get group membership. + /// User filtering parameters. + /// The cancellation token to use. + public Response GetMemberGroups(string objectId, UserGetMemberGroupsParameters parameters, CancellationToken cancellationToken = default) + { + if (objectId == null) + { + throw new ArgumentNullException(nameof(objectId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateGetMemberGroupsRequest(objectId, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + UserGetMemberGroupsResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = UserGetMemberGroupsResult.DeserializeUserGetMemberGroupsResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(tenantID, true); + uri.AppendPath("/", false); + uri.AppendRaw(nextLink, false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets a list of users for the current tenant. + /// Next link for the list operation. + /// The cancellation token to use. + public async ValueTask> ListNextAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + UserListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = UserListResult.DeserializeUserListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a list of users for the current tenant. + /// Next link for the list operation. + /// The cancellation token to use. + public Response ListNext(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + UserListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = UserListResult.DeserializeUserListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal HttpMessage CreateListNextNextPageRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// Gets a list of users for the current tenant. + /// The URL to the next page of results. + /// The cancellation token to use. + public async ValueTask> ListNextNextPageAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextNextPageRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + UserListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = UserListResult.DeserializeUserListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a list of users for the current tenant. + /// The URL to the next page of results. + /// The cancellation token to use. + public Response ListNextNextPage(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextNextPageRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + UserListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = UserListResult.DeserializeUserListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/Properties/AssemblyInfo.cs b/sdk/testcommon/Azure.Graph.Rbac/src/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000000..ea897bd43f415 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/Properties/AssemblyInfo.cs @@ -0,0 +1,8 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Runtime.CompilerServices; + +[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.ResourceGraph")] + +[assembly: InternalsVisibleTo("Azure.Graph.Rbac.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] diff --git a/sdk/testcommon/Azure.Graph.Rbac/src/autorest.md b/sdk/testcommon/Azure.Graph.Rbac/src/autorest.md new file mode 100644 index 0000000000000..195a04c127900 --- /dev/null +++ b/sdk/testcommon/Azure.Graph.Rbac/src/autorest.md @@ -0,0 +1,8 @@ +# Generated code configuration + +Run `dotnet msbuild /t:GenerateCode` to generate code. + +``` yaml +azure-arm: true +require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7fe24f57e1d0e3560535be0730db43feb3239a36/specification/graphrbac/data-plane/readme.md +``` diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/Azure.Management.Resource.sln b/sdk/testcommon/Azure.Management.Resource.2017_05/Azure.Management.Resource.sln new file mode 100644 index 0000000000000..3201fee059f86 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/Azure.Management.Resource.sln @@ -0,0 +1,37 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.30011.22 +MinimumVisualStudioVersion = 15.0.26124.0 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Azure.Management.Resource", "src\Azure.Management.Resource.csproj", "{4160E24C-43AC-4EF9-B4F7-49445F9B113D}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x64 = Debug|x64 + Debug|x86 = Debug|x86 + Release|Any CPU = Release|Any CPU + Release|x64 = Release|x64 + Release|x86 = Release|x86 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {4160E24C-43AC-4EF9-B4F7-49445F9B113D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4160E24C-43AC-4EF9-B4F7-49445F9B113D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4160E24C-43AC-4EF9-B4F7-49445F9B113D}.Debug|x64.ActiveCfg = Debug|Any CPU + {4160E24C-43AC-4EF9-B4F7-49445F9B113D}.Debug|x64.Build.0 = Debug|Any CPU + {4160E24C-43AC-4EF9-B4F7-49445F9B113D}.Debug|x86.ActiveCfg = Debug|Any CPU + {4160E24C-43AC-4EF9-B4F7-49445F9B113D}.Debug|x86.Build.0 = Debug|Any CPU + {4160E24C-43AC-4EF9-B4F7-49445F9B113D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4160E24C-43AC-4EF9-B4F7-49445F9B113D}.Release|Any CPU.Build.0 = Release|Any CPU + {4160E24C-43AC-4EF9-B4F7-49445F9B113D}.Release|x64.ActiveCfg = Release|Any CPU + {4160E24C-43AC-4EF9-B4F7-49445F9B113D}.Release|x64.Build.0 = Release|Any CPU + {4160E24C-43AC-4EF9-B4F7-49445F9B113D}.Release|x86.ActiveCfg = Release|Any CPU + {4160E24C-43AC-4EF9-B4F7-49445F9B113D}.Release|x86.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6B72E8F2-D9D1-4AA7-9C17-FACE69D3249C} + EndGlobalSection +EndGlobal diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/CHANGELOG.md b/sdk/testcommon/Azure.Management.Resource.2017_05/CHANGELOG.md new file mode 100644 index 0000000000000..6f180f7e3cd3d --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/CHANGELOG.md @@ -0,0 +1,6 @@ +# Release History + +## 0.1.6-preview.1 + +### New Features +- For API version 2017-05-10 diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/Directory.Build.props b/sdk/testcommon/Azure.Management.Resource.2017_05/Directory.Build.props new file mode 100644 index 0000000000000..1a9611bd49242 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/Directory.Build.props @@ -0,0 +1,6 @@ + + + + diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/README.md b/sdk/testcommon/Azure.Management.Resource.2017_05/README.md new file mode 100644 index 0000000000000..b9f898d4e7a49 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/README.md @@ -0,0 +1,48 @@ +# Azure Management Resources client library for .NET + +**Introduction**: The introduction appears directly under the title (H1) of your README. + +* **DO NOT** use an "Introduction" or "Overview" heading (H2) for this section. +* First sentence: **Describe the service** briefly. You can usually use the first line of the service's docs landing page for this (Example: [Cosmos DB docs landing page](https://docs.microsoft.com/azure/cosmos-db/)). +* Next, add a **bulleted list** of the **most common tasks** supported by the package or library, prefaced with "Use the client library for [Product Name] to:". Then, provide code snippets for these tasks in the [Examples](#examples) section later in the document. Keep the task list short but include those tasks most developers need to perform with your package. +* Include this single line of links targeting your product's content at the bottom of the introduction, making any adjustments as necessary (for example, NuGet instead of PyPi): + + [Source code](https://github.com/Azure/azure-sdk-for-python/tree/master/azure-batch) | [Package (PyPi)](https://pypi.org/project/azure-batch/) | [API reference documentation](https://docs.microsoft.com/python/api/overview/azure/batch?view=azure-python) | [Product documentation](https://docs.microsoft.com/azure/batch/) + +> TIP: Your README should be as **brief** as possible but **no more brief** than necessary to get a developer new to Azure, the service, or the package up and running quickly. Keep it brief, but include everything a developer needs to make their first API call successfully. + +## Getting started + +This section should include everything a developer needs to do to install and create their first client connection *very quickly*. + +## Key concepts + +The *Key concepts* section should describe the functionality of the main classes. Point out the most important and useful classes in the package (with links to their reference pages) and explain how those classes work together. Feel free to use bulleted lists, tables, code blocks, or even diagrams for clarity. + +## Examples + +Include code snippets and short descriptions for each task you listed in the [Introduction](#introduction) (the bulleted list). Briefly explain each operation, but include enough clarity to explain complex or otherwise tricky operations. + +## Troubleshooting + +Describe common errors and exceptions, how to "unpack" them if necessary, and include guidance for graceful handling and recovery. + +Provide information to help developers avoid throttling or other service-enforced errors they might encounter. For example, provide guidance and examples for using retry or connection policies in the API. + +If the package or a related package supports it, include tips for logging or enabling instrumentation to help them debug their code. + +## Next steps + +* Provide a link to additional code examples, ideally to those sitting alongside the README in the package's `/samples` directory. +* If appropriate, point users to other packages that might be useful. +* If you think there's a good chance that developers might stumble across your package in error (because they're searching for specific functionality and mistakenly think the package provides that functionality), point them to the packages they might be looking for. + +## Contributing + +This is a template, but your SDK readme should include details on how to contribute code to the repo/package. + + +[style-guide-msft]: https://docs.microsoft.com/style-guide/capitalization +[style-guide-cloud]: https://worldready.cloudapp.net/Styleguide/Read?id=2696&topicid=25357 + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-net%2Fsdk%2Ftemplate%2FAzure.Template%2FREADME.png) diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Azure.Management.Resource.csproj b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Azure.Management.Resource.csproj new file mode 100644 index 0000000000000..b763a0d50cb79 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Azure.Management.Resource.csproj @@ -0,0 +1,9 @@ + + + 0.1.6-preview.1 + Azure.Management.Resource + Azure management client SDK for Azure resource provider Microsoft.Resources + azure;management;resources + $(NoWarn);AZC0008 + + diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/DeploymentClient.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/DeploymentClient.cs new file mode 100644 index 0000000000000..22f90b92b96fa --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/DeploymentClient.cs @@ -0,0 +1,179 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.Resource.Models; + +namespace Azure.Management.Resource +{ + /// The Deployment service client. + public partial class DeploymentClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal DeploymentRestClient RestClient { get; } + /// Initializes a new instance of DeploymentClient for mocking. + protected DeploymentClient() + { + } + /// Initializes a new instance of DeploymentClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The ID of the target subscription. + /// server parameter. + /// Api Version. + internal DeploymentClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null, string apiVersion = "2017-05-10") + { + RestClient = new DeploymentRestClient(clientDiagnostics, pipeline, subscriptionId, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Gets a deployments operation. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment. + /// The ID of the operation to get. + /// The cancellation token to use. + public virtual async Task> GetAsync(string resourceGroupName, string deploymentName, string operationId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentClient.Get"); + scope.Start(); + try + { + return await RestClient.GetAsync(resourceGroupName, deploymentName, operationId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets a deployments operation. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment. + /// The ID of the operation to get. + /// The cancellation token to use. + public virtual Response Get(string resourceGroupName, string deploymentName, string operationId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentClient.Get"); + scope.Start(); + try + { + return RestClient.Get(resourceGroupName, deploymentName, operationId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets all deployments operations for a deployment. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment with the operation to get. + /// The number of results to return. + /// The cancellation token to use. + public virtual AsyncPageable ListAsync(string resourceGroupName, string deploymentName, int? top = null, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListAsync(resourceGroupName, deploymentName, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListNextPageAsync(nextLink, resourceGroupName, deploymentName, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets all deployments operations for a deployment. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment with the operation to get. + /// The number of results to return. + /// The cancellation token to use. + public virtual Pageable List(string resourceGroupName, string deploymentName, int? top = null, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentClient.List"); + scope.Start(); + try + { + var response = RestClient.List(resourceGroupName, deploymentName, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentClient.List"); + scope.Start(); + try + { + var response = RestClient.ListNextPage(nextLink, resourceGroupName, deploymentName, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/DeploymentRestClient.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/DeploymentRestClient.cs new file mode 100644 index 0000000000000..0bbd547233df3 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/DeploymentRestClient.cs @@ -0,0 +1,360 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.Resource.Models; + +namespace Azure.Management.Resource +{ + internal partial class DeploymentRestClient + { + private string subscriptionId; + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of DeploymentRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The ID of the target subscription. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public DeploymentRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null, string apiVersion = "2017-05-10") + { + if (subscriptionId == null) + { + throw new ArgumentNullException(nameof(subscriptionId)); + } + endpoint ??= new Uri("https://management.azure.com"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.subscriptionId = subscriptionId; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal Core.HttpMessage CreateGetRequest(string resourceGroupName, string deploymentName, string operationId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/operations/", false); + uri.AppendPath(operationId, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets a deployments operation. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment. + /// The ID of the operation to get. + /// The cancellation token to use. + public async ValueTask> GetAsync(string resourceGroupName, string deploymentName, string operationId, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + if (operationId == null) + { + throw new ArgumentNullException(nameof(operationId)); + } + + using var message = CreateGetRequest(resourceGroupName, deploymentName, operationId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DeploymentOperation value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeploymentOperation.DeserializeDeploymentOperation(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a deployments operation. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment. + /// The ID of the operation to get. + /// The cancellation token to use. + public Response Get(string resourceGroupName, string deploymentName, string operationId, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + if (operationId == null) + { + throw new ArgumentNullException(nameof(operationId)); + } + + using var message = CreateGetRequest(resourceGroupName, deploymentName, operationId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DeploymentOperation value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeploymentOperation.DeserializeDeploymentOperation(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateListRequest(string resourceGroupName, string deploymentName, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/operations", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets all deployments operations for a deployment. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment with the operation to get. + /// The number of results to return. + /// The cancellation token to use. + public async ValueTask> ListAsync(string resourceGroupName, string deploymentName, int? top = null, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + + using var message = CreateListRequest(resourceGroupName, deploymentName, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DeploymentOperationsListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeploymentOperationsListResult.DeserializeDeploymentOperationsListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets all deployments operations for a deployment. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment with the operation to get. + /// The number of results to return. + /// The cancellation token to use. + public Response List(string resourceGroupName, string deploymentName, int? top = null, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + + using var message = CreateListRequest(resourceGroupName, deploymentName, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DeploymentOperationsListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeploymentOperationsListResult.DeserializeDeploymentOperationsListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateListNextPageRequest(string nextLink, string resourceGroupName, string deploymentName, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// Gets all deployments operations for a deployment. + /// The URL to the next page of results. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment with the operation to get. + /// The number of results to return. + /// The cancellation token to use. + public async ValueTask> ListNextPageAsync(string nextLink, string resourceGroupName, string deploymentName, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + + using var message = CreateListNextPageRequest(nextLink, resourceGroupName, deploymentName, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DeploymentOperationsListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeploymentOperationsListResult.DeserializeDeploymentOperationsListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets all deployments operations for a deployment. + /// The URL to the next page of results. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment with the operation to get. + /// The number of results to return. + /// The cancellation token to use. + public Response ListNextPage(string nextLink, string resourceGroupName, string deploymentName, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + + using var message = CreateListNextPageRequest(nextLink, resourceGroupName, deploymentName, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DeploymentOperationsListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeploymentOperationsListResult.DeserializeDeploymentOperationsListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/DeploymentsClient.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/DeploymentsClient.cs new file mode 100644 index 0000000000000..2b3a6cea0f430 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/DeploymentsClient.cs @@ -0,0 +1,485 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.Resource.Models; + +namespace Azure.Management.Resource +{ + /// The Deployments service client. + public partial class DeploymentsClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal DeploymentsRestClient RestClient { get; } + /// Initializes a new instance of DeploymentsClient for mocking. + protected DeploymentsClient() + { + } + /// Initializes a new instance of DeploymentsClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The ID of the target subscription. + /// server parameter. + /// Api Version. + internal DeploymentsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null, string apiVersion = "2017-05-10") + { + RestClient = new DeploymentsRestClient(clientDiagnostics, pipeline, subscriptionId, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Checks whether the deployment exists. + /// The name of the resource group with the deployment to check. The name is case insensitive. + /// The name of the deployment to check. + /// The cancellation token to use. + public virtual async Task CheckExistenceAsync(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.CheckExistence"); + scope.Start(); + try + { + return await RestClient.CheckExistenceAsync(resourceGroupName, deploymentName, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Checks whether the deployment exists. + /// The name of the resource group with the deployment to check. The name is case insensitive. + /// The name of the deployment to check. + /// The cancellation token to use. + public virtual Response CheckExistence(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.CheckExistence"); + scope.Start(); + try + { + return RestClient.CheckExistence(resourceGroupName, deploymentName, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets a deployment. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment to get. + /// The cancellation token to use. + public virtual async Task> GetAsync(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.Get"); + scope.Start(); + try + { + return await RestClient.GetAsync(resourceGroupName, deploymentName, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets a deployment. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment to get. + /// The cancellation token to use. + public virtual Response Get(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.Get"); + scope.Start(); + try + { + return RestClient.Get(resourceGroupName, deploymentName, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resource group partially deployed. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment to cancel. + /// The cancellation token to use. + public virtual async Task CancelAsync(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.Cancel"); + scope.Start(); + try + { + return await RestClient.CancelAsync(resourceGroupName, deploymentName, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resource group partially deployed. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment to cancel. + /// The cancellation token to use. + public virtual Response Cancel(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.Cancel"); + scope.Start(); + try + { + return RestClient.Cancel(resourceGroupName, deploymentName, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. + /// The name of the resource group the template will be deployed to. The name is case insensitive. + /// The name of the deployment. + /// Parameters to validate. + /// The cancellation token to use. + public virtual async Task> ValidateAsync(string resourceGroupName, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.Validate"); + scope.Start(); + try + { + return await RestClient.ValidateAsync(resourceGroupName, deploymentName, parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. + /// The name of the resource group the template will be deployed to. The name is case insensitive. + /// The name of the deployment. + /// Parameters to validate. + /// The cancellation token to use. + public virtual Response Validate(string resourceGroupName, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.Validate"); + scope.Start(); + try + { + return RestClient.Validate(resourceGroupName, deploymentName, parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Exports the template used for specified deployment. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment from which to get the template. + /// The cancellation token to use. + public virtual async Task> ExportTemplateAsync(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.ExportTemplate"); + scope.Start(); + try + { + return await RestClient.ExportTemplateAsync(resourceGroupName, deploymentName, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Exports the template used for specified deployment. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment from which to get the template. + /// The cancellation token to use. + public virtual Response ExportTemplate(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.ExportTemplate"); + scope.Start(); + try + { + return RestClient.ExportTemplate(resourceGroupName, deploymentName, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Calculate the hash of the given template. + /// The template provided to calculate hash. + /// The cancellation token to use. + public virtual async Task> CalculateTemplateHashAsync(object template, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.CalculateTemplateHash"); + scope.Start(); + try + { + return await RestClient.CalculateTemplateHashAsync(template, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Calculate the hash of the given template. + /// The template provided to calculate hash. + /// The cancellation token to use. + public virtual Response CalculateTemplateHash(object template, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.CalculateTemplateHash"); + scope.Start(); + try + { + return RestClient.CalculateTemplateHash(template, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Get all the deployments for a resource group. + /// The name of the resource group with the deployments to get. The name is case insensitive. + /// The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'. + /// The number of results to get. If null is passed, returns all deployments. + /// The cancellation token to use. + public virtual AsyncPageable ListByResourceGroupAsync(string resourceGroupName, string filter = null, int? top = null, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.ListByResourceGroup"); + scope.Start(); + try + { + var response = await RestClient.ListByResourceGroupAsync(resourceGroupName, filter, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.ListByResourceGroup"); + scope.Start(); + try + { + var response = await RestClient.ListByResourceGroupNextPageAsync(nextLink, resourceGroupName, filter, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Get all the deployments for a resource group. + /// The name of the resource group with the deployments to get. The name is case insensitive. + /// The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'. + /// The number of results to get. If null is passed, returns all deployments. + /// The cancellation token to use. + public virtual Pageable ListByResourceGroup(string resourceGroupName, string filter = null, int? top = null, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.ListByResourceGroup"); + scope.Start(); + try + { + var response = RestClient.ListByResourceGroup(resourceGroupName, filter, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.ListByResourceGroup"); + scope.Start(); + try + { + var response = RestClient.ListByResourceGroupNextPage(nextLink, resourceGroupName, filter, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. Deleting a template deployment does not affect the state of the resource group. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code. + /// The name of the resource group with the deployment to delete. The name is case insensitive. + /// The name of the deployment to delete. + /// The cancellation token to use. + public virtual async ValueTask StartDeleteAsync(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.StartDelete"); + scope.Start(); + try + { + var originalResponse = await RestClient.DeleteAsync(resourceGroupName, deploymentName, cancellationToken).ConfigureAwait(false); + return new DeploymentsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteRequest(resourceGroupName, deploymentName).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. Deleting a template deployment does not affect the state of the resource group. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code. + /// The name of the resource group with the deployment to delete. The name is case insensitive. + /// The name of the deployment to delete. + /// The cancellation token to use. + public virtual DeploymentsDeleteOperation StartDelete(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.StartDelete"); + scope.Start(); + try + { + var originalResponse = RestClient.Delete(resourceGroupName, deploymentName, cancellationToken); + return new DeploymentsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteRequest(resourceGroupName, deploymentName).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// You can provide the template and parameters directly in the request or link to JSON files. + /// The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist. + /// The name of the deployment. + /// Additional parameters supplied to the operation. + /// The cancellation token to use. + public virtual async ValueTask StartCreateOrUpdateAsync(string resourceGroupName, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.StartCreateOrUpdate"); + scope.Start(); + try + { + var originalResponse = await RestClient.CreateOrUpdateAsync(resourceGroupName, deploymentName, parameters, cancellationToken).ConfigureAwait(false); + return new DeploymentsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreateOrUpdateRequest(resourceGroupName, deploymentName, parameters).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// You can provide the template and parameters directly in the request or link to JSON files. + /// The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist. + /// The name of the deployment. + /// Additional parameters supplied to the operation. + /// The cancellation token to use. + public virtual DeploymentsCreateOrUpdateOperation StartCreateOrUpdate(string resourceGroupName, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var scope = _clientDiagnostics.CreateScope("DeploymentsClient.StartCreateOrUpdate"); + scope.Start(); + try + { + var originalResponse = RestClient.CreateOrUpdate(resourceGroupName, deploymentName, parameters, cancellationToken); + return new DeploymentsCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreateOrUpdateRequest(resourceGroupName, deploymentName, parameters).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/DeploymentsCreateOrUpdateOperation.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/DeploymentsCreateOrUpdateOperation.cs new file mode 100644 index 0000000000000..24745eacbe62b --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/DeploymentsCreateOrUpdateOperation.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.Resource.Models; + +namespace Azure.Management.Resource +{ + /// You can provide the template and parameters directly in the request or link to JSON files. + public partial class DeploymentsCreateOrUpdateOperation : Operation, IOperationSource + { + private readonly ArmOperationHelpers _operation; + internal DeploymentsCreateOrUpdateOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + { + _operation = new ArmOperationHelpers(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "DeploymentsCreateOrUpdateOperation"); + } + /// + public override string Id => _operation.Id; + + /// + public override DeploymentExtended Value => _operation.Value; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override bool HasValue => _operation.HasValue; + + /// + public override Response GetRawResponse() => _operation.GetRawResponse(); + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + + DeploymentExtended IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + return null; + } + else + { + return DeploymentExtended.DeserializeDeploymentExtended(document.RootElement); + } + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + return null; + } + else + { + return DeploymentExtended.DeserializeDeploymentExtended(document.RootElement); + } + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/DeploymentsDeleteOperation.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/DeploymentsDeleteOperation.cs new file mode 100644 index 0000000000000..7bdbe184efbc8 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/DeploymentsDeleteOperation.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.Management.Resource +{ + /// A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. Deleting a template deployment does not affect the state of the resource group. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code. + public partial class DeploymentsDeleteOperation : Operation, IOperationSource + { + private readonly ArmOperationHelpers _operation; + internal DeploymentsDeleteOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + { + _operation = new ArmOperationHelpers(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "DeploymentsDeleteOperation"); + } + /// + public override string Id => _operation.Id; + + /// + public override Response Value => _operation.Value; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override bool HasValue => _operation.HasValue; + + /// + public override Response GetRawResponse() => _operation.GetRawResponse(); + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + + Response IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + return response; + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + return await new ValueTask(response).ConfigureAwait(false); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/DeploymentsRestClient.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/DeploymentsRestClient.cs new file mode 100644 index 0000000000000..9f07e9adcc97c --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/DeploymentsRestClient.cs @@ -0,0 +1,924 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.Resource.Models; + +namespace Azure.Management.Resource +{ + internal partial class DeploymentsRestClient + { + private string subscriptionId; + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of DeploymentsRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The ID of the target subscription. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public DeploymentsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null, string apiVersion = "2017-05-10") + { + if (subscriptionId == null) + { + throw new ArgumentNullException(nameof(subscriptionId)); + } + endpoint ??= new Uri("https://management.azure.com"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.subscriptionId = subscriptionId; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal Core.HttpMessage CreateDeleteRequest(string resourceGroupName, string deploymentName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. Deleting a template deployment does not affect the state of the resource group. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code. + /// The name of the resource group with the deployment to delete. The name is case insensitive. + /// The name of the deployment to delete. + /// The cancellation token to use. + public async ValueTask DeleteAsync(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + + using var message = CreateDeleteRequest(resourceGroupName, deploymentName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// A template deployment that is currently running cannot be deleted. Deleting a template deployment removes the associated deployment operations. Deleting a template deployment does not affect the state of the resource group. This is an asynchronous operation that returns a status of 202 until the template deployment is successfully deleted. The Location response header contains the URI that is used to obtain the status of the process. While the process is running, a call to the URI in the Location header returns a status of 202. When the process finishes, the URI in the Location header returns a status of 204 on success. If the asynchronous request failed, the URI in the Location header returns an error-level status code. + /// The name of the resource group with the deployment to delete. The name is case insensitive. + /// The name of the deployment to delete. + /// The cancellation token to use. + public Response Delete(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + + using var message = CreateDeleteRequest(resourceGroupName, deploymentName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateCheckExistenceRequest(string resourceGroupName, string deploymentName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Head; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Checks whether the deployment exists. + /// The name of the resource group with the deployment to check. The name is case insensitive. + /// The name of the deployment to check. + /// The cancellation token to use. + public async ValueTask CheckExistenceAsync(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + + using var message = CreateCheckExistenceRequest(resourceGroupName, deploymentName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + case 404: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Checks whether the deployment exists. + /// The name of the resource group with the deployment to check. The name is case insensitive. + /// The name of the deployment to check. + /// The cancellation token to use. + public Response CheckExistence(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + + using var message = CreateCheckExistenceRequest(resourceGroupName, deploymentName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + case 404: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateCreateOrUpdateRequest(string resourceGroupName, string deploymentName, Deployment parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// You can provide the template and parameters directly in the request or link to JSON files. + /// The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist. + /// The name of the deployment. + /// Additional parameters supplied to the operation. + /// The cancellation token to use. + public async ValueTask CreateOrUpdateAsync(string resourceGroupName, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateCreateOrUpdateRequest(resourceGroupName, deploymentName, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 201: + case 200: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// You can provide the template and parameters directly in the request or link to JSON files. + /// The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist. + /// The name of the deployment. + /// Additional parameters supplied to the operation. + /// The cancellation token to use. + public Response CreateOrUpdate(string resourceGroupName, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateCreateOrUpdateRequest(resourceGroupName, deploymentName, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 201: + case 200: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateGetRequest(string resourceGroupName, string deploymentName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets a deployment. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment to get. + /// The cancellation token to use. + public async ValueTask> GetAsync(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + + using var message = CreateGetRequest(resourceGroupName, deploymentName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DeploymentExtended value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeploymentExtended.DeserializeDeploymentExtended(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a deployment. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment to get. + /// The cancellation token to use. + public Response Get(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + + using var message = CreateGetRequest(resourceGroupName, deploymentName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DeploymentExtended value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeploymentExtended.DeserializeDeploymentExtended(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateCancelRequest(string resourceGroupName, string deploymentName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/cancel", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resource group partially deployed. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment to cancel. + /// The cancellation token to use. + public async ValueTask CancelAsync(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + + using var message = CreateCancelRequest(resourceGroupName, deploymentName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// You can cancel a deployment only if the provisioningState is Accepted or Running. After the deployment is canceled, the provisioningState is set to Canceled. Canceling a template deployment stops the currently running template deployment and leaves the resource group partially deployed. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment to cancel. + /// The cancellation token to use. + public Response Cancel(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + + using var message = CreateCancelRequest(resourceGroupName, deploymentName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateValidateRequest(string resourceGroupName, string deploymentName, Deployment parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/validate", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. + /// The name of the resource group the template will be deployed to. The name is case insensitive. + /// The name of the deployment. + /// Parameters to validate. + /// The cancellation token to use. + public async ValueTask> ValidateAsync(string resourceGroupName, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateValidateRequest(resourceGroupName, deploymentName, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 400: + { + DeploymentValidateResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeploymentValidateResult.DeserializeDeploymentValidateResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Validates whether the specified template is syntactically correct and will be accepted by Azure Resource Manager.. + /// The name of the resource group the template will be deployed to. The name is case insensitive. + /// The name of the deployment. + /// Parameters to validate. + /// The cancellation token to use. + public Response Validate(string resourceGroupName, string deploymentName, Deployment parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateValidateRequest(resourceGroupName, deploymentName, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 400: + { + DeploymentValidateResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeploymentValidateResult.DeserializeDeploymentValidateResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateExportTemplateRequest(string resourceGroupName, string deploymentName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + uri.AppendPath(deploymentName, true); + uri.AppendPath("/exportTemplate", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Exports the template used for specified deployment. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment from which to get the template. + /// The cancellation token to use. + public async ValueTask> ExportTemplateAsync(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + + using var message = CreateExportTemplateRequest(resourceGroupName, deploymentName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DeploymentExportResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeploymentExportResult.DeserializeDeploymentExportResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Exports the template used for specified deployment. + /// The name of the resource group. The name is case insensitive. + /// The name of the deployment from which to get the template. + /// The cancellation token to use. + public Response ExportTemplate(string resourceGroupName, string deploymentName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (deploymentName == null) + { + throw new ArgumentNullException(nameof(deploymentName)); + } + + using var message = CreateExportTemplateRequest(resourceGroupName, deploymentName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DeploymentExportResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeploymentExportResult.DeserializeDeploymentExportResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateListByResourceGroupRequest(string resourceGroupName, string filter, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Resources/deployments/", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Get all the deployments for a resource group. + /// The name of the resource group with the deployments to get. The name is case insensitive. + /// The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'. + /// The number of results to get. If null is passed, returns all deployments. + /// The cancellation token to use. + public async ValueTask> ListByResourceGroupAsync(string resourceGroupName, string filter = null, int? top = null, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var message = CreateListByResourceGroupRequest(resourceGroupName, filter, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DeploymentListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeploymentListResult.DeserializeDeploymentListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Get all the deployments for a resource group. + /// The name of the resource group with the deployments to get. The name is case insensitive. + /// The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'. + /// The number of results to get. If null is passed, returns all deployments. + /// The cancellation token to use. + public Response ListByResourceGroup(string resourceGroupName, string filter = null, int? top = null, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var message = CreateListByResourceGroupRequest(resourceGroupName, filter, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DeploymentListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeploymentListResult.DeserializeDeploymentListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateCalculateTemplateHashRequest(object template) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/providers/Microsoft.Resources/calculateTemplateHash", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(template); + request.Content = content; + return message; + } + + /// Calculate the hash of the given template. + /// The template provided to calculate hash. + /// The cancellation token to use. + public async ValueTask> CalculateTemplateHashAsync(object template, CancellationToken cancellationToken = default) + { + if (template == null) + { + throw new ArgumentNullException(nameof(template)); + } + + using var message = CreateCalculateTemplateHashRequest(template); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + TemplateHashResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = TemplateHashResult.DeserializeTemplateHashResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Calculate the hash of the given template. + /// The template provided to calculate hash. + /// The cancellation token to use. + public Response CalculateTemplateHash(object template, CancellationToken cancellationToken = default) + { + if (template == null) + { + throw new ArgumentNullException(nameof(template)); + } + + using var message = CreateCalculateTemplateHashRequest(template); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + TemplateHashResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = TemplateHashResult.DeserializeTemplateHashResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string resourceGroupName, string filter, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// Get all the deployments for a resource group. + /// The URL to the next page of results. + /// The name of the resource group with the deployments to get. The name is case insensitive. + /// The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'. + /// The number of results to get. If null is passed, returns all deployments. + /// The cancellation token to use. + public async ValueTask> ListByResourceGroupNextPageAsync(string nextLink, string resourceGroupName, string filter = null, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var message = CreateListByResourceGroupNextPageRequest(nextLink, resourceGroupName, filter, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + DeploymentListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeploymentListResult.DeserializeDeploymentListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Get all the deployments for a resource group. + /// The URL to the next page of results. + /// The name of the resource group with the deployments to get. The name is case insensitive. + /// The filter to apply on the operation. For example, you can use $filter=provisioningState eq '{state}'. + /// The number of results to get. If null is passed, returns all deployments. + /// The cancellation token to use. + public Response ListByResourceGroupNextPage(string nextLink, string resourceGroupName, string filter = null, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var message = CreateListByResourceGroupNextPageRequest(nextLink, resourceGroupName, filter, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + DeploymentListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = DeploymentListResult.DeserializeDeploymentListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/AliasPathType.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/AliasPathType.Serialization.cs new file mode 100644 index 0000000000000..4a3caaa29f7e6 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/AliasPathType.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class AliasPathType + { + internal static AliasPathType DeserializeAliasPathType(JsonElement element) + { + string path = default; + IReadOnlyList apiVersions = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("path")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + path = property.Value.GetString(); + continue; + } + if (property.NameEquals("apiVersions")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + apiVersions = array; + continue; + } + } + return new AliasPathType(path, apiVersions); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/AliasPathType.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/AliasPathType.cs new file mode 100644 index 0000000000000..446bafe1c750f --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/AliasPathType.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// The type of the paths for alias. + public partial class AliasPathType + { + /// Initializes a new instance of AliasPathType. + internal AliasPathType() + { + } + + /// Initializes a new instance of AliasPathType. + /// The path of an alias. + /// The API versions. + internal AliasPathType(string path, IReadOnlyList apiVersions) + { + Path = path; + ApiVersions = apiVersions; + } + + /// The path of an alias. + public string Path { get; } + /// The API versions. + public IReadOnlyList ApiVersions { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/AliasType.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/AliasType.Serialization.cs new file mode 100644 index 0000000000000..489691ea506d6 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/AliasType.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class AliasType + { + internal static AliasType DeserializeAliasType(JsonElement element) + { + string name = default; + IReadOnlyList paths = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("paths")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(AliasPathType.DeserializeAliasPathType(item)); + } + } + paths = array; + continue; + } + } + return new AliasType(name, paths); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/AliasType.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/AliasType.cs new file mode 100644 index 0000000000000..82840160c1665 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/AliasType.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// The alias type. + public partial class AliasType + { + /// Initializes a new instance of AliasType. + internal AliasType() + { + } + + /// Initializes a new instance of AliasType. + /// The alias name. + /// The paths for an alias. + internal AliasType(string name, IReadOnlyList paths) + { + Name = name; + Paths = paths; + } + + /// The alias name. + public string Name { get; } + /// The paths for an alias. + public IReadOnlyList Paths { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/BasicDependency.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/BasicDependency.Serialization.cs new file mode 100644 index 0000000000000..653421c514760 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/BasicDependency.Serialization.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class BasicDependency + { + internal static BasicDependency DeserializeBasicDependency(JsonElement element) + { + string id = default; + string resourceType = default; + string resourceName = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("resourceType")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceType = property.Value.GetString(); + continue; + } + if (property.NameEquals("resourceName")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceName = property.Value.GetString(); + continue; + } + } + return new BasicDependency(id, resourceType, resourceName); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/BasicDependency.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/BasicDependency.cs new file mode 100644 index 0000000000000..72636b8631fac --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/BasicDependency.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// Deployment dependency information. + public partial class BasicDependency + { + /// Initializes a new instance of BasicDependency. + internal BasicDependency() + { + } + + /// Initializes a new instance of BasicDependency. + /// The ID of the dependency. + /// The dependency resource type. + /// The dependency resource name. + internal BasicDependency(string id, string resourceType, string resourceName) + { + Id = id; + ResourceType = resourceType; + ResourceName = resourceName; + } + + /// The ID of the dependency. + public string Id { get; } + /// The dependency resource type. + public string ResourceType { get; } + /// The dependency resource name. + public string ResourceName { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/CloudError.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/CloudError.Serialization.cs new file mode 100644 index 0000000000000..c3f1df9a37814 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/CloudError.Serialization.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class CloudError + { + internal static CloudError DeserializeCloudError(JsonElement element) + { + ErrorResponse error = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("error")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + error = ErrorResponse.DeserializeErrorResponse(property.Value); + continue; + } + } + return new CloudError(error); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/CloudError.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/CloudError.cs new file mode 100644 index 0000000000000..937b3b8f55412 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/CloudError.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// An error response for a resource management request. + public partial class CloudError + { + /// Initializes a new instance of CloudError. + internal CloudError() + { + } + + /// Initializes a new instance of CloudError. + /// The resource management error response. + internal CloudError(ErrorResponse error) + { + Error = error; + } + + /// The resource management error response. + public ErrorResponse Error { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DebugSetting.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DebugSetting.Serialization.cs new file mode 100644 index 0000000000000..4eadfe9aa3e56 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DebugSetting.Serialization.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class DebugSetting : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (DetailLevel != null) + { + writer.WritePropertyName("detailLevel"); + writer.WriteStringValue(DetailLevel); + } + writer.WriteEndObject(); + } + + internal static DebugSetting DeserializeDebugSetting(JsonElement element) + { + string detailLevel = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("detailLevel")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + detailLevel = property.Value.GetString(); + continue; + } + } + return new DebugSetting(detailLevel); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DebugSetting.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DebugSetting.cs new file mode 100644 index 0000000000000..13878c27a39c4 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DebugSetting.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// The DebugSetting. + public partial class DebugSetting + { + /// Initializes a new instance of DebugSetting. + public DebugSetting() + { + } + + /// Initializes a new instance of DebugSetting. + /// Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment operations. + internal DebugSetting(string detailLevel) + { + DetailLevel = detailLevel; + } + + /// Specifies the type of information to log for debugging. The permitted values are none, requestContent, responseContent, or both requestContent and responseContent separated by a comma. The default is none. When setting this value, carefully consider the type of information you are passing in during deployment. By logging information about the request or response, you could potentially expose sensitive data that is retrieved through the deployment operations. + public string DetailLevel { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Dependency.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Dependency.Serialization.cs new file mode 100644 index 0000000000000..c17bcf9a12f5e --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Dependency.Serialization.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class Dependency + { + internal static Dependency DeserializeDependency(JsonElement element) + { + IReadOnlyList dependsOn = default; + string id = default; + string resourceType = default; + string resourceName = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("dependsOn")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(BasicDependency.DeserializeBasicDependency(item)); + } + } + dependsOn = array; + continue; + } + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("resourceType")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceType = property.Value.GetString(); + continue; + } + if (property.NameEquals("resourceName")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceName = property.Value.GetString(); + continue; + } + } + return new Dependency(dependsOn, id, resourceType, resourceName); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Dependency.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Dependency.cs new file mode 100644 index 0000000000000..5a262d7eff63a --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Dependency.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// Deployment dependency information. + public partial class Dependency + { + /// Initializes a new instance of Dependency. + internal Dependency() + { + } + + /// Initializes a new instance of Dependency. + /// The list of dependencies. + /// The ID of the dependency. + /// The dependency resource type. + /// The dependency resource name. + internal Dependency(IReadOnlyList dependsOn, string id, string resourceType, string resourceName) + { + DependsOn = dependsOn; + Id = id; + ResourceType = resourceType; + ResourceName = resourceName; + } + + /// The list of dependencies. + public IReadOnlyList DependsOn { get; } + /// The ID of the dependency. + public string Id { get; } + /// The dependency resource type. + public string ResourceType { get; } + /// The dependency resource name. + public string ResourceName { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Deployment.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Deployment.Serialization.cs new file mode 100644 index 0000000000000..c0a1e4de0c3ac --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Deployment.Serialization.cs @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class Deployment : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("properties"); + writer.WriteObjectValue(Properties); + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Deployment.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Deployment.cs new file mode 100644 index 0000000000000..c26e38f6c5237 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Deployment.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Management.Resource.Models +{ + /// Deployment operation parameters. + public partial class Deployment + { + /// Initializes a new instance of Deployment. + /// The deployment properties. + public Deployment(DeploymentProperties properties) + { + if (properties == null) + { + throw new ArgumentNullException(nameof(properties)); + } + + Properties = properties; + } + + /// The deployment properties. + public DeploymentProperties Properties { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentExportResult.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentExportResult.Serialization.cs new file mode 100644 index 0000000000000..b69016d1df78d --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentExportResult.Serialization.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class DeploymentExportResult + { + internal static DeploymentExportResult DeserializeDeploymentExportResult(JsonElement element) + { + object template = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("template")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + template = property.Value.GetObject(); + continue; + } + } + return new DeploymentExportResult(template); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentExportResult.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentExportResult.cs new file mode 100644 index 0000000000000..b39c0d7d89a2d --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentExportResult.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// The deployment export result. + public partial class DeploymentExportResult + { + /// Initializes a new instance of DeploymentExportResult. + internal DeploymentExportResult() + { + } + + /// Initializes a new instance of DeploymentExportResult. + /// The template content. + internal DeploymentExportResult(object template) + { + Template = template; + } + + /// The template content. + public object Template { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentExtended.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentExtended.Serialization.cs new file mode 100644 index 0000000000000..3c4c44095f6bd --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentExtended.Serialization.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class DeploymentExtended + { + internal static DeploymentExtended DeserializeDeploymentExtended(JsonElement element) + { + string id = default; + string name = default; + DeploymentPropertiesExtended properties = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = DeploymentPropertiesExtended.DeserializeDeploymentPropertiesExtended(property.Value); + continue; + } + } + return new DeploymentExtended(id, name, properties); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentExtended.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentExtended.cs new file mode 100644 index 0000000000000..53d49e73b3764 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentExtended.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Management.Resource.Models +{ + /// Deployment information. + public partial class DeploymentExtended + { + /// Initializes a new instance of DeploymentExtended. + /// The name of the deployment. + internal DeploymentExtended(string name) + { + if (name == null) + { + throw new ArgumentNullException(nameof(name)); + } + + Name = name; + } + + /// Initializes a new instance of DeploymentExtended. + /// The ID of the deployment. + /// The name of the deployment. + /// Deployment properties. + internal DeploymentExtended(string id, string name, DeploymentPropertiesExtended properties) + { + Id = id; + Name = name; + Properties = properties; + } + + /// The ID of the deployment. + public string Id { get; } + /// The name of the deployment. + public string Name { get; } + /// Deployment properties. + public DeploymentPropertiesExtended Properties { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentExtendedFilter.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentExtendedFilter.cs new file mode 100644 index 0000000000000..1a55f40488ec2 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentExtendedFilter.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// Deployment filter. + internal partial class DeploymentExtendedFilter + { + /// Initializes a new instance of DeploymentExtendedFilter. + internal DeploymentExtendedFilter() + { + } + + /// Initializes a new instance of DeploymentExtendedFilter. + /// The provisioning state. + internal DeploymentExtendedFilter(string provisioningState) + { + ProvisioningState = provisioningState; + } + + /// The provisioning state. + public string ProvisioningState { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentListResult.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentListResult.Serialization.cs new file mode 100644 index 0000000000000..92b45b88fd7bb --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentListResult.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class DeploymentListResult + { + internal static DeploymentListResult DeserializeDeploymentListResult(JsonElement element) + { + IReadOnlyList value = default; + string nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(DeploymentExtended.DeserializeDeploymentExtended(item)); + } + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = property.Value.GetString(); + continue; + } + } + return new DeploymentListResult(value, nextLink); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentListResult.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentListResult.cs new file mode 100644 index 0000000000000..6b845de3d6d78 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentListResult.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// List of deployments. + public partial class DeploymentListResult + { + /// Initializes a new instance of DeploymentListResult. + internal DeploymentListResult() + { + } + + /// Initializes a new instance of DeploymentListResult. + /// An array of deployments. + /// The URL to use for getting the next set of results. + internal DeploymentListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// An array of deployments. + public IReadOnlyList Value { get; } + /// The URL to use for getting the next set of results. + public string NextLink { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentMode.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentMode.Serialization.cs new file mode 100644 index 0000000000000..04c4807638c77 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentMode.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Management.Resource.Models +{ + internal static class DeploymentModeExtensions + { + public static string ToSerialString(this DeploymentMode value) => value switch + { + DeploymentMode.Incremental => "Incremental", + DeploymentMode.Complete => "Complete", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DeploymentMode value.") + }; + + public static DeploymentMode ToDeploymentMode(this string value) + { + if (string.Equals(value, "Incremental", StringComparison.InvariantCultureIgnoreCase)) return DeploymentMode.Incremental; + if (string.Equals(value, "Complete", StringComparison.InvariantCultureIgnoreCase)) return DeploymentMode.Complete; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DeploymentMode value."); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentMode.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentMode.cs new file mode 100644 index 0000000000000..a0feb27f0e712 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentMode.cs @@ -0,0 +1,18 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. + public enum DeploymentMode + { + /// Incremental. + Incremental, + /// Complete. + Complete + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentOperation.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentOperation.Serialization.cs new file mode 100644 index 0000000000000..b00c4a0f496ea --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentOperation.Serialization.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class DeploymentOperation + { + internal static DeploymentOperation DeserializeDeploymentOperation(JsonElement element) + { + string id = default; + string operationId = default; + DeploymentOperationProperties properties = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("operationId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + operationId = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = DeploymentOperationProperties.DeserializeDeploymentOperationProperties(property.Value); + continue; + } + } + return new DeploymentOperation(id, operationId, properties); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentOperation.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentOperation.cs new file mode 100644 index 0000000000000..1a2fd97457b8b --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentOperation.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// Deployment operation information. + public partial class DeploymentOperation + { + /// Initializes a new instance of DeploymentOperation. + internal DeploymentOperation() + { + } + + /// Initializes a new instance of DeploymentOperation. + /// Full deployment operation ID. + /// Deployment operation ID. + /// Deployment properties. + internal DeploymentOperation(string id, string operationId, DeploymentOperationProperties properties) + { + Id = id; + OperationId = operationId; + Properties = properties; + } + + /// Full deployment operation ID. + public string Id { get; } + /// Deployment operation ID. + public string OperationId { get; } + /// Deployment properties. + public DeploymentOperationProperties Properties { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentOperationProperties.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentOperationProperties.Serialization.cs new file mode 100644 index 0000000000000..8c790eab3253c --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentOperationProperties.Serialization.cs @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class DeploymentOperationProperties + { + internal static DeploymentOperationProperties DeserializeDeploymentOperationProperties(JsonElement element) + { + string provisioningState = default; + DateTimeOffset? timestamp = default; + string serviceRequestId = default; + string statusCode = default; + object statusMessage = default; + TargetResource targetResource = default; + HttpMessage request = default; + HttpMessage response = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("provisioningState")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = property.Value.GetString(); + continue; + } + if (property.NameEquals("timestamp")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + timestamp = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("serviceRequestId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + serviceRequestId = property.Value.GetString(); + continue; + } + if (property.NameEquals("statusCode")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + statusCode = property.Value.GetString(); + continue; + } + if (property.NameEquals("statusMessage")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + statusMessage = property.Value.GetObject(); + continue; + } + if (property.NameEquals("targetResource")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + targetResource = TargetResource.DeserializeTargetResource(property.Value); + continue; + } + if (property.NameEquals("request")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + request = HttpMessage.DeserializeHttpMessage(property.Value); + continue; + } + if (property.NameEquals("response")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + response = HttpMessage.DeserializeHttpMessage(property.Value); + continue; + } + } + return new DeploymentOperationProperties(provisioningState, timestamp, serviceRequestId, statusCode, statusMessage, targetResource, request, response); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentOperationProperties.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentOperationProperties.cs new file mode 100644 index 0000000000000..59eff7f69b379 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentOperationProperties.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Management.Resource.Models +{ + /// Deployment operation properties. + public partial class DeploymentOperationProperties + { + /// Initializes a new instance of DeploymentOperationProperties. + internal DeploymentOperationProperties() + { + } + + /// Initializes a new instance of DeploymentOperationProperties. + /// The state of the provisioning. + /// The date and time of the operation. + /// Deployment operation service request id. + /// Operation status code. + /// Operation status message. + /// The target resource. + /// The HTTP request message. + /// The HTTP response message. + internal DeploymentOperationProperties(string provisioningState, DateTimeOffset? timestamp, string serviceRequestId, string statusCode, object statusMessage, TargetResource targetResource, HttpMessage request, HttpMessage response) + { + ProvisioningState = provisioningState; + Timestamp = timestamp; + ServiceRequestId = serviceRequestId; + StatusCode = statusCode; + StatusMessage = statusMessage; + TargetResource = targetResource; + Request = request; + Response = response; + } + + /// The state of the provisioning. + public string ProvisioningState { get; } + /// The date and time of the operation. + public DateTimeOffset? Timestamp { get; } + /// Deployment operation service request id. + public string ServiceRequestId { get; } + /// Operation status code. + public string StatusCode { get; } + /// Operation status message. + public object StatusMessage { get; } + /// The target resource. + public TargetResource TargetResource { get; } + /// The HTTP request message. + public HttpMessage Request { get; } + /// The HTTP response message. + public HttpMessage Response { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentOperationsListResult.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentOperationsListResult.Serialization.cs new file mode 100644 index 0000000000000..8e7c074e7d7bc --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentOperationsListResult.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class DeploymentOperationsListResult + { + internal static DeploymentOperationsListResult DeserializeDeploymentOperationsListResult(JsonElement element) + { + IReadOnlyList value = default; + string nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(DeploymentOperation.DeserializeDeploymentOperation(item)); + } + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = property.Value.GetString(); + continue; + } + } + return new DeploymentOperationsListResult(value, nextLink); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentOperationsListResult.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentOperationsListResult.cs new file mode 100644 index 0000000000000..2bf8a63461373 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentOperationsListResult.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// List of deployment operations. + public partial class DeploymentOperationsListResult + { + /// Initializes a new instance of DeploymentOperationsListResult. + internal DeploymentOperationsListResult() + { + } + + /// Initializes a new instance of DeploymentOperationsListResult. + /// An array of deployment operations. + /// The URL to use for getting the next set of results. + internal DeploymentOperationsListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// An array of deployment operations. + public IReadOnlyList Value { get; } + /// The URL to use for getting the next set of results. + public string NextLink { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentProperties.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentProperties.Serialization.cs new file mode 100644 index 0000000000000..15dc5e3e8d2f6 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentProperties.Serialization.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class DeploymentProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Template != null) + { + writer.WritePropertyName("template"); + writer.WriteObjectValue(Template); + } + if (TemplateLink != null) + { + writer.WritePropertyName("templateLink"); + writer.WriteObjectValue(TemplateLink); + } + if (Parameters != null) + { + writer.WritePropertyName("parameters"); + writer.WriteObjectValue(Parameters); + } + if (ParametersLink != null) + { + writer.WritePropertyName("parametersLink"); + writer.WriteObjectValue(ParametersLink); + } + writer.WritePropertyName("mode"); + writer.WriteStringValue(Mode.ToSerialString()); + if (DebugSetting != null) + { + writer.WritePropertyName("debugSetting"); + writer.WriteObjectValue(DebugSetting); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentProperties.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentProperties.cs new file mode 100644 index 0000000000000..5ce71c259b456 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentProperties.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// Deployment properties. + public partial class DeploymentProperties + { + /// Initializes a new instance of DeploymentProperties. + /// The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. + public DeploymentProperties(DeploymentMode mode) + { + Mode = mode; + } + + /// Initializes a new instance of DeploymentProperties. + /// The template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. + /// The URI of the template. Use either the templateLink property or the template property, but not both. + /// Name and value pairs that define the deployment parameters for the template. You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. + /// The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. + /// The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. + /// The debug setting of the deployment. + internal DeploymentProperties(object template, TemplateLink templateLink, object parameters, ParametersLink parametersLink, DeploymentMode mode, DebugSetting debugSetting) + { + Template = template; + TemplateLink = templateLink; + Parameters = parameters; + ParametersLink = parametersLink; + Mode = mode; + DebugSetting = debugSetting; + } + + /// The template content. You use this element when you want to pass the template syntax directly in the request rather than link to an existing template. It can be a JObject or well-formed JSON string. Use either the templateLink property or the template property, but not both. + public object Template { get; set; } + /// The URI of the template. Use either the templateLink property or the template property, but not both. + public TemplateLink TemplateLink { get; set; } + /// Name and value pairs that define the deployment parameters for the template. You use this element when you want to provide the parameter values directly in the request rather than link to an existing parameter file. Use either the parametersLink property or the parameters property, but not both. It can be a JObject or a well formed JSON string. + public object Parameters { get; set; } + /// The URI of parameters file. You use this element to link to an existing parameters file. Use either the parametersLink property or the parameters property, but not both. + public ParametersLink ParametersLink { get; set; } + /// The mode that is used to deploy resources. This value can be either Incremental or Complete. In Incremental mode, resources are deployed without deleting existing resources that are not included in the template. In Complete mode, resources are deployed and existing resources in the resource group that are not included in the template are deleted. Be careful when using Complete mode as you may unintentionally delete resources. + public DeploymentMode Mode { get; } + /// The debug setting of the deployment. + public DebugSetting DebugSetting { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentPropertiesExtended.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentPropertiesExtended.Serialization.cs new file mode 100644 index 0000000000000..3ec895460e8d4 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentPropertiesExtended.Serialization.cs @@ -0,0 +1,169 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class DeploymentPropertiesExtended + { + internal static DeploymentPropertiesExtended DeserializeDeploymentPropertiesExtended(JsonElement element) + { + string provisioningState = default; + string correlationId = default; + DateTimeOffset? timestamp = default; + object outputs = default; + IReadOnlyList providers = default; + IReadOnlyList dependencies = default; + object template = default; + TemplateLink templateLink = default; + object parameters = default; + ParametersLink parametersLink = default; + DeploymentMode? mode = default; + DebugSetting debugSetting = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("provisioningState")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = property.Value.GetString(); + continue; + } + if (property.NameEquals("correlationId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + correlationId = property.Value.GetString(); + continue; + } + if (property.NameEquals("timestamp")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + timestamp = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("outputs")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + outputs = property.Value.GetObject(); + continue; + } + if (property.NameEquals("providers")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(Provider.DeserializeProvider(item)); + } + } + providers = array; + continue; + } + if (property.NameEquals("dependencies")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(Dependency.DeserializeDependency(item)); + } + } + dependencies = array; + continue; + } + if (property.NameEquals("template")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + template = property.Value.GetObject(); + continue; + } + if (property.NameEquals("templateLink")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + templateLink = TemplateLink.DeserializeTemplateLink(property.Value); + continue; + } + if (property.NameEquals("parameters")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + parameters = property.Value.GetObject(); + continue; + } + if (property.NameEquals("parametersLink")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + parametersLink = ParametersLink.DeserializeParametersLink(property.Value); + continue; + } + if (property.NameEquals("mode")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + mode = property.Value.GetString().ToDeploymentMode(); + continue; + } + if (property.NameEquals("debugSetting")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + debugSetting = DebugSetting.DeserializeDebugSetting(property.Value); + continue; + } + } + return new DeploymentPropertiesExtended(provisioningState, correlationId, timestamp, outputs, providers, dependencies, template, templateLink, parameters, parametersLink, mode, debugSetting); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentPropertiesExtended.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentPropertiesExtended.cs new file mode 100644 index 0000000000000..d615e34d44a03 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentPropertiesExtended.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// Deployment properties with additional details. + public partial class DeploymentPropertiesExtended + { + /// Initializes a new instance of DeploymentPropertiesExtended. + internal DeploymentPropertiesExtended() + { + } + + /// Initializes a new instance of DeploymentPropertiesExtended. + /// The state of the provisioning. + /// The correlation ID of the deployment. + /// The timestamp of the template deployment. + /// Key/value pairs that represent deployment output. + /// The list of resource providers needed for the deployment. + /// The list of deployment dependencies. + /// The template content. Use only one of Template or TemplateLink. + /// The URI referencing the template. Use only one of Template or TemplateLink. + /// Deployment parameters. Use only one of Parameters or ParametersLink. + /// The URI referencing the parameters. Use only one of Parameters or ParametersLink. + /// The deployment mode. Possible values are Incremental and Complete. + /// The debug setting of the deployment. + internal DeploymentPropertiesExtended(string provisioningState, string correlationId, DateTimeOffset? timestamp, object outputs, IReadOnlyList providers, IReadOnlyList dependencies, object template, TemplateLink templateLink, object parameters, ParametersLink parametersLink, DeploymentMode? mode, DebugSetting debugSetting) + { + ProvisioningState = provisioningState; + CorrelationId = correlationId; + Timestamp = timestamp; + Outputs = outputs; + Providers = providers; + Dependencies = dependencies; + Template = template; + TemplateLink = templateLink; + Parameters = parameters; + ParametersLink = parametersLink; + Mode = mode; + DebugSetting = debugSetting; + } + + /// The state of the provisioning. + public string ProvisioningState { get; } + /// The correlation ID of the deployment. + public string CorrelationId { get; } + /// The timestamp of the template deployment. + public DateTimeOffset? Timestamp { get; } + /// Key/value pairs that represent deployment output. + public object Outputs { get; } + /// The list of resource providers needed for the deployment. + public IReadOnlyList Providers { get; } + /// The list of deployment dependencies. + public IReadOnlyList Dependencies { get; } + /// The template content. Use only one of Template or TemplateLink. + public object Template { get; } + /// The URI referencing the template. Use only one of Template or TemplateLink. + public TemplateLink TemplateLink { get; } + /// Deployment parameters. Use only one of Parameters or ParametersLink. + public object Parameters { get; } + /// The URI referencing the parameters. Use only one of Parameters or ParametersLink. + public ParametersLink ParametersLink { get; } + /// The deployment mode. Possible values are Incremental and Complete. + public DeploymentMode? Mode { get; } + /// The debug setting of the deployment. + public DebugSetting DebugSetting { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentValidateResult.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentValidateResult.Serialization.cs new file mode 100644 index 0000000000000..84ab7a101bcaf --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentValidateResult.Serialization.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class DeploymentValidateResult + { + internal static DeploymentValidateResult DeserializeDeploymentValidateResult(JsonElement element) + { + ResourceManagementErrorWithDetails error = default; + DeploymentPropertiesExtended properties = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("error")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + error = ResourceManagementErrorWithDetails.DeserializeResourceManagementErrorWithDetails(property.Value); + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = DeploymentPropertiesExtended.DeserializeDeploymentPropertiesExtended(property.Value); + continue; + } + } + return new DeploymentValidateResult(error, properties); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentValidateResult.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentValidateResult.cs new file mode 100644 index 0000000000000..ad38814470ec7 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/DeploymentValidateResult.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// Information from validate template deployment response. + public partial class DeploymentValidateResult + { + /// Initializes a new instance of DeploymentValidateResult. + internal DeploymentValidateResult() + { + } + + /// Initializes a new instance of DeploymentValidateResult. + /// Validation error. + /// The template deployment properties. + internal DeploymentValidateResult(ResourceManagementErrorWithDetails error, DeploymentPropertiesExtended properties) + { + Error = error; + Properties = properties; + } + + /// Validation error. + public ResourceManagementErrorWithDetails Error { get; } + /// The template deployment properties. + public DeploymentPropertiesExtended Properties { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs new file mode 100644 index 0000000000000..bdd2be64538f7 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ErrorAdditionalInfo.Serialization.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class ErrorAdditionalInfo + { + internal static ErrorAdditionalInfo DeserializeErrorAdditionalInfo(JsonElement element) + { + string type = default; + object info = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("info")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + info = property.Value.GetObject(); + continue; + } + } + return new ErrorAdditionalInfo(type, info); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ErrorAdditionalInfo.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ErrorAdditionalInfo.cs new file mode 100644 index 0000000000000..2c30b9b9e4b0f --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ErrorAdditionalInfo.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// The resource management error additional info. + public partial class ErrorAdditionalInfo + { + /// Initializes a new instance of ErrorAdditionalInfo. + internal ErrorAdditionalInfo() + { + } + + /// Initializes a new instance of ErrorAdditionalInfo. + /// The additional info type. + /// The additional info. + internal ErrorAdditionalInfo(string type, object info) + { + Type = type; + Info = info; + } + + /// The additional info type. + public string Type { get; } + /// The additional info. + public object Info { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ErrorResponse.Serialization.cs new file mode 100644 index 0000000000000..4b191a839c987 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ErrorResponse.Serialization.cs @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class ErrorResponse + { + internal static ErrorResponse DeserializeErrorResponse(JsonElement element) + { + string code = default; + string message = default; + string target = default; + IReadOnlyList details = default; + IReadOnlyList additionalInfo = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("code")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + code = property.Value.GetString(); + continue; + } + if (property.NameEquals("message")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + message = property.Value.GetString(); + continue; + } + if (property.NameEquals("target")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + target = property.Value.GetString(); + continue; + } + if (property.NameEquals("details")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(DeserializeErrorResponse(item)); + } + } + details = array; + continue; + } + if (property.NameEquals("additionalInfo")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(ErrorAdditionalInfo.DeserializeErrorAdditionalInfo(item)); + } + } + additionalInfo = array; + continue; + } + } + return new ErrorResponse(code, message, target, details, additionalInfo); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ErrorResponse.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ErrorResponse.cs new file mode 100644 index 0000000000000..500b751e13c65 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ErrorResponse.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// The resource management error response. + public partial class ErrorResponse + { + /// Initializes a new instance of ErrorResponse. + internal ErrorResponse() + { + } + + /// Initializes a new instance of ErrorResponse. + /// The error code. + /// The error message. + /// The error target. + /// The error details. + /// The error additional info. + internal ErrorResponse(string code, string message, string target, IReadOnlyList details, IReadOnlyList additionalInfo) + { + Code = code; + Message = message; + Target = target; + Details = details; + AdditionalInfo = additionalInfo; + } + + /// The error code. + public string Code { get; } + /// The error message. + public string Message { get; } + /// The error target. + public string Target { get; } + /// The error details. + public IReadOnlyList Details { get; } + /// The error additional info. + public IReadOnlyList AdditionalInfo { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ExportTemplateRequest.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ExportTemplateRequest.Serialization.cs new file mode 100644 index 0000000000000..1dcbdca4bee03 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ExportTemplateRequest.Serialization.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class ExportTemplateRequest : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Resources != null) + { + writer.WritePropertyName("resources"); + writer.WriteStartArray(); + foreach (var item in Resources) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Options != null) + { + writer.WritePropertyName("options"); + writer.WriteStringValue(Options); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ExportTemplateRequest.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ExportTemplateRequest.cs new file mode 100644 index 0000000000000..4f2bf5fbc578f --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ExportTemplateRequest.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// Export resource group template request parameters. + public partial class ExportTemplateRequest + { + /// Initializes a new instance of ExportTemplateRequest. + public ExportTemplateRequest() + { + } + + /// Initializes a new instance of ExportTemplateRequest. + /// The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. + /// The export template options. A CSV-formatted list containing zero or more of the following: 'IncludeParameterDefaultValue', 'IncludeComments', 'SkipResourceNameParameterization', 'SkipAllParameterization'. + internal ExportTemplateRequest(IList resources, string options) + { + Resources = resources; + Options = options; + } + + /// The IDs of the resources to filter the export by. To export all resources, supply an array with single entry '*'. + public IList Resources { get; set; } + /// The export template options. A CSV-formatted list containing zero or more of the following: 'IncludeParameterDefaultValue', 'IncludeComments', 'SkipResourceNameParameterization', 'SkipAllParameterization'. + public string Options { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/GenericResource.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/GenericResource.Serialization.cs new file mode 100644 index 0000000000000..498b4777a96bb --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/GenericResource.Serialization.cs @@ -0,0 +1,213 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class GenericResource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Plan != null) + { + writer.WritePropertyName("plan"); + writer.WriteObjectValue(Plan); + } + if (Properties != null) + { + writer.WritePropertyName("properties"); + writer.WriteObjectValue(Properties); + } + if (Kind != null) + { + writer.WritePropertyName("kind"); + writer.WriteStringValue(Kind); + } + if (ManagedBy != null) + { + writer.WritePropertyName("managedBy"); + writer.WriteStringValue(ManagedBy); + } + if (Sku != null) + { + writer.WritePropertyName("sku"); + writer.WriteObjectValue(Sku); + } + if (Identity != null) + { + writer.WritePropertyName("identity"); + writer.WriteObjectValue(Identity); + } + if (Id != null) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } + if (Name != null) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + } + if (Type != null) + { + writer.WritePropertyName("type"); + writer.WriteStringValue(Type); + } + if (Location != null) + { + writer.WritePropertyName("location"); + writer.WriteStringValue(Location); + } + if (Tags != null) + { + writer.WritePropertyName("tags"); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WriteEndObject(); + } + + internal static GenericResource DeserializeGenericResource(JsonElement element) + { + Plan plan = default; + object properties = default; + string kind = default; + string managedBy = default; + Sku sku = default; + Identity identity = default; + string id = default; + string name = default; + string type = default; + string location = default; + IDictionary tags = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("plan")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + plan = Plan.DeserializePlan(property.Value); + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = property.Value.GetObject(); + continue; + } + if (property.NameEquals("kind")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + kind = property.Value.GetString(); + continue; + } + if (property.NameEquals("managedBy")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + managedBy = property.Value.GetString(); + continue; + } + if (property.NameEquals("sku")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sku = Sku.DeserializeSku(property.Value); + continue; + } + if (property.NameEquals("identity")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + identity = Identity.DeserializeIdentity(property.Value); + continue; + } + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("location")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + location = property.Value.GetString(); + continue; + } + if (property.NameEquals("tags")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(property0.Name, null); + } + else + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + } + tags = dictionary; + continue; + } + } + return new GenericResource(id, name, type, location, tags, plan, properties, kind, managedBy, sku, identity); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/GenericResource.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/GenericResource.cs new file mode 100644 index 0000000000000..dadcfcc9e3b4c --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/GenericResource.cs @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// Resource information. + public partial class GenericResource : Resource + { + /// Initializes a new instance of GenericResource. + public GenericResource() + { + } + + /// Initializes a new instance of GenericResource. + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource location. + /// Resource tags. + /// The plan of the resource. + /// The resource properties. + /// The kind of the resource. + /// ID of the resource that manages this resource. + /// The SKU of the resource. + /// The identity of the resource. + internal GenericResource(string id, string name, string type, string location, IDictionary tags, Plan plan, object properties, string kind, string managedBy, Sku sku, Identity identity) : base(id, name, type, location, tags) + { + Plan = plan; + Properties = properties; + Kind = kind; + ManagedBy = managedBy; + Sku = sku; + Identity = identity; + } + + /// The plan of the resource. + public Plan Plan { get; set; } + /// The resource properties. + public object Properties { get; set; } + /// The kind of the resource. + public string Kind { get; set; } + /// ID of the resource that manages this resource. + public string ManagedBy { get; set; } + /// The SKU of the resource. + public Sku Sku { get; set; } + /// The identity of the resource. + public Identity Identity { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/GenericResourceExpanded.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/GenericResourceExpanded.Serialization.cs new file mode 100644 index 0000000000000..4b41b479a7c9a --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/GenericResourceExpanded.Serialization.cs @@ -0,0 +1,259 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class GenericResourceExpanded : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (CreatedTime != null) + { + writer.WritePropertyName("createdTime"); + writer.WriteStringValue(CreatedTime.Value, "O"); + } + if (ChangedTime != null) + { + writer.WritePropertyName("changedTime"); + writer.WriteStringValue(ChangedTime.Value, "O"); + } + if (ProvisioningState != null) + { + writer.WritePropertyName("provisioningState"); + writer.WriteStringValue(ProvisioningState); + } + if (Plan != null) + { + writer.WritePropertyName("plan"); + writer.WriteObjectValue(Plan); + } + if (Properties != null) + { + writer.WritePropertyName("properties"); + writer.WriteObjectValue(Properties); + } + if (Kind != null) + { + writer.WritePropertyName("kind"); + writer.WriteStringValue(Kind); + } + if (ManagedBy != null) + { + writer.WritePropertyName("managedBy"); + writer.WriteStringValue(ManagedBy); + } + if (Sku != null) + { + writer.WritePropertyName("sku"); + writer.WriteObjectValue(Sku); + } + if (Identity != null) + { + writer.WritePropertyName("identity"); + writer.WriteObjectValue(Identity); + } + if (Id != null) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } + if (Name != null) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + } + if (Type != null) + { + writer.WritePropertyName("type"); + writer.WriteStringValue(Type); + } + if (Location != null) + { + writer.WritePropertyName("location"); + writer.WriteStringValue(Location); + } + if (Tags != null) + { + writer.WritePropertyName("tags"); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WriteEndObject(); + } + + internal static GenericResourceExpanded DeserializeGenericResourceExpanded(JsonElement element) + { + DateTimeOffset? createdTime = default; + DateTimeOffset? changedTime = default; + string provisioningState = default; + Plan plan = default; + object properties = default; + string kind = default; + string managedBy = default; + Sku sku = default; + Identity identity = default; + string id = default; + string name = default; + string type = default; + string location = default; + IDictionary tags = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("createdTime")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + createdTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("changedTime")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + changedTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("provisioningState")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = property.Value.GetString(); + continue; + } + if (property.NameEquals("plan")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + plan = Plan.DeserializePlan(property.Value); + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = property.Value.GetObject(); + continue; + } + if (property.NameEquals("kind")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + kind = property.Value.GetString(); + continue; + } + if (property.NameEquals("managedBy")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + managedBy = property.Value.GetString(); + continue; + } + if (property.NameEquals("sku")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + sku = Sku.DeserializeSku(property.Value); + continue; + } + if (property.NameEquals("identity")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + identity = Identity.DeserializeIdentity(property.Value); + continue; + } + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("location")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + location = property.Value.GetString(); + continue; + } + if (property.NameEquals("tags")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(property0.Name, null); + } + else + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + } + tags = dictionary; + continue; + } + } + return new GenericResourceExpanded(id, name, type, location, tags, plan, properties, kind, managedBy, sku, identity, createdTime, changedTime, provisioningState); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/GenericResourceExpanded.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/GenericResourceExpanded.cs new file mode 100644 index 0000000000000..41272369b141c --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/GenericResourceExpanded.cs @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// Resource information. + public partial class GenericResourceExpanded : GenericResource + { + /// Initializes a new instance of GenericResourceExpanded. + public GenericResourceExpanded() + { + } + + /// Initializes a new instance of GenericResourceExpanded. + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource location. + /// Resource tags. + /// The plan of the resource. + /// The resource properties. + /// The kind of the resource. + /// ID of the resource that manages this resource. + /// The SKU of the resource. + /// The identity of the resource. + /// The created time of the resource. This is only present if requested via the $expand query parameter. + /// The changed time of the resource. This is only present if requested via the $expand query parameter. + /// The provisioning state of the resource. This is only present if requested via the $expand query parameter. + internal GenericResourceExpanded(string id, string name, string type, string location, IDictionary tags, Plan plan, object properties, string kind, string managedBy, Sku sku, Identity identity, DateTimeOffset? createdTime, DateTimeOffset? changedTime, string provisioningState) : base(id, name, type, location, tags, plan, properties, kind, managedBy, sku, identity) + { + CreatedTime = createdTime; + ChangedTime = changedTime; + ProvisioningState = provisioningState; + } + + /// The created time of the resource. This is only present if requested via the $expand query parameter. + public DateTimeOffset? CreatedTime { get; } + /// The changed time of the resource. This is only present if requested via the $expand query parameter. + public DateTimeOffset? ChangedTime { get; } + /// The provisioning state of the resource. This is only present if requested via the $expand query parameter. + public string ProvisioningState { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/GenericResourceFilter.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/GenericResourceFilter.cs new file mode 100644 index 0000000000000..b8818b7c26ad7 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/GenericResourceFilter.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// Resource filter. + internal partial class GenericResourceFilter + { + /// Initializes a new instance of GenericResourceFilter. + internal GenericResourceFilter() + { + } + + /// Initializes a new instance of GenericResourceFilter. + /// The resource type. + /// The tag name. + /// The tag value. + internal GenericResourceFilter(string resourceType, string tagname, string tagvalue) + { + ResourceType = resourceType; + Tagname = tagname; + Tagvalue = tagvalue; + } + + /// The resource type. + public string ResourceType { get; set; } + /// The tag name. + public string Tagname { get; set; } + /// The tag value. + public string Tagvalue { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/HttpMessage.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/HttpMessage.Serialization.cs new file mode 100644 index 0000000000000..d32cb7939df07 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/HttpMessage.Serialization.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class HttpMessage + { + internal static HttpMessage DeserializeHttpMessage(JsonElement element) + { + object content = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("content")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + content = property.Value.GetObject(); + continue; + } + } + return new HttpMessage(content); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/HttpMessage.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/HttpMessage.cs new file mode 100644 index 0000000000000..d27db3b5aad8a --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/HttpMessage.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// HTTP message. + public partial class HttpMessage + { + /// Initializes a new instance of HttpMessage. + internal HttpMessage() + { + } + + /// Initializes a new instance of HttpMessage. + /// HTTP message content. + internal HttpMessage(object content) + { + Content = content; + } + + /// HTTP message content. + public object Content { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Identity.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Identity.Serialization.cs new file mode 100644 index 0000000000000..b3f46cb74faf9 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Identity.Serialization.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class Identity : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (PrincipalId != null) + { + writer.WritePropertyName("principalId"); + writer.WriteStringValue(PrincipalId); + } + if (TenantId != null) + { + writer.WritePropertyName("tenantId"); + writer.WriteStringValue(TenantId); + } + if (Type != null) + { + writer.WritePropertyName("type"); + writer.WriteStringValue(Type); + } + writer.WriteEndObject(); + } + + internal static Identity DeserializeIdentity(JsonElement element) + { + string principalId = default; + string tenantId = default; + string type = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("principalId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + principalId = property.Value.GetString(); + continue; + } + if (property.NameEquals("tenantId")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + tenantId = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = property.Value.GetString(); + continue; + } + } + return new Identity(principalId, tenantId, type); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Identity.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Identity.cs new file mode 100644 index 0000000000000..d4c67b93f9335 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Identity.cs @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// Identity for the resource. + public partial class Identity + { + /// Initializes a new instance of Identity. + public Identity() + { + Type = "SystemAssigned"; + } + + /// Initializes a new instance of Identity. + /// The principal ID of resource identity. + /// The tenant ID of resource. + /// The identity type. + internal Identity(string principalId, string tenantId, string type) + { + PrincipalId = principalId; + TenantId = tenantId; + Type = type; + } + + /// The principal ID of resource identity. + public string PrincipalId { get; } + /// The tenant ID of resource. + public string TenantId { get; } + /// The identity type. + public string Type { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ParametersLink.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ParametersLink.Serialization.cs new file mode 100644 index 0000000000000..9a5811e7a6c4b --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ParametersLink.Serialization.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class ParametersLink : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("uri"); + writer.WriteStringValue(Uri); + if (ContentVersion != null) + { + writer.WritePropertyName("contentVersion"); + writer.WriteStringValue(ContentVersion); + } + writer.WriteEndObject(); + } + + internal static ParametersLink DeserializeParametersLink(JsonElement element) + { + string uri = default; + string contentVersion = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("uri")) + { + uri = property.Value.GetString(); + continue; + } + if (property.NameEquals("contentVersion")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + contentVersion = property.Value.GetString(); + continue; + } + } + return new ParametersLink(uri, contentVersion); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ParametersLink.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ParametersLink.cs new file mode 100644 index 0000000000000..e6f7ee97ab91e --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ParametersLink.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Management.Resource.Models +{ + /// Entity representing the reference to the deployment parameters. + public partial class ParametersLink + { + /// Initializes a new instance of ParametersLink. + /// The URI of the parameters file. + public ParametersLink(string uri) + { + if (uri == null) + { + throw new ArgumentNullException(nameof(uri)); + } + + Uri = uri; + } + + /// Initializes a new instance of ParametersLink. + /// The URI of the parameters file. + /// If included, must match the ContentVersion in the template. + internal ParametersLink(string uri, string contentVersion) + { + Uri = uri; + ContentVersion = contentVersion; + } + + /// The URI of the parameters file. + public string Uri { get; set; } + /// If included, must match the ContentVersion in the template. + public string ContentVersion { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Plan.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Plan.Serialization.cs new file mode 100644 index 0000000000000..13d9c3115aff9 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Plan.Serialization.cs @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class Plan : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Name != null) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + } + if (Publisher != null) + { + writer.WritePropertyName("publisher"); + writer.WriteStringValue(Publisher); + } + if (Product != null) + { + writer.WritePropertyName("product"); + writer.WriteStringValue(Product); + } + if (PromotionCode != null) + { + writer.WritePropertyName("promotionCode"); + writer.WriteStringValue(PromotionCode); + } + if (Version != null) + { + writer.WritePropertyName("version"); + writer.WriteStringValue(Version); + } + writer.WriteEndObject(); + } + + internal static Plan DeserializePlan(JsonElement element) + { + string name = default; + string publisher = default; + string product = default; + string promotionCode = default; + string version = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("publisher")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + publisher = property.Value.GetString(); + continue; + } + if (property.NameEquals("product")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + product = property.Value.GetString(); + continue; + } + if (property.NameEquals("promotionCode")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + promotionCode = property.Value.GetString(); + continue; + } + if (property.NameEquals("version")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + version = property.Value.GetString(); + continue; + } + } + return new Plan(name, publisher, product, promotionCode, version); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Plan.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Plan.cs new file mode 100644 index 0000000000000..82fa421a68204 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Plan.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// Plan for the resource. + public partial class Plan + { + /// Initializes a new instance of Plan. + public Plan() + { + } + + /// Initializes a new instance of Plan. + /// The plan ID. + /// The publisher ID. + /// The offer ID. + /// The promotion code. + /// The plan's version. + internal Plan(string name, string publisher, string product, string promotionCode, string version) + { + Name = name; + Publisher = publisher; + Product = product; + PromotionCode = promotionCode; + Version = version; + } + + /// The plan ID. + public string Name { get; set; } + /// The publisher ID. + public string Publisher { get; set; } + /// The offer ID. + public string Product { get; set; } + /// The promotion code. + public string PromotionCode { get; set; } + /// The plan's version. + public string Version { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Provider.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Provider.Serialization.cs new file mode 100644 index 0000000000000..337bade2c5dcb --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Provider.Serialization.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class Provider + { + internal static Provider DeserializeProvider(JsonElement element) + { + string id = default; + string @namespace = default; + string registrationState = default; + IReadOnlyList resourceTypes = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("namespace")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + @namespace = property.Value.GetString(); + continue; + } + if (property.NameEquals("registrationState")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + registrationState = property.Value.GetString(); + continue; + } + if (property.NameEquals("resourceTypes")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(ProviderResourceType.DeserializeProviderResourceType(item)); + } + } + resourceTypes = array; + continue; + } + } + return new Provider(id, @namespace, registrationState, resourceTypes); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Provider.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Provider.cs new file mode 100644 index 0000000000000..ad9981ae8c4ac --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Provider.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// Resource provider information. + public partial class Provider + { + /// Initializes a new instance of Provider. + internal Provider() + { + } + + /// Initializes a new instance of Provider. + /// The provider ID. + /// The namespace of the resource provider. + /// The registration state of the provider. + /// The collection of provider resource types. + internal Provider(string id, string @namespace, string registrationState, IReadOnlyList resourceTypes) + { + Id = id; + Namespace = @namespace; + RegistrationState = registrationState; + ResourceTypes = resourceTypes; + } + + /// The provider ID. + public string Id { get; } + /// The namespace of the resource provider. + public string Namespace { get; } + /// The registration state of the provider. + public string RegistrationState { get; } + /// The collection of provider resource types. + public IReadOnlyList ResourceTypes { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ProviderListResult.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ProviderListResult.Serialization.cs new file mode 100644 index 0000000000000..a15b2b48483a2 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ProviderListResult.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class ProviderListResult + { + internal static ProviderListResult DeserializeProviderListResult(JsonElement element) + { + IReadOnlyList value = default; + string nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(Provider.DeserializeProvider(item)); + } + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = property.Value.GetString(); + continue; + } + } + return new ProviderListResult(value, nextLink); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ProviderListResult.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ProviderListResult.cs new file mode 100644 index 0000000000000..29ef3ac95d86d --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ProviderListResult.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// List of resource providers. + public partial class ProviderListResult + { + /// Initializes a new instance of ProviderListResult. + internal ProviderListResult() + { + } + + /// Initializes a new instance of ProviderListResult. + /// An array of resource providers. + /// The URL to use for getting the next set of results. + internal ProviderListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// An array of resource providers. + public IReadOnlyList Value { get; } + /// The URL to use for getting the next set of results. + public string NextLink { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ProviderResourceType.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ProviderResourceType.Serialization.cs new file mode 100644 index 0000000000000..1e497724c39c1 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ProviderResourceType.Serialization.cs @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class ProviderResourceType + { + internal static ProviderResourceType DeserializeProviderResourceType(JsonElement element) + { + string resourceType = default; + IReadOnlyList locations = default; + IReadOnlyList aliases = default; + IReadOnlyList apiVersions = default; + IReadOnlyDictionary properties = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("resourceType")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceType = property.Value.GetString(); + continue; + } + if (property.NameEquals("locations")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + locations = array; + continue; + } + if (property.NameEquals("aliases")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(AliasType.DeserializeAliasType(item)); + } + } + aliases = array; + continue; + } + if (property.NameEquals("apiVersions")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(item.GetString()); + } + } + apiVersions = array; + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(property0.Name, null); + } + else + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + } + properties = dictionary; + continue; + } + } + return new ProviderResourceType(resourceType, locations, aliases, apiVersions, properties); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ProviderResourceType.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ProviderResourceType.cs new file mode 100644 index 0000000000000..3aabfea3279bb --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ProviderResourceType.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// Resource type managed by the resource provider. + public partial class ProviderResourceType + { + /// Initializes a new instance of ProviderResourceType. + internal ProviderResourceType() + { + } + + /// Initializes a new instance of ProviderResourceType. + /// The resource type. + /// The collection of locations where this resource type can be created. + /// The aliases that are supported by this resource type. + /// The API version. + /// The properties. + internal ProviderResourceType(string resourceType, IReadOnlyList locations, IReadOnlyList aliases, IReadOnlyList apiVersions, IReadOnlyDictionary properties) + { + ResourceType = resourceType; + Locations = locations; + Aliases = aliases; + ApiVersions = apiVersions; + Properties = properties; + } + + /// The resource type. + public string ResourceType { get; } + /// The collection of locations where this resource type can be created. + public IReadOnlyList Locations { get; } + /// The aliases that are supported by this resource type. + public IReadOnlyList Aliases { get; } + /// The API version. + public IReadOnlyList ApiVersions { get; } + /// The properties. + public IReadOnlyDictionary Properties { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Resource.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Resource.Serialization.cs new file mode 100644 index 0000000000000..50fc680b287e0 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Resource.Serialization.cs @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class Resource : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Id != null) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } + if (Name != null) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + } + if (Type != null) + { + writer.WritePropertyName("type"); + writer.WriteStringValue(Type); + } + if (Location != null) + { + writer.WritePropertyName("location"); + writer.WriteStringValue(Location); + } + if (Tags != null) + { + writer.WritePropertyName("tags"); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WriteEndObject(); + } + + internal static Resource DeserializeResource(JsonElement element) + { + string id = default; + string name = default; + string type = default; + string location = default; + IDictionary tags = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("location")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + location = property.Value.GetString(); + continue; + } + if (property.NameEquals("tags")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(property0.Name, null); + } + else + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + } + tags = dictionary; + continue; + } + } + return new Resource(id, name, type, location, tags); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Resource.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Resource.cs new file mode 100644 index 0000000000000..b34814f30aa35 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Resource.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// Basic set of the resource properties. + public partial class Resource + { + /// Initializes a new instance of Resource. + public Resource() + { + } + + /// Initializes a new instance of Resource. + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource location. + /// Resource tags. + internal Resource(string id, string name, string type, string location, IDictionary tags) + { + Id = id; + Name = name; + Type = type; + Location = location; + Tags = tags; + } + + /// Resource ID. + public string Id { get; } + /// Resource name. + public string Name { get; } + /// Resource type. + public string Type { get; } + /// Resource location. + public string Location { get; set; } + /// Resource tags. + public IDictionary Tags { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroup.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroup.Serialization.cs new file mode 100644 index 0000000000000..1b9c08e916016 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroup.Serialization.cs @@ -0,0 +1,131 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class ResourceGroup : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Id != null) + { + writer.WritePropertyName("id"); + writer.WriteStringValue(Id); + } + if (Name != null) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + } + if (Properties != null) + { + writer.WritePropertyName("properties"); + writer.WriteObjectValue(Properties); + } + writer.WritePropertyName("location"); + writer.WriteStringValue(Location); + if (ManagedBy != null) + { + writer.WritePropertyName("managedBy"); + writer.WriteStringValue(ManagedBy); + } + if (Tags != null) + { + writer.WritePropertyName("tags"); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WriteEndObject(); + } + + internal static ResourceGroup DeserializeResourceGroup(JsonElement element) + { + string id = default; + string name = default; + ResourceGroupProperties properties = default; + string location = default; + string managedBy = default; + IDictionary tags = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("name")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("properties")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = ResourceGroupProperties.DeserializeResourceGroupProperties(property.Value); + continue; + } + if (property.NameEquals("location")) + { + location = property.Value.GetString(); + continue; + } + if (property.NameEquals("managedBy")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + managedBy = property.Value.GetString(); + continue; + } + if (property.NameEquals("tags")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + dictionary.Add(property0.Name, null); + } + else + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + } + tags = dictionary; + continue; + } + } + return new ResourceGroup(id, name, properties, location, managedBy, tags); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroup.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroup.cs new file mode 100644 index 0000000000000..eaa6635fc5c3d --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroup.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// Resource group information. + public partial class ResourceGroup + { + /// Initializes a new instance of ResourceGroup. + /// The location of the resource group. It cannot be changed after the resource group has been created. It must be one of the supported Azure locations. + public ResourceGroup(string location) + { + if (location == null) + { + throw new ArgumentNullException(nameof(location)); + } + + Location = location; + } + + /// Initializes a new instance of ResourceGroup. + /// The ID of the resource group. + /// The name of the resource group. + /// The resource group properties. + /// The location of the resource group. It cannot be changed after the resource group has been created. It must be one of the supported Azure locations. + /// The ID of the resource that manages this resource group. + /// The tags attached to the resource group. + internal ResourceGroup(string id, string name, ResourceGroupProperties properties, string location, string managedBy, IDictionary tags) + { + Id = id; + Name = name; + Properties = properties; + Location = location; + ManagedBy = managedBy; + Tags = tags; + } + + /// The ID of the resource group. + public string Id { get; } + /// The name of the resource group. + public string Name { get; set; } + /// The resource group properties. + public ResourceGroupProperties Properties { get; set; } + /// The location of the resource group. It cannot be changed after the resource group has been created. It must be one of the supported Azure locations. + public string Location { get; set; } + /// The ID of the resource that manages this resource group. + public string ManagedBy { get; set; } + /// The tags attached to the resource group. + public IDictionary Tags { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupExportResult.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupExportResult.Serialization.cs new file mode 100644 index 0000000000000..74f59f04ef128 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupExportResult.Serialization.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class ResourceGroupExportResult + { + internal static ResourceGroupExportResult DeserializeResourceGroupExportResult(JsonElement element) + { + object template = default; + ResourceManagementErrorWithDetails error = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("template")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + template = property.Value.GetObject(); + continue; + } + if (property.NameEquals("error")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + error = ResourceManagementErrorWithDetails.DeserializeResourceManagementErrorWithDetails(property.Value); + continue; + } + } + return new ResourceGroupExportResult(template, error); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupExportResult.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupExportResult.cs new file mode 100644 index 0000000000000..1235a08c28e1f --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupExportResult.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// Resource group export result. + public partial class ResourceGroupExportResult + { + /// Initializes a new instance of ResourceGroupExportResult. + internal ResourceGroupExportResult() + { + } + + /// Initializes a new instance of ResourceGroupExportResult. + /// The template content. + /// The error. + internal ResourceGroupExportResult(object template, ResourceManagementErrorWithDetails error) + { + Template = template; + Error = error; + } + + /// The template content. + public object Template { get; } + /// The error. + public ResourceManagementErrorWithDetails Error { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupFilter.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupFilter.cs new file mode 100644 index 0000000000000..633568162ab38 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupFilter.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// Resource group filter. + internal partial class ResourceGroupFilter + { + /// Initializes a new instance of ResourceGroupFilter. + internal ResourceGroupFilter() + { + } + + /// Initializes a new instance of ResourceGroupFilter. + /// The tag name. + /// The tag value. + internal ResourceGroupFilter(string tagName, string tagValue) + { + TagName = tagName; + TagValue = tagValue; + } + + /// The tag name. + public string TagName { get; set; } + /// The tag value. + public string TagValue { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupListResult.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupListResult.Serialization.cs new file mode 100644 index 0000000000000..3ac7b2bbda219 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupListResult.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class ResourceGroupListResult + { + internal static ResourceGroupListResult DeserializeResourceGroupListResult(JsonElement element) + { + IReadOnlyList value = default; + string nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(ResourceGroup.DeserializeResourceGroup(item)); + } + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = property.Value.GetString(); + continue; + } + } + return new ResourceGroupListResult(value, nextLink); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupListResult.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupListResult.cs new file mode 100644 index 0000000000000..c0020aed108f6 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupListResult.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// List of resource groups. + public partial class ResourceGroupListResult + { + /// Initializes a new instance of ResourceGroupListResult. + internal ResourceGroupListResult() + { + } + + /// Initializes a new instance of ResourceGroupListResult. + /// An array of resource groups. + /// The URL to use for getting the next set of results. + internal ResourceGroupListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// An array of resource groups. + public IReadOnlyList Value { get; } + /// The URL to use for getting the next set of results. + public string NextLink { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupPatchable.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupPatchable.Serialization.cs new file mode 100644 index 0000000000000..4a761b8a9ac63 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupPatchable.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class ResourceGroupPatchable : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Name != null) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + } + if (Properties != null) + { + writer.WritePropertyName("properties"); + writer.WriteObjectValue(Properties); + } + if (ManagedBy != null) + { + writer.WritePropertyName("managedBy"); + writer.WriteStringValue(ManagedBy); + } + if (Tags != null) + { + writer.WritePropertyName("tags"); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupPatchable.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupPatchable.cs new file mode 100644 index 0000000000000..aceb727ee4887 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupPatchable.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// Resource group information. + public partial class ResourceGroupPatchable + { + /// Initializes a new instance of ResourceGroupPatchable. + public ResourceGroupPatchable() + { + } + + /// Initializes a new instance of ResourceGroupPatchable. + /// The name of the resource group. + /// The resource group properties. + /// The ID of the resource that manages this resource group. + /// The tags attached to the resource group. + internal ResourceGroupPatchable(string name, ResourceGroupProperties properties, string managedBy, IDictionary tags) + { + Name = name; + Properties = properties; + ManagedBy = managedBy; + Tags = tags; + } + + /// The name of the resource group. + public string Name { get; set; } + /// The resource group properties. + public ResourceGroupProperties Properties { get; set; } + /// The ID of the resource that manages this resource group. + public string ManagedBy { get; set; } + /// The tags attached to the resource group. + public IDictionary Tags { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupProperties.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupProperties.Serialization.cs new file mode 100644 index 0000000000000..15ef214d65987 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupProperties.Serialization.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class ResourceGroupProperties : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (ProvisioningState != null) + { + writer.WritePropertyName("provisioningState"); + writer.WriteStringValue(ProvisioningState); + } + writer.WriteEndObject(); + } + + internal static ResourceGroupProperties DeserializeResourceGroupProperties(JsonElement element) + { + string provisioningState = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("provisioningState")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = property.Value.GetString(); + continue; + } + } + return new ResourceGroupProperties(provisioningState); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupProperties.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupProperties.cs new file mode 100644 index 0000000000000..6eed5bcdd619e --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceGroupProperties.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// The resource group properties. + public partial class ResourceGroupProperties + { + /// Initializes a new instance of ResourceGroupProperties. + public ResourceGroupProperties() + { + } + + /// Initializes a new instance of ResourceGroupProperties. + /// The provisioning state. + internal ResourceGroupProperties(string provisioningState) + { + ProvisioningState = provisioningState; + } + + /// The provisioning state. + public string ProvisioningState { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceListResult.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceListResult.Serialization.cs new file mode 100644 index 0000000000000..0a1f67c29a5c8 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceListResult.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class ResourceListResult + { + internal static ResourceListResult DeserializeResourceListResult(JsonElement element) + { + IReadOnlyList value = default; + string nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(GenericResourceExpanded.DeserializeGenericResourceExpanded(item)); + } + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = property.Value.GetString(); + continue; + } + } + return new ResourceListResult(value, nextLink); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceListResult.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceListResult.cs new file mode 100644 index 0000000000000..a0efde5844afa --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceListResult.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// List of resource groups. + public partial class ResourceListResult + { + /// Initializes a new instance of ResourceListResult. + internal ResourceListResult() + { + } + + /// Initializes a new instance of ResourceListResult. + /// An array of resources. + /// The URL to use for getting the next set of results. + internal ResourceListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// An array of resources. + public IReadOnlyList Value { get; } + /// The URL to use for getting the next set of results. + public string NextLink { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceManagementErrorWithDetails.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceManagementErrorWithDetails.Serialization.cs new file mode 100644 index 0000000000000..d0c5a6377ddf5 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceManagementErrorWithDetails.Serialization.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class ResourceManagementErrorWithDetails + { + internal static ResourceManagementErrorWithDetails DeserializeResourceManagementErrorWithDetails(JsonElement element) + { + string code = default; + string message = default; + string target = default; + IReadOnlyList details = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("code")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + code = property.Value.GetString(); + continue; + } + if (property.NameEquals("message")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + message = property.Value.GetString(); + continue; + } + if (property.NameEquals("target")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + target = property.Value.GetString(); + continue; + } + if (property.NameEquals("details")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(DeserializeResourceManagementErrorWithDetails(item)); + } + } + details = array; + continue; + } + } + return new ResourceManagementErrorWithDetails(code, message, target, details); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceManagementErrorWithDetails.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceManagementErrorWithDetails.cs new file mode 100644 index 0000000000000..3049af1ea319d --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceManagementErrorWithDetails.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// The detailed error message of resource management. + public partial class ResourceManagementErrorWithDetails + { + /// Initializes a new instance of ResourceManagementErrorWithDetails. + internal ResourceManagementErrorWithDetails() + { + } + + /// Initializes a new instance of ResourceManagementErrorWithDetails. + /// The error code returned when exporting the template. + /// The error message describing the export error. + /// The target of the error. + /// Validation error. + internal ResourceManagementErrorWithDetails(string code, string message, string target, IReadOnlyList details) + { + Code = code; + Message = message; + Target = target; + Details = details; + } + + /// The error code returned when exporting the template. + public string Code { get; } + /// The error message describing the export error. + public string Message { get; } + /// The target of the error. + public string Target { get; } + /// Validation error. + public IReadOnlyList Details { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceProviderOperationDisplayProperties.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceProviderOperationDisplayProperties.cs new file mode 100644 index 0000000000000..d711d150c5d31 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourceProviderOperationDisplayProperties.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// Resource provider operation's display properties. + internal partial class ResourceProviderOperationDisplayProperties + { + /// Initializes a new instance of ResourceProviderOperationDisplayProperties. + internal ResourceProviderOperationDisplayProperties() + { + } + + /// Initializes a new instance of ResourceProviderOperationDisplayProperties. + /// Operation description. + /// Operation provider. + /// Operation resource. + /// The operation name. + /// Operation description. + internal ResourceProviderOperationDisplayProperties(string publisher, string provider, string resource, string operation, string description) + { + Publisher = publisher; + Provider = provider; + Resource = resource; + Operation = operation; + Description = description; + } + + /// Operation description. + public string Publisher { get; set; } + /// Operation provider. + public string Provider { get; set; } + /// Operation resource. + public string Resource { get; set; } + /// The operation name. + public string Operation { get; set; } + /// Operation description. + public string Description { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourcesMoveInfo.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourcesMoveInfo.Serialization.cs new file mode 100644 index 0000000000000..01656d43a31bb --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourcesMoveInfo.Serialization.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class ResourcesMoveInfo : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Resources != null) + { + writer.WritePropertyName("resources"); + writer.WriteStartArray(); + foreach (var item in Resources) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (TargetResourceGroup != null) + { + writer.WritePropertyName("targetResourceGroup"); + writer.WriteStringValue(TargetResourceGroup); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourcesMoveInfo.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourcesMoveInfo.cs new file mode 100644 index 0000000000000..ca4859ee3c113 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/ResourcesMoveInfo.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// Parameters of move resources. + public partial class ResourcesMoveInfo + { + /// Initializes a new instance of ResourcesMoveInfo. + public ResourcesMoveInfo() + { + } + + /// Initializes a new instance of ResourcesMoveInfo. + /// The IDs of the resources. + /// The target resource group. + internal ResourcesMoveInfo(IList resources, string targetResourceGroup) + { + Resources = resources; + TargetResourceGroup = targetResourceGroup; + } + + /// The IDs of the resources. + public IList Resources { get; set; } + /// The target resource group. + public string TargetResourceGroup { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Sku.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Sku.Serialization.cs new file mode 100644 index 0000000000000..6e9cd41f7e176 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Sku.Serialization.cs @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class Sku : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Name != null) + { + writer.WritePropertyName("name"); + writer.WriteStringValue(Name); + } + if (Tier != null) + { + writer.WritePropertyName("tier"); + writer.WriteStringValue(Tier); + } + if (Size != null) + { + writer.WritePropertyName("size"); + writer.WriteStringValue(Size); + } + if (Family != null) + { + writer.WritePropertyName("family"); + writer.WriteStringValue(Family); + } + if (Model != null) + { + writer.WritePropertyName("model"); + writer.WriteStringValue(Model); + } + if (Capacity != null) + { + writer.WritePropertyName("capacity"); + writer.WriteNumberValue(Capacity.Value); + } + writer.WriteEndObject(); + } + + internal static Sku DeserializeSku(JsonElement element) + { + string name = default; + string tier = default; + string size = default; + string family = default; + string model = default; + int? capacity = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("tier")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + tier = property.Value.GetString(); + continue; + } + if (property.NameEquals("size")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + size = property.Value.GetString(); + continue; + } + if (property.NameEquals("family")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + family = property.Value.GetString(); + continue; + } + if (property.NameEquals("model")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + model = property.Value.GetString(); + continue; + } + if (property.NameEquals("capacity")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + capacity = property.Value.GetInt32(); + continue; + } + } + return new Sku(name, tier, size, family, model, capacity); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Sku.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Sku.cs new file mode 100644 index 0000000000000..5f3bf2f80b54f --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/Sku.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// SKU for the resource. + public partial class Sku + { + /// Initializes a new instance of Sku. + public Sku() + { + } + + /// Initializes a new instance of Sku. + /// The SKU name. + /// The SKU tier. + /// The SKU size. + /// The SKU family. + /// The SKU model. + /// The SKU capacity. + internal Sku(string name, string tier, string size, string family, string model, int? capacity) + { + Name = name; + Tier = tier; + Size = size; + Family = family; + Model = model; + Capacity = capacity; + } + + /// The SKU name. + public string Name { get; set; } + /// The SKU tier. + public string Tier { get; set; } + /// The SKU size. + public string Size { get; set; } + /// The SKU family. + public string Family { get; set; } + /// The SKU model. + public string Model { get; set; } + /// The SKU capacity. + public int? Capacity { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/SubResource.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/SubResource.cs new file mode 100644 index 0000000000000..0fb5e24d45183 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/SubResource.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// Sub-resource. + internal partial class SubResource + { + /// Initializes a new instance of SubResource. + internal SubResource() + { + } + + /// Initializes a new instance of SubResource. + /// Resource ID. + internal SubResource(string id) + { + Id = id; + } + + /// Resource ID. + public string Id { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagCount.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagCount.Serialization.cs new file mode 100644 index 0000000000000..44eeb4394b7b7 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagCount.Serialization.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class TagCount + { + internal static TagCount DeserializeTagCount(JsonElement element) + { + string type = default; + int? value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("type")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + value = property.Value.GetInt32(); + continue; + } + } + return new TagCount(type, value); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagCount.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagCount.cs new file mode 100644 index 0000000000000..7a66647fff0fb --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagCount.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// Tag count. + public partial class TagCount + { + /// Initializes a new instance of TagCount. + internal TagCount() + { + } + + /// Initializes a new instance of TagCount. + /// Type of count. + /// Value of count. + internal TagCount(string type, int? value) + { + Type = type; + Value = value; + } + + /// Type of count. + public string Type { get; } + /// Value of count. + public int? Value { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagDetails.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagDetails.Serialization.cs new file mode 100644 index 0000000000000..84df8ba26bc68 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagDetails.Serialization.cs @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class TagDetails + { + internal static TagDetails DeserializeTagDetails(JsonElement element) + { + string id = default; + string tagName = default; + TagCount count = default; + IReadOnlyList values = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("tagName")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + tagName = property.Value.GetString(); + continue; + } + if (property.NameEquals("count")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + count = TagCount.DeserializeTagCount(property.Value); + continue; + } + if (property.NameEquals("values")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(TagValue.DeserializeTagValue(item)); + } + } + values = array; + continue; + } + } + return new TagDetails(id, tagName, count, values); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagDetails.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagDetails.cs new file mode 100644 index 0000000000000..2e84431ddf2b1 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagDetails.cs @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// Tag details. + public partial class TagDetails + { + /// Initializes a new instance of TagDetails. + internal TagDetails() + { + } + + /// Initializes a new instance of TagDetails. + /// The tag ID. + /// The tag name. + /// The total number of resources that use the resource tag. When a tag is initially created and has no associated resources, the value is 0. + /// The list of tag values. + internal TagDetails(string id, string tagName, TagCount count, IReadOnlyList values) + { + Id = id; + TagName = tagName; + Count = count; + Values = values; + } + + /// The tag ID. + public string Id { get; } + /// The tag name. + public string TagName { get; } + /// The total number of resources that use the resource tag. When a tag is initially created and has no associated resources, the value is 0. + public TagCount Count { get; } + /// The list of tag values. + public IReadOnlyList Values { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagValue.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagValue.Serialization.cs new file mode 100644 index 0000000000000..e41ab5dafc0ac --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagValue.Serialization.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class TagValue + { + internal static TagValue DeserializeTagValue(JsonElement element) + { + string id = default; + string tagValue = default; + TagCount count = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("tagValue")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + tagValue = property.Value.GetString(); + continue; + } + if (property.NameEquals("count")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + count = TagCount.DeserializeTagCount(property.Value); + continue; + } + } + return new TagValue(id, tagValue, count); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagValue.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagValue.cs new file mode 100644 index 0000000000000..bbc055d098016 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagValue.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// Tag information. + public partial class TagValue + { + /// Initializes a new instance of TagValue. + internal TagValue() + { + } + + /// Initializes a new instance of TagValue. + /// The tag ID. + /// The tag value. + /// The tag value count. + internal TagValue(string id, string tagValueValue, TagCount count) + { + Id = id; + TagValueValue = tagValueValue; + Count = count; + } + + /// The tag ID. + public string Id { get; } + /// The tag value. + public string TagValueValue { get; } + /// The tag value count. + public TagCount Count { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagsListResult.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagsListResult.Serialization.cs new file mode 100644 index 0000000000000..c3199a3d0ef97 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagsListResult.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class TagsListResult + { + internal static TagsListResult DeserializeTagsListResult(JsonElement element) + { + IReadOnlyList value = default; + string nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + if (item.ValueKind == JsonValueKind.Null) + { + array.Add(null); + } + else + { + array.Add(TagDetails.DeserializeTagDetails(item)); + } + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nextLink = property.Value.GetString(); + continue; + } + } + return new TagsListResult(value, nextLink); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagsListResult.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagsListResult.cs new file mode 100644 index 0000000000000..02b885eb32e67 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TagsListResult.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Management.Resource.Models +{ + /// List of subscription tags. + public partial class TagsListResult + { + /// Initializes a new instance of TagsListResult. + internal TagsListResult() + { + } + + /// Initializes a new instance of TagsListResult. + /// An array of tags. + /// The URL to use for getting the next set of results. + internal TagsListResult(IReadOnlyList value, string nextLink) + { + Value = value; + NextLink = nextLink; + } + + /// An array of tags. + public IReadOnlyList Value { get; } + /// The URL to use for getting the next set of results. + public string NextLink { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TargetResource.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TargetResource.Serialization.cs new file mode 100644 index 0000000000000..15bb7f7825821 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TargetResource.Serialization.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class TargetResource + { + internal static TargetResource DeserializeTargetResource(JsonElement element) + { + string id = default; + string resourceName = default; + string resourceType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = property.Value.GetString(); + continue; + } + if (property.NameEquals("resourceName")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceName = property.Value.GetString(); + continue; + } + if (property.NameEquals("resourceType")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceType = property.Value.GetString(); + continue; + } + } + return new TargetResource(id, resourceName, resourceType); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TargetResource.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TargetResource.cs new file mode 100644 index 0000000000000..da7cd9df57810 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TargetResource.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// Target resource. + public partial class TargetResource + { + /// Initializes a new instance of TargetResource. + internal TargetResource() + { + } + + /// Initializes a new instance of TargetResource. + /// The ID of the resource. + /// The name of the resource. + /// The type of the resource. + internal TargetResource(string id, string resourceName, string resourceType) + { + Id = id; + ResourceName = resourceName; + ResourceType = resourceType; + } + + /// The ID of the resource. + public string Id { get; } + /// The name of the resource. + public string ResourceName { get; } + /// The type of the resource. + public string ResourceType { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TemplateHashResult.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TemplateHashResult.Serialization.cs new file mode 100644 index 0000000000000..4cdbcc688cfbe --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TemplateHashResult.Serialization.cs @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class TemplateHashResult + { + internal static TemplateHashResult DeserializeTemplateHashResult(JsonElement element) + { + string minifiedTemplate = default; + string templateHash = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("minifiedTemplate")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + minifiedTemplate = property.Value.GetString(); + continue; + } + if (property.NameEquals("templateHash")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + templateHash = property.Value.GetString(); + continue; + } + } + return new TemplateHashResult(minifiedTemplate, templateHash); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TemplateHashResult.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TemplateHashResult.cs new file mode 100644 index 0000000000000..e22e27baca9a2 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TemplateHashResult.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Management.Resource.Models +{ + /// Result of the request to calculate template hash. It contains a string of minified template and its hash. + public partial class TemplateHashResult + { + /// Initializes a new instance of TemplateHashResult. + internal TemplateHashResult() + { + } + + /// Initializes a new instance of TemplateHashResult. + /// The minified template string. + /// The template hash. + internal TemplateHashResult(string minifiedTemplate, string templateHash) + { + MinifiedTemplate = minifiedTemplate; + TemplateHash = templateHash; + } + + /// The minified template string. + public string MinifiedTemplate { get; } + /// The template hash. + public string TemplateHash { get; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TemplateLink.Serialization.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TemplateLink.Serialization.cs new file mode 100644 index 0000000000000..bd422b86acfbb --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TemplateLink.Serialization.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.Management.Resource.Models +{ + public partial class TemplateLink : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("uri"); + writer.WriteStringValue(Uri); + if (ContentVersion != null) + { + writer.WritePropertyName("contentVersion"); + writer.WriteStringValue(ContentVersion); + } + writer.WriteEndObject(); + } + + internal static TemplateLink DeserializeTemplateLink(JsonElement element) + { + string uri = default; + string contentVersion = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("uri")) + { + uri = property.Value.GetString(); + continue; + } + if (property.NameEquals("contentVersion")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + contentVersion = property.Value.GetString(); + continue; + } + } + return new TemplateLink(uri, contentVersion); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TemplateLink.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TemplateLink.cs new file mode 100644 index 0000000000000..9cf7002cdbf10 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/Models/TemplateLink.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.Management.Resource.Models +{ + /// Entity representing the reference to the template. + public partial class TemplateLink + { + /// Initializes a new instance of TemplateLink. + /// The URI of the template to deploy. + public TemplateLink(string uri) + { + if (uri == null) + { + throw new ArgumentNullException(nameof(uri)); + } + + Uri = uri; + } + + /// Initializes a new instance of TemplateLink. + /// The URI of the template to deploy. + /// If included, must match the ContentVersion in the template. + internal TemplateLink(string uri, string contentVersion) + { + Uri = uri; + ContentVersion = contentVersion; + } + + /// The URI of the template to deploy. + public string Uri { get; set; } + /// If included, must match the ContentVersion in the template. + public string ContentVersion { get; set; } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ProvidersClient.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ProvidersClient.cs new file mode 100644 index 0000000000000..d9c7826aaf2ac --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ProvidersClient.cs @@ -0,0 +1,229 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.Resource.Models; + +namespace Azure.Management.Resource +{ + /// The Providers service client. + public partial class ProvidersClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal ProvidersRestClient RestClient { get; } + /// Initializes a new instance of ProvidersClient for mocking. + protected ProvidersClient() + { + } + /// Initializes a new instance of ProvidersClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The ID of the target subscription. + /// server parameter. + /// Api Version. + internal ProvidersClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null, string apiVersion = "2017-05-10") + { + RestClient = new ProvidersRestClient(clientDiagnostics, pipeline, subscriptionId, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Unregisters a subscription from a resource provider. + /// The namespace of the resource provider to unregister. + /// The cancellation token to use. + public virtual async Task> UnregisterAsync(string resourceProviderNamespace, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ProvidersClient.Unregister"); + scope.Start(); + try + { + return await RestClient.UnregisterAsync(resourceProviderNamespace, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Unregisters a subscription from a resource provider. + /// The namespace of the resource provider to unregister. + /// The cancellation token to use. + public virtual Response Unregister(string resourceProviderNamespace, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ProvidersClient.Unregister"); + scope.Start(); + try + { + return RestClient.Unregister(resourceProviderNamespace, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Registers a subscription with a resource provider. + /// The namespace of the resource provider to register. + /// The cancellation token to use. + public virtual async Task> RegisterAsync(string resourceProviderNamespace, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ProvidersClient.Register"); + scope.Start(); + try + { + return await RestClient.RegisterAsync(resourceProviderNamespace, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Registers a subscription with a resource provider. + /// The namespace of the resource provider to register. + /// The cancellation token to use. + public virtual Response Register(string resourceProviderNamespace, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ProvidersClient.Register"); + scope.Start(); + try + { + return RestClient.Register(resourceProviderNamespace, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the specified resource provider. + /// The namespace of the resource provider. + /// The $expand query parameter. For example, to include property aliases in response, use $expand=resourceTypes/aliases. + /// The cancellation token to use. + public virtual async Task> GetAsync(string resourceProviderNamespace, string expand = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ProvidersClient.Get"); + scope.Start(); + try + { + return await RestClient.GetAsync(resourceProviderNamespace, expand, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the specified resource provider. + /// The namespace of the resource provider. + /// The $expand query parameter. For example, to include property aliases in response, use $expand=resourceTypes/aliases. + /// The cancellation token to use. + public virtual Response Get(string resourceProviderNamespace, string expand = null, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ProvidersClient.Get"); + scope.Start(); + try + { + return RestClient.Get(resourceProviderNamespace, expand, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets all resource providers for a subscription. + /// The number of results to return. If null is passed returns all deployments. + /// The properties to include in the results. For example, use &$expand=metadata in the query string to retrieve resource provider metadata. To include property aliases in response, use $expand=resourceTypes/aliases. + /// The cancellation token to use. + public virtual AsyncPageable ListAsync(int? top = null, string expand = null, CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ProvidersClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListAsync(top, expand, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ProvidersClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListNextPageAsync(nextLink, top, expand, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets all resource providers for a subscription. + /// The number of results to return. If null is passed returns all deployments. + /// The properties to include in the results. For example, use &$expand=metadata in the query string to retrieve resource provider metadata. To include property aliases in response, use $expand=resourceTypes/aliases. + /// The cancellation token to use. + public virtual Pageable List(int? top = null, string expand = null, CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ProvidersClient.List"); + scope.Start(); + try + { + var response = RestClient.List(top, expand, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ProvidersClient.List"); + scope.Start(); + try + { + var response = RestClient.ListNextPage(nextLink, top, expand, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ProvidersRestClient.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ProvidersRestClient.cs new file mode 100644 index 0000000000000..dbca19e0ec373 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ProvidersRestClient.cs @@ -0,0 +1,470 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.Resource.Models; + +namespace Azure.Management.Resource +{ + internal partial class ProvidersRestClient + { + private string subscriptionId; + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of ProvidersRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The ID of the target subscription. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public ProvidersRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null, string apiVersion = "2017-05-10") + { + if (subscriptionId == null) + { + throw new ArgumentNullException(nameof(subscriptionId)); + } + endpoint ??= new Uri("https://management.azure.com"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.subscriptionId = subscriptionId; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal Core.HttpMessage CreateUnregisterRequest(string resourceProviderNamespace) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(resourceProviderNamespace, true); + uri.AppendPath("/unregister", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Unregisters a subscription from a resource provider. + /// The namespace of the resource provider to unregister. + /// The cancellation token to use. + public async ValueTask> UnregisterAsync(string resourceProviderNamespace, CancellationToken cancellationToken = default) + { + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + + using var message = CreateUnregisterRequest(resourceProviderNamespace); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + Provider value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = Provider.DeserializeProvider(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Unregisters a subscription from a resource provider. + /// The namespace of the resource provider to unregister. + /// The cancellation token to use. + public Response Unregister(string resourceProviderNamespace, CancellationToken cancellationToken = default) + { + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + + using var message = CreateUnregisterRequest(resourceProviderNamespace); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + Provider value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = Provider.DeserializeProvider(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateRegisterRequest(string resourceProviderNamespace) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(resourceProviderNamespace, true); + uri.AppendPath("/register", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Registers a subscription with a resource provider. + /// The namespace of the resource provider to register. + /// The cancellation token to use. + public async ValueTask> RegisterAsync(string resourceProviderNamespace, CancellationToken cancellationToken = default) + { + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + + using var message = CreateRegisterRequest(resourceProviderNamespace); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + Provider value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = Provider.DeserializeProvider(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Registers a subscription with a resource provider. + /// The namespace of the resource provider to register. + /// The cancellation token to use. + public Response Register(string resourceProviderNamespace, CancellationToken cancellationToken = default) + { + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + + using var message = CreateRegisterRequest(resourceProviderNamespace); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + Provider value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = Provider.DeserializeProvider(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateListRequest(int? top, string expand) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers", false); + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets all resource providers for a subscription. + /// The number of results to return. If null is passed returns all deployments. + /// The properties to include in the results. For example, use &$expand=metadata in the query string to retrieve resource provider metadata. To include property aliases in response, use $expand=resourceTypes/aliases. + /// The cancellation token to use. + public async ValueTask> ListAsync(int? top = null, string expand = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(top, expand); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ProviderListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ProviderListResult.DeserializeProviderListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets all resource providers for a subscription. + /// The number of results to return. If null is passed returns all deployments. + /// The properties to include in the results. For example, use &$expand=metadata in the query string to retrieve resource provider metadata. To include property aliases in response, use $expand=resourceTypes/aliases. + /// The cancellation token to use. + public Response List(int? top = null, string expand = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(top, expand); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ProviderListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ProviderListResult.DeserializeProviderListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateGetRequest(string resourceProviderNamespace, string expand) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(resourceProviderNamespace, true); + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets the specified resource provider. + /// The namespace of the resource provider. + /// The $expand query parameter. For example, to include property aliases in response, use $expand=resourceTypes/aliases. + /// The cancellation token to use. + public async ValueTask> GetAsync(string resourceProviderNamespace, string expand = null, CancellationToken cancellationToken = default) + { + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + + using var message = CreateGetRequest(resourceProviderNamespace, expand); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + Provider value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = Provider.DeserializeProvider(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets the specified resource provider. + /// The namespace of the resource provider. + /// The $expand query parameter. For example, to include property aliases in response, use $expand=resourceTypes/aliases. + /// The cancellation token to use. + public Response Get(string resourceProviderNamespace, string expand = null, CancellationToken cancellationToken = default) + { + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + + using var message = CreateGetRequest(resourceProviderNamespace, expand); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + Provider value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = Provider.DeserializeProvider(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateListNextPageRequest(string nextLink, int? top, string expand) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// Gets all resource providers for a subscription. + /// The URL to the next page of results. + /// The number of results to return. If null is passed returns all deployments. + /// The properties to include in the results. For example, use &$expand=metadata in the query string to retrieve resource provider metadata. To include property aliases in response, use $expand=resourceTypes/aliases. + /// The cancellation token to use. + public async ValueTask> ListNextPageAsync(string nextLink, int? top = null, string expand = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink, top, expand); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ProviderListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ProviderListResult.DeserializeProviderListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets all resource providers for a subscription. + /// The URL to the next page of results. + /// The number of results to return. If null is passed returns all deployments. + /// The properties to include in the results. For example, use &$expand=metadata in the query string to retrieve resource provider metadata. To include property aliases in response, use $expand=resourceTypes/aliases. + /// The cancellation token to use. + public Response ListNextPage(string nextLink, int? top = null, string expand = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink, top, expand); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ProviderListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ProviderListResult.DeserializeProviderListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourceGroupsClient.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourceGroupsClient.cs new file mode 100644 index 0000000000000..79faa141e7b4d --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourceGroupsClient.cs @@ -0,0 +1,353 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.Resource.Models; + +namespace Azure.Management.Resource +{ + /// The ResourceGroups service client. + public partial class ResourceGroupsClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal ResourceGroupsRestClient RestClient { get; } + /// Initializes a new instance of ResourceGroupsClient for mocking. + protected ResourceGroupsClient() + { + } + /// Initializes a new instance of ResourceGroupsClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The ID of the target subscription. + /// server parameter. + /// Api Version. + internal ResourceGroupsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null, string apiVersion = "2017-05-10") + { + RestClient = new ResourceGroupsRestClient(clientDiagnostics, pipeline, subscriptionId, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Checks whether a resource group exists. + /// The name of the resource group to check. The name is case insensitive. + /// The cancellation token to use. + public virtual async Task CheckExistenceAsync(string resourceGroupName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ResourceGroupsClient.CheckExistence"); + scope.Start(); + try + { + return await RestClient.CheckExistenceAsync(resourceGroupName, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Checks whether a resource group exists. + /// The name of the resource group to check. The name is case insensitive. + /// The cancellation token to use. + public virtual Response CheckExistence(string resourceGroupName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ResourceGroupsClient.CheckExistence"); + scope.Start(); + try + { + return RestClient.CheckExistence(resourceGroupName, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Creates or updates a resource group. + /// The name of the resource group to create or update. + /// Parameters supplied to the create or update a resource group. + /// The cancellation token to use. + public virtual async Task> CreateOrUpdateAsync(string resourceGroupName, ResourceGroup parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ResourceGroupsClient.CreateOrUpdate"); + scope.Start(); + try + { + return await RestClient.CreateOrUpdateAsync(resourceGroupName, parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Creates or updates a resource group. + /// The name of the resource group to create or update. + /// Parameters supplied to the create or update a resource group. + /// The cancellation token to use. + public virtual Response CreateOrUpdate(string resourceGroupName, ResourceGroup parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ResourceGroupsClient.CreateOrUpdate"); + scope.Start(); + try + { + return RestClient.CreateOrUpdate(resourceGroupName, parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets a resource group. + /// The name of the resource group to get. The name is case insensitive. + /// The cancellation token to use. + public virtual async Task> GetAsync(string resourceGroupName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ResourceGroupsClient.Get"); + scope.Start(); + try + { + return await RestClient.GetAsync(resourceGroupName, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets a resource group. + /// The name of the resource group to get. The name is case insensitive. + /// The cancellation token to use. + public virtual Response Get(string resourceGroupName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ResourceGroupsClient.Get"); + scope.Start(); + try + { + return RestClient.Get(resourceGroupName, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Resource groups can be updated through a simple PATCH operation to a group address. The format of the request is the same as that for creating a resource group. If a field is unspecified, the current value is retained. + /// The name of the resource group to update. The name is case insensitive. + /// Parameters supplied to update a resource group. + /// The cancellation token to use. + public virtual async Task> UpdateAsync(string resourceGroupName, ResourceGroupPatchable parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ResourceGroupsClient.Update"); + scope.Start(); + try + { + return await RestClient.UpdateAsync(resourceGroupName, parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Resource groups can be updated through a simple PATCH operation to a group address. The format of the request is the same as that for creating a resource group. If a field is unspecified, the current value is retained. + /// The name of the resource group to update. The name is case insensitive. + /// Parameters supplied to update a resource group. + /// The cancellation token to use. + public virtual Response Update(string resourceGroupName, ResourceGroupPatchable parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ResourceGroupsClient.Update"); + scope.Start(); + try + { + return RestClient.Update(resourceGroupName, parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Captures the specified resource group as a template. + /// The name of the resource group to export as a template. + /// Parameters for exporting the template. + /// The cancellation token to use. + public virtual async Task> ExportTemplateAsync(string resourceGroupName, ExportTemplateRequest parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ResourceGroupsClient.ExportTemplate"); + scope.Start(); + try + { + return await RestClient.ExportTemplateAsync(resourceGroupName, parameters, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Captures the specified resource group as a template. + /// The name of the resource group to export as a template. + /// Parameters for exporting the template. + /// The cancellation token to use. + public virtual Response ExportTemplate(string resourceGroupName, ExportTemplateRequest parameters, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ResourceGroupsClient.ExportTemplate"); + scope.Start(); + try + { + return RestClient.ExportTemplate(resourceGroupName, parameters, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets all the resource groups for a subscription. + /// The filter to apply on the operation. + /// The number of results to return. If null is passed, returns all resource groups. + /// The cancellation token to use. + public virtual AsyncPageable ListAsync(string filter = null, int? top = null, CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ResourceGroupsClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListAsync(filter, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ResourceGroupsClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListNextPageAsync(nextLink, filter, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets all the resource groups for a subscription. + /// The filter to apply on the operation. + /// The number of results to return. If null is passed, returns all resource groups. + /// The cancellation token to use. + public virtual Pageable List(string filter = null, int? top = null, CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ResourceGroupsClient.List"); + scope.Start(); + try + { + var response = RestClient.List(filter, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ResourceGroupsClient.List"); + scope.Start(); + try + { + var response = RestClient.ListNextPage(nextLink, filter, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of its template deployments and currently stored operations. + /// The name of the resource group to delete. The name is case insensitive. + /// The cancellation token to use. + public virtual async ValueTask StartDeleteAsync(string resourceGroupName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var scope = _clientDiagnostics.CreateScope("ResourceGroupsClient.StartDelete"); + scope.Start(); + try + { + var originalResponse = await RestClient.DeleteAsync(resourceGroupName, cancellationToken).ConfigureAwait(false); + return new ResourceGroupsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteRequest(resourceGroupName).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of its template deployments and currently stored operations. + /// The name of the resource group to delete. The name is case insensitive. + /// The cancellation token to use. + public virtual ResourceGroupsDeleteOperation StartDelete(string resourceGroupName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var scope = _clientDiagnostics.CreateScope("ResourceGroupsClient.StartDelete"); + scope.Start(); + try + { + var originalResponse = RestClient.Delete(resourceGroupName, cancellationToken); + return new ResourceGroupsDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteRequest(resourceGroupName).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourceGroupsDeleteOperation.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourceGroupsDeleteOperation.cs new file mode 100644 index 0000000000000..9fdb9291f0b8b --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourceGroupsDeleteOperation.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.Management.Resource +{ + /// When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of its template deployments and currently stored operations. + public partial class ResourceGroupsDeleteOperation : Operation, IOperationSource + { + private readonly ArmOperationHelpers _operation; + internal ResourceGroupsDeleteOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + { + _operation = new ArmOperationHelpers(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "ResourceGroupsDeleteOperation"); + } + /// + public override string Id => _operation.Id; + + /// + public override Response Value => _operation.Value; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override bool HasValue => _operation.HasValue; + + /// + public override Response GetRawResponse() => _operation.GetRawResponse(); + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + + Response IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + return response; + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + return await new ValueTask(response).ConfigureAwait(false); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourceGroupsRestClient.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourceGroupsRestClient.cs new file mode 100644 index 0000000000000..2fcad445fddaa --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourceGroupsRestClient.cs @@ -0,0 +1,709 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.Resource.Models; + +namespace Azure.Management.Resource +{ + internal partial class ResourceGroupsRestClient + { + private string subscriptionId; + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of ResourceGroupsRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The ID of the target subscription. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public ResourceGroupsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null, string apiVersion = "2017-05-10") + { + if (subscriptionId == null) + { + throw new ArgumentNullException(nameof(subscriptionId)); + } + endpoint ??= new Uri("https://management.azure.com"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.subscriptionId = subscriptionId; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal Core.HttpMessage CreateCheckExistenceRequest(string resourceGroupName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Head; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Checks whether a resource group exists. + /// The name of the resource group to check. The name is case insensitive. + /// The cancellation token to use. + public async ValueTask CheckExistenceAsync(string resourceGroupName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var message = CreateCheckExistenceRequest(resourceGroupName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + case 404: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Checks whether a resource group exists. + /// The name of the resource group to check. The name is case insensitive. + /// The cancellation token to use. + public Response CheckExistence(string resourceGroupName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var message = CreateCheckExistenceRequest(resourceGroupName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + case 404: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateCreateOrUpdateRequest(string resourceGroupName, ResourceGroup parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Creates or updates a resource group. + /// The name of the resource group to create or update. + /// Parameters supplied to the create or update a resource group. + /// The cancellation token to use. + public async ValueTask> CreateOrUpdateAsync(string resourceGroupName, ResourceGroup parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateCreateOrUpdateRequest(resourceGroupName, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + ResourceGroup value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceGroup.DeserializeResourceGroup(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Creates or updates a resource group. + /// The name of the resource group to create or update. + /// Parameters supplied to the create or update a resource group. + /// The cancellation token to use. + public Response CreateOrUpdate(string resourceGroupName, ResourceGroup parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateCreateOrUpdateRequest(resourceGroupName, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + ResourceGroup value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceGroup.DeserializeResourceGroup(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateDeleteRequest(string resourceGroupName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of its template deployments and currently stored operations. + /// The name of the resource group to delete. The name is case insensitive. + /// The cancellation token to use. + public async ValueTask DeleteAsync(string resourceGroupName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var message = CreateDeleteRequest(resourceGroupName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 200: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// When you delete a resource group, all of its resources are also deleted. Deleting a resource group deletes all of its template deployments and currently stored operations. + /// The name of the resource group to delete. The name is case insensitive. + /// The cancellation token to use. + public Response Delete(string resourceGroupName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var message = CreateDeleteRequest(resourceGroupName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 200: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateGetRequest(string resourceGroupName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets a resource group. + /// The name of the resource group to get. The name is case insensitive. + /// The cancellation token to use. + public async ValueTask> GetAsync(string resourceGroupName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var message = CreateGetRequest(resourceGroupName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ResourceGroup value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceGroup.DeserializeResourceGroup(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a resource group. + /// The name of the resource group to get. The name is case insensitive. + /// The cancellation token to use. + public Response Get(string resourceGroupName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var message = CreateGetRequest(resourceGroupName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ResourceGroup value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceGroup.DeserializeResourceGroup(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateUpdateRequest(string resourceGroupName, ResourceGroupPatchable parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Resource groups can be updated through a simple PATCH operation to a group address. The format of the request is the same as that for creating a resource group. If a field is unspecified, the current value is retained. + /// The name of the resource group to update. The name is case insensitive. + /// Parameters supplied to update a resource group. + /// The cancellation token to use. + public async ValueTask> UpdateAsync(string resourceGroupName, ResourceGroupPatchable parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdateRequest(resourceGroupName, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ResourceGroup value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceGroup.DeserializeResourceGroup(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Resource groups can be updated through a simple PATCH operation to a group address. The format of the request is the same as that for creating a resource group. If a field is unspecified, the current value is retained. + /// The name of the resource group to update. The name is case insensitive. + /// Parameters supplied to update a resource group. + /// The cancellation token to use. + public Response Update(string resourceGroupName, ResourceGroupPatchable parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdateRequest(resourceGroupName, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ResourceGroup value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceGroup.DeserializeResourceGroup(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateExportTemplateRequest(string resourceGroupName, ExportTemplateRequest parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/exportTemplate", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Captures the specified resource group as a template. + /// The name of the resource group to export as a template. + /// Parameters for exporting the template. + /// The cancellation token to use. + public async ValueTask> ExportTemplateAsync(string resourceGroupName, ExportTemplateRequest parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateExportTemplateRequest(resourceGroupName, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ResourceGroupExportResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceGroupExportResult.DeserializeResourceGroupExportResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Captures the specified resource group as a template. + /// The name of the resource group to export as a template. + /// Parameters for exporting the template. + /// The cancellation token to use. + public Response ExportTemplate(string resourceGroupName, ExportTemplateRequest parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateExportTemplateRequest(resourceGroupName, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ResourceGroupExportResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceGroupExportResult.DeserializeResourceGroupExportResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateListRequest(string filter, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets all the resource groups for a subscription. + /// The filter to apply on the operation. + /// The number of results to return. If null is passed, returns all resource groups. + /// The cancellation token to use. + public async ValueTask> ListAsync(string filter = null, int? top = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(filter, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ResourceGroupListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceGroupListResult.DeserializeResourceGroupListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets all the resource groups for a subscription. + /// The filter to apply on the operation. + /// The number of results to return. If null is passed, returns all resource groups. + /// The cancellation token to use. + public Response List(string filter = null, int? top = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(filter, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ResourceGroupListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceGroupListResult.DeserializeResourceGroupListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateListNextPageRequest(string nextLink, string filter, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// Gets all the resource groups for a subscription. + /// The URL to the next page of results. + /// The filter to apply on the operation. + /// The number of results to return. If null is passed, returns all resource groups. + /// The cancellation token to use. + public async ValueTask> ListNextPageAsync(string nextLink, string filter = null, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink, filter, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ResourceGroupListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceGroupListResult.DeserializeResourceGroupListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets all the resource groups for a subscription. + /// The URL to the next page of results. + /// The filter to apply on the operation. + /// The number of results to return. If null is passed, returns all resource groups. + /// The cancellation token to use. + public Response ListNextPage(string nextLink, string filter = null, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink, filter, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ResourceGroupListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceGroupListResult.DeserializeResourceGroupListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourceManagementClient.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourceManagementClient.cs new file mode 100644 index 0000000000000..ea8992212e2ad --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourceManagementClient.cs @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.Resource; + +namespace Azure.Management.Resource +{ + /// Resource service management client. + public class ResourceManagementClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + private readonly string _subscriptionId; + private readonly Uri _endpoint; + + /// Initializes a new instance of ResourceManagementClient for mocking. + protected ResourceManagementClient() + { + } + + /// Initializes a new instance of ResourceManagementClient. + /// The ID of the target subscription. + /// The OAuth token for making client requests. + /// The options for configuring the client. + public ResourceManagementClient(string subscriptionId, TokenCredential tokenCredential, ResourceManagementClientOptions options = null) : this(subscriptionId, null, tokenCredential, options) + { + } + /// Initializes a new instance of ResourceManagementClient. + /// The ID of the target subscription. + /// server parameter. + /// The OAuth token for making client requests. + /// The options for configuring the client. + /// This occurs when one of the required arguments is null. + public ResourceManagementClient(string subscriptionId, Uri endpoint, TokenCredential tokenCredential, ResourceManagementClientOptions options = null) + { + if (subscriptionId == null) + { + throw new ArgumentNullException(nameof(subscriptionId)); + } + endpoint ??= new Uri("https://management.azure.com"); + + options ??= new ResourceManagementClientOptions(); + _clientDiagnostics = new ClientDiagnostics(options); + _pipeline = ManagementPipelineBuilder.Build(tokenCredential, endpoint, options); + _subscriptionId = subscriptionId; + _endpoint = endpoint; + } + + /// Creates a new instance of DeploymentsClient. + public virtual DeploymentsClient GetDeploymentsClient() + { + return new DeploymentsClient(_clientDiagnostics, _pipeline, _subscriptionId, _endpoint); + } + + /// Creates a new instance of ProvidersClient. + public virtual ProvidersClient GetProvidersClient() + { + return new ProvidersClient(_clientDiagnostics, _pipeline, _subscriptionId, _endpoint); + } + + /// Creates a new instance of ResourcesClient. + public virtual ResourcesClient GetResourcesClient() + { + return new ResourcesClient(_clientDiagnostics, _pipeline, _subscriptionId, _endpoint); + } + + /// Creates a new instance of ResourceGroupsClient. + public virtual ResourceGroupsClient GetResourceGroupsClient() + { + return new ResourceGroupsClient(_clientDiagnostics, _pipeline, _subscriptionId, _endpoint); + } + + /// Creates a new instance of TagsClient. + public virtual TagsClient GetTagsClient() + { + return new TagsClient(_clientDiagnostics, _pipeline, _subscriptionId, _endpoint); + } + + /// Creates a new instance of DeploymentClient. + public virtual DeploymentClient GetDeploymentClient() + { + return new DeploymentClient(_clientDiagnostics, _pipeline, _subscriptionId, _endpoint); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourceManagementClientOptions.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourceManagementClientOptions.cs new file mode 100644 index 0000000000000..41ef9bfeddf53 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourceManagementClientOptions.cs @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Core; + +namespace Azure.Management.Resource +{ + /// Client options for Resource. + public class ResourceManagementClientOptions : ClientOptions + { + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesClient.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesClient.cs new file mode 100644 index 0000000000000..28645da131990 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesClient.cs @@ -0,0 +1,937 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.Resource.Models; + +namespace Azure.Management.Resource +{ + /// The Resources service client. + public partial class ResourcesClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal ResourcesRestClient RestClient { get; } + /// Initializes a new instance of ResourcesClient for mocking. + protected ResourcesClient() + { + } + /// Initializes a new instance of ResourcesClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The ID of the target subscription. + /// server parameter. + /// Api Version. + internal ResourcesClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null, string apiVersion = "2017-05-10") + { + RestClient = new ResourcesRestClient(clientDiagnostics, pipeline, subscriptionId, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Checks whether a resource exists. + /// The name of the resource group containing the resource to check. The name is case insensitive. + /// The resource provider of the resource to check. + /// The parent resource identity. + /// The resource type. + /// The name of the resource to check whether it exists. + /// The cancellation token to use. + public virtual async Task CheckExistenceAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.CheckExistence"); + scope.Start(); + try + { + return await RestClient.CheckExistenceAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Checks whether a resource exists. + /// The name of the resource group containing the resource to check. The name is case insensitive. + /// The resource provider of the resource to check. + /// The parent resource identity. + /// The resource type. + /// The name of the resource to check whether it exists. + /// The cancellation token to use. + public virtual Response CheckExistence(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.CheckExistence"); + scope.Start(); + try + { + return RestClient.CheckExistence(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets a resource. + /// The name of the resource group containing the resource to get. The name is case insensitive. + /// The namespace of the resource provider. + /// The parent resource identity. + /// The resource type of the resource. + /// The name of the resource to get. + /// The cancellation token to use. + public virtual async Task> GetAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.Get"); + scope.Start(); + try + { + return await RestClient.GetAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets a resource. + /// The name of the resource group containing the resource to get. The name is case insensitive. + /// The namespace of the resource provider. + /// The parent resource identity. + /// The resource type of the resource. + /// The name of the resource to get. + /// The cancellation token to use. + public virtual Response Get(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.Get"); + scope.Start(); + try + { + return RestClient.Get(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Checks by ID whether a resource exists. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// The cancellation token to use. + public virtual async Task CheckExistenceByIdAsync(string resourceId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.CheckExistenceById"); + scope.Start(); + try + { + return await RestClient.CheckExistenceByIdAsync(resourceId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Checks by ID whether a resource exists. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// The cancellation token to use. + public virtual Response CheckExistenceById(string resourceId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.CheckExistenceById"); + scope.Start(); + try + { + return RestClient.CheckExistenceById(resourceId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets a resource by ID. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// The cancellation token to use. + public virtual async Task> GetByIdAsync(string resourceId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.GetById"); + scope.Start(); + try + { + return await RestClient.GetByIdAsync(resourceId, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets a resource by ID. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// The cancellation token to use. + public virtual Response GetById(string resourceId, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.GetById"); + scope.Start(); + try + { + return RestClient.GetById(resourceId, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Get all the resources for a resource group. + /// The resource group with the resources to get. + /// The filter to apply on the operation. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. + /// The number of results to return. If null is passed, returns all resources. + /// The cancellation token to use. + public virtual AsyncPageable ListByResourceGroupAsync(string resourceGroupName, string filter = null, string expand = null, int? top = null, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.ListByResourceGroup"); + scope.Start(); + try + { + var response = await RestClient.ListByResourceGroupAsync(resourceGroupName, filter, expand, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.ListByResourceGroup"); + scope.Start(); + try + { + var response = await RestClient.ListByResourceGroupNextPageAsync(nextLink, resourceGroupName, filter, expand, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Get all the resources for a resource group. + /// The resource group with the resources to get. + /// The filter to apply on the operation. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. + /// The number of results to return. If null is passed, returns all resources. + /// The cancellation token to use. + public virtual Pageable ListByResourceGroup(string resourceGroupName, string filter = null, string expand = null, int? top = null, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.ListByResourceGroup"); + scope.Start(); + try + { + var response = RestClient.ListByResourceGroup(resourceGroupName, filter, expand, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.ListByResourceGroup"); + scope.Start(); + try + { + var response = RestClient.ListByResourceGroupNextPage(nextLink, resourceGroupName, filter, expand, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Get all the resources in a subscription. + /// The filter to apply on the operation. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. + /// The number of results to return. If null is passed, returns all resource groups. + /// The cancellation token to use. + public virtual AsyncPageable ListAsync(string filter = null, string expand = null, int? top = null, CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListAsync(filter, expand, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListNextPageAsync(nextLink, filter, expand, top, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Get all the resources in a subscription. + /// The filter to apply on the operation. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. + /// The number of results to return. If null is passed, returns all resource groups. + /// The cancellation token to use. + public virtual Pageable List(string filter = null, string expand = null, int? top = null, CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.List"); + scope.Start(); + try + { + var response = RestClient.List(filter, expand, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.List"); + scope.Start(); + try + { + var response = RestClient.ListNextPage(nextLink, filter, expand, top, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + + /// The resources to move must be in the same source resource group. The target resource group may be in a different subscription. When moving resources, both the source group and the target group are locked for the duration of the operation. Write and delete operations are blocked on the groups until the move completes. + /// The name of the resource group containing the resources to move. + /// Parameters for moving resources. + /// The cancellation token to use. + public virtual async ValueTask StartMoveResourcesAsync(string sourceResourceGroupName, ResourcesMoveInfo parameters, CancellationToken cancellationToken = default) + { + if (sourceResourceGroupName == null) + { + throw new ArgumentNullException(nameof(sourceResourceGroupName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.StartMoveResources"); + scope.Start(); + try + { + var originalResponse = await RestClient.MoveResourcesAsync(sourceResourceGroupName, parameters, cancellationToken).ConfigureAwait(false); + return new ResourcesMoveResourcesOperation(_clientDiagnostics, _pipeline, RestClient.CreateMoveResourcesRequest(sourceResourceGroupName, parameters).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// The resources to move must be in the same source resource group. The target resource group may be in a different subscription. When moving resources, both the source group and the target group are locked for the duration of the operation. Write and delete operations are blocked on the groups until the move completes. + /// The name of the resource group containing the resources to move. + /// Parameters for moving resources. + /// The cancellation token to use. + public virtual ResourcesMoveResourcesOperation StartMoveResources(string sourceResourceGroupName, ResourcesMoveInfo parameters, CancellationToken cancellationToken = default) + { + if (sourceResourceGroupName == null) + { + throw new ArgumentNullException(nameof(sourceResourceGroupName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.StartMoveResources"); + scope.Start(); + try + { + var originalResponse = RestClient.MoveResources(sourceResourceGroupName, parameters, cancellationToken); + return new ResourcesMoveResourcesOperation(_clientDiagnostics, _pipeline, RestClient.CreateMoveResourcesRequest(sourceResourceGroupName, parameters).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// This operation checks whether the specified resources can be moved to the target. The resources to move must be in the same source resource group. The target resource group may be in a different subscription. If validation succeeds, it returns HTTP response code 204 (no content). If validation fails, it returns HTTP response code 409 (Conflict) with an error message. Retrieve the URL in the Location header value to check the result of the long-running operation. + /// The name of the resource group containing the resources to validate for move. + /// Parameters for moving resources. + /// The cancellation token to use. + public virtual async ValueTask StartValidateMoveResourcesAsync(string sourceResourceGroupName, ResourcesMoveInfo parameters, CancellationToken cancellationToken = default) + { + if (sourceResourceGroupName == null) + { + throw new ArgumentNullException(nameof(sourceResourceGroupName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.StartValidateMoveResources"); + scope.Start(); + try + { + var originalResponse = await RestClient.ValidateMoveResourcesAsync(sourceResourceGroupName, parameters, cancellationToken).ConfigureAwait(false); + return new ResourcesValidateMoveResourcesOperation(_clientDiagnostics, _pipeline, RestClient.CreateValidateMoveResourcesRequest(sourceResourceGroupName, parameters).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// This operation checks whether the specified resources can be moved to the target. The resources to move must be in the same source resource group. The target resource group may be in a different subscription. If validation succeeds, it returns HTTP response code 204 (no content). If validation fails, it returns HTTP response code 409 (Conflict) with an error message. Retrieve the URL in the Location header value to check the result of the long-running operation. + /// The name of the resource group containing the resources to validate for move. + /// Parameters for moving resources. + /// The cancellation token to use. + public virtual ResourcesValidateMoveResourcesOperation StartValidateMoveResources(string sourceResourceGroupName, ResourcesMoveInfo parameters, CancellationToken cancellationToken = default) + { + if (sourceResourceGroupName == null) + { + throw new ArgumentNullException(nameof(sourceResourceGroupName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.StartValidateMoveResources"); + scope.Start(); + try + { + var originalResponse = RestClient.ValidateMoveResources(sourceResourceGroupName, parameters, cancellationToken); + return new ResourcesValidateMoveResourcesOperation(_clientDiagnostics, _pipeline, RestClient.CreateValidateMoveResourcesRequest(sourceResourceGroupName, parameters).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Deletes a resource. + /// The name of the resource group that contains the resource to delete. The name is case insensitive. + /// The namespace of the resource provider. + /// The parent resource identity. + /// The resource type. + /// The name of the resource to delete. + /// The cancellation token to use. + public virtual async ValueTask StartDeleteAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + if (parentResourcePath == null) + { + throw new ArgumentNullException(nameof(parentResourcePath)); + } + if (resourceType == null) + { + throw new ArgumentNullException(nameof(resourceType)); + } + if (resourceName == null) + { + throw new ArgumentNullException(nameof(resourceName)); + } + + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.StartDelete"); + scope.Start(); + try + { + var originalResponse = await RestClient.DeleteAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, cancellationToken).ConfigureAwait(false); + return new ResourcesDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteRequest(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Deletes a resource. + /// The name of the resource group that contains the resource to delete. The name is case insensitive. + /// The namespace of the resource provider. + /// The parent resource identity. + /// The resource type. + /// The name of the resource to delete. + /// The cancellation token to use. + public virtual ResourcesDeleteOperation StartDelete(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + if (parentResourcePath == null) + { + throw new ArgumentNullException(nameof(parentResourcePath)); + } + if (resourceType == null) + { + throw new ArgumentNullException(nameof(resourceType)); + } + if (resourceName == null) + { + throw new ArgumentNullException(nameof(resourceName)); + } + + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.StartDelete"); + scope.Start(); + try + { + var originalResponse = RestClient.Delete(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, cancellationToken); + return new ResourcesDeleteOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteRequest(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Creates a resource. + /// The name of the resource group for the resource. The name is case insensitive. + /// The namespace of the resource provider. + /// The parent resource identity. + /// The resource type of the resource to create. + /// The name of the resource to create. + /// Parameters for creating or updating the resource. + /// The cancellation token to use. + public virtual async ValueTask StartCreateOrUpdateAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, GenericResource parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + if (parentResourcePath == null) + { + throw new ArgumentNullException(nameof(parentResourcePath)); + } + if (resourceType == null) + { + throw new ArgumentNullException(nameof(resourceType)); + } + if (resourceName == null) + { + throw new ArgumentNullException(nameof(resourceName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.StartCreateOrUpdate"); + scope.Start(); + try + { + var originalResponse = await RestClient.CreateOrUpdateAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, parameters, cancellationToken).ConfigureAwait(false); + return new ResourcesCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreateOrUpdateRequest(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, parameters).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Creates a resource. + /// The name of the resource group for the resource. The name is case insensitive. + /// The namespace of the resource provider. + /// The parent resource identity. + /// The resource type of the resource to create. + /// The name of the resource to create. + /// Parameters for creating or updating the resource. + /// The cancellation token to use. + public virtual ResourcesCreateOrUpdateOperation StartCreateOrUpdate(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, GenericResource parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + if (parentResourcePath == null) + { + throw new ArgumentNullException(nameof(parentResourcePath)); + } + if (resourceType == null) + { + throw new ArgumentNullException(nameof(resourceType)); + } + if (resourceName == null) + { + throw new ArgumentNullException(nameof(resourceName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.StartCreateOrUpdate"); + scope.Start(); + try + { + var originalResponse = RestClient.CreateOrUpdate(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, parameters, cancellationToken); + return new ResourcesCreateOrUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreateOrUpdateRequest(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, parameters).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Updates a resource. + /// The name of the resource group for the resource. The name is case insensitive. + /// The namespace of the resource provider. + /// The parent resource identity. + /// The resource type of the resource to update. + /// The name of the resource to update. + /// Parameters for updating the resource. + /// The cancellation token to use. + public virtual async ValueTask StartUpdateAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, GenericResource parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + if (parentResourcePath == null) + { + throw new ArgumentNullException(nameof(parentResourcePath)); + } + if (resourceType == null) + { + throw new ArgumentNullException(nameof(resourceType)); + } + if (resourceName == null) + { + throw new ArgumentNullException(nameof(resourceName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.StartUpdate"); + scope.Start(); + try + { + var originalResponse = await RestClient.UpdateAsync(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, parameters, cancellationToken).ConfigureAwait(false); + return new ResourcesUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateUpdateRequest(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, parameters).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Updates a resource. + /// The name of the resource group for the resource. The name is case insensitive. + /// The namespace of the resource provider. + /// The parent resource identity. + /// The resource type of the resource to update. + /// The name of the resource to update. + /// Parameters for updating the resource. + /// The cancellation token to use. + public virtual ResourcesUpdateOperation StartUpdate(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, GenericResource parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + if (parentResourcePath == null) + { + throw new ArgumentNullException(nameof(parentResourcePath)); + } + if (resourceType == null) + { + throw new ArgumentNullException(nameof(resourceType)); + } + if (resourceName == null) + { + throw new ArgumentNullException(nameof(resourceName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.StartUpdate"); + scope.Start(); + try + { + var originalResponse = RestClient.Update(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, parameters, cancellationToken); + return new ResourcesUpdateOperation(_clientDiagnostics, _pipeline, RestClient.CreateUpdateRequest(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, parameters).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Deletes a resource by ID. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// The cancellation token to use. + public virtual async ValueTask StartDeleteByIdAsync(string resourceId, CancellationToken cancellationToken = default) + { + if (resourceId == null) + { + throw new ArgumentNullException(nameof(resourceId)); + } + + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.StartDeleteById"); + scope.Start(); + try + { + var originalResponse = await RestClient.DeleteByIdAsync(resourceId, cancellationToken).ConfigureAwait(false); + return new ResourcesDeleteByIdOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteByIdRequest(resourceId).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Deletes a resource by ID. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// The cancellation token to use. + public virtual ResourcesDeleteByIdOperation StartDeleteById(string resourceId, CancellationToken cancellationToken = default) + { + if (resourceId == null) + { + throw new ArgumentNullException(nameof(resourceId)); + } + + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.StartDeleteById"); + scope.Start(); + try + { + var originalResponse = RestClient.DeleteById(resourceId, cancellationToken); + return new ResourcesDeleteByIdOperation(_clientDiagnostics, _pipeline, RestClient.CreateDeleteByIdRequest(resourceId).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Create a resource by ID. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// Create or update resource parameters. + /// The cancellation token to use. + public virtual async ValueTask StartCreateOrUpdateByIdAsync(string resourceId, GenericResource parameters, CancellationToken cancellationToken = default) + { + if (resourceId == null) + { + throw new ArgumentNullException(nameof(resourceId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.StartCreateOrUpdateById"); + scope.Start(); + try + { + var originalResponse = await RestClient.CreateOrUpdateByIdAsync(resourceId, parameters, cancellationToken).ConfigureAwait(false); + return new ResourcesCreateOrUpdateByIdOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreateOrUpdateByIdRequest(resourceId, parameters).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Create a resource by ID. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// Create or update resource parameters. + /// The cancellation token to use. + public virtual ResourcesCreateOrUpdateByIdOperation StartCreateOrUpdateById(string resourceId, GenericResource parameters, CancellationToken cancellationToken = default) + { + if (resourceId == null) + { + throw new ArgumentNullException(nameof(resourceId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.StartCreateOrUpdateById"); + scope.Start(); + try + { + var originalResponse = RestClient.CreateOrUpdateById(resourceId, parameters, cancellationToken); + return new ResourcesCreateOrUpdateByIdOperation(_clientDiagnostics, _pipeline, RestClient.CreateCreateOrUpdateByIdRequest(resourceId, parameters).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Updates a resource by ID. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// Update resource parameters. + /// The cancellation token to use. + public virtual async ValueTask StartUpdateByIdAsync(string resourceId, GenericResource parameters, CancellationToken cancellationToken = default) + { + if (resourceId == null) + { + throw new ArgumentNullException(nameof(resourceId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.StartUpdateById"); + scope.Start(); + try + { + var originalResponse = await RestClient.UpdateByIdAsync(resourceId, parameters, cancellationToken).ConfigureAwait(false); + return new ResourcesUpdateByIdOperation(_clientDiagnostics, _pipeline, RestClient.CreateUpdateByIdRequest(resourceId, parameters).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Updates a resource by ID. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// Update resource parameters. + /// The cancellation token to use. + public virtual ResourcesUpdateByIdOperation StartUpdateById(string resourceId, GenericResource parameters, CancellationToken cancellationToken = default) + { + if (resourceId == null) + { + throw new ArgumentNullException(nameof(resourceId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var scope = _clientDiagnostics.CreateScope("ResourcesClient.StartUpdateById"); + scope.Start(); + try + { + var originalResponse = RestClient.UpdateById(resourceId, parameters, cancellationToken); + return new ResourcesUpdateByIdOperation(_clientDiagnostics, _pipeline, RestClient.CreateUpdateByIdRequest(resourceId, parameters).Request, originalResponse); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesCreateOrUpdateByIdOperation.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesCreateOrUpdateByIdOperation.cs new file mode 100644 index 0000000000000..2fba020a20c51 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesCreateOrUpdateByIdOperation.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.Resource.Models; + +namespace Azure.Management.Resource +{ + /// Create a resource by ID. + public partial class ResourcesCreateOrUpdateByIdOperation : Operation, IOperationSource + { + private readonly ArmOperationHelpers _operation; + internal ResourcesCreateOrUpdateByIdOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + { + _operation = new ArmOperationHelpers(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "ResourcesCreateOrUpdateByIdOperation"); + } + /// + public override string Id => _operation.Id; + + /// + public override GenericResource Value => _operation.Value; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override bool HasValue => _operation.HasValue; + + /// + public override Response GetRawResponse() => _operation.GetRawResponse(); + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + + GenericResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + return null; + } + else + { + return GenericResource.DeserializeGenericResource(document.RootElement); + } + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + return null; + } + else + { + return GenericResource.DeserializeGenericResource(document.RootElement); + } + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesCreateOrUpdateOperation.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesCreateOrUpdateOperation.cs new file mode 100644 index 0000000000000..7a7d7e0d347a2 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesCreateOrUpdateOperation.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.Resource.Models; + +namespace Azure.Management.Resource +{ + /// Creates a resource. + public partial class ResourcesCreateOrUpdateOperation : Operation, IOperationSource + { + private readonly ArmOperationHelpers _operation; + internal ResourcesCreateOrUpdateOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + { + _operation = new ArmOperationHelpers(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "ResourcesCreateOrUpdateOperation"); + } + /// + public override string Id => _operation.Id; + + /// + public override GenericResource Value => _operation.Value; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override bool HasValue => _operation.HasValue; + + /// + public override Response GetRawResponse() => _operation.GetRawResponse(); + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + + GenericResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + return null; + } + else + { + return GenericResource.DeserializeGenericResource(document.RootElement); + } + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + return null; + } + else + { + return GenericResource.DeserializeGenericResource(document.RootElement); + } + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesDeleteByIdOperation.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesDeleteByIdOperation.cs new file mode 100644 index 0000000000000..8720cc72adac4 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesDeleteByIdOperation.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.Management.Resource +{ + /// Deletes a resource by ID. + public partial class ResourcesDeleteByIdOperation : Operation, IOperationSource + { + private readonly ArmOperationHelpers _operation; + internal ResourcesDeleteByIdOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + { + _operation = new ArmOperationHelpers(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "ResourcesDeleteByIdOperation"); + } + /// + public override string Id => _operation.Id; + + /// + public override Response Value => _operation.Value; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override bool HasValue => _operation.HasValue; + + /// + public override Response GetRawResponse() => _operation.GetRawResponse(); + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + + Response IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + return response; + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + return await new ValueTask(response).ConfigureAwait(false); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesDeleteOperation.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesDeleteOperation.cs new file mode 100644 index 0000000000000..92a077f630a80 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesDeleteOperation.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.Management.Resource +{ + /// Deletes a resource. + public partial class ResourcesDeleteOperation : Operation, IOperationSource + { + private readonly ArmOperationHelpers _operation; + internal ResourcesDeleteOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + { + _operation = new ArmOperationHelpers(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "ResourcesDeleteOperation"); + } + /// + public override string Id => _operation.Id; + + /// + public override Response Value => _operation.Value; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override bool HasValue => _operation.HasValue; + + /// + public override Response GetRawResponse() => _operation.GetRawResponse(); + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + + Response IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + return response; + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + return await new ValueTask(response).ConfigureAwait(false); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesMoveResourcesOperation.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesMoveResourcesOperation.cs new file mode 100644 index 0000000000000..202676a5971b5 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesMoveResourcesOperation.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.Management.Resource +{ + /// The resources to move must be in the same source resource group. The target resource group may be in a different subscription. When moving resources, both the source group and the target group are locked for the duration of the operation. Write and delete operations are blocked on the groups until the move completes. + public partial class ResourcesMoveResourcesOperation : Operation, IOperationSource + { + private readonly ArmOperationHelpers _operation; + internal ResourcesMoveResourcesOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + { + _operation = new ArmOperationHelpers(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "ResourcesMoveResourcesOperation"); + } + /// + public override string Id => _operation.Id; + + /// + public override Response Value => _operation.Value; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override bool HasValue => _operation.HasValue; + + /// + public override Response GetRawResponse() => _operation.GetRawResponse(); + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + + Response IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + return response; + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + return await new ValueTask(response).ConfigureAwait(false); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesRestClient.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesRestClient.cs new file mode 100644 index 0000000000000..ff3cb07b8c0ae --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesRestClient.cs @@ -0,0 +1,1499 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.Resource.Models; + +namespace Azure.Management.Resource +{ + internal partial class ResourcesRestClient + { + private string subscriptionId; + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of ResourcesRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The ID of the target subscription. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public ResourcesRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null, string apiVersion = "2017-05-10") + { + if (subscriptionId == null) + { + throw new ArgumentNullException(nameof(subscriptionId)); + } + endpoint ??= new Uri("https://management.azure.com"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.subscriptionId = subscriptionId; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal Core.HttpMessage CreateListByResourceGroupRequest(string resourceGroupName, string filter, string expand, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/resources", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Get all the resources for a resource group. + /// The resource group with the resources to get. + /// The filter to apply on the operation. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. + /// The number of results to return. If null is passed, returns all resources. + /// The cancellation token to use. + public async ValueTask> ListByResourceGroupAsync(string resourceGroupName, string filter = null, string expand = null, int? top = null, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var message = CreateListByResourceGroupRequest(resourceGroupName, filter, expand, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ResourceListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceListResult.DeserializeResourceListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Get all the resources for a resource group. + /// The resource group with the resources to get. + /// The filter to apply on the operation. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. + /// The number of results to return. If null is passed, returns all resources. + /// The cancellation token to use. + public Response ListByResourceGroup(string resourceGroupName, string filter = null, string expand = null, int? top = null, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var message = CreateListByResourceGroupRequest(resourceGroupName, filter, expand, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ResourceListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceListResult.DeserializeResourceListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateMoveResourcesRequest(string sourceResourceGroupName, ResourcesMoveInfo parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(sourceResourceGroupName, true); + uri.AppendPath("/moveResources", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// The resources to move must be in the same source resource group. The target resource group may be in a different subscription. When moving resources, both the source group and the target group are locked for the duration of the operation. Write and delete operations are blocked on the groups until the move completes. + /// The name of the resource group containing the resources to move. + /// Parameters for moving resources. + /// The cancellation token to use. + public async ValueTask MoveResourcesAsync(string sourceResourceGroupName, ResourcesMoveInfo parameters, CancellationToken cancellationToken = default) + { + if (sourceResourceGroupName == null) + { + throw new ArgumentNullException(nameof(sourceResourceGroupName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateMoveResourcesRequest(sourceResourceGroupName, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// The resources to move must be in the same source resource group. The target resource group may be in a different subscription. When moving resources, both the source group and the target group are locked for the duration of the operation. Write and delete operations are blocked on the groups until the move completes. + /// The name of the resource group containing the resources to move. + /// Parameters for moving resources. + /// The cancellation token to use. + public Response MoveResources(string sourceResourceGroupName, ResourcesMoveInfo parameters, CancellationToken cancellationToken = default) + { + if (sourceResourceGroupName == null) + { + throw new ArgumentNullException(nameof(sourceResourceGroupName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateMoveResourcesRequest(sourceResourceGroupName, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateValidateMoveResourcesRequest(string sourceResourceGroupName, ResourcesMoveInfo parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(sourceResourceGroupName, true); + uri.AppendPath("/validateMoveResources", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// This operation checks whether the specified resources can be moved to the target. The resources to move must be in the same source resource group. The target resource group may be in a different subscription. If validation succeeds, it returns HTTP response code 204 (no content). If validation fails, it returns HTTP response code 409 (Conflict) with an error message. Retrieve the URL in the Location header value to check the result of the long-running operation. + /// The name of the resource group containing the resources to validate for move. + /// Parameters for moving resources. + /// The cancellation token to use. + public async ValueTask ValidateMoveResourcesAsync(string sourceResourceGroupName, ResourcesMoveInfo parameters, CancellationToken cancellationToken = default) + { + if (sourceResourceGroupName == null) + { + throw new ArgumentNullException(nameof(sourceResourceGroupName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateValidateMoveResourcesRequest(sourceResourceGroupName, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// This operation checks whether the specified resources can be moved to the target. The resources to move must be in the same source resource group. The target resource group may be in a different subscription. If validation succeeds, it returns HTTP response code 204 (no content). If validation fails, it returns HTTP response code 409 (Conflict) with an error message. Retrieve the URL in the Location header value to check the result of the long-running operation. + /// The name of the resource group containing the resources to validate for move. + /// Parameters for moving resources. + /// The cancellation token to use. + public Response ValidateMoveResources(string sourceResourceGroupName, ResourcesMoveInfo parameters, CancellationToken cancellationToken = default) + { + if (sourceResourceGroupName == null) + { + throw new ArgumentNullException(nameof(sourceResourceGroupName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateValidateMoveResourcesRequest(sourceResourceGroupName, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateListRequest(string filter, string expand, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resources", false); + if (filter != null) + { + uri.AppendQuery("$filter", filter, true); + } + if (expand != null) + { + uri.AppendQuery("$expand", expand, true); + } + if (top != null) + { + uri.AppendQuery("$top", top.Value, true); + } + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Get all the resources in a subscription. + /// The filter to apply on the operation. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. + /// The number of results to return. If null is passed, returns all resource groups. + /// The cancellation token to use. + public async ValueTask> ListAsync(string filter = null, string expand = null, int? top = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(filter, expand, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ResourceListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceListResult.DeserializeResourceListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Get all the resources in a subscription. + /// The filter to apply on the operation. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. + /// The number of results to return. If null is passed, returns all resource groups. + /// The cancellation token to use. + public Response List(string filter = null, string expand = null, int? top = null, CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(filter, expand, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ResourceListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceListResult.DeserializeResourceListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateCheckExistenceRequest(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Head; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(resourceProviderNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourcePath, false); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, false); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Checks whether a resource exists. + /// The name of the resource group containing the resource to check. The name is case insensitive. + /// The resource provider of the resource to check. + /// The parent resource identity. + /// The resource type. + /// The name of the resource to check whether it exists. + /// The cancellation token to use. + public async ValueTask CheckExistenceAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + if (parentResourcePath == null) + { + throw new ArgumentNullException(nameof(parentResourcePath)); + } + if (resourceType == null) + { + throw new ArgumentNullException(nameof(resourceType)); + } + if (resourceName == null) + { + throw new ArgumentNullException(nameof(resourceName)); + } + + using var message = CreateCheckExistenceRequest(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + case 404: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Checks whether a resource exists. + /// The name of the resource group containing the resource to check. The name is case insensitive. + /// The resource provider of the resource to check. + /// The parent resource identity. + /// The resource type. + /// The name of the resource to check whether it exists. + /// The cancellation token to use. + public Response CheckExistence(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + if (parentResourcePath == null) + { + throw new ArgumentNullException(nameof(parentResourcePath)); + } + if (resourceType == null) + { + throw new ArgumentNullException(nameof(resourceType)); + } + if (resourceName == null) + { + throw new ArgumentNullException(nameof(resourceName)); + } + + using var message = CreateCheckExistenceRequest(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + case 404: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateDeleteRequest(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(resourceProviderNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourcePath, false); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, false); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Deletes a resource. + /// The name of the resource group that contains the resource to delete. The name is case insensitive. + /// The namespace of the resource provider. + /// The parent resource identity. + /// The resource type. + /// The name of the resource to delete. + /// The cancellation token to use. + public async ValueTask DeleteAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + if (parentResourcePath == null) + { + throw new ArgumentNullException(nameof(parentResourcePath)); + } + if (resourceType == null) + { + throw new ArgumentNullException(nameof(resourceType)); + } + if (resourceName == null) + { + throw new ArgumentNullException(nameof(resourceName)); + } + + using var message = CreateDeleteRequest(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 200: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Deletes a resource. + /// The name of the resource group that contains the resource to delete. The name is case insensitive. + /// The namespace of the resource provider. + /// The parent resource identity. + /// The resource type. + /// The name of the resource to delete. + /// The cancellation token to use. + public Response Delete(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + if (parentResourcePath == null) + { + throw new ArgumentNullException(nameof(parentResourcePath)); + } + if (resourceType == null) + { + throw new ArgumentNullException(nameof(resourceType)); + } + if (resourceName == null) + { + throw new ArgumentNullException(nameof(resourceName)); + } + + using var message = CreateDeleteRequest(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 200: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateCreateOrUpdateRequest(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, GenericResource parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(resourceProviderNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourcePath, false); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, false); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Creates a resource. + /// The name of the resource group for the resource. The name is case insensitive. + /// The namespace of the resource provider. + /// The parent resource identity. + /// The resource type of the resource to create. + /// The name of the resource to create. + /// Parameters for creating or updating the resource. + /// The cancellation token to use. + public async ValueTask CreateOrUpdateAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, GenericResource parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + if (parentResourcePath == null) + { + throw new ArgumentNullException(nameof(parentResourcePath)); + } + if (resourceType == null) + { + throw new ArgumentNullException(nameof(resourceType)); + } + if (resourceName == null) + { + throw new ArgumentNullException(nameof(resourceName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateCreateOrUpdateRequest(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 201: + case 200: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Creates a resource. + /// The name of the resource group for the resource. The name is case insensitive. + /// The namespace of the resource provider. + /// The parent resource identity. + /// The resource type of the resource to create. + /// The name of the resource to create. + /// Parameters for creating or updating the resource. + /// The cancellation token to use. + public Response CreateOrUpdate(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, GenericResource parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + if (parentResourcePath == null) + { + throw new ArgumentNullException(nameof(parentResourcePath)); + } + if (resourceType == null) + { + throw new ArgumentNullException(nameof(resourceType)); + } + if (resourceName == null) + { + throw new ArgumentNullException(nameof(resourceName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateCreateOrUpdateRequest(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 201: + case 200: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateUpdateRequest(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, GenericResource parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(resourceProviderNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourcePath, false); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, false); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Updates a resource. + /// The name of the resource group for the resource. The name is case insensitive. + /// The namespace of the resource provider. + /// The parent resource identity. + /// The resource type of the resource to update. + /// The name of the resource to update. + /// Parameters for updating the resource. + /// The cancellation token to use. + public async ValueTask UpdateAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, GenericResource parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + if (parentResourcePath == null) + { + throw new ArgumentNullException(nameof(parentResourcePath)); + } + if (resourceType == null) + { + throw new ArgumentNullException(nameof(resourceType)); + } + if (resourceName == null) + { + throw new ArgumentNullException(nameof(resourceName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdateRequest(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 200: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Updates a resource. + /// The name of the resource group for the resource. The name is case insensitive. + /// The namespace of the resource provider. + /// The parent resource identity. + /// The resource type of the resource to update. + /// The name of the resource to update. + /// Parameters for updating the resource. + /// The cancellation token to use. + public Response Update(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, GenericResource parameters, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + if (parentResourcePath == null) + { + throw new ArgumentNullException(nameof(parentResourcePath)); + } + if (resourceType == null) + { + throw new ArgumentNullException(nameof(resourceType)); + } + if (resourceName == null) + { + throw new ArgumentNullException(nameof(resourceName)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdateRequest(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 200: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateGetRequest(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourcegroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/", false); + uri.AppendPath(resourceProviderNamespace, true); + uri.AppendPath("/", false); + uri.AppendPath(parentResourcePath, false); + uri.AppendPath("/", false); + uri.AppendPath(resourceType, false); + uri.AppendPath("/", false); + uri.AppendPath(resourceName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets a resource. + /// The name of the resource group containing the resource to get. The name is case insensitive. + /// The namespace of the resource provider. + /// The parent resource identity. + /// The resource type of the resource. + /// The name of the resource to get. + /// The cancellation token to use. + public async ValueTask> GetAsync(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + if (parentResourcePath == null) + { + throw new ArgumentNullException(nameof(parentResourcePath)); + } + if (resourceType == null) + { + throw new ArgumentNullException(nameof(resourceType)); + } + if (resourceName == null) + { + throw new ArgumentNullException(nameof(resourceName)); + } + + using var message = CreateGetRequest(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + GenericResource value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = GenericResource.DeserializeGenericResource(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a resource. + /// The name of the resource group containing the resource to get. The name is case insensitive. + /// The namespace of the resource provider. + /// The parent resource identity. + /// The resource type of the resource. + /// The name of the resource to get. + /// The cancellation token to use. + public Response Get(string resourceGroupName, string resourceProviderNamespace, string parentResourcePath, string resourceType, string resourceName, CancellationToken cancellationToken = default) + { + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + if (resourceProviderNamespace == null) + { + throw new ArgumentNullException(nameof(resourceProviderNamespace)); + } + if (parentResourcePath == null) + { + throw new ArgumentNullException(nameof(parentResourcePath)); + } + if (resourceType == null) + { + throw new ArgumentNullException(nameof(resourceType)); + } + if (resourceName == null) + { + throw new ArgumentNullException(nameof(resourceName)); + } + + using var message = CreateGetRequest(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + GenericResource value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = GenericResource.DeserializeGenericResource(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateCheckExistenceByIdRequest(string resourceId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Head; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Checks by ID whether a resource exists. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// The cancellation token to use. + public async ValueTask CheckExistenceByIdAsync(string resourceId, CancellationToken cancellationToken = default) + { + if (resourceId == null) + { + throw new ArgumentNullException(nameof(resourceId)); + } + + using var message = CreateCheckExistenceByIdRequest(resourceId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 204: + case 404: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Checks by ID whether a resource exists. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// The cancellation token to use. + public Response CheckExistenceById(string resourceId, CancellationToken cancellationToken = default) + { + if (resourceId == null) + { + throw new ArgumentNullException(nameof(resourceId)); + } + + using var message = CreateCheckExistenceByIdRequest(resourceId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 204: + case 404: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateDeleteByIdRequest(string resourceId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Deletes a resource by ID. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// The cancellation token to use. + public async ValueTask DeleteByIdAsync(string resourceId, CancellationToken cancellationToken = default) + { + if (resourceId == null) + { + throw new ArgumentNullException(nameof(resourceId)); + } + + using var message = CreateDeleteByIdRequest(resourceId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 200: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Deletes a resource by ID. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// The cancellation token to use. + public Response DeleteById(string resourceId, CancellationToken cancellationToken = default) + { + if (resourceId == null) + { + throw new ArgumentNullException(nameof(resourceId)); + } + + using var message = CreateDeleteByIdRequest(resourceId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 200: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateCreateOrUpdateByIdRequest(string resourceId, GenericResource parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Create a resource by ID. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// Create or update resource parameters. + /// The cancellation token to use. + public async ValueTask CreateOrUpdateByIdAsync(string resourceId, GenericResource parameters, CancellationToken cancellationToken = default) + { + if (resourceId == null) + { + throw new ArgumentNullException(nameof(resourceId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateCreateOrUpdateByIdRequest(resourceId, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 201: + case 200: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Create a resource by ID. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// Create or update resource parameters. + /// The cancellation token to use. + public Response CreateOrUpdateById(string resourceId, GenericResource parameters, CancellationToken cancellationToken = default) + { + if (resourceId == null) + { + throw new ArgumentNullException(nameof(resourceId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateCreateOrUpdateByIdRequest(resourceId, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 201: + case 200: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateUpdateByIdRequest(string resourceId, GenericResource parameters) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + request.Headers.Add("Content-Type", "application/json"); + using var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(parameters); + request.Content = content; + return message; + } + + /// Updates a resource by ID. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// Update resource parameters. + /// The cancellation token to use. + public async ValueTask UpdateByIdAsync(string resourceId, GenericResource parameters, CancellationToken cancellationToken = default) + { + if (resourceId == null) + { + throw new ArgumentNullException(nameof(resourceId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdateByIdRequest(resourceId, parameters); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 200: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Updates a resource by ID. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// Update resource parameters. + /// The cancellation token to use. + public Response UpdateById(string resourceId, GenericResource parameters, CancellationToken cancellationToken = default) + { + if (resourceId == null) + { + throw new ArgumentNullException(nameof(resourceId)); + } + if (parameters == null) + { + throw new ArgumentNullException(nameof(parameters)); + } + + using var message = CreateUpdateByIdRequest(resourceId, parameters); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 200: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateGetByIdRequest(string resourceId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/", false); + uri.AppendPath(resourceId, false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets a resource by ID. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// The cancellation token to use. + public async ValueTask> GetByIdAsync(string resourceId, CancellationToken cancellationToken = default) + { + if (resourceId == null) + { + throw new ArgumentNullException(nameof(resourceId)); + } + + using var message = CreateGetByIdRequest(resourceId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + GenericResource value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = GenericResource.DeserializeGenericResource(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets a resource by ID. + /// The fully qualified ID of the resource, including the resource name and resource type. Use the format, /subscriptions/{guid}/resourceGroups/{resource-group-name}/{resource-provider-namespace}/{resource-type}/{resource-name}. + /// The cancellation token to use. + public Response GetById(string resourceId, CancellationToken cancellationToken = default) + { + if (resourceId == null) + { + throw new ArgumentNullException(nameof(resourceId)); + } + + using var message = CreateGetByIdRequest(resourceId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + GenericResource value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = GenericResource.DeserializeGenericResource(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, string resourceGroupName, string filter, string expand, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// Get all the resources for a resource group. + /// The URL to the next page of results. + /// The resource group with the resources to get. + /// The filter to apply on the operation. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. + /// The number of results to return. If null is passed, returns all resources. + /// The cancellation token to use. + public async ValueTask> ListByResourceGroupNextPageAsync(string nextLink, string resourceGroupName, string filter = null, string expand = null, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var message = CreateListByResourceGroupNextPageRequest(nextLink, resourceGroupName, filter, expand, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ResourceListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceListResult.DeserializeResourceListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Get all the resources for a resource group. + /// The URL to the next page of results. + /// The resource group with the resources to get. + /// The filter to apply on the operation. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. + /// The number of results to return. If null is passed, returns all resources. + /// The cancellation token to use. + public Response ListByResourceGroupNextPage(string nextLink, string resourceGroupName, string filter = null, string expand = null, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + if (resourceGroupName == null) + { + throw new ArgumentNullException(nameof(resourceGroupName)); + } + + using var message = CreateListByResourceGroupNextPageRequest(nextLink, resourceGroupName, filter, expand, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ResourceListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceListResult.DeserializeResourceListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateListNextPageRequest(string nextLink, string filter, string expand, int? top) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// Get all the resources in a subscription. + /// The URL to the next page of results. + /// The filter to apply on the operation. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. + /// The number of results to return. If null is passed, returns all resource groups. + /// The cancellation token to use. + public async ValueTask> ListNextPageAsync(string nextLink, string filter = null, string expand = null, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink, filter, expand, top); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ResourceListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceListResult.DeserializeResourceListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Get all the resources in a subscription. + /// The URL to the next page of results. + /// The filter to apply on the operation. + /// Comma-separated list of additional properties to be included in the response. Valid values include `createdTime`, `changedTime` and `provisioningState`. For example, `$expand=createdTime,changedTime`. + /// The number of results to return. If null is passed, returns all resource groups. + /// The cancellation token to use. + public Response ListNextPage(string nextLink, string filter = null, string expand = null, int? top = null, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink, filter, expand, top); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ResourceListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = ResourceListResult.DeserializeResourceListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesUpdateByIdOperation.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesUpdateByIdOperation.cs new file mode 100644 index 0000000000000..62d7702402b7e --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesUpdateByIdOperation.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.Resource.Models; + +namespace Azure.Management.Resource +{ + /// Updates a resource by ID. + public partial class ResourcesUpdateByIdOperation : Operation, IOperationSource + { + private readonly ArmOperationHelpers _operation; + internal ResourcesUpdateByIdOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + { + _operation = new ArmOperationHelpers(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "ResourcesUpdateByIdOperation"); + } + /// + public override string Id => _operation.Id; + + /// + public override GenericResource Value => _operation.Value; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override bool HasValue => _operation.HasValue; + + /// + public override Response GetRawResponse() => _operation.GetRawResponse(); + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + + GenericResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + return null; + } + else + { + return GenericResource.DeserializeGenericResource(document.RootElement); + } + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + return null; + } + else + { + return GenericResource.DeserializeGenericResource(document.RootElement); + } + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesUpdateOperation.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesUpdateOperation.cs new file mode 100644 index 0000000000000..a70c10a42c82b --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesUpdateOperation.cs @@ -0,0 +1,80 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.Resource.Models; + +namespace Azure.Management.Resource +{ + /// Updates a resource. + public partial class ResourcesUpdateOperation : Operation, IOperationSource + { + private readonly ArmOperationHelpers _operation; + internal ResourcesUpdateOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + { + _operation = new ArmOperationHelpers(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "ResourcesUpdateOperation"); + } + /// + public override string Id => _operation.Id; + + /// + public override GenericResource Value => _operation.Value; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override bool HasValue => _operation.HasValue; + + /// + public override Response GetRawResponse() => _operation.GetRawResponse(); + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + + GenericResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + return null; + } + else + { + return GenericResource.DeserializeGenericResource(document.RootElement); + } + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + return null; + } + else + { + return GenericResource.DeserializeGenericResource(document.RootElement); + } + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesValidateMoveResourcesOperation.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesValidateMoveResourcesOperation.cs new file mode 100644 index 0000000000000..c3fcc652f9f11 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/ResourcesValidateMoveResourcesOperation.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; + +namespace Azure.Management.Resource +{ + /// This operation checks whether the specified resources can be moved to the target. The resources to move must be in the same source resource group. The target resource group may be in a different subscription. If validation succeeds, it returns HTTP response code 204 (no content). If validation fails, it returns HTTP response code 409 (Conflict) with an error message. Retrieve the URL in the Location header value to check the result of the long-running operation. + public partial class ResourcesValidateMoveResourcesOperation : Operation, IOperationSource + { + private readonly ArmOperationHelpers _operation; + internal ResourcesValidateMoveResourcesOperation(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, Request request, Response response) + { + _operation = new ArmOperationHelpers(this, clientDiagnostics, pipeline, request, response, OperationFinalStateVia.Location, "ResourcesValidateMoveResourcesOperation"); + } + /// + public override string Id => _operation.Id; + + /// + public override Response Value => _operation.Value; + + /// + public override bool HasCompleted => _operation.HasCompleted; + + /// + public override bool HasValue => _operation.HasValue; + + /// + public override Response GetRawResponse() => _operation.GetRawResponse(); + + /// + public override Response UpdateStatus(CancellationToken cancellationToken = default) => _operation.UpdateStatus(cancellationToken); + + /// + public override ValueTask UpdateStatusAsync(CancellationToken cancellationToken = default) => _operation.UpdateStatusAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(cancellationToken); + + /// + public override ValueTask> WaitForCompletionAsync(TimeSpan pollingInterval, CancellationToken cancellationToken = default) => _operation.WaitForCompletionAsync(pollingInterval, cancellationToken); + + Response IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + return response; + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + return await new ValueTask(response).ConfigureAwait(false); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/TagsClient.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/TagsClient.cs new file mode 100644 index 0000000000000..fa0dc87cc5994 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/TagsClient.cs @@ -0,0 +1,263 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.Resource.Models; + +namespace Azure.Management.Resource +{ + /// The Tags service client. + public partial class TagsClient + { + private readonly ClientDiagnostics _clientDiagnostics; + private readonly HttpPipeline _pipeline; + internal TagsRestClient RestClient { get; } + /// Initializes a new instance of TagsClient for mocking. + protected TagsClient() + { + } + /// Initializes a new instance of TagsClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The ID of the target subscription. + /// server parameter. + /// Api Version. + internal TagsClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null, string apiVersion = "2017-05-10") + { + RestClient = new TagsRestClient(clientDiagnostics, pipeline, subscriptionId, endpoint, apiVersion); + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + /// Deletes a tag value. + /// The name of the tag. + /// The value of the tag to delete. + /// The cancellation token to use. + public virtual async Task DeleteValueAsync(string tagName, string tagValue, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("TagsClient.DeleteValue"); + scope.Start(); + try + { + return await RestClient.DeleteValueAsync(tagName, tagValue, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Deletes a tag value. + /// The name of the tag. + /// The value of the tag to delete. + /// The cancellation token to use. + public virtual Response DeleteValue(string tagName, string tagValue, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("TagsClient.DeleteValue"); + scope.Start(); + try + { + return RestClient.DeleteValue(tagName, tagValue, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Creates a tag value. The name of the tag must already exist. + /// The name of the tag. + /// The value of the tag to create. + /// The cancellation token to use. + public virtual async Task> CreateOrUpdateValueAsync(string tagName, string tagValue, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("TagsClient.CreateOrUpdateValue"); + scope.Start(); + try + { + return await RestClient.CreateOrUpdateValueAsync(tagName, tagValue, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Creates a tag value. The name of the tag must already exist. + /// The name of the tag. + /// The value of the tag to create. + /// The cancellation token to use. + public virtual Response CreateOrUpdateValue(string tagName, string tagValue, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("TagsClient.CreateOrUpdateValue"); + scope.Start(); + try + { + return RestClient.CreateOrUpdateValue(tagName, tagValue, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// The tag name can have a maximum of 512 characters and is case insensitive. Tag names created by Azure have prefixes of microsoft, azure, or windows. You cannot create tags with one of these prefixes. + /// The name of the tag to create. + /// The cancellation token to use. + public virtual async Task> CreateOrUpdateAsync(string tagName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("TagsClient.CreateOrUpdate"); + scope.Start(); + try + { + return await RestClient.CreateOrUpdateAsync(tagName, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// The tag name can have a maximum of 512 characters and is case insensitive. Tag names created by Azure have prefixes of microsoft, azure, or windows. You cannot create tags with one of these prefixes. + /// The name of the tag to create. + /// The cancellation token to use. + public virtual Response CreateOrUpdate(string tagName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("TagsClient.CreateOrUpdate"); + scope.Start(); + try + { + return RestClient.CreateOrUpdate(tagName, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// You must remove all values from a resource tag before you can delete it. + /// The name of the tag. + /// The cancellation token to use. + public virtual async Task DeleteAsync(string tagName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("TagsClient.Delete"); + scope.Start(); + try + { + return await RestClient.DeleteAsync(tagName, cancellationToken).ConfigureAwait(false); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// You must remove all values from a resource tag before you can delete it. + /// The name of the tag. + /// The cancellation token to use. + public virtual Response Delete(string tagName, CancellationToken cancellationToken = default) + { + using var scope = _clientDiagnostics.CreateScope("TagsClient.Delete"); + scope.Start(); + try + { + return RestClient.Delete(tagName, cancellationToken); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// Gets the names and values of all resource tags that are defined in a subscription. + /// The cancellation token to use. + public virtual AsyncPageable ListAsync(CancellationToken cancellationToken = default) + { + async Task> FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("TagsClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListAsync(cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + async Task> NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("TagsClient.List"); + scope.Start(); + try + { + var response = await RestClient.ListNextPageAsync(nextLink, cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, NextPageFunc); + } + + /// Gets the names and values of all resource tags that are defined in a subscription. + /// The cancellation token to use. + public virtual Pageable List(CancellationToken cancellationToken = default) + { + Page FirstPageFunc(int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("TagsClient.List"); + scope.Start(); + try + { + var response = RestClient.List(cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + Page NextPageFunc(string nextLink, int? pageSizeHint) + { + using var scope = _clientDiagnostics.CreateScope("TagsClient.List"); + scope.Start(); + try + { + var response = RestClient.ListNextPage(nextLink, cancellationToken); + return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + return PageableHelpers.CreateEnumerable(FirstPageFunc, NextPageFunc); + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/TagsRestClient.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/TagsRestClient.cs new file mode 100644 index 0000000000000..0ff96bf2e20d5 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Generated/TagsRestClient.cs @@ -0,0 +1,512 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.Management.Resource.Models; + +namespace Azure.Management.Resource +{ + internal partial class TagsRestClient + { + private string subscriptionId; + private Uri endpoint; + private string apiVersion; + private ClientDiagnostics _clientDiagnostics; + private HttpPipeline _pipeline; + + /// Initializes a new instance of TagsRestClient. + /// The handler for diagnostic messaging in the client. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The ID of the target subscription. + /// server parameter. + /// Api Version. + /// This occurs when one of the required arguments is null. + public TagsRestClient(ClientDiagnostics clientDiagnostics, HttpPipeline pipeline, string subscriptionId, Uri endpoint = null, string apiVersion = "2017-05-10") + { + if (subscriptionId == null) + { + throw new ArgumentNullException(nameof(subscriptionId)); + } + endpoint ??= new Uri("https://management.azure.com"); + if (apiVersion == null) + { + throw new ArgumentNullException(nameof(apiVersion)); + } + + this.subscriptionId = subscriptionId; + this.endpoint = endpoint; + this.apiVersion = apiVersion; + _clientDiagnostics = clientDiagnostics; + _pipeline = pipeline; + } + + internal Core.HttpMessage CreateDeleteValueRequest(string tagName, string tagValue) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/tagNames/", false); + uri.AppendPath(tagName, true); + uri.AppendPath("/tagValues/", false); + uri.AppendPath(tagValue, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Deletes a tag value. + /// The name of the tag. + /// The value of the tag to delete. + /// The cancellation token to use. + public async ValueTask DeleteValueAsync(string tagName, string tagValue, CancellationToken cancellationToken = default) + { + if (tagName == null) + { + throw new ArgumentNullException(nameof(tagName)); + } + if (tagValue == null) + { + throw new ArgumentNullException(nameof(tagValue)); + } + + using var message = CreateDeleteValueRequest(tagName, tagValue); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Deletes a tag value. + /// The name of the tag. + /// The value of the tag to delete. + /// The cancellation token to use. + public Response DeleteValue(string tagName, string tagValue, CancellationToken cancellationToken = default) + { + if (tagName == null) + { + throw new ArgumentNullException(nameof(tagName)); + } + if (tagValue == null) + { + throw new ArgumentNullException(nameof(tagValue)); + } + + using var message = CreateDeleteValueRequest(tagName, tagValue); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateCreateOrUpdateValueRequest(string tagName, string tagValue) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/tagNames/", false); + uri.AppendPath(tagName, true); + uri.AppendPath("/tagValues/", false); + uri.AppendPath(tagValue, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Creates a tag value. The name of the tag must already exist. + /// The name of the tag. + /// The value of the tag to create. + /// The cancellation token to use. + public async ValueTask> CreateOrUpdateValueAsync(string tagName, string tagValue, CancellationToken cancellationToken = default) + { + if (tagName == null) + { + throw new ArgumentNullException(nameof(tagName)); + } + if (tagValue == null) + { + throw new ArgumentNullException(nameof(tagValue)); + } + + using var message = CreateCreateOrUpdateValueRequest(tagName, tagValue); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + TagValue value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = TagValue.DeserializeTagValue(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Creates a tag value. The name of the tag must already exist. + /// The name of the tag. + /// The value of the tag to create. + /// The cancellation token to use. + public Response CreateOrUpdateValue(string tagName, string tagValue, CancellationToken cancellationToken = default) + { + if (tagName == null) + { + throw new ArgumentNullException(nameof(tagName)); + } + if (tagValue == null) + { + throw new ArgumentNullException(nameof(tagValue)); + } + + using var message = CreateCreateOrUpdateValueRequest(tagName, tagValue); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + TagValue value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = TagValue.DeserializeTagValue(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateCreateOrUpdateRequest(string tagName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/tagNames/", false); + uri.AppendPath(tagName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// The tag name can have a maximum of 512 characters and is case insensitive. Tag names created by Azure have prefixes of microsoft, azure, or windows. You cannot create tags with one of these prefixes. + /// The name of the tag to create. + /// The cancellation token to use. + public async ValueTask> CreateOrUpdateAsync(string tagName, CancellationToken cancellationToken = default) + { + if (tagName == null) + { + throw new ArgumentNullException(nameof(tagName)); + } + + using var message = CreateCreateOrUpdateRequest(tagName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + TagDetails value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = TagDetails.DeserializeTagDetails(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// The tag name can have a maximum of 512 characters and is case insensitive. Tag names created by Azure have prefixes of microsoft, azure, or windows. You cannot create tags with one of these prefixes. + /// The name of the tag to create. + /// The cancellation token to use. + public Response CreateOrUpdate(string tagName, CancellationToken cancellationToken = default) + { + if (tagName == null) + { + throw new ArgumentNullException(nameof(tagName)); + } + + using var message = CreateCreateOrUpdateRequest(tagName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + TagDetails value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = TagDetails.DeserializeTagDetails(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateDeleteRequest(string tagName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/tagNames/", false); + uri.AppendPath(tagName, true); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// You must remove all values from a resource tag before you can delete it. + /// The name of the tag. + /// The cancellation token to use. + public async ValueTask DeleteAsync(string tagName, CancellationToken cancellationToken = default) + { + if (tagName == null) + { + throw new ArgumentNullException(nameof(tagName)); + } + + using var message = CreateDeleteRequest(tagName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// You must remove all values from a resource tag before you can delete it. + /// The name of the tag. + /// The cancellation token to use. + public Response Delete(string tagName, CancellationToken cancellationToken = default) + { + if (tagName == null) + { + throw new ArgumentNullException(nameof(tagName)); + } + + using var message = CreateDeleteRequest(tagName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateListRequest() + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/tagNames", false); + uri.AppendQuery("api-version", apiVersion, true); + request.Uri = uri; + return message; + } + + /// Gets the names and values of all resource tags that are defined in a subscription. + /// The cancellation token to use. + public async ValueTask> ListAsync(CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + TagsListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = TagsListResult.DeserializeTagsListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets the names and values of all resource tags that are defined in a subscription. + /// The cancellation token to use. + public Response List(CancellationToken cancellationToken = default) + { + using var message = CreateListRequest(); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + TagsListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = TagsListResult.DeserializeTagsListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + + internal Core.HttpMessage CreateListNextPageRequest(string nextLink) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + return message; + } + + /// Gets the names and values of all resource tags that are defined in a subscription. + /// The URL to the next page of results. + /// The cancellation token to use. + public async ValueTask> ListNextPageAsync(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + TagsListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = TagsListResult.DeserializeTagsListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw await _clientDiagnostics.CreateRequestFailedExceptionAsync(message.Response).ConfigureAwait(false); + } + } + + /// Gets the names and values of all resource tags that are defined in a subscription. + /// The URL to the next page of results. + /// The cancellation token to use. + public Response ListNextPage(string nextLink, CancellationToken cancellationToken = default) + { + if (nextLink == null) + { + throw new ArgumentNullException(nameof(nextLink)); + } + + using var message = CreateListNextPageRequest(nextLink); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + TagsListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + if (document.RootElement.ValueKind == JsonValueKind.Null) + { + value = null; + } + else + { + value = TagsListResult.DeserializeTagsListResult(document.RootElement); + } + return Response.FromValue(value, message.Response); + } + default: + throw _clientDiagnostics.CreateRequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/Properties/AssemblyInfo.cs b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Properties/AssemblyInfo.cs new file mode 100644 index 0000000000000..8f96e9b625f9a --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/Properties/AssemblyInfo.cs @@ -0,0 +1,8 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +using System.Runtime.CompilerServices; + +[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.Resources")] + +[assembly: InternalsVisibleTo("Azure.Management.Resource.Tests, PublicKey=0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")] diff --git a/sdk/testcommon/Azure.Management.Resource.2017_05/src/autorest.md b/sdk/testcommon/Azure.Management.Resource.2017_05/src/autorest.md new file mode 100644 index 0000000000000..c94f3f797caf7 --- /dev/null +++ b/sdk/testcommon/Azure.Management.Resource.2017_05/src/autorest.md @@ -0,0 +1,9 @@ +# Generated code configuration + +Run `dotnet msbuild /t:GenerateCode` to generate code. + +``` yaml +azure-arm: true +require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/ea1dc6beb3302923971b5a8593b2faa5a96dd65c/specification/resources/resource-manager/readme.md +tag: package-resources-2017-05 +```